/* =============================================================================
   TalentVelo - Mobile Overhaul Layer (v6.0)
   -----------------------------------------------------------------------------
   Loaded LAST (right after talentvelo-polish.css) by fragments/layout.html, so it
   wins over page-level <style> blocks that sit later in <head>.
   Scope : phones (< 768px).  The ONE exception is the dashboard card order, which
           also covers tablets (<= 1100px) because that is where the dashboard grid
           collapses to a single column.  Desktop (>= 1101px) is not touched.
   Layers: 1 tokens  2 semantic text sync  3 component text sync  4 inline-style
           neutraliser  5 de-clutter (icons)  6 forms & touch controls  7 dashboard
           card order  8 openings (filters, search, counters, cards)  9 other
           modules (insights, statistics, profile, auth, pager, footer)
   Rule of thumb: every size below comes from ONE token scale (rem), so headers,
   sub-headers, body text and metadata match across Job Seeker, Hiring Team and
   Admin views.  Change a token -> the whole app follows.
   ============================================================================= */

/* ---------- 1. TOKENS (phones) ------------------------------------------------ */
@media (max-width: 767px) {
    :root {
        --tv-m-display: 1.0625rem;   /* 17px   big numbers (KPI, stats)          */
        --tv-m-h1:      0.96875rem;  /* 15.5px page title                        */
        --tv-m-h2:      0.875rem;    /* 14px   card / section title              */
        --tv-m-h3:      0.8125rem;   /* 13px   list-item title                   */
        --tv-m-body:    0.78125rem;  /* 12.5px body text, inputs                 */
        --tv-m-btn:     0.75rem;     /* 12px   buttons                           */
        --tv-m-meta:    0.71875rem;  /* 11.5px metadata, hints, small            */
        --tv-m-micro:   0.6875rem;   /* 11px   chips, badges, labels (floor)     */
        --tv-m-gap:     10px;
        --tv-m-card-pad: 11px 12px;
        --tv-m-radius:  12px;
        --tv-ios-input-fs: 1rem;     /* iOS zooms into inputs < 16px; see layer 6 */
        /* legacy tokens (v4.0 / v5.0) re-pointed to the same scale */
        --tv-fs-display: var(--tv-m-display) !important;
        --tv-fs-h1:      var(--tv-m-h1) !important;
        --tv-fs-h2:      var(--tv-m-h2) !important;
        --tv-fs-h3:      var(--tv-m-h3) !important;
        --tv-fs-body:    var(--tv-m-body) !important;
        --tv-fs-table:   var(--tv-m-btn) !important;
        --tv-fs-label:   var(--tv-m-micro) !important;
        --tv-fs-badge:   var(--tv-m-micro) !important;
        --tv-mob-meta:   var(--tv-m-meta) !important;
        --tv-mob-micro:  var(--tv-m-micro) !important;
    }
}

/* ---------- 2. SEMANTIC TEXT SYNC (every module, every role) ------------------ */
@media (max-width: 767px) {
    html:root body {
        font-size: var(--tv-m-body) !important;
        line-height: 1.42 !important;
    }

    main.tv-main h1,
    .tv-auth h1,
    .tv-error-card h1,
    .tv-footer h1 {
        font-size: var(--tv-m-h1) !important; font-weight: 800 !important; line-height: 1.25 !important;
    }

    main.tv-main h2,
    .tv-auth h2,
    .tv-error-card h2,
    .tv-footer h2 {
        font-size: var(--tv-m-h2) !important; font-weight: 700 !important; line-height: 1.28 !important;
    }

    main.tv-main h3,
    main.tv-main h4,
    main.tv-main h5,
    main.tv-main h6,
    .tv-auth h3,
    .tv-auth h4,
    .tv-auth h5,
    .tv-auth h6,
    .tv-error-card h3,
    .tv-error-card h4,
    .tv-error-card h5,
    .tv-error-card h6,
    .tv-footer h3,
    .tv-footer h4,
    .tv-footer h5,
    .tv-footer h6 {
        font-size: var(--tv-m-h3) !important; font-weight: 700 !important; line-height: 1.28 !important;
    }

    main.tv-main p,
    main.tv-main li,
    main.tv-main dd,
    main.tv-main dt,
    main.tv-main td,
    main.tv-main summary,
    main.tv-main label,
    .tv-auth p,
    .tv-auth li,
    .tv-auth dd,
    .tv-auth dt,
    .tv-auth td,
    .tv-auth summary,
    .tv-auth label,
    .tv-error-card p,
    .tv-error-card li,
    .tv-error-card dd,
    .tv-error-card dt,
    .tv-error-card td,
    .tv-error-card summary,
    .tv-error-card label,
    .tv-footer p,
    .tv-footer li,
    .tv-footer dd,
    .tv-footer dt,
    .tv-footer td,
    .tv-footer summary,
    .tv-footer label {
        font-size: var(--tv-m-body) !important; line-height: 1.42 !important;
    }

    main.tv-main th,
    .tv-auth th,
    .tv-error-card th,
    .tv-footer th {
        font-size: var(--tv-m-micro) !important; font-weight: 700 !important; letter-spacing: 0.03em !important;
    }

    main.tv-main small,
    main.tv-main figcaption,
    .tv-auth small,
    .tv-auth figcaption,
    .tv-error-card small,
    .tv-error-card figcaption,
    .tv-footer small,
    .tv-footer figcaption {
        font-size: var(--tv-m-meta) !important; line-height: 1.35 !important;
    }
}

