/* Optional Fish row treatment. Remove this stylesheet to restore the prior design. */
#view-fish .fish-finder-table {
    font-family: var(--font-mono, monospace);
    font-variant-numeric: tabular-nums;
    color: #d9dcdc;
}
#view-fish .fish-finder-table th {
    background: #0b0c0c;
    color: #818987;
    letter-spacing: .45px;
    box-shadow: none;
}
#view-fish .fish-finder-table tbody tr:not(.long-pressing):not(.fish-trade-arrival) {
    background: #080909;
}
#view-fish .fish-finder-table tbody tr:not(.long-pressing):hover { background: #111515; }
#view-fish .fish-finder-table td { border-bottom-color: #202424; }
#view-fish .fish-finder-table .fish-ticker-chip {
    padding: 0;
    color: #e4e8e6;
    text-shadow: none;
    letter-spacing: .15px;
    min-width: 0;
}
#view-fish .fish-finder-table .fish-company-logo {
    width: 18px; height: 18px; border-radius: 0;
}
#view-fish .fish-finder-table .fish-contract-meta.type-c { color: #45e08a; }
#view-fish .fish-finder-table .fish-contract-meta.type-p { color: #ff4466; }
#view-fish .fish-finder-table .fish-otm-badge { opacity: .85; text-shadow: none; }
#view-fish .fish-finder-table .premium-call { color: #45e08a; }
#view-fish .fish-finder-table .premium-put { color: #ff4466; }
#view-fish .fish-finder-table :is(.expiry-near,.expiry-soon) {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid var(--fish-expiry-accent);
    background: transparent;
    border-radius: 0;
    color: #e4e8e6;
    line-height: 1.2;
    box-shadow: 0 0 5px var(--fish-expiry-glow);
}
#view-fish .fish-finder-table .expiry-near { --fish-expiry-accent: #ff4d6d; --fish-expiry-glow: #ff4d6d22; }
#view-fish .fish-finder-table .expiry-soon { --fish-expiry-accent: #e8bd59; --fish-expiry-glow: #e8bd5922; }
#view-fish .fish-finder-table .side-cell > div:first-child > span {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    color: #8e9693 !important;
}
#view-fish .fish-finder-table .side-cell[data-fish-side="BUY"] > div:first-child > span { color: #45e08a !important; }
#view-fish .fish-finder-table .side-cell[data-fish-side="SELL"] > div:first-child > span { color: #ff4466 !important; }
#view-fish .fish-finder-table :is(.tag-itm,.tag-otm,.tag-atm,.tag-bullish,.tag-bearish,.tag-neutral,.tag-0dte,.tag-leap,.badge-auto,.badge-multi,.badge-sweep) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 2px !important;
    font-size: 9px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
