/* =====================================================================
   Drag Racing Top Lists — Public styles (self-contained modern theme)
   The .t30sc-theme wrapper sets its own colors so it never depends on
   the surrounding site background.
   ===================================================================== */

.t30sc-theme, .t30sc-theme * {
    box-sizing: border-box;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Stay within the theme's normal content width (no viewport breakout — that
   mis-centers on themes whose container is already offset). The table is sized
   to fit this width via compact fonts/padding below; if a narrow screen still
   can't fit it, the .t30sc-table-wrap allows a gentle scroll as a fallback. */
.t30sc-theme {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
}

.t30sc-theme {
    --bg:        #0f1419;
    --surface:   #1a2129;
    --surface-2: #232c37;
    --line:      #2e3a47;
    --text:      #e8edf2;
    --muted:     #9fb0c0;
    --accent:    #ff3b30;
    --accent-2:  #ffd23f;
    --ok:        #2ecc71;

    background: var(--bg) !important;
    color: var(--text) !important;
    border-radius: 14px;
    padding: 22px 22px 26px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.t30sc-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .01em;
    margin: 0 0 16px;
    color: #fff !important;
    display: flex; align-items: center; gap: 10px;
}
.t30sc-listhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.t30sc-listhead .t30sc-title { margin: 0; }
.t30sc-tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; }
.t30sc-tab {
    display: inline-block; padding: 7px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    color: var(--muted) !important; transition: background .12s, color .12s;
}
.t30sc-tab:hover { color: #fff !important; }
.t30sc-tab.is-active { background: var(--accent) !important; color: #fff !important; }
.t30sc-title::before {
    content: ""; width: 6px; height: 26px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    display: inline-block;
}
.t30sc-empty { color: var(--muted); font-style: italic; padding: 10px 2px; }

/* ---- Table: content-sized columns, readable, theme-proof colors ---- */
.t30sc-table-wrap {
    width: 100%;
    overflow-x: auto;                 /* scroll ONLY if the viewport is too narrow */
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}
.t30sc-table {
    width: 100%;
    table-layout: fixed;              /* enforce our widths so 14 cols fit the content area */
    border-collapse: collapse;
    font-size: 12px;
    background: var(--surface) !important;
    border-radius: 10px;
    overflow: hidden;
}
.t30sc-table thead tr { background: var(--surface-2) !important; }
.t30sc-table thead th {
    padding: 8px 6px;
    text-align: left;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--muted) !important;
    background: var(--surface-2) !important;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t30sc-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
    color: var(--text) !important;
    background: transparent !important;
    font-size: 12px;
    font-weight: 500 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t30sc-table tbody tr { background: var(--surface) !important; }
.t30sc-table tbody tr:last-child td { border-bottom: none; }

/* Fixed column widths (sum = 100%). Driver column is hidden on desktop. */
.t30sc-table .c-driver { display: none; }
.t30sc-table .c-rank  { width: 5%;  text-align: center; }
.t30sc-table th:nth-child(2),  .t30sc-table td:nth-child(2)  { width: 5%;  } /* Year */
.t30sc-table th:nth-child(3),  .t30sc-table td:nth-child(3)  { width: 7%;  } /* Make */
.t30sc-table .c-model { width: 8%; white-space: normal; font-weight: 600; }
.t30sc-table th:nth-child(6),  .t30sc-table td:nth-child(6)  { width: 7%; white-space: normal; } /* Engine */
.t30sc-table th:nth-child(7),  .t30sc-table td:nth-child(7)  { width: 6%; } /* Adder 1 */
.t30sc-table th:nth-child(8),  .t30sc-table td:nth-child(8)  { width: 6%; } /* Adder 2 */
.t30sc-table th:nth-child(9),  .t30sc-table td:nth-child(9)  { width: 6%; } /* Trans */
.t30sc-table th:nth-child(10), .t30sc-table td:nth-child(10) { width: 6%; } /* Tires */
.t30sc-table .c-et    { width: 6%; font-weight: 800; color: #fff !important; }
.t30sc-table .c-gap   { width: 6%; }
.t30sc-table th:nth-child(13), .t30sc-table td:nth-child(13) { width: 6%; } /* MPH */
.t30sc-table th:nth-child(14), .t30sc-table td:nth-child(14) { width: 8%; } /* Run Date */
.t30sc-table .c-slip  { width: 12%; white-space: nowrap; }
.t30sc-table .c-ver   { width: 6%; text-align: center; }

.t30sc-gap-leader { color: var(--accent-2) !important; font-weight: 800; font-size: 10px; }
.t30sc-gap-val { color: var(--muted) !important; }

/* Clickable rows */
.t30sc-row { cursor: pointer; transition: background .12s; }
.t30sc-row:hover, .t30sc-row:hover td { background: var(--surface-2) !important; }
.t30sc-row:focus { outline: 2px solid var(--accent-2); outline-offset: -2px; }

/* Rank coloring */
.t30sc-row:nth-child(1) .c-rank { color: var(--accent-2) !important; font-weight: 800; }
.t30sc-row:nth-child(2) .c-rank { color: #c8d2dc !important; font-weight: 800; }
.t30sc-row:nth-child(3) .c-rank { color: #d08a4a !important; font-weight: 800; }
.c-rank { color: var(--accent) !important; font-weight: 700; }

/* Movement arrows */
.t30sc-mv { font-size: 9px; margin-left: 3px; vertical-align: middle; }
.t30sc-mv-up   { color: var(--ok) !important; }
.t30sc-mv-down { color: var(--accent) !important; }
.t30sc-mv-same { color: var(--muted) !important; }
.t30sc-mv-newtag {
    font-size: 7.5px; font-weight: 800; letter-spacing: .04em;
    background: var(--accent-2); color: #1a2129; padding: 1px 4px; border-radius: 4px;
}

/* Run history table on detail page */
.t30sc-runs-table { width: 100%; max-width: 620px; border-collapse: collapse; margin-bottom: 8px; font-size: 13px; background: var(--surface) !important; }
.t30sc-runs-table th { text-align: left; padding: 9px 12px; background: var(--surface-2) !important; color: var(--muted) !important; font-weight: 700; font-size: 11px; text-transform: uppercase; border: 1px solid var(--line) !important; }
.t30sc-runs-table td { padding: 9px 12px; border: 1px solid var(--line) !important; color: var(--text) !important; background: var(--surface) !important; }
.t30sc-runs-table .t30sc-et { font-weight: 800; color: var(--accent-2) !important; }
.t30sc-run-best td { background: #1e2a22 !important; }
.t30sc-best-tag { font-size: 9px; font-weight: 800; background: var(--ok); color: #06281b; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.t30sc-pending-tag { color: var(--muted) !important; font-style: italic; }
.t30sc-runs-note { font-size: 11.5px; color: var(--muted) !important; margin-top: 4px; max-width: 620px; }

/* ===== Mobile: reflow the table into stacked, tappable compact cards ===== */
@media (max-width: 768px) {
    /* Hide the podium on mobile to avoid duplicating the top cars (they're in the list). */
    .t30sc-podium { display: none !important; }

    .t30sc-table-wrap { overflow-x: visible; }
    .t30sc-table { table-layout: auto; min-width: 0; background: transparent !important; font-size: 13px; width: 100%; }
    .t30sc-table thead { display: none; }
    .t30sc-table, .t30sc-table tbody, .t30sc-table tr, .t30sc-table td {
        display: block; width: 100%;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 100% !important;
    }

    /* Each row becomes a card. */
    .t30sc-table tbody tr.t30sc-row {
        background: var(--surface) !important;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 14px 16px 14px;
        position: relative;
        box-sizing: border-box;
        cursor: pointer;
    }
    .t30sc-table tbody tr.t30sc-row td {
        border: none !important;
        padding: 5px 0 !important;
        text-align: left !important;
    }

    /* Generic spec cell: label left, value right. */
    .t30sc-table tbody td {
        display: flex !important;
        justify-content: space-between;
        align-items: baseline;
        gap: 14px;
        font-size: 13px;
        line-height: 1.3;
        color: var(--text) !important;
    }
    .t30sc-table tbody td::before {
        content: attr(data-label);
        color: var(--muted) !important;
        font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: 70px;
    }

    /* --- ALWAYS-VISIBLE SUMMARY: rank, name, ET, MPH --- */

    /* Rank badge: own line at the top-left, not absolutely positioned (fixes overlap). */
    .t30sc-table tbody td.c-rank {
        display: inline-flex !important;
        width: auto !important;
        padding: 3px 14px !important;
        background: var(--accent-2); color: #1a1205 !important; font-weight: 800;
        border-radius: 999px; font-size: 15px;
        justify-content: center; align-items: center; gap: 5px;
        margin-bottom: 10px;
    }
    .t30sc-table tbody td.c-rank::before { display: none; }
    .t30sc-table tbody td.c-rank .t30sc-mv { font-size: 11px; }

    /* Model = the car name headline. */
    .t30sc-table tbody td.c-model {
        display: block !important;
        font-size: 18px; font-weight: 800; color: #fff !important;
        margin-bottom: 8px; padding: 0 !important;
    }
    .t30sc-table tbody td.c-model::before { display: none; }

    /* ET stays prominent (yellow), MPH right under it. */
    .t30sc-table tbody td.c-et {
        font-size: 24px; font-weight: 800; color: var(--accent-2) !important;
        padding: 2px 0 !important;
    }
    .t30sc-table tbody td.c-et::before { color: var(--muted) !important; font-size: 11px; align-self: center; }

    /* Mobile shows the Driver column (hidden on desktop). */
    .t30sc-table .c-driver { display: flex !important; }

    /* --- COLLAPSIBLE DETAIL: hidden until the card is opened --- */
    .t30sc-table tbody tr.t30sc-row td:nth-child(6),  /* Engine */
    .t30sc-table tbody tr.t30sc-row td:nth-child(7),  /* Adder 1 */
    .t30sc-table tbody tr.t30sc-row td:nth-child(8),  /* Adder 2 */
    .t30sc-table tbody tr.t30sc-row td:nth-child(9),  /* Trans */
    .t30sc-table tbody tr.t30sc-row td:nth-child(10), /* Tires */
    .t30sc-table tbody tr.t30sc-row td.c-gap,         /* Gap */
    .t30sc-table tbody tr.t30sc-row td:nth-child(14), /* Run Date */
    .t30sc-table tbody tr.t30sc-row td.c-slip,        /* Slip */
    .t30sc-table tbody tr.t30sc-row td.c-ver {        /* Verified */
        display: none !important;
    }
    /* When opened, reveal the detail cells. */
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(6),
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(7),
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(8),
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(9),
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(10),
    .t30sc-table tbody tr.t30sc-row.is-open td.c-gap,
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(14),
    .t30sc-table tbody tr.t30sc-row.is-open td.c-slip,
    .t30sc-table tbody tr.t30sc-row.is-open td.c-ver {
        display: flex !important;
    }
    /* Divider above the detail block when open. */
    .t30sc-table tbody tr.t30sc-row.is-open td:nth-child(6) {
        border-top: 1px solid var(--line) !important;
        margin-top: 8px; padding-top: 10px !important;
    }

    /* Tap hint chip, injected by JS. */
    .t30sc-tap-hint {
        display: inline-block; margin-top: 10px;
        font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
        color: var(--muted);
    }
    .t30sc-row.is-open .t30sc-tap-hint .lbl-more { display: none; }
    .t30sc-row:not(.is-open) .t30sc-tap-hint .lbl-less { display: none; }

    /* "View full details" link, only when card is open. */
    .t30sc-card-detail {
        display: none;
        margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
        color: var(--accent-2) !important; font-weight: 700; font-size: 13px; text-decoration: none;
    }
    .t30sc-row.is-open .t30sc-card-detail { display: block; }
}

/* Very small phones: trim a touch. */
@media (max-width: 380px) {
    .t30sc-table tbody tr.t30sc-row { padding: 12px 13px; }
    .t30sc-table tbody td.c-model { font-size: 16px; }
    .t30sc-table tbody td.c-et { font-size: 21px; }
    .t30sc-table tbody td::before { min-width: 62px; }
}

.t30sc-slip-link { color: var(--accent-2) !important; text-decoration: none; font-weight: 600; }
.t30sc-slip-link:hover { text-decoration: underline; }
.t30sc-slip-icon { font-size: 13px; }
.t30sc-dash { color: var(--muted) !important; }

.t30sc-verified, .t30sc-verified * { color: #2ecc71 !important; font-weight: 800; }
.t30sc-table .c-ver .t30sc-verified { color: #2ecc71 !important; }
.t30sc-legacy-tag {
    background: #4a3a14; color: var(--accent-2);
    font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle;
}

/* Responsive: shrink further on small screens but still no scroll */
@media (max-width: 768px) {
    .t30sc-table { font-size: 10.5px; }
    .t30sc-table thead th, .t30sc-table tbody td { padding: 7px 4px; }
    .t30sc-table thead th { font-size: 9px; }
}
@media (max-width: 540px) {
    .t30sc-table { font-size: 9px; }
    .t30sc-table thead th { font-size: 7.5px; letter-spacing: 0; }
}

/* ---- Cards ---- */
.t30sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 16px; }
.t30sc-card {
    display: block; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; position: relative; transition: transform .15s, border-color .15s;
}
.t30sc-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.t30sc-card-rank {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
    padding: 3px 11px; border-radius: 14px;
}
.t30sc-card-img { width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.t30sc-card-noimg { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.t30sc-card-body { padding: 12px 14px; }
.t30sc-card-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; color: #fff; }
.t30sc-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.t30sc-card-stats { display: flex; gap: 14px; font-size: 13px; }
.t30sc-card-et { font-weight: 800; color: var(--accent-2); }

/* ---- Detail ---- */
.t30sc-detail { max-width: 780px; }
.t30sc-back { display: inline-block; margin-bottom: 14px; color: var(--accent-2) !important; text-decoration: none; font-size: 13px; }
.t30sc-back:hover { text-decoration: underline; }
.t30sc-detail-title { font-size: 1.5rem; font-weight: 800; color: #fff !important; margin-bottom: 16px; }
.t30sc-detail-hero { width: 100%; max-width: 640px; border-radius: 12px; margin-bottom: 18px; display: block; }
.t30sc-detail-specs { width: 100%; max-width: 560px; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; background: var(--surface) !important; }
.t30sc-detail-specs th {
    text-align: left; padding: 11px 14px;
    background: var(--surface-2) !important; color: var(--muted) !important;
    width: 170px; font-weight: 700; border: 1px solid var(--line) !important;
}
.t30sc-detail-specs td {
    padding: 11px 14px; border: 1px solid var(--line) !important;
    color: var(--text) !important; background: var(--surface) !important; font-weight: 500;
}
.t30sc-detail-specs .t30sc-et { font-weight: 800; color: var(--accent-2) !important; }
.t30sc-detail-sub { font-size: 1.05rem; font-weight: 700; color: #fff !important; margin: 18px 0 10px; }
.t30sc-detail-video { margin-bottom: 18px; }
.t30sc-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.t30sc-gallery img { width: 150px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---- Submission form (polished, modern card) ---- */
.t30sc-submit-wrap {
    max-width: 860px; margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    border: 1px solid #e6e8ec; border-radius: 16px;
    padding: 30px 32px; box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.t30sc-submit-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; color: #14181d; display:flex; align-items:center; gap:10px; }
.t30sc-submit-title::before { content:"\1F3C1"; font-size: 1.4rem; }
.t30sc-submit-note { color: #6a7480; font-size: 13.5px; margin-bottom: 22px; }
.t30sc-submit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; margin-bottom: 22px; }
@media (max-width: 720px){ .t30sc-submit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .t30sc-submit-grid { grid-template-columns: 1fr; } }
.t30sc-submit-grid label { display: flex; flex-direction: column; align-items: stretch; font-size: 12px; font-weight: 700; gap: 6px; color: #59636f; text-transform: uppercase; letter-spacing: .03em; }
.t30sc-submit-grid > label { width: 100%; min-width: 0; box-sizing: border-box; }
.t30sc-submit-grid input, .t30sc-submit-grid select {
    padding: 13px 14px; min-height: 48px; border: 1.5px solid #dde1e6; border-radius: 10px; font-size: 15px;
    font-weight: 500; text-transform: none; letter-spacing: 0; color: #14181d;
    background: #fff; transition: border-color .15s, box-shadow .15s;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    box-sizing: border-box !important; display: block !important;
}
.t30sc-submit-form .t30sc-submit-grid input,
.t30sc-submit-form .t30sc-submit-grid select { width: 100% !important; }
/* Highest-specificity override (ID) to beat stubborn theme input rules. */
#t30sc-submit-form .t30sc-submit-grid label > input,
#t30sc-submit-form .t30sc-submit-grid label > select {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    box-sizing: border-box !important; display: block !important; flex: 1 1 auto !important;
}
.t30sc-submit-grid input:focus, .t30sc-submit-grid select:focus {
    outline: none; border-color: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,.12);
}
.t30sc-submit-uploads { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid #ececf0; padding-top: 20px; margin-bottom: 18px; }
.t30sc-submit-upload {
    flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px;
    font-size: 12px; font-weight: 700; color: #59636f; text-transform: uppercase; letter-spacing: .03em;
    background: #fff; border: 1.5px dashed #d4d8dd; border-radius: 12px; padding: 16px;
}
.t30sc-submit-preview img { width: 110px; height: 110px; object-fit: cover; border-radius: 9px; border: 1px solid #ccc; }
.t30sc-submit-file { font-size: 12px; }
.t30sc-clear-photo { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 11px; text-align: left; padding: 0; text-transform: none; letter-spacing: 0; }
.t30sc-submit-btn {
    background: linear-gradient(180deg, #ff5a4d, #ff3b30); color: #fff; border: none; border-radius: 10px;
    padding: 13px 30px; font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(255,59,48,.32); transition: transform .12s, box-shadow .12s;
}
.t30sc-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,59,48,.4); }
.t30sc-submit-msg { margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.t30sc-recaptcha-note { font-size: 11px; color: #9aa3ad; margin-top: 12px; }
.t30sc-recaptcha-note a { color: #9aa3ad; }

/* Honeypot: visually hidden but NOT display:none (some bots skip those) */
.t30sc-hp-wrap { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; overflow: hidden; }

/* ===== Podium ===== */
.t30sc-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; align-items: end; }
@media (max-width: 640px){ .t30sc-podium { grid-template-columns: 1fr; } }
.t30sc-pod { display: block; text-decoration: none; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.t30sc-pod:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.t30sc-pod-medal { position: absolute; top: 10px; left: 10px; z-index: 2; font-weight: 800; font-size: 15px; padding: 4px 12px; border-radius: 14px; color: #1a2129; }
.t30sc-pod-p1 { border-color: #ffd23f; }
.t30sc-pod-p1 .t30sc-pod-medal { background: linear-gradient(180deg,#ffe27a,#ffd23f); }
.t30sc-pod-p2 .t30sc-pod-medal { background: linear-gradient(180deg,#e3e9ef,#c8d2dc); }
.t30sc-pod-p3 .t30sc-pod-medal { background: linear-gradient(180deg,#e0a467,#d08a4a); }
.t30sc-pod-p1 { transform: scale(1.04); }   /* leader sits slightly taller */
.t30sc-pod-img { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: #11161c; display: flex; align-items: center; justify-content: center; }
.t30sc-pod-noimg { color: var(--muted); font-size: 12px; }
/* When there's no photo, don't reserve a huge 16:10 box — especially on mobile.
   The .t30sc-card-noimg-box class (added in markup) is the reliable fallback;
   :has() refines it on modern browsers. */
.t30sc-pod-img.t30sc-pod-img-empty { aspect-ratio: auto !important; min-height: 64px; }
.t30sc-pod-img:has(.t30sc-pod-noimg) { aspect-ratio: auto; min-height: 64px; }
.t30sc-pod-body { padding: 12px 14px 14px; }
.t30sc-pod-name { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 6px; }
.t30sc-pod-et { font-size: 26px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.t30sc-pod-unit { font-size: 13px; color: var(--muted); margin-left: 2px; }
.t30sc-pod-mph { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== Stats row ===== */
.t30sc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px){ .t30sc-stats { grid-template-columns: repeat(2, 1fr); } }
.t30sc-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.t30sc-stat-v { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
.t30sc-stat-v.t30sc-good { color: var(--ok); }
.t30sc-stat-l { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 5px; }

/* ===== ET progression chart ===== */
.t30sc-chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.t30sc-chart { width: 100%; height: auto; }
.t30sc-axis { stroke: var(--line); stroke-width: 1; }
.t30sc-chart-line { stroke: var(--accent-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.t30sc-chart-dot { fill: #5b6675; }
.t30sc-chart-dot.t30sc-dot-v { fill: var(--ok); }
.t30sc-chart-lbl { fill: var(--muted); font-size: 11px; }
.t30sc-chart-cap { font-size: 11.5px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ===== Movers ticker ===== */
.t30sc-ticker { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; overflow: hidden; }
.t30sc-ticker-label { flex: 0 0 auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: rgba(255,59,48,.12); padding: 4px 9px; border-radius: 6px; }
.t30sc-ticker-track { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.t30sc-ticker-track::-webkit-scrollbar { display: none; }
.t30sc-ticker-item { font-size: 12.5px; color: var(--text); }
.t30sc-tick-new { font-size: 9px; font-weight: 800; background: var(--accent-2); color: #1a2129; padding: 1px 5px; border-radius: 4px; }
.t30sc-tick-up { color: var(--ok); font-weight: 800; }

/* ===== Class records banner ===== */
.t30sc-classrec { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.t30sc-classrec-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 12px; }
.t30sc-classrec-h span { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; font-size: 11px; }
.t30sc-classrec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; }
.t30sc-classrec-card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; text-decoration: none; transition: border-color .12s; }
.t30sc-classrec-card:hover { border-color: var(--accent); }
.t30sc-classrec-eng { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.t30sc-classrec-et { font-size: 19px; font-weight: 800; color: var(--accent-2); }
.t30sc-classrec-car { font-size: 12px; color: var(--text); }

/* ===== Proof icons ===== */
.t30sc-proofs { font-size: 12px; }
.t30sc-proof { margin-left: 1px; }

/* ===== Share buttons ===== */
.t30sc-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.t30sc-share-label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.t30sc-share-btn { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; color: #fff !important; }
.t30sc-share-fb { background: #1877f2; }
.t30sc-share-wa { background: #25d366; }
.t30sc-share-copy { background: var(--surface-2); color: var(--text) !important; border: 1px solid var(--line); }
.t30sc-share-btn:hover { filter: brightness(1.08); }

/* ===== Mobile polish for detail page, header, run history ===== */
@media (max-width: 768px) {
    .t30sc-theme { padding: 16px 14px 20px; border-radius: 12px; }
    .t30sc-listhead { flex-direction: column; align-items: flex-start; gap: 10px; }
    .t30sc-tabs { width: 100%; }
    .t30sc-tab { flex: 1; text-align: center; }
    .t30sc-title { font-size: 1.25rem; }

    /* Detail spec table -> stacked rows */
    .t30sc-detail-specs, .t30sc-detail-specs tbody, .t30sc-detail-specs tr, .t30sc-detail-specs th, .t30sc-detail-specs td { display: block; width: 100%; }
    .t30sc-detail-specs tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
    .t30sc-detail-specs th { border: none !important; background: transparent !important; padding: 2px 0; color: var(--muted) !important; font-size: 11px; text-transform: uppercase; }
    .t30sc-detail-specs td { border: none !important; padding: 2px 0 6px; font-size: 15px; }

    /* Run history table -> stacked */
    .t30sc-runs-table thead { display: none; }
    .t30sc-runs-table, .t30sc-runs-table tbody, .t30sc-runs-table tr, .t30sc-runs-table td { display: block; width: 100%; }
    .t30sc-runs-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 8px 12px; }
    .t30sc-runs-table td { border: none !important; display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
    .t30sc-runs-table td::before { content: attr(data-label); color: var(--muted) !important; font-size: 10.5px; font-weight: 700; text-transform: uppercase; }

    .t30sc-stats { grid-template-columns: repeat(2, 1fr); }
    .t30sc-detail-hero { max-width: 100%; }
    .t30sc-share { gap: 8px; }
    .t30sc-share-btn { flex: 1; text-align: center; }
}

/* "Not track verified" flag for GPS (Dragy) runs */
.t30sc-nottrack {
    display: inline-block; margin-left: 6px;
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    color: #ffb02e !important; background: rgba(255,176,46,.14);
    border: 1px solid rgba(255,176,46,.4); border-radius: 5px; padding: 1px 5px; white-space: nowrap;
}

/* Image lightbox/popup */
.t30sc-lightbox {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}
.t30sc-lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.t30sc-lightbox-inner img { max-width: 92vw; max-height: 82vh; border-radius: 10px; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.t30sc-lightbox-cap { text-align: center; color: #fff; font-size: 13px; margin-top: 10px; font-weight: 600; }
.t30sc-lightbox-close {
    position: absolute; top: -14px; right: -14px; width: 38px; height: 38px;
    border-radius: 50%; border: none; background: #fff; color: #111; font-size: 22px; line-height: 1;
    cursor: pointer; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.t30sc-lightbox-close:hover { background: #f0f0f0; }
@media (max-width: 600px){ .t30sc-lightbox-close { top: -10px; right: -6px; } }

/* Legacy status badge on detail page */
.t30sc-legacy-status { display: inline-block; background: #4a3a14; color: var(--accent-2) !important; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 8px; }

/* ===== Search + filter bar (client-side table filtering) ===== */
.t30sc-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.t30sc-filters .t30sc-filter-text { flex: 1 1 240px; min-width: 180px; }
.t30sc-filter-text,
.t30sc-filter-sel {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13px; font-weight: 600;
    font-family: inherit; line-height: 1.2;
    outline: none;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.t30sc-filter-text::placeholder { color: var(--muted); opacity: 1; }
.t30sc-filter-text:focus,
.t30sc-filter-sel:focus { border-color: var(--accent); }
/* Custom chevron so the native select matches the dark theme */
.t30sc-filter-sel {
    cursor: pointer; 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 fill='%239fb0c0' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
}
.t30sc-filter-sel option { background: var(--surface-2); color: var(--text); }
.t30sc-filter-clear {
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 9px;
    padding: 9px 16px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: border-color .12s, color .12s;
}
.t30sc-filter-clear:hover { border-color: var(--accent); color: #fff; }
.t30sc-filter-count { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Hidden rows (filtered out). !important beats the mobile display:block/flex rules. */
.t30sc-hide { display: none !important; }

/* Empty-state row */
.t30sc-noresults td {
    text-align: center; color: var(--muted) !important;
    font-style: italic; padding: 18px 8px !important;
}

@media (max-width: 768px) {
    .t30sc-filters { gap: 8px; }
    .t30sc-filters .t30sc-filter-text,
    .t30sc-filters .t30sc-filter-sel,
    .t30sc-filters .t30sc-filter-clear { flex: 1 1 100%; width: 100%; }
    .t30sc-filter-count { margin-left: 0; width: 100%; }
    /* The empty-state row is reflowed by the mobile card rules; keep it readable. */
    .t30sc-table tbody tr.t30sc-noresults { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; }
    .t30sc-table tbody tr.t30sc-noresults td { display: block !important; }
    .t30sc-table tbody tr.t30sc-noresults td::before { display: none; }
}