/* ---------- 3. COMPONENT TEXT SYNC (same size + weight in all three views) ---- */
@media (max-width: 767px) {
html:root body .tv-page-title,
html:root body .tv-pf-id h1,
html:root body .tv-cp-id h1,
html:root body .tv-auth-form h2,
html:root body .tv-welcome h1,
html:root body .tv-hero-copy h1,
html:root body .tv-error-card h2 {
    font-size: var(--tv-m-h1) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
}
html:root body .tv-card-title,
html:root body .tv-pf-title h2,
html:root body .tv-cp-title h2,
html:root body .tv-ks-heading,
html:root body .tv-rs-title,
html:root body .tv-admin-panel > summary,
html:root body .tv-card-head h2,
html:root body .tv-card-head h3,
html:root body .tv-cf-section > h3,
html:root body .tv-card.tv-pc h2,
html:root body #user-mgmt .tv-card-head h2 {
    font-size: var(--tv-m-h2) !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
}
html:root body .tv-op-title h3,
html:root body .tv-job-main h4,
html:root body .tv-candidate-info h3,
html:root body .tv-ap-name h3,
html:root body .tv-empty-card h4,
html:root body .tv-timeline b,
html:root body .tv-rec-mini strong,
html:root body .tv-resume-file b,
html:root body .tv-kv-body strong,
html:root body .tv-cp-job h4 {
    font-size: var(--tv-m-h3) !important;
    font-weight: 700 !important;
    line-height: 1.28 !important;
}
html:root body .tv-lead,
html:root body .tv-op-desc,
html:root body .tv-job-desc,
html:root body .tv-op-more p,
html:root body .tv-op-company,
html:root body .tv-pc-role,
html:root body .tv-pf-role,
html:root body .tv-check,
html:root body .tv-fopt,
html:root body .tv-exp strong,
html:root body .tv-card.tv-pc .tv-exp strong,
html:root body .tv-rs-name,
html:root body .tv-pc-row > .tv-pc-val,
html:root body .tv-card.tv-pc .tv-pc-role,
html:root body .tv-card.tv-pc .tv-pc-row > .tv-pc-val,
html:root body .tv-card.tv-pc .tv-pc-row > span:last-child,
html:root body .tv-card.tv-pc .tv-pc-ellipsis {
    font-size: var(--tv-m-body) !important;
    line-height: 1.4 !important;
}
html:root body .tv-hint,
html:root body .tv-field small,
html:root body .tv-job-meta,
html:root body .tv-op-meta,
html:root body .tv-op-count,
html:root body .tv-kv-body small,
html:root body .tv-resume-file small,
html:root body .tv-rs-date,
html:root body .tv-pager-info,
html:root body .tv-pc-foot,
html:root body .tv-footer-copy,
html:root body .tv-auth-copy,
html:root body .tv-auth-foot,
html:root body .tv-count,
html:root body .tv-ks-note,
html:root body .tv-rs-hint,
html:root body .tv-co-drawer-meta,
html:root body .tv-co-preview,
html:root body .tv-op-sort,
html:root body .tv-applicants,
html:root body .tv-rec-mini span,
html:root body .tv-ks-chip small,
html:root body .tv-JobViewAll,
html:root body .tv-back,
html:root body .tv-rs-suggest-lead,
html:root body .tv-pc-row > .tv-pc-lbl,
html:root body .tv-card.tv-pc .tv-pc-row > .tv-pc-lbl,
html:root body .tv-card.tv-pc .tv-pc-row > span:first-child,
html:root body .tv-card.tv-pc .tv-pc-foot {
    font-size: var(--tv-m-meta) !important;
    line-height: 1.35 !important;
}
html:root body .tv-chip,
html:root body .tv-chip-ok,
html:root body .tv-chip-warn,
html:root body .tv-badge,
html:root body .tv-badge-new,
html:root body .tv-badge-match,
html:root body .tv-pill,
html:root body .tv-pill-ok,
html:root body .tv-pill-warn,
html:root body .tv-pill-bad,
html:root body .tv-pill-muted,
html:root body .tv-pill-info,
html:root body .tv-pill-cat,
html:root body .tv-pill-otw,
html:root body .tv-posted,
html:root body .tv-op-skill,
html:root body .tv-ap-skill,
html:root body .tv-skill-tag,
html:root body .tv-score,
html:root body .tv-notice-fire,
html:root body .tv-status-emerald,
html:root body .tv-chips-active a,
html:root body .tv-recent,
html:root body .tv-saved > a,
html:root body .tv-saved > form > button,
html:root body .tv-verified-skill,
html:root body .tv-ks-count,
html:root body .tv-card.tv-pc .tv-pc-open .tv-pill-info,
html:root body .tv-card.tv-pc .tv-pc-open .tv-pill-otw,
html:root body .tv-card.tv-pc .tv-pc-open .tv-notice-fire,
html:root body .tv-card.tv-pc .tv-pc-open .tv-pill-muted {
    font-size: var(--tv-m-micro) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 2px 7px !important;
}
html:root body .tv-ks-chip b {
    font-size: var(--tv-m-meta) !important;
    font-weight: 600 !important;
}
html:root body .tv-ks-chip {
    padding: 2.5px 8px !important;
}
html:root body .tv-field > label,
html:root body .tv-stat h4,
html:root body .tv-kpi span,
html:root body .tv-wv-stat span,
html:root body .tv-ins-tile span,
html:root body .tv-st-tile span,
html:root body .tv-ur-tile span,
html:root body .tv-exp span,
html:root body .tv-card.tv-pc .tv-exp span,
html:root body .tv-saved-row > b,
html:root body .tv-connect-label {
    font-size: var(--tv-m-micro) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.3 !important;
}
html:root body .tv-stat p,
html:root body .tv-stat .tv-stat-val,
html:root body .tv-kpi strong,
html:root body .tv-wv-stat strong,
html:root body .tv-ins-tile strong,
html:root body .tv-st-tile strong,
html:root body .tv-ur-tile strong {
    font-size: var(--tv-m-display) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}