#view-fish .fish-finder-table :is(.tag-itm,.tag-bullish) { color: #45e08a; }
#view-fish .fish-finder-table :is(.tag-atm,.tag-bearish) { color: #ff4466; }
#view-fish .fish-finder-table .tag-otm { color: #c9adef; }
#view-fish .fish-finder-table .tag-neutral { color: #a5afaa !important; }
#view-fish .fish-finder-table .badge-auto { color: #99c9eb !important; }
#view-fish .fish-finder-table :is(.badge-multi,.badge-sweep,.tag-leap) { color: #edc781 !important; }
#view-fish .fish-finder-table .fish-fresh-tag { color: #ff1a3c; font-size: 9px; font-weight: 700; text-shadow: 0 0 6px rgba(255, 26, 60, .45); }
#view-fish .fish-finder-table .fish-meta-note { letter-spacing: .35px; }
/* Row hover details share the ledger's flat terminal surface. */
#view-fish .fish-finder-table :is(.side-cell,.fish-fill-cell,.fish-meta-note)::after {
    background: #101413;
    border: 1px solid #3b4540;
    border-radius: 0;
    box-shadow: none;
    color: #dce3de;
    padding: 7px 9px;
    font: 400 10px/1.45 var(--font-mono, monospace);
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
}
#view-fish .fish-finder-table .side-cell::after {
    bottom: calc(100% + 8px);
    white-space: normal;
    width: max-content;
    max-width: 240px;
    text-align: left;
}
#view-fish .fish-finder-table .fish-meta-note::before { display: none; }
#view-fish .fish-finder-table :is(.side-cell,.fish-fill-cell,.fish-meta-note):not([data-tooltip])::after,
#view-fish .fish-finder-table [data-tooltip=""]::after { display: none; }
#view-fish .fish-finder-table .fish-meta-note:hover { opacity: 1; }
#view-fish .fish-finder-table td:last-child:hover { position: relative; z-index: 10004; }
#view-fish .fish-finder-table .side-cell:hover { z-index: 10002; }
#view-fish .fish-finder-table tbody tr:nth-child(-n+2) :is(.side-cell,.fish-fill-cell,.fish-meta-note)::after {
    top: calc(100% + 8px);
    bottom: auto;
}
#view-fish .fish-finder-table .fish-inspect-contract:hover { text-shadow: none; }
#view-fish .fish-finder-table tbody tr:not(.long-pressing):focus-within { background: #111515; }
#view-fish .fish-finder-table :is(.fish-inspect-contract,.fish-cluster-toggle):focus-visible {
    outline: 1px solid #bc9a60;
    outline-offset: 3px;
}
#view-fish .fish-finder-table .fish-cluster-toggle:hover { color: #edc781; }
@media (min-width: 601px) {
    #view-fish .fish-finder-table td { padding: 6px 10px; height: 36px; box-sizing: border-box; }
    #view-fish .fish-finder-table th { padding: 7px 10px; }
    #view-fish .fish-finder-table .fish-time-lockup { display: flex; flex-direction: column; gap: 2px; }
    #view-fish .fish-finder-table .fish-row-time { order: -1; font-size: 11px !important; color: #d9dcdc !important; }
    #view-fish .fish-finder-table .fish-row-date { font-size: 9px; color: #707b76; }
    #view-fish .fish-finder-table .fish-size-caption { display: none; }
}

/* Condition tags (SWEEP / MULTI / AUTO): flat terminal hover card naming the exact OPRA code. */
#view-fish .fish-finder-table .fish-cond-tag { position: relative; cursor: help; }
#view-fish .fish-finder-table .fish-cond-tag[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    background: #101413;
    border: 1px solid #3b4540;
    border-top: 2px solid #edc781;
    color: #dce3de;
    padding: 7px 9px;
    font: 400 10px/1.45 var(--font-mono, monospace);
    letter-spacing: 0;
    text-transform: none;
    white-space: pre-line;
    width: max-content;
    max-width: 240px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s;
    z-index: 10003;
}
#view-fish .fish-finder-table .badge-auto.fish-cond-tag[data-tooltip]::after { border-top-color: #99c9eb; }
#view-fish .fish-finder-table .fish-cond-tag:hover::after { opacity: 1; visibility: visible; }
#view-fish .fish-finder-table tbody tr:nth-child(-n+2) .fish-cond-tag::after { top: calc(100% + 8px); bottom: auto; }

/* Compact feed (TF style): one line per print, sentiment on the left edge, side and price inline, 4-block fill
   meter with the mini bars beside it. */
