/* Insider Trading Screener v2 — scoped to .isv2 */

.isv2 {
    --isv2-ink: #1a1a1a;
    --isv2-text: #333;
    --isv2-muted: #6a6a6a;
    --isv2-faint: #949494;
    --isv2-line: #dadada;
    --isv2-line-soft: #ececec;
    --isv2-panel: #fafafa;
    --isv2-hover: #f6f7f9;
    --isv2-accent: #d82600;
    --isv2-accent-dark: #b72000;
    --isv2-link: #2555ae;
    --isv2-focus: #2555ae;
    --isv2-buy: #17703a;
    --isv2-buy-bg: #e7f4eb;
    --isv2-sell: #b3261e;
    --isv2-sell-bg: #fbeaea;
    --isv2-buy-row: #f6fbf7;
    --isv2-buy-row-hover: #edf7f0;
    --isv2-sell-row: #fdf7f6;
    --isv2-sell-row-hover: #faeeec;
    --isv2-radius: 6px;
    --isv2-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --isv2-control-h: 36px;

    color: var(--isv2-text);
    font-size: 15px;
    line-height: 1.45;
    margin: 4px 0 48px;
}

.isv2 *, .isv2 *::before, .isv2 *::after { box-sizing: border-box; }

.isv2 button { font: inherit; }

.isv2-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Heading ---------- */

.isv2-head { margin: 6px 0 14px; }

.isv2-title {
    font-family: proxima-nova-condensed, "Proxima Nova Condensed Fallback", proxima-nova, Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: var(--isv2-ink);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.isv2-lede { margin: 0; color: var(--isv2-muted); font-size: 15px; }

/* ---------- Popular screens ---------- */

.isv2-presets {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.isv2-presets-label {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--isv2-muted);
}

.isv2-presets-list { display: flex; flex-wrap: wrap; gap: 6px; }

.isv2-chip {
    appearance: none;
    border: 1px solid var(--isv2-line);
    background: #fff;
    color: var(--isv2-ink);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background-color .15s, color .15s;
}

.isv2-chip:hover { border-color: var(--isv2-ink); }

.isv2-chip--more {
    border-style: dashed;
    color: var(--isv2-link);
    font-weight: 600;
}

.isv2-chip--more:hover { border-color: var(--isv2-link); }

.isv2-chip[aria-pressed="true"] {
    background: var(--isv2-ink);
    border-color: var(--isv2-ink);
    color: #fff;
}

/* ---------- Filter panel ---------- */

.isv2-filters {
    background: var(--isv2-panel);
    border: 1px solid var(--isv2-line-soft);
    border-radius: 8px;
    padding: 16px 18px 14px;
    margin-bottom: 22px;
}

.isv2-filters-toggle { display: none; }

.isv2-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "type sym  date date"
        "sec  cap  val  shr"
        "prc  ins  plan role";
    gap: 18px 20px;
    align-items: start;
}

.isv2-area-sym  { grid-area: sym; }
.isv2-area-type { grid-area: type; }
.isv2-area-date { grid-area: date; }
.isv2-area-role { grid-area: role; }
.isv2-area-ins  { grid-area: ins; }
.isv2-area-plan { grid-area: plan; }
.isv2-area-val  { grid-area: val; }
.isv2-area-shr  { grid-area: shr; }
.isv2-area-prc  { grid-area: prc; }
.isv2-area-cap  { grid-area: cap; }
.isv2-area-sec  { grid-area: sec; }

.isv2-grid--more {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "accepted accepted . .";
}

.isv2-area-accepted { grid-area: accepted; }

.isv2-field { margin: 0; padding: 0; border: 0; min-width: 0; }

