/*
##==============================================================================================================================================================================##
## BOXARR — Fetcharr step-work lightbox (LOOK test: step 1 only)                                                                                                                ##
##  · Description:             Strip ico highlight + sheet docked under Fetcharr play bar, full tab width.                                                                      ##
##  · Location:                /styles/pages/                                                                                                                                   ##
##  · Last updated:            2026-09-30                                                                                                                                        ##
##==============================================================================================================================================================================##
##  · 2026-09-30:    pipe-bar-2: Full-bleed step fill (donor Daily); elapsed/ETA chips; per-service work line.
##  · 2026-09-30:    pipe-bar-1: Live step + grabber fill tracks; lightbox fill follows snapshot pct.
##  · 2026-09-29:    light-cred-2: Lidarr/Soularr lightbox trim = title; hide empty Downloaders/Grabbers secs.
##  · 2026-09-29:    step-light-x-top-1: Close X pinned top-right of title frame, Prefer Copy topbar gear size (34×34).
*/

#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head > .fetch-strip-stage,
#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head > .fetch-strip-hit
{
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    flex: 0 0 28px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    background: color-mix(in srgb, var(--dropFill, #1a1510) 88%, #000);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent),
        0 0 10px color-mix(in srgb, var(--gold) 22%, transparent);
    box-sizing: border-box;
    overflow: visible;
}

#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head > .fetch-strip-hit > .fetch-strip-stage
{
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex: 0 0 22px !important;
    border: none;
    background: transparent;
    box-shadow: none;
}

#tab-fetcharr .fetch-strip-hit
{
    cursor: pointer;
    color: var(--gold);
}

#tab-fetcharr .fetch-strip-hit:hover,
#tab-fetcharr .fetch-strip-hit:focus-visible,
#tab-fetcharr .fetch-strip-hit[aria-expanded="true"]
{
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 0 14px color-mix(in srgb, var(--gold) 40%, transparent);
}

#tab-fetcharr .fetch-step[data-current="1"] > .fetch-step-head .fetch-strip-stage,
#tab-fetcharr .fetch-step.is-run > .fetch-step-head .fetch-strip-stage,
#tab-fetcharr .fetch-strip-stage.is-strip-play
{
    outline: 1px solid var(--gold);
    box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 45%, transparent);
}

#fetcharr-step-light[hidden]
{
    display: none !important;
}

#fetcharr-step-light
{
    position: fixed;
    z-index: 25;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    isolation: isolate;
    overflow: hidden;
    background: #1a1510;
    border-top: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    color: var(--gold);
    pointer-events: auto;
}

#fetcharr-step-light .fetch-step-light-head
{
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 3.4rem 0.75rem 1.1rem;
    background: #1a1510;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    flex: 0 0 auto;
}

#fetcharr-step-light .fetch-step-light-close
{
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    margin: 0;
    appearance: none;
    border: 1px solid var(--gold);
    background: var(--dropFill);
    color: var(--gold);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    flex: 0 0 34px;
    box-sizing: border-box;
}

#fetcharr-step-light .fetch-step-light-close:hover
{
    background: var(--themePrimary);
    color: #d7ccc8;
}

#fetcharr-step-light .fetch-step-light-x
{
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    color: inherit;
}

#fetcharr-step-light .fetch-step-light-badge,
#fetcharr-step-light .fetch-head-badge
{
    width: 144px !important;
    height: 144px !important;
    min-width: 144px !important;
    min-height: 144px !important;
    flex: 0 0 144px !important;
}

#fetcharr-step-light .fetch-step-light-brand
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

#fetcharr-step-light .fetch-step-light-brand h2
{
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--gold);
    text-transform: uppercase;
}

#fetcharr-step-light .fetch-step-light-acts,
#fetcharr-step-light .fetch-step-light-step-acts
{
    margin-left: 0;
    flex: 0 0 auto;
}

#fetcharr-step-light .fetch-step-light-acts .fetch-acts,
#fetcharr-step-light .fetch-step-light-step-acts .fetch-acts
{
    margin-left: 0 !important;
    justify-content: flex-start;
}

#fetcharr-step-light .fetch-step-light-acts .fetch-act
{
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    flex: 0 0 56px !important;
}