html:root body .tv-btn,
html:root body .tv-rs-btn,
html:root body .tv-wa-btn {
    min-height: 32px !important;
    padding: 5px 11px !important;
    font-size: var(--tv-m-btn) !important;
    border-radius: 8px !important;
    line-height: 1.2 !important;
}
html:root body .tv-btn-sm {
    min-height: 28px !important;
    height: auto !important;
    padding: 3px 9px !important;
    font-size: var(--tv-m-meta) !important;
    border-radius: 7px !important;
}
html:root body .tv-table th {
    padding: 7px 9px !important;
}
html:root body .tv-table td {
    padding: 7px 9px !important;
    font-size: var(--tv-m-btn) !important;
}
html:root body .tv-alert {
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    font-size: var(--tv-m-btn) !important;
    border-radius: 8px !important;
}
html:root body .tv-card {
    padding: var(--tv-m-card-pad) !important;
    border-radius: var(--tv-m-radius) !important;
}
html:root body .tv-card-head {
    margin-bottom: 6px !important;
    gap: 6px !important;
    align-items: center !important;
}
html:root body .tv-card-head > :first-child {
    min-width: 0;
}
html:root body .tv-kv {
    padding: 7px 0 !important;
    gap: 8px !important;
}
html:root body .tv-timeline li {
    padding-bottom: 9px !important;
}
html:root body .tv-timeline span {
    font-size: var(--tv-m-meta) !important;
}
}

/* ---------- 4. INLINE-STYLE NEUTRALISER ---------------------------------------
   Many templates carry style="font-size:13px" etc.  Inline styles beat normal CSS, so
   they are mapped back to the token scale with attribute selectors (!important). */