.isv2-field > label,
.isv2-field > legend {
    display: block;
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 5px;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--isv2-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.isv2-input {
    display: block;
    width: 100%;
    height: var(--isv2-control-h);
    margin: 0;
    padding: 0 10px;
    border: 1px solid #c9c9c9;
    border-radius: var(--isv2-radius);
    background: #fff;
    color: var(--isv2-ink);
    font: inherit;
    font-size: 15px;
    line-height: normal;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.isv2-input::placeholder { color: #a8a8a8; opacity: 1; }

.isv2-input:hover { border-color: #a9a9a9; }

.isv2-input:focus {
    outline: none;
    border-color: var(--isv2-focus);
    box-shadow: 0 0 0 3px rgba(37, 85, 174, .18);
}

.isv2-input[aria-invalid="true"] {
    border-color: var(--isv2-sell);
    box-shadow: 0 0 0 3px rgba(179, 38, 30, .12);
}

.isv2-input--upper { text-transform: uppercase; }
.isv2-input--upper::placeholder { text-transform: none; }

.isv2-num,
.isv2 input[type="date"],
.isv2 input[type="datetime-local"] {
    font-family: var(--isv2-mono);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.isv2 input[type="date"],
.isv2 input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    padding-right: 6px;
}


.isv2-range input[type="date"],
.isv2-range input[type="datetime-local"] { flex: 1 1 0; width: auto; }

/* iOS Safari renders empty date inputs collapsed; keep their height */
.isv2 input[type="date"]::-webkit-date-and-time-value,
.isv2 input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }

.isv2 input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }
.isv2 input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.isv2-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    cursor: pointer;
}

.isv2-select::-ms-expand { display: none; }

.isv2-affix { position: relative; }

.isv2-affix-pre {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--isv2-faint);
    font-family: var(--isv2-mono);
    font-size: 14px;
    pointer-events: none;
}

.isv2-affix .isv2-input { padding-left: 22px; }

.isv2-range { display: flex; align-items: center; gap: 8px; }
.isv2-range-sep { color: var(--isv2-faint); font-size: 13px; }

/* Segmented control (transaction type) */
.isv2-segmented {
    display: flex;
    height: var(--isv2-control-h);
    padding: 3px;
    background: #ececec;
    border-radius: var(--isv2-radius);
}

.isv2-segmented label { position: relative; flex: 1; margin: 0; font-weight: 400; }

.isv2-segmented input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.isv2-segmented span {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: center;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--isv2-muted);
    cursor: pointer;
    user-select: none;
    transition: background-color .15s, color .15s;
}

.isv2-segmented span:hover { color: var(--isv2-ink); }

.isv2-segmented input:checked + span {
    background: #fff;
    color: var(--isv2-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.isv2-segmented input:focus-visible + span {
    outline: 2px solid var(--isv2-focus);
    outline-offset: 1px;
}

/* Insider role: select-style button with a checkbox menu */
.isv2-multi { position: relative; }

.isv2-multi-btn {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.isv2-multi-btn.is-placeholder { color: var(--isv2-muted); }

.isv2-multi-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 180px;
    padding: 6px;
    border: 1px solid #c9c9c9;
    border-radius: var(--isv2-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.isv2-multi-menu[hidden] { display: none; }

.isv2-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 7px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--isv2-text);
    cursor: pointer;
    user-select: none;
}

.isv2-check:hover { background: #f3f3f3; }

.isv2-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--isv2-ink); cursor: pointer; }

/* Quick date ranges */
.isv2-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.isv2-quick button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--isv2-link);
    cursor: pointer;
}

.isv2-quick button:hover { background: #e9eef8; }

.isv2-quick button[aria-pressed="true"] { background: var(--isv2-link); color: #fff; }

.isv2-quick .isv2-quick-clear { color: var(--isv2-muted); }

.isv2-help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--isv2-muted); }

.isv2-error {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-left: 3px solid var(--isv2-sell);
    background: var(--isv2-sell-bg);
    color: #7d1a14;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

/* More filters */
.isv2-more { margin-top: 12px; }

.isv2-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--isv2-link);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.isv2-more > summary::-webkit-details-marker { display: none; }

.isv2-more > summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s;
}

.isv2-more[open] > summary::before { transform: rotate(45deg); }

.isv2-grid--more { margin-top: 12px; }

/* Buttons */
/* "More filters" and Reset share one line under the grid */
.isv2-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.isv2-footer .isv2-more { flex: 1; min-width: 0; margin-top: 0; }

.isv2-actions { display: flex; align-items: center; gap: 10px; }

.isv2-collapse.isv2-btn,
.isv2-reset.isv2-btn {
    height: auto;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--isv2-muted);
    font-size: 14px;
    font-weight: 600;
}