#view-fish .fish-finder-table tr.fish-lean-bull > td:first-child { box-shadow: inset 2px 0 0 #45e08a; }
#view-fish .fish-finder-table tr.fish-lean-bear > td:first-child { box-shadow: inset 2px 0 0 #ff4466; }
#view-fish .fish-finder-table tr.fish-lean-neutral > td:first-child { box-shadow: inset 2px 0 0 #3f454b; }
#view-fish .fish-fill-compact { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* The original chain bid/ask % meter, scaled down to fit the one-line row. */
#view-fish .fish-fill-compact .fish-fill-meter { width: 52px !important; height: 14px !important; font-size: 8px !important; border-radius: 2px !important; }
#view-fish .fish-finder-table .side-cell > div { display: inline; }
#view-fish .fish-finder-table .side-cell > div[style*="margin-top"] { margin: 0 0 0 5px !important; font-size: 10px !important; color: #9aa0a6 !important; }
#view-fish .fish-finder-table .fish-row-date.is-today { display: none; }
@media (min-width: 601px) {
    #view-fish .fish-finder-table td { padding: 3px 8px; height: 25px; }
    /* Short numbers never wrap; the contract and tags cells may, so narrow panels don't scroll sideways. */
    #view-fish .fish-finder-table td:is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6)) { white-space: nowrap; }
    #view-fish .fish-finder-table th { padding: 5px 9px; }
    #view-fish .fish-finder-table .fish-time-lockup { flex-direction: row; gap: 6px; align-items: baseline; }
    #view-fish .fish-finder-table .fish-row-time { order: 0; font-size: 11px !important; }
    #view-fish .fish-finder-table .fish-company-logo { width: 14px; height: 14px; }
    #view-fish .fish-finder-table :is(.expiry-near,.expiry-soon) { padding: 0 4px; box-shadow: none; }
    #view-fish .fish-finder-table td:last-child > div { flex-wrap: wrap !important; row-gap: 2px !important; }
    #view-fish .fish-finder-table .fish-fill-cell { width: 84px; min-width: 84px; }
}
@media (max-width: 600px) {
    #view-fish .fish-finder-table tr:is([data-fish-trade-id],[data-fish-cluster]) { padding: 7px 10px !important; gap: 4px 8px !important; border-left: 2px solid #3f454b; }
    #view-fish .fish-finder-table tr.fish-lean-bull { border-left-color: #45e08a; }
    #view-fish .fish-finder-table tr.fish-lean-bear { border-left-color: #ff4466; }
    #view-fish .fish-finder-table tr > td:first-child { box-shadow: none !important; }
    #view-fish .fish-mobile-details { font-size: 10px; gap: 2px 6px; }
}

/* REPEAT tag: one word like the other tags; the hover card keeps hits, side %, premium and time span. */
#view-fish .fish-finder-table .repeat-meta.is-compact { flex-direction: row; font-size: 9px; line-height: 1.2; letter-spacing: .04em; color: #e66a31 !important; font-style: italic; opacity: 1; margin-right: 0; }
/* Logo sized to the text line. */
@media (min-width: 601px) { #view-fish .fish-finder-table .fish-company-logo { width: 12px; height: 12px; flex-basis: 12px; } }
@media (max-width: 600px) { #view-fish .fish-company-logo { flex: 0 0 15px !important; width: 15px !important; height: 15px !important; } }
#view-fish .fish-finder-table .repeat-meta.is-compact .repeat-meta-icon { margin-right: 3px; font-size: 9px; }

/* Size: only the big prints are coloured by rank; small ones stay quiet gray. */
#view-fish .size-contract-value.is-contract-rank-1 { color: #9aa0a6 !important; }

/* Whale arrival ($1M+): longer amber flash across the row, premium glows. */
#view-fish .fish-finder-table tr.fish-whale-arrival > td { animation: fish-whale-flash 1.8s ease-out; }
#view-fish .fish-finder-table tr.fish-whale-arrival > td b { animation: fish-whale-premium 2.2s ease-out; }
@keyframes fish-whale-flash { 0%, 35% { background: rgba(224, 172, 85, .26); } 100% { background: transparent; } }
@keyframes fish-whale-premium { 0%, 40% { text-shadow: 0 0 10px rgba(255, 210, 120, .9); color: #fff3d6; } 100% { text-shadow: none; } }
/* A new hit joined the REPEAT cluster: the tag pulses once. */
#view-fish .fish-finder-table .repeat-meta.repeat-pulse { animation: fish-repeat-pulse .9s ease-out; }
@keyframes fish-repeat-pulse { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.18); filter: brightness(1.8); } 100% { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { #view-fish .fish-finder-table tr.fish-whale-arrival > td, #view-fish .fish-finder-table tr.fish-whale-arrival > td b, #view-fish .fish-finder-table .repeat-meta.repeat-pulse { animation: none; } }
#view-fish .fish-finder-table .fish-premium-mega { color: #8c52ff !important; }