@media (max-width: 767px) {
html:root body [style*="font-size:22px"],
html:root body [style*="font-size: 22px"],
html:root body [style*="font-size:24px"],
html:root body [style*="font-size: 24px"],
html:root body [style*="font-size:26px"],
html:root body [style*="font-size: 26px"],
html:root body [style*="font-size:28px"],
html:root body [style*="font-size: 28px"],
html:root body [style*="font-size:30px"],
html:root body [style*="font-size: 30px"],
html:root body [style*="font-size:32px"],
html:root body [style*="font-size: 32px"],
html:root body [style*="font-size:34px"],
html:root body [style*="font-size: 34px"],
html:root body [style*="font-size:36px"],
html:root body [style*="font-size: 36px"],
html:root body [style*="font-size:38px"],
html:root body [style*="font-size: 38px"],
html:root body [style*="font-size:40px"],
html:root body [style*="font-size: 40px"] {
    font-size: var(--tv-m-display) !important;
}
html:root body [style*="font-size:18px"],
html:root body [style*="font-size: 18px"],
html:root body [style*="font-size:18.5px"],
html:root body [style*="font-size: 18.5px"],
html:root body [style*="font-size:19px"],
html:root body [style*="font-size: 19px"],
html:root body [style*="font-size:20px"],
html:root body [style*="font-size: 20px"],
html:root body [style*="font-size:21px"],
html:root body [style*="font-size: 21px"] {
    font-size: var(--tv-m-h1) !important;
}
html:root body [style*="font-size:15px"],
html:root body [style*="font-size: 15px"],
html:root body [style*="font-size:15.5px"],
html:root body [style*="font-size: 15.5px"],
html:root body [style*="font-size:16px"],
html:root body [style*="font-size: 16px"],
html:root body [style*="font-size:17px"],
html:root body [style*="font-size: 17px"] {
    font-size: var(--tv-m-h2) !important;
}
html:root body [style*="font-size:13px"],
html:root body [style*="font-size: 13px"],
html:root body [style*="font-size:13.5px"],
html:root body [style*="font-size: 13.5px"],
html:root body [style*="font-size:14px"],
html:root body [style*="font-size: 14px"],
html:root body [style*="font-size:14.5px"],
html:root body [style*="font-size: 14.5px"] {
    font-size: var(--tv-m-h3) !important;
}
html:root body [style*="font-size:12px"],
html:root body [style*="font-size: 12px"],
html:root body [style*="font-size:12.5px"],
html:root body [style*="font-size: 12.5px"] {
    font-size: var(--tv-m-body) !important;
}
html:root body [style*="font-size:11px"],
html:root body [style*="font-size: 11px"],
html:root body [style*="font-size:11.5px"],
html:root body [style*="font-size: 11.5px"] {
    font-size: var(--tv-m-meta) !important;
}
html:root body [style*="font-size:8px"],
html:root body [style*="font-size: 8px"],
html:root body [style*="font-size:8.5px"],
html:root body [style*="font-size: 8.5px"],
html:root body [style*="font-size:9px"],
html:root body [style*="font-size: 9px"],
html:root body [style*="font-size:9.5px"],
html:root body [style*="font-size: 9.5px"],
html:root body [style*="font-size:10px"],
html:root body [style*="font-size: 10px"],
html:root body [style*="font-size:10.5px"],
html:root body [style*="font-size: 10.5px"] {
    font-size: var(--tv-m-micro) !important;
}
}

/* ---------- 5. DE-CLUTTER (decorative icons next to labels) --------------------
   .tv-h-ico = the emoji span in front of 'Key Skills', 'Resume', 'Current Openings'...
   Hidden on phones so every heading starts flush-left on the same text baseline. */
@media (max-width: 767px) {
html:root body .tv-h-ico,
html:root body .tv-stat-icon,
html:root body .tv-kpis .tv-kpi > i,
html:root body .tv-kv-icon,
html:root body .tv-hero-badges,
html:root body .tv-feat li > i {
    display: none !important;
}
html:root body .tv-card-title,
html:root body .tv-pf-title h2,
html:root body .tv-cp-title h2,
html:root body .tv-ks-heading,
html:root body .tv-rs-title {
    gap: 6px !important;
    align-items: baseline !important;
}
html:root body .tv-empty-card .ico {
    font-size: 22px !important;
}
html:root body .tv-empty-card {
    padding: 16px 12px !important;
    gap: 4px !important;
}
html:root body .tv-error-code {
    font-size: 34px !important;
}
}

/* ---------- 6. FORMS & TOUCH CONTROLS ---------------------------------------- */
@media (max-width: 767px) {
html:root body .tv-field {
    margin-bottom: 10px !important;
    gap: 4px !important;
}
html:root body .tv-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
html:root body .tv-field select,
html:root body .tv-fselect,
html:root body .tv-op-sort select,
html:root body .tv-pager-size select,
html:root body .tv-inline-form select {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: var(--tv-m-body) !important;
    border-radius: 8px !important;
}
html:root body .tv-field textarea {
    min-height: 64px !important;
    padding: 6px 10px !important;
    font-size: var(--tv-m-body) !important;
    border-radius: 8px !important;
}
html:root body .tv-form-grid,
html:root body .tv-cf-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}
html:root body .tv-form-actions {
    gap: 8px !important;
}
html:root body .tv-check input,
html:root body .tv-fopt input {
    width: 15px !important;
    height: 15px !important;
}
html:root body .tv-pw input {
    padding-right: 40px !important;
}
}