.isv2-collapse.isv2-btn:hover,
.isv2-reset.isv2-btn:hover:not(:disabled) { color: var(--isv2-ink); }

.isv2-collapse svg { transition: transform .15s; }

.isv2-collapsed-summary {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    color: var(--isv2-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.isv2-collapsed-summary strong { color: var(--isv2-muted); font-weight: 600; margin-right: 6px; }

/* Desktop/tablet: filters minimized to a one-line summary */
@media (min-width: 720px) {
    .isv2-filters.is-collapsed { padding-top: 12px; padding-bottom: 12px; }
    .isv2-filters.is-collapsed .isv2-filters-body > .isv2-grid,
    .isv2-filters.is-collapsed .isv2-more,
    .isv2-filters.is-collapsed .isv2-error { display: none; }
    .isv2-filters.is-collapsed .isv2-footer { margin-top: 0; align-items: center; }
    .isv2-filters.is-collapsed .isv2-collapse svg { transform: rotate(180deg); }
}

.isv2-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--isv2-control-h);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--isv2-radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.isv2-btn--primary { background: #c32200; color: #fff; padding: 0 22px; }
.isv2-btn--primary:hover { background: var(--isv2-accent-dark); }

.isv2-btn--ghost { background: #fff; border-color: #c9c9c9; color: var(--isv2-ink); }
.isv2-btn--ghost:hover:not(:disabled) { border-color: var(--isv2-ink); }

.isv2-btn:disabled { opacity: .45; cursor: default; }

.isv2-btn:focus-visible,
.isv2-chip:focus-visible,
.isv2-quick button:focus-visible,
.isv2-more > summary:focus-visible,
.isv2-filters-toggle:focus-visible,
.isv2-table th button:focus-visible,
.isv2-table a:focus-visible {
    outline: 2px solid var(--isv2-focus);
    outline-offset: 2px;
}

.isv2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--isv2-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.isv2-badge--muted { background: var(--isv2-link); }

.isv2-badge[hidden] { display: none; }

/* ---------- Results ---------- */

.isv2-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.isv2-results-title:focus { outline: none; }

.isv2-results-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--isv2-ink);
    margin: 0;
}

.isv2-summary { margin: 2px 0 0; font-size: 13px; color: var(--isv2-muted); min-height: 1.4em; }

.isv2-toolbar-controls { display: flex; gap: 14px; }

.isv2-inline-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--isv2-muted);
}

.isv2-inline-select .isv2-input { width: auto; height: 32px; font-size: 14px; }

.isv2-sort-mobile { display: none; }

.isv2-table-wrap { position: relative; }

.isv2-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    background: #fff;
}

.isv2-table caption { caption-side: top; }

.isv2-table thead th {
    padding: 0;
    border: 0;
    border-bottom: 2px solid var(--isv2-ink);
    background: #fff;
    color: var(--isv2-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
    vertical-align: bottom;
}

.isv2-table thead th > button,
.isv2-table thead th > abbr,
.isv2-table thead th:not([data-sort]) {
    padding: 10px 10px 8px;
}

.isv2-table thead th:not([data-sort]) > abbr { padding: 0; }

.isv2-table thead th > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: inherit;
    cursor: pointer;
}

.isv2-table thead th > button::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0;
    transition: opacity .15s;
}

.isv2-table thead th > button:hover { color: var(--isv2-ink); }
.isv2-table thead th > button:hover::after { opacity: .35; }

.isv2-table thead th[aria-sort] { color: var(--isv2-ink); box-shadow: inset 0 -2px 0 var(--isv2-accent); }
.isv2-table thead th[aria-sort] > button::after { opacity: 1; }
.isv2-table thead th[aria-sort="ascending"] > button::after { transform: rotate(180deg); }

.isv2-table abbr[title] { text-decoration: none; border: 0; cursor: help; }

.isv2-table .c-num,
.isv2-table thead th.c-num { text-align: right; }

.isv2-table thead th.c-num > button { justify-content: flex-end; }

.isv2-table tbody td {
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--isv2-line-soft);
    vertical-align: top;
}