#fetcharr-step-light .fetch-step-light-acts .fetch-act .fetch-act-ico
{
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

#fetcharr-step-light .fetch-step-light-step
{
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}

#fetcharr-step-light .fetch-step-light-step-head
{
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 1.2rem 0.55rem 1.1rem;
    background: #1a1510;
    border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    flex: 0 0 auto;
}

#fetcharr-step-light .fetch-step-light-strip
{
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    flex: 0 0 72px;
    display: block;
    overflow: visible;
}

#fetcharr-step-light .fetch-step-light-step-copy
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

#fetcharr-step-light .fetch-step-light-sub
{
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gold);
}

#fetcharr-step-light .fetch-step-light-step-row
{
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

#fetcharr-step-light .fetch-step-light-step-head > .fold-chev
{
    margin-left: auto;
    align-self: flex-end;
    margin-bottom: 0;
}

#fetcharr-step-light .fetch-step-light-step[data-fold="up"] > .fetch-step-light-body
{
    display: none;
}

#fetcharr-step-light .fetch-step-light-step[data-fold="up"] > .fetch-step-light-step-head > .fold-chev .ui-ico
{
    transform: rotate(180deg);
}

#fetcharr-step-light .fetch-step-light-step[data-fold="right"] > .fetch-step-light-step-head > .fold-chev .ui-ico
{
    transform: rotate(-90deg);
}

#fetcharr-step-light .fetch-step-light-step[data-fold="down"] > .fetch-step-light-step-head > .fold-chev .ui-ico
{
    transform: none;
}

#fetcharr-step-light .fetch-step-light-body
{
    flex: 1 1 auto;
    overflow: auto;
    padding: 0.55rem 0.75rem 0.85rem;
    background: #1a1510;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#fetcharr-step-light .fetch-step-light-explain .fetch-explain-nest
{
    margin: 0 0 0.25rem;
}

#fetcharr-step-light .fetch-step-light-pager
{
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.45rem 1.2rem;
    border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    background: #1a1510;
}

#fetcharr-step-light .fetch-step-light-page
{
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    max-width: 48%;
    padding: 0.2rem 0;
    border: none;
    background: transparent;
    color: var(--gold);
    cursor: default;
}

#fetcharr-step-light .fetch-step-light-page.is-prev
{
    justify-content: flex-start;
}

#fetcharr-step-light .fetch-step-light-page.is-next
{
    justify-content: flex-end;
    margin-left: auto;
}

#fetcharr-step-light .fetch-step-light-page[disabled]
{
    opacity: 0.35;
}

#fetcharr-step-light .fetch-step-light-page-copy
{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 650;
}

#fetcharr-step-light .fetch-step-light-page-strip
{
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
}

#fetcharr-step-light .fetch-step-light-pager .fold-chev
{
    pointer-events: none;
}

#fetcharr-step-light .fetch-step-light-sec-title
{
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--gold) 78%, #fff);
}

#fetcharr-step-light .fetch-step-light-sec[hidden] { display: none !important; }

#fetcharr-step-light .fetch-step-light-grabs,
#fetcharr-step-light .fetch-step-light-dls
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#fetcharr-step-light .fetch-step-light-grab[data-grabber="sonarr"] { --grabber-title: var(--grabber-Sonarr-title); --grabber-bg: var(--grabber-Sonarr-bg); --grabber-trim: var(--grabber-Sonarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="radarr"] { --grabber-title: var(--grabber-Radarr-title); --grabber-bg: var(--grabber-Radarr-bg); --grabber-trim: var(--grabber-Radarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="lidarr"] { --grabber-title: var(--grabber-Lidarr-title); --grabber-bg: var(--grabber-Lidarr-bg); --grabber-trim: var(--grabber-Lidarr-title); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="soularr"] { --grabber-title: var(--grabber-Soularr-title); --grabber-bg: var(--grabber-Soularr-bg); --grabber-trim: var(--grabber-Soularr-title); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="sportarr"] { --grabber-title: var(--grabber-Sportarr-title); --grabber-bg: var(--grabber-Sportarr-bg); --grabber-trim: var(--grabber-Sportarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="readarr"] { --grabber-title: var(--grabber-Readarr-title); --grabber-bg: var(--grabber-Readarr-bg); --grabber-trim: var(--grabber-Readarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="listenarr"] { --grabber-title: var(--grabber-Listenarr-title); --grabber-bg: var(--grabber-Listenarr-bg); --grabber-trim: var(--grabber-Listenarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="kapowarr"] { --grabber-title: var(--grabber-Kapowarr-title); --grabber-bg: var(--grabber-Kapowarr-bg); --grabber-trim: var(--grabber-Kapowarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="youtubarr"] { --grabber-title: var(--grabber-Youtubarr-title); --grabber-bg: var(--grabber-Youtubarr-bg); --grabber-trim: var(--grabber-Youtubarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="romarr"] { --grabber-title: var(--grabber-Romarr-title); --grabber-bg: var(--grabber-Romarr-bg); --grabber-trim: var(--grabber-Romarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="questarr"] { --grabber-title: var(--grabber-Questarr-title); --grabber-bg: var(--grabber-Questarr-bg); --grabber-trim: var(--grabber-Questarr-trim); }
#fetcharr-step-light .fetch-step-light-grab[data-grabber="whisparr"] { --grabber-title: var(--grabber-Whisparr-title); --grabber-bg: var(--grabber-Whisparr-bg); --grabber-trim: var(--grabber-Whisparr-trim); }

#fetcharr-step-light .fetch-step-light-grab,
#fetcharr-step-light .fetch-step-light-dl
{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--grabber-trim, var(--gold)) 45%, transparent);
    background: color-mix(in srgb, var(--grabber-bg, #241c16) 88%, #1a1510);
    color: var(--grabber-title, var(--gold));
    overflow: hidden;
}

#fetcharr-step-light .fetch-step-light-grab[data-grabber="lidarr"],
#fetcharr-step-light .fetch-step-light-grab[data-grabber="soularr"]
{
    border-color: var(--grabber-title);
}

#fetcharr-step-light .fetch-step-light-item-head
{
    display: grid;
    grid-template-columns: 1.05rem 7.2rem minmax(8rem, 1fr) 2.8rem 18px;
    align-items: center;
    column-gap: 0.45rem;
    padding: 0.28rem 0.45rem;
}

#fetcharr-step-light .fetch-step-light-item-head .fold-chev
{
    margin-left: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    justify-self: end;
    border: none;
    background: transparent;
}

#fetcharr-step-light .fetch-step-light-grab[data-fold="up"] > .fetch-step-light-detail,
#fetcharr-step-light .fetch-step-light-dl[data-fold="up"] > .fetch-step-light-detail
{
    display: none;
}

#fetcharr-step-light [data-fold="up"] > .fetch-step-light-item-head .fold-chev .ui-ico
{
    transform: rotate(180deg);
    transform-origin: center;
}

#fetcharr-step-light [data-fold="right"] > .fetch-step-light-item-head .fold-chev .ui-ico
{
    transform: rotate(-90deg);
    transform-origin: center;
}

#fetcharr-step-light [data-fold="down"] > .fetch-step-light-item-head .fold-chev .ui-ico
{
    transform: none;
}

#fetcharr-step-light .fetch-step-light-detail
{
    padding: 0 0.7rem 0.55rem 2.2rem;
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--grabber-title, var(--gold)) 80%, #fff);
}