/* iOS Safari zooms the whole page when an input smaller than 16px gets focus - that
   zoom is what makes search boxes look "clipped" on iPhones.  Inputs keep their
   compact HEIGHT, only the text is 16px on iOS.  To disable, set --tv-ios-input-fs
   to var(--tv-m-body) (you will get the zoom back). */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
html:root body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
html:root body select,
html:root body textarea {
        font-size: var(--tv-ios-input-fs, 1rem) !important;
    }
    }
}

/* ---------- 7. DASHBOARD CARD ORDER (dashboard.html, job-seeker view) ----------
   Needs ONE class on the grid: tv-dash-js (added to dashboard.html, job seekers only).
   <= 1100px the two columns collapse into one stack.  The column wrappers become
   display:contents so their cards join ONE ordering context:
       1 Resume   2 Key Skills   3 Profile summary   4 KPIs   5 Activity & ATS   6 Jobs
   Desktop (>= 1101px) keeps its two columns: profile left, Resume then Key Skills on
   top of the right column (rules from v4.7 / v5.0 are untouched).
   Want the profile card back on top for phones?  Put  --tv-dash-profile-order: 0;
   on :root (or change the 3 below).                                                  */
@media (max-width: 1100px) {
html:root body .tv-dash-grid.tv-dash-js {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--tv-m-gap, 12px) !important;
    align-items: stretch !important;
}
html:root body .tv-dash-grid.tv-dash-js > .tv-dash-summary-col,
html:root body .tv-dash-grid.tv-dash-js > .tv-dash-main-col {
    display: contents !important;
}
html:root body .tv-dash-js .tv-dash-main-col > #dashResume     { order: 1 !important; }
html:root body .tv-dash-js .tv-dash-main-col > #dashSkillsCard { order: 2 !important; }
html:root body .tv-dash-js .tv-dash-summary-col > .tv-pc       { order: var(--tv-dash-profile-order, 0) !important; }
html:root body .tv-dash-js .tv-dash-main-col > .tv-kpis        { order: 4 !important; }
html:root body .tv-dash-js .tv-dash-main-col > #who-viewed     { order: 5 !important; }
html:root body .tv-dash-js .tv-dash-main-col > .tv-duo         { order: 6 !important; }
html:root body .tv-dash-js .tv-dash-main-col > *,
html:root body .tv-dash-js .tv-dash-summary-col > * {
    min-width: 0 !important;
    max-width: 100% !important;
}
}

/* ---------- 8. OPENINGS (openings.html) ----------------------------------------
   Header  -> 2-line intro
   Filters -> one slim 36px bar with a chevron and an "active filters" counter,
              groups collapsed unless they hold an active filter (script in openings.html)
   Search  -> full width, 34px, on its own row
   Count + Sort share ONE row; Save search + Create alert share the next row           */
@media (max-width: 767px) {
html:root body .tv-op-page-head {
    margin: 0 0 2px !important;
}
html:root body .tv-op-page-head .tv-lead {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 !important;
}
html:root body .tv-op-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
}
html:root body .tv-op-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
}
html:root body details.tv-op-filters {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
html:root body details.tv-op-filters > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: var(--tv-m-body) !important;
    font-weight: 700 !important;
}
html:root body details.tv-op-filters > summary::after {
    content: "\25BE";
    margin-left: auto;
    font-size: 12px;
    color: var(--tv-muted);
    transition: transform 0.2s;
}
html:root body details.tv-op-filters[open] > summary::after {
    transform: rotate(180deg);
}
html:root body .tv-op-fcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: var(--tv-m-micro);
    font-weight: 800;
    color: #fff;
    background: var(--tv-primary);
    border-radius: 999px;
}
html:root body .tv-op-fbody {
    padding: 0 12px 10px !important;
    max-height: 62vh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
html:root body .tv-op-fbody > .tv-row {
    margin: 0 0 2px !important;
    gap: 6px !important;
}
html:root body .tv-op-fbody > .tv-row a {
    font-size: var(--tv-m-meta) !important;
}
html:root body .tv-fgroup {
    padding: 6px 0 !important;
}
html:root body .tv-fgroup > summary {
    font-size: var(--tv-m-body) !important;
    font-weight: 700 !important;
}
html:root body .tv-fgroup[open] > summary {
    margin-bottom: 4px !important;
}
html:root body .tv-fgroup > .tv-fopt {
    display: inline-flex !important;
    width: calc(50% - 6px) !important;
    vertical-align: top;
    padding: 2px 0 !important;
    gap: 6px !important;
}
html:root body .tv-fskills {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 10px !important;
    max-height: 150px !important;
}
html:root body .tv-range-out {
    font-size: var(--tv-m-meta) !important;
}
html:root body .tv-op-fbtns {
    position: sticky;
    bottom: 0;
    z-index: 1;
    gap: 8px !important;
    margin-top: 6px;
    padding: 8px 0 2px !important;
    background: var(--tv-surface);
}
html:root body .tv-op-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
}
html:root body .tv-op-bar-left,
html:root body .tv-op-bar-right {
    display: contents !important;
}
html:root body input.tv-op-search {
    grid-column: 1 / -1;
    order: 1;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: var(--tv-m-body) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}