.isv2-table tbody tr.is-buy td { background: var(--isv2-buy-row); }
.isv2-table tbody tr.is-sell td { background: var(--isv2-sell-row); }
.isv2-table tbody tr.is-buy:hover td { background: var(--isv2-buy-row-hover); }
.isv2-table tbody tr.is-sell:hover td { background: var(--isv2-sell-row-hover); }

.isv2-table td.c-date,
.isv2-table td.c-num,
.isv2-table td.c-filed {
    font-family: var(--isv2-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.isv2-table td.c-date { color: var(--isv2-text); }

.isv2-table td.c-sym,
.isv2-table td.c-type { white-space: nowrap; }

.isv2-table td.c-sym a {
    font-weight: 700;
    color: var(--isv2-link);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.isv2-table td.c-sym a:hover { text-decoration: underline; }

.isv2-table td.c-ins { min-width: 180px; max-width: 320px; }

.isv2-name { display: block; color: var(--isv2-ink); font-weight: 600; line-height: 1.3; }
a.isv2-name, a.isv2-name:visited { color: var(--isv2-ink); text-decoration: none; }
a.isv2-name:hover { color: var(--isv2-ink); text-decoration: underline; }

.isv2-role { display: block; font-size: 12.5px; color: var(--isv2-muted); line-height: 1.35; margin-top: 1px; }

.isv2-table td.c-val { color: var(--isv2-ink); font-weight: 600; }

.isv2-table td.c-nins { color: var(--isv2-muted); }
.isv2-table td.c-nins.is-cluster { color: var(--isv2-ink); font-weight: 600; }

.isv2-table td.c-filed a { color: var(--isv2-text); text-decoration: none; }
.isv2-table td.c-filed a:hover { color: var(--isv2-link); text-decoration: underline; }

/* Screener managers: hide/unhide control and hidden filings */
.isv2-hide-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 7px;
    border: 1px solid var(--isv2-line);
    border-radius: 4px;
    background: #fff;
    color: var(--isv2-muted);
    font: 600 11px/1.5 proxima-nova, Arial, sans-serif;
    cursor: pointer;
}

.isv2-hide-btn:hover:not(:disabled) { color: var(--isv2-sell); border-color: var(--isv2-sell); }
.isv2-table tbody tr.is-hidden-filing td { opacity: .45; }
.isv2-table tbody tr.is-hidden-filing td.c-filed { opacity: 1; }
.isv2-table tbody tr.is-hidden-filing .isv2-hide-btn { color: var(--isv2-link); border-color: var(--isv2-link); }

.isv2-sub { display: block; font-size: 11.5px; color: var(--isv2-faint); margin-top: 2px; }

.isv2-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.isv2-pill--buy { color: var(--isv2-buy); background: var(--isv2-buy-bg); }
.isv2-pill--sell { color: var(--isv2-sell); background: var(--isv2-sell-bg); }

.isv2-plan {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    border: 1px solid var(--isv2-line);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--isv2-muted);
    line-height: 1.35;
    white-space: nowrap;
    cursor: help;
}

.isv2-table sup { color: var(--isv2-accent); font-weight: 700; margin-left: 1px; }

.isv2-table td .isv2-unv { color: var(--isv2-muted); font-weight: 400; }

/* Loading */
.isv2-results.is-loading .isv2-table tbody { opacity: .45; transition: opacity .2s; }

.isv2-skel {
    display: block;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
    background-size: 400% 100%;
    animation: isv2-shimmer 1.3s ease infinite;
}

@keyframes isv2-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
    .isv2-skel { animation: none; }
    .isv2 * { transition: none !important; }
}

.isv2-message {
    padding: 28px 16px;
    text-align: center;
    color: var(--isv2-muted);
    border: 1px dashed var(--isv2-line);
    border-radius: 8px;
    font-size: 15px;
}

.isv2-message strong { display: block; color: var(--isv2-ink); font-size: 16px; margin-bottom: 4px; }