#fetcharr-step-light .fetch-step-light-log
{
    margin: 0;
}

#fetcharr-step-light .fetch-step-light-dl
{
    --grabber-title: var(--gold);
    --grabber-bg: #241c16;
    --grabber-trim: var(--gold);
}

#fetcharr-step-light .fetch-step-light-grab .svc-icon,
#fetcharr-step-light .fetch-step-light-dl .svc-icon
{
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 1.15rem;
}

#fetcharr-step-light .fetch-step-light-grab-name
{
    font-weight: 650;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#fetcharr-step-light .fetch-step-light-track
{
    width: 100%;
    min-width: 0;
    height: 5px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--grabber-title, var(--gold)) 18%, #000);
    overflow: hidden;
}

#fetcharr-step-light .fetch-step-light-fill
{
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: var(--grabber-title, var(--gold));
    transition: width 0.55s ease;
}

#fetcharr-step-light [data-light-st="run"] .fetch-step-light-fill
{
    width: 58%;
    animation: fetch-light-fill 1.05s ease-in-out infinite alternate;
}

#fetcharr-step-light [data-light-st="ok"] .fetch-step-light-fill
{
    width: 100%;
    animation: none;
}

#fetcharr-step-light [data-light-st="fail"] .fetch-step-light-fill
{
    width: 100%;
    animation: none;
    background: #e07070;
}