html:root body .tv-op-count {
    grid-column: 1;
    order: 2;
    min-width: 0;
    margin: 0 !important;
    line-height: 1.25 !important;
    color: var(--tv-muted) !important;
    font-weight: 700 !important;
}
html:root body .tv-op-sort {
    grid-column: 2;
    order: 3;
    justify-self: stretch;
    display: flex !important;
    align-items: center;
    gap: 4px !important;
    margin: 0 !important;
    min-width: 0;
    white-space: nowrap;
}
html:root body .tv-op-sort select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 28px !important;
    height: 28px !important;
    padding: 2px 6px !important;
}
html:root body .tv-op-bar-right > form {
    grid-column: 1;
    order: 4;
    margin: 0 !important;
    min-width: 0;
}
html:root body .tv-op-bar-right > a {
    grid-column: 2;
    order: 5;
    min-width: 0;
}
html:root body .tv-op-bar-right .tv-btn-sm {
    width: 100% !important;
    justify-content: center;
    min-height: 30px !important;
    padding: 3px 8px !important;
    white-space: nowrap;
}
html:root body .tv-chips-active,
html:root body .tv-saved-row {
    gap: 6px !important;
    margin-bottom: 8px !important;
}
html:root body .tv-op-list {
    gap: 8px !important;
}
html:root body .tv-opening {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    padding: 10px 12px !important;
    gap: 3px 10px !important;
    border-radius: 11px !important;
}
html:root body .tv-op-logo {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
    padding: 3px !important;
}
html:root body .tv-op-desc {
    -webkit-line-clamp: 1 !important;
}
html:root body .tv-op-more > summary {
    font-size: var(--tv-m-meta) !important;
    margin: 2px 0 !important;
}
html:root body .tv-op-foot {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    justify-content: stretch !important;
}
html:root body .tv-op-foot > a,
html:root body .tv-op-foot > form,
html:root body .tv-op-foot .tv-btn {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}
html:root body .tv-op-foot > .tv-applicants,
html:root body .tv-op-foot > .tv-applied,
html:root body .tv-op-foot > form:last-child {
    grid-column: 1 / -1;
}
html:root body .tv-op-foot > .tv-applied {
    text-align: center;
    justify-content: center;
    padding: 5px 10px !important;
}
html:root body .tv-rec-strip {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}
html:root body .tv-rec-mini {
    padding: 8px 10px !important;
}
}