.isv2-message--error { border-style: solid; border-color: #f0c9c6; background: var(--isv2-sell-bg); color: #7d1a14; }

.isv2-footnote { margin: 12px 0 0; font-size: 13px; color: var(--isv2-muted); max-width: 900px; }
.isv2-footnote sup { color: var(--isv2-accent); font-weight: 700; }

.isv2-footnote {
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: 6px;
    scroll-margin: 120px;
}

.isv2-footnote:focus { outline: none; }

.isv2-footnote.is-flash { animation: isv2-flash 1.6s ease-out; }

@keyframes isv2-flash {
    0%, 30% { background: #fff3cd; color: var(--isv2-ink); }
    100% { background: transparent; }
}

.isv2-table a.isv2-fn-ref {
    color: var(--isv2-accent);
    font-weight: 700;
    text-decoration: none;
    padding: 0 2px;
    cursor: pointer;
}

.isv2-table a.isv2-fn-ref:hover { text-decoration: underline; }

.isv2-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.isv2-page { font-size: 13px; color: var(--isv2-muted); font-family: var(--isv2-mono); }

.isv2-about {
    margin-top: 36px;
    padding-top: 14px;
    border-top: 1px solid var(--isv2-line-soft);
    font-size: 14px;
    color: var(--isv2-muted);
    max-width: 900px;
}

.isv2-about > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-weight: 600;
    color: var(--isv2-ink);
}

.isv2-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    color: var(--isv2-link);
}
.isv2-about ul { margin: 10px 0 0; padding-left: 20px; }
.isv2-about li { margin-bottom: 6px; }

.isv2 [hidden] { display: none !important; }

/* ---------- Guest preview ---------- */

.isv2-results { position: relative; }

.isv2.is-guest .isv2-rows-select { display: none; }

.isv2-table tbody tr.is-teaser { pointer-events: none; user-select: none; }

.isv2-table tbody tr.is-teaser td {
    filter: blur(4px);
    opacity: calc(.6 - var(--isv2-teaser-step, 0) * .09);
}

.isv2-gate {
    position: absolute;
    left: -2px;
    right: -2px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .75) 45%, #fff 100%);
    pointer-events: none;
}

.isv2-gate-card {
    pointer-events: auto;
    width: 100%;
    max-width: 440px;
    padding: 24px 28px 22px;
    border: 1px solid var(--isv2-line-soft);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
    text-align: center;
    animation: isv2-gate-in .35s ease-out both;
}

.isv2-gate.isv2-gate--inline {
    position: static;
    padding: 20px 0 4px;
    background: none;
}

@keyframes isv2-gate-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.isv2-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--isv2-sell-bg);
    color: var(--isv2-accent);
}

.isv2-gate-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--isv2-ink);
}

.isv2-gate-text { margin: 0 0 16px; font-size: 14px; color: var(--isv2-muted); }

.isv2-gate-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.isv2-gate-actions .isv2-btn { text-decoration: none; }
.isv2-gate-actions .isv2-btn--primary,
.isv2-gate-actions .isv2-btn--primary:hover,
.isv2-gate-actions .isv2-btn--primary:visited { color: #fff; }
.isv2-gate-actions .isv2-btn--ghost,
.isv2-gate-actions .isv2-btn--ghost:visited { color: var(--isv2-ink); }

@media (prefers-reduced-motion: reduce) {
    .isv2-gate-card { animation: none; }
}

/* Results update as filters change, so the apply button is only needed on phones,
   where it also closes the filter panel. */
@media (min-width: 720px) {
    .isv2-actions .isv2-btn--primary { display: none; }
}

/* ---------- Narrower screens: two-column filter grid ---------- */

@media (max-width: 1099px) {
    .isv2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "type sym"
            "date date"
            "sec  cap"
            "val  shr"
            "prc  ins"
            "role plan";
    }
    .isv2-grid--more { grid-template-areas: "accepted accepted"; }
}

/* ---------- Tablet: let the table scroll sideways ---------- */

@media (max-width: 1100px) and (min-width: 720px) {
    .isv2-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    .isv2-table { min-width: 940px; }
}

/* ---------- Phone ---------- */