#fetcharr-step-light .fetch-step-light-grab-note
{
    margin-left: 0;
    text-align: right;
    font-size: 0.7rem;
    opacity: 0.9;
}

#fetcharr-step-light [data-light-st="waiting"] .fetch-step-light-grab-note { opacity: 0.55; }
#fetcharr-step-light [data-light-st="run"]
{
    box-shadow: inset 0 0 0 1px var(--grabber-trim, var(--gold));
}
#fetcharr-step-light [data-light-st="ok"] .fetch-step-light-grab-note { color: #8fd18f; }
#fetcharr-step-light [data-light-st="skip"] .fetch-step-light-grab-note { opacity: 0.45; text-decoration: line-through; }

@keyframes fetch-light-fill
{
    from { width: 28%; }
    to { width: 86%; }
}

#tab-fetcharr .fetch-run > .sub-head .sub-head-row
{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

#fetcharr-ops-clock
{
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-left: auto;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}

#fetcharr-ops-clock[hidden]
{
    display: none !important;
}

#fetcharr-ops-clock .fetch-ops-elapse
{
    opacity: 0.88;
}

#fetcharr-ops-clock .fetch-ops-eta
{
    padding: 0.12rem 0.45rem;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--gold) 12%, transparent);
}

#fetcharr-ops-clock .fetch-ops-eta[hidden]
{
    display: none;
}

#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head,
#tab-fetcharr .fetch-grabber-nest > .fetch-step-head
{
    position: relative;
    overflow: hidden;
}

#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head > *:not(.fetch-step-track),
#tab-fetcharr .fetch-grabber-nest > .fetch-step-head > *:not(.fetch-step-track)
{
    position: relative;
    z-index: 1;
}

#tab-fetcharr .fetch-step-track
{
    position: absolute;
    inset: 0;
    height: auto;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

#tab-fetcharr .fetch-step-fill
{
    display: block;
    height: 100%;
    width: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--grabber-title, var(--gold)) 28%, transparent);
    transition: width 0.35s ease;
}

#tab-fetcharr .fetch-step.is-run > .fetch-step-head .fetch-step-fill,
#tab-fetcharr .fetch-grabber-nest[data-work-st="run"] .fetch-step-fill
{
    background: color-mix(in srgb, var(--grabber-title, var(--gold)) 40%, transparent);
}

#tab-fetcharr .fetch-step.is-ok > .fetch-step-head .fetch-step-fill,
#tab-fetcharr .fetch-grabber-nest[data-work-st="ok"] .fetch-step-fill
{
    background: color-mix(in srgb, var(--grabber-title, var(--gold)) 22%, transparent);
}

#tab-fetcharr .fetch-steps > .fetch-step > .fetch-step-head > .fetch-acts
{
    margin-left: 0;
}

#tab-fetcharr .fetch-step-title
{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tab-fetcharr .fetch-step-clock
{
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-left: auto;
    margin-right: 0.35rem;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--gold) 82%, #fff);
    white-space: nowrap;
    flex: 0 0 auto;
}

#tab-fetcharr .fetch-step-clock[hidden]
{
    display: none;
}

#tab-fetcharr .fetch-step-clock .fetch-clock-eta[hidden]
{
    display: none;
}

#tab-fetcharr .fetch-svc-work
{
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.78;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--grabber-title, var(--gold));
}

#tab-fetcharr .fetch-svc-clock
{
    flex: 0 0 auto;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.85;
    white-space: nowrap;
}

#fetcharr-step-light .fetch-step-light-clock
{
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    opacity: 0.9;
}

#fetcharr-step-light .fetch-step-light-clock[hidden],
#fetcharr-step-light .fetch-step-light-work[hidden]
{
    display: none;
}

#fetcharr-step-light .fetch-step-light-work
{
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.82;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tab-fetcharr .fetch-step-fill.is-pulse,
#fetcharr-step-light .fetch-step-light-fill.is-pulse
{
    width: 58%;
    animation: fetch-light-fill 1.05s ease-in-out infinite alternate;
}

#tab-fetcharr .fetch-step.is-fail > .fetch-step-head .fetch-step-fill,
#tab-fetcharr .fetch-grabber-nest[data-work-st="fail"] .fetch-step-fill,
#fetcharr-step-light [data-light-st="fail"] .fetch-step-light-fill
{
    background: #e07070;
}