/* ---------- 9. OTHER MODULES -------------------------------------------------- */
@media (max-width: 767px) {
html:root body .tv-ins-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
html:root body .tv-ins-tile,
html:root body .tv-st-tile,
html:root body .tv-ur-tile {
    padding: 8px 10px !important;
    border-radius: 10px !important;
}
html:root body .tv-pipe-row {
    grid-template-columns: 78px minmax(0, 1fr) 54px !important;
    gap: 8px !important;
    font-size: var(--tv-m-meta) !important;
}
html:root body .tv-chart {
    height: 130px !important;
    gap: 3px !important;
}
html:root body .tv-chart-n,
html:root body .tv-chart-day,
html:root body .tv-chart-day b {
    font-size: var(--tv-m-micro) !important;
}
html:root body .tv-st-row {
    grid-template-columns: 92px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    font-size: var(--tv-m-meta) !important;
    padding: 5px 0 !important;
}
html:root body .tv-st-chart {
    height: 110px !important;
}
html:root body .tv-st-axis {
    font-size: var(--tv-m-micro) !important;
}
html:root body .tv-pf-head {
    padding: 12px !important;
    gap: 10px 14px !important;
}
html:root body .tv-pf-head .tv-pf-avatar {
    width: 64px !important;
    height: 64px !important;
    font-size: 22px !important;
    border-width: 3px !important;
}
html:root body .tv-pf-title {
    margin-bottom: 8px !important;
}
html:root body .tv-social-btn {
    width: 32px !important;
    height: 32px !important;
}
html:root body .tv-exp > div {
    padding: 8px 4px !important;
}
html:root body .tv-resume-file {
    padding: 8px !important;
    gap: 8px !important;
}
html:root body .tv-pager {
    font-size: var(--tv-m-meta) !important;
    gap: 6px 10px !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
}
html:root body .tv-pg {
    min-width: 30px !important;
    padding: 5px 8px !important;
    font-size: var(--tv-m-meta) !important;
    border-radius: 7px !important;
}
html:root body .tv-header .tv-wordmark {
    font-size: var(--tv-m-display) !important;
}
html:root body .tv-header .tv-brand img {
    width: 28px !important;
    height: 28px !important;
}
html:root body .tv-header .tv-menu .tv-link {
    font-size: var(--tv-m-body) !important;
    padding: 9px 12px !important;
}
html:root body .tv-ticker-track {
    font-size: var(--tv-m-meta) !important;
}
html:root body .tv-footer-inner {
    padding: 12px 14px !important;
    gap: 8px !important;
}
html:root body .tv-auth-body {
    padding: 8px !important;
}
html:root body .tv-auth-form {
    padding: 16px 14px 18px !important;
}
html:root body .tv-auth-hero {
    padding: 14px 16px !important;
}
html:root body .tv-portal-tabs a {
    font-size: var(--tv-m-meta) !important;
    padding: 7px 4px !important;
}
html:root body .tv-auth-links {
    font-size: var(--tv-m-meta) !important;
}
html:root body main.tv-main > * {
    min-width: 0;
}
html:root body .tv-card {
    overflow-wrap: anywhere;
}
}

/* ---------- HEADER TICKER REMOVED (all screen sizes) ---------------------------
   The moving "Update your profile for more openings" pill did not fit the desktop
   header. Hidden everywhere (the element is also deleted from fragments/layout.html). */
html:root body .tv-ticker,
html:root body .tv-ticker-track {
    display: none !important;
    animation: none !important;
}

/* ===== v6.1  HEADER MARQUEE REMOVED + RESUME CARD ICON ACTIONS (all screen sizes) ===== */
html:root body .tv-header .tv-header-marquee,
html:root body .tv-header-marquee,
html:root body .tv-hm-track {
    display: none !important;
    animation: none !important;
}
html:root body #dashResume .tv-rs-file-row .tv-resume-icon,
html:root body .tv-rs-file-row .tv-resume-icon {
    display: none !important;
}
html:root body #dashResume .tv-rs-file {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}
html:root body #dashResume .tv-rs-info {
    flex: 1 1 auto;
    min-width: 0;
}
html:root body #dashResume .tv-rs-file-row {
    display: block !important;
}
html:root body #dashResume .tv-rs-file-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
html:root body #dashResume .tv-rs-name,
html:root body #dashResume .tv-rs-date {
    display: block;
    overflow-wrap: anywhere;
}
html:root body #dashResume .tv-rs-acts {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
}
html:root body #dashResume .tv-rs-acts form {
    display: inline-flex;
    margin: 0;
}
html:root body .tv-rs-ico-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tv-muted);
    background: var(--tv-surface);
    border: 1px solid var(--tv-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
html:root body .tv-rs-ico-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
html:root body .tv-rs-ico-btn:hover,
html:root body .tv-rs-ico-btn:focus-visible {
    color: var(--tv-accent-text);
    border-color: var(--tv-primary);
    background: rgba(59, 130, 246, 0.10);
    transform: none;
}
html:root body .tv-rs-ico-btn.tv-rs-ico-danger:hover,
html:root body .tv-rs-ico-btn.tv-rs-ico-danger:focus-visible {
    color: #DC2626;
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.10);
}
@media (max-width: 767px) {
    html:root body .tv-rs-ico-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 7px;
    }
    html:root body .tv-rs-ico-btn svg {
        width: 15px;
        height: 15px;
    }
    html:root body #dashResume .tv-rs-acts {
        gap: 5px !important;
    }
}

/* === TV-OPENING-FOOT-SHIFT-START === */
/* Shift .tv-op-foot (Applicants count, Refer a Friend, Save, Apply) up into
   the right-hand column (.tv-opening col 3) and remove the empty bottom row */