@media (max-width: 719px) {
    .isv2 { --isv2-control-h: 42px; }

    /* 16px stops iOS Safari from zooming into focused fields */
    .isv2-input,
    .isv2-num,
    .isv2 input[type="date"],
    .isv2 input[type="datetime-local"] { font-size: 16px; }

    .isv2-title { font-size: 24px; }
    .isv2-lede { font-size: 14px; }

    .isv2-presets { display: block; margin: 0 -10px 12px; }
    .isv2-presets-label { display: block; margin: 0 10px 6px; }
    .isv2-presets-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .isv2-presets-list::-webkit-scrollbar { display: none; }
    .isv2-chip { padding: 7px 13px; }

    .isv2-filters { padding: 0; background: #fff; border-color: var(--isv2-line); }

    .isv2-filters-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 14px;
        border: 0;
        background: transparent;
        color: var(--isv2-ink);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
    }

    .isv2-filters-toggle::after {
        content: "";
        margin-left: auto;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-3px);
        transition: transform .15s;
    }

    .isv2-filters-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }

    .isv2-filters-body { padding: 4px 14px 14px; border-top: 1px solid var(--isv2-line-soft); }

    .isv2-filters:not(.is-open) .isv2-filters-body { display: none; }

    .isv2-grid {
        gap: 16px 12px;
        grid-template-areas:
            "type type"
            "sym  sym"
            "date date"
            "sec  sec"
            "val  shr"
            "prc  cap"
            "role role"
            "ins  ins"
            "plan plan";
    }

    .isv2-segmented span { padding: 0 6px; }

    .isv2-quick button { padding: 6px 9px; font-size: 13px; }

    .isv2-footer { flex-direction: column; align-items: stretch; gap: 0; }

    .isv2-actions {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--isv2-line-soft);
    }

    .isv2-actions .isv2-btn--primary { flex: 1; }

    /* Phones collapse with the Filters header toggle instead. */
    .isv2-collapse.isv2-btn,
    .isv2-collapsed-summary { display: none; }

    .isv2-reset.isv2-btn {
        height: var(--isv2-control-h);
        padding: 0 16px;
        border: 1px solid #c9c9c9;
        background: #fff;
        color: var(--isv2-ink);
    }

    .isv2-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .isv2-toolbar-controls { width: 100%; justify-content: space-between; }
    .isv2-sort-mobile { display: flex; }

    /* Rows become cards */
    .isv2-table thead { display: none; }
    .isv2-table, .isv2-table tbody { display: block; }

    .isv2-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 5px 10px;
        padding: 12px 2px;
        border-bottom: 1px solid var(--isv2-line-soft);
    }

    .isv2-table tbody tr { padding-left: 8px; padding-right: 8px; }
    .isv2-table tbody tr.is-buy { background: var(--isv2-buy-row); }
    .isv2-table tbody tr.is-sell { background: var(--isv2-sell-row); }
    .isv2-table tbody tr td,
    .isv2-table tbody tr:hover td { background: transparent !important; }

    .isv2-table tbody td { display: block; padding: 0; border: 0; min-width: 0; max-width: none; }

    .isv2-table td.c-sym { order: 1; font-size: 16px; }
    .isv2-table td.c-type { order: 2; }
    .isv2-table td.c-val { order: 3; margin-left: auto; font-size: 15px; text-align: right; }
    .isv2-table td.c-ins { order: 4; flex: 0 0 100%; }
    .isv2-table td.c-shr { order: 5; text-align: left; }
    .isv2-table td.c-prc { order: 6; text-align: left; }
    .isv2-table td.c-nins { order: 6; text-align: left; }
    .isv2-table td.c-date { order: 7; margin-left: auto; text-align: right; color: var(--isv2-muted); }
    .isv2-table td.c-filed { display: none; }
    .isv2-table td.c-shr .isv2-trades { display: inline; margin-left: 4px; }

    .isv2-table td.c-shr::before,
    .isv2-table td.c-prc::before,
    .isv2-table td.c-nins::before {
        content: attr(data-label) " ";
        font-family: proxima-nova, Arial, sans-serif;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--isv2-faint);
    }

    .isv2-name { display: inline; }
    .isv2-role { display: inline; margin-left: 4px; }
    .isv2-role::before { content: "· "; }

    .isv2-pager .isv2-btn { flex: 1; }

    .isv2-gate { padding: 12px 0; }
    .isv2-gate-card { padding: 20px 18px 18px; }
    .isv2-gate-actions .isv2-btn { flex: 1 1 100%; }
}

.isv2-table .isv2-plan:focus-visible { outline: 2px solid var(--isv2-focus); outline-offset: 2px; }