@media (min-width: 768px) {
    html:root body .tv-opening {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        grid-template-rows: auto 1fr !important;
        gap: 4px 16px !important;
        padding: 12px 16px !important;
        align-items: start !important;
    }

    html:root body .tv-op-logo {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
    }

    html:root body .tv-op-main {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        min-width: 0 !important;
    }

    html:root body .tv-op-side {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        align-self: start !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 6px !important;
    }

    html:root body .tv-op-foot {
        grid-column: 3 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: end !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-top: 6px !important;
        padding-top: 0 !important;
        border-top: 0 !important;
    }
}
/* === TV-OPENING-FOOT-SHIFT-END === */

/* === TV-HT-MOBILE-ORDER-START === */
/* Hiring Team Dashboard (.tv-dash-ht) Mobile & Tablet Card Ordering (<= 1100px):
   1. KPIs (.tv-kpis)
   2. Recruitment Pipeline Summary (#htPipelineSummary)
   3. Recent Applicants & Upcoming Interviews (.tv-duo first)
   4. Candidate Spotlight & Latest Openings (.tv-duo.tv-dash-fill-duo)
   5. Hiring Velocity Shortcuts (#dashProfileBooster)
   6. Pipeline Velocity & SLA (#dashHtVelocity)
   7. Profile Summary Card (.tv-pc) */
@media (max-width: 1100px) {
    html:root body .tv-dash-grid.tv-dash-ht {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--tv-m-gap, 12px) !important;
        align-items: stretch !important;
    }
    html:root body .tv-dash-grid.tv-dash-ht > .tv-dash-summary-col,
    html:root body .tv-dash-grid.tv-dash-ht > .tv-dash-main-col {
        display: contents !important;
    }
    html:root body .tv-dash-ht .tv-dash-main-col > .tv-kpis                        { order: 1 !important; }
    html:root body .tv-dash-ht .tv-dash-main-col > #htPipelineSummary              { order: 2 !important; }
    html:root body .tv-dash-ht .tv-dash-main-col > .tv-duo:not(.tv-dash-fill-duo)  { order: 3 !important; }
    html:root body .tv-dash-ht .tv-dash-main-col > .tv-duo.tv-dash-fill-duo        { order: 4 !important; }
    html:root body .tv-dash-ht .tv-dash-summary-col > #dashProfileBooster          { order: 5 !important; }
    html:root body .tv-dash-ht .tv-dash-summary-col > #dashHtVelocity              { order: 6 !important; }
    html:root body .tv-dash-ht .tv-dash-summary-col > .tv-pc                       { order: 7 !important; }
    html:root body .tv-dash-ht .tv-dash-main-col > *,
    html:root body .tv-dash-ht .tv-dash-summary-col > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}
/* === TV-HT-MOBILE-ORDER-END === */

/* === TV-2026-DS-MOBILE-SYNC === */
@media (max-width: 767px) {
    :root {
        --tv-m-radius: 14px;
        --tv-m-card-pad: 14px;
        --tv-m-gap: 12px;
    }
    html:root body .tv-card {
        border-radius: 14px !important;
        border: 1px solid var(--tv-border, #E2E8F0) !important;
        padding: 14px !important;
    }
    html:root body .tv-subnav-bar {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    html:root body .tv-subnav-bar::-webkit-scrollbar {
        display: none !important;
    }
    html:root body .tv-subnav-bar .tv-subnav-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 12px !important;
    }
    html:root body .tv-subnav-bar .tv-subnav-pill {
        flex: 0 1 auto !important;
        white-space: nowrap !important;
    }
}
/* === END TV-2026-DS-MOBILE-SYNC === */

/* === TV-ADMIN-MOBILE-PROFILE-FLUSH-FIX === */
@media (max-width: 767px) {
    html:root body main.tv-main #tvAdminConsoleTopRow.tv-admin-top-split {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    html:root body main.tv-main #tvAdminConsoleTopRow.tv-admin-top-split > #tvAdminProfileCard.tv-card.tv-pc.tv-admin-pc-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
    }
    html:root body main.tv-main #tvAdminProfileCard.tv-admin-pc-card > div,
    html:root body main.tv-main #tvAdminProfileCard.tv-admin-pc-card .tv-admin-pc-top,
    html:root body main.tv-main #tvAdminProfileCard.tv-admin-pc-card .tv-pc-rows,
    html:root body main.tv-main #tvAdminProfileCard.tv-admin-pc-card .tv-pc-row,
    html:root body main.tv-main #tvAdminProfileCard.tv-admin-pc-card .tv-admin-pc-actions {
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}
/* === END TV-ADMIN-MOBILE-PROFILE-FLUSH-FIX === */