/* v354 · Live session flame. Motion = transform/opacity only on promoted layers; no filter/blur animation, no per-frame JS.
   :not(#tfA):not(#tfB) is a specificity bump so these beat the older body:has(#home.active) #homeRunningStripV189 rules. */
:is(#homeRunningStripV189,.tf-host-v356){--tf-c:#c2410c;--tf-f1:#e8461c;--tf-f2:#ff8a1f;--tf-f3:#ffe08a;--tf-glow:#ff7a1a}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=fire]{--tf-c:#c2410c;--tf-f1:#e23d17;--tf-f2:#ff8a1f;--tf-f3:#ffe39a;--tf-glow:#ff6a14}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=important]{--tf-c:#a16207;--tf-f1:#d18a06;--tf-f2:#f7bd2f;--tf-f3:#fff3c2;--tf-glow:#f5b21a}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=clean]{--tf-c:#0f766e;--tf-f1:#0d9488;--tf-f2:#2dd4bf;--tf-f3:#d5fbf3;--tf-glow:#14c7b0}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=water]{--tf-c:#1a6f8c;--tf-f1:#0e7fa8;--tf-f2:#38bdf8;--tf-f3:#e3f7ff;--tf-glow:#22a6e0}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=rest]{--tf-c:#4b6b84;--tf-f1:#7f9cb4;--tf-f2:#b8cbdb;--tf-f3:#eef4f9;--tf-glow:#9bb6cc}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=sleep]{--tf-c:#5f5890;--tf-f1:#7d74b0;--tf-f2:#bdb4e6;--tf-f3:#f1eefc;--tf-glow:#a497dc}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=life]{--tf-c:#3f7a5d;--tf-f1:#4d8a6c;--tf-f2:#8fd1ae;--tf-f3:#e6f8ee;--tf-glow:#6cc497}
:is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=rabbit]{--tf-c:#b13460;--tf-f1:#c73d68;--tf-f2:#f08bb0;--tf-f3:#ffe6ef;--tf-glow:#ea5d8d}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=fire]{--tf-c:#ff9a6b}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=important]{--tf-c:#f2c14e}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=clean]{--tf-c:#4fd1c5}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=water]{--tf-c:#6cc6e0}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=rest]{--tf-c:#a9c1d6}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=sleep]{--tf-c:#c3b8f0}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=life]{--tf-c:#8fd1ae}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356)[data-cat-v354=rabbit]{--tf-c:#f59ab9}

/* Flame pieces are inert unless a session is live. */
#homeRunningStripV189:not([data-flame-v354]) .tf-v354,#homeRunningStripV189 .tf-marks-v354[hidden]{display:none!important}

/* ---------- strip layout (all tabs: compact) ---------- */
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB){display:grid!important;grid-template-columns:62px minmax(0,1fr) 44px!important;grid-template-rows:auto auto auto!important;align-items:center!important;column-gap:12px!important;row-gap:1px!important;padding:10px 12px!important;min-height:0!important;border:1.5px solid color-mix(in srgb,var(--tf-c) 48%,transparent)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 13%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 72%)!important;box-shadow:0 6px 20px color-mix(in srgb,var(--tf-glow) 18%,transparent)!important;overflow:hidden}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB)[data-heat-v354="2"]{background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 19%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 78%)!important}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB)[data-heat-v354="3"]{background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 25%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 84%)!important;border-color:color-mix(in srgb,var(--tf-c) 70%,transparent)!important}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-dot{display:none!important}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label{grid-column:2!important;grid-row:1!important;font-size:12px!important;line-height:1.3!important;font-weight:650!important;color:var(--hlp-muted,#5b6470)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label b{color:var(--tf-c);font-weight:800}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .running-clock-row-v263{grid-column:2!important;grid-row:2!important;min-width:0}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-time{font-size:32px!important;line-height:1!important;letter-spacing:-.5px!important;font-weight:800!important;font-variant-numeric:tabular-nums!important;font-feature-settings:'tnum' 1;color:var(--tf-c)!important;white-space:nowrap}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-time .clk-s-v354{font-size:.5em;font-weight:750;opacity:.62;margin-left:2px;letter-spacing:0}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-time .clk-c-v354{display:inline-block;animation:tf-colon 2s steps(1,end) infinite}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) #runningQuickV256{grid-column:3!important;grid-row:1/4!important;align-self:center}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) #runningQuickV256::before{display:none!important}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .running-limit-v247{grid-column:2/4!important;grid-row:4!important}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{grid-column:2/4;grid-row:3;display:none}
#homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{grid-column:1;grid-row:1/4}

/* ---------- Hôm nay: full size ---------- */
body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB){grid-template-columns:84px minmax(0,1fr) 52px!important;column-gap:12px!important;padding:12px 12px 12px 10px!important;min-height:112px!important;border-radius:18px!important}
body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-time{font-size:44px!important;letter-spacing:-1px!important}
body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{display:flex;flex-wrap:nowrap;gap:5px;margin-top:5px;min-width:0;overflow:hidden}
body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{width:84px;height:84px}

.tf-marks-v354 span{flex:none;padding:2px 7px;border-radius:9px;font-size:11px;line-height:1.35;font-weight:750;font-variant-numeric:tabular-nums;background:color-mix(in srgb,var(--tf-c) 10%,transparent);color:var(--hlp-muted,#5b6470);white-space:nowrap}
.tf-marks-v354 span.done{background:var(--tf-c);color:#fff}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) .tf-marks-v354 span.done{color:#1a1a1a}
.tf-marks-v354 span.cur{box-shadow:inset 0 0 0 1.5px var(--tf-c);color:var(--tf-c);background:transparent}
.tf-marks-v354 span.left{background:transparent;padding-left:2px}

/* ---------- ring ---------- */
.tf-ring-v354{position:relative;width:62px;height:62px;border-radius:50%;display:block;background:conic-gradient(var(--tf-c) var(--tf-p,0%),color-mix(in srgb,var(--tf-c) 14%,transparent) 0);isolation:isolate}
.tf-ring-v354>.tf-disc{position:absolute;inset:5px;border-radius:50%;background:var(--hlp-surface,#fff);overflow:hidden}
.tf-ring-v354>.tf-badge{position:absolute;left:50%;bottom:-3px;transform:translateX(-50%);z-index:5;padding:1px 7px;border-radius:9px;background:var(--tf-c);color:#fff;font-size:10px;line-height:1.4;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
:is(#homeRunningStripV189,.tf-host-v356) .tf-ring-v354>.tf-badge{color:#fff!important}
html:is([data-hlp-theme=dark],[data-hlp-theme=obsidian]) :is(#homeRunningStripV189,.tf-host-v356) .tf-ring-v354>.tf-badge{color:#141414!important}

/* glow: static radial gradient, only its opacity/scale breathe */
.tf-glow{position:absolute;inset:5px;border-radius:50%;overflow:hidden;z-index:1;transform:scale(var(--tf-gs,.9));opacity:var(--tf-go,.55)}
.tf-glow>i{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 64%,color-mix(in srgb,var(--tf-glow) 78%,transparent) 0,color-mix(in srgb,var(--tf-glow) 30%,transparent) 42%,transparent 70%);will-change:opacity,transform;animation:tf-glow 2.3s ease-in-out infinite}

/* flame: three stacked layers flicker at co-prime rates so it never looks looped */
.tf-fire{position:absolute;left:50%;bottom:16%;width:56%;height:66%;margin-left:-28%;z-index:2;transform-origin:50% 100%;transform:scale(var(--tf-fs,.84))}
.tf-l{position:absolute;inset:0;transform-origin:50% 96%;will-change:transform,opacity}
.tf-l svg{display:block;width:100%;height:100%;overflow:visible}
.tf-l1 path{fill:var(--tf-f1)}.tf-l2 path{fill:var(--tf-f2)}.tf-l3 path{fill:var(--tf-f3)}
.tf-l1{animation:tf-flick-a 1.3s ease-in-out infinite}
.tf-l2{inset:16% 13% 0;animation:tf-flick-b .97s ease-in-out infinite}
.tf-l3{inset:30% 22% 0;animation:tf-flick-c .71s ease-in-out infinite}

/* sparks / embers rising */
.tf-sparks{position:absolute;inset:5px;border-radius:50%;overflow:hidden;z-index:3;pointer-events:none}
.tf-sparks i{position:absolute;bottom:30%;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:var(--tf-f3);box-shadow:0 0 0 1px color-mix(in srgb,var(--tf-f2) 55%,transparent);opacity:0;will-change:transform,opacity;animation:tf-rise 2.1s linear infinite}
.tf-sparks i:nth-child(1){--x:-9px;animation-delay:-.2s}
.tf-sparks i:nth-child(2){--x:8px;animation-delay:-.9s;animation-duration:1.8s}
.tf-sparks i:nth-child(3){--x:-3px;animation-delay:-1.5s;animation-duration:2.4s}
.tf-sparks i:nth-child(4){--x:12px;animation-delay:-.5s;animation-duration:2.2s}
.tf-sparks i:nth-child(5){--x:-13px;animation-delay:-1.2s;animation-duration:1.9s}
.tf-sparks i:nth-child(6){--x:4px;animation-delay:-1.8s;animation-duration:1.6s;width:4px;height:4px}

/* heat grows with elapsed time & milestones: 0 <25′ · 1 ≥25′ · 2 ≥45′ · 3 ≥90′ */
[data-heat-v354="0"] .tf-sparks i:nth-child(n+3){display:none}
[data-heat-v354="1"] .tf-sparks i:nth-child(n+5){display:none}
[data-heat-v354="1"] .tf-ring-v354{--tf-fs:.92;--tf-gs:.96;--tf-go:.72}
[data-heat-v354="2"] .tf-ring-v354{--tf-fs:1;--tf-gs:1.02;--tf-go:.86}
[data-heat-v354="3"] .tf-ring-v354{--tf-fs:1.08;--tf-gs:1.08;--tf-go:1}
[data-heat-v354="3"] .tf-l3 path{fill:#fffbea}
[data-burst-v354] .tf-fire{animation:tf-burst 1.2s cubic-bezier(.2,1.5,.35,1) 1}

/* moon (Nghỉ/Ngủ): slow float + soft glow + twinkling stars */
.tf-moon{display:none;position:absolute;inset:5px;z-index:2;border-radius:50%;overflow:hidden}
.tf-moon svg{position:absolute;left:24%;top:20%;width:52%;height:60%;will-change:transform;animation:tf-float 5s ease-in-out infinite}
.tf-moon svg path{fill:var(--tf-f1)}
.tf-moon i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--tf-c);opacity:.2;will-change:opacity;animation:tf-twinkle 3.2s ease-in-out infinite}
.tf-moon i:nth-of-type(1){left:22%;top:26%}.tf-moon i:nth-of-type(2){left:72%;top:32%;animation-delay:-1.1s}.tf-moon i:nth-of-type(3){left:64%;top:70%;animation-delay:-2.2s}
[data-flame-v354=moon] .tf-fire,[data-flame-v354=moon] .tf-sparks{display:none}
[data-flame-v354=moon] .tf-moon{display:block}
[data-flame-v354=moon] .tf-glow>i{animation-duration:5s}
[data-flame-v354=moon] .tf-ring-v354{--tf-go:.6}

@keyframes tf-flick-a{0%,100%{transform:scale(1,1) skewX(0)}25%{transform:scale(.96,1.05) skewX(-2deg)}50%{transform:scale(1.03,.96) skewX(1.5deg)}75%{transform:scale(.98,1.03) skewX(-1deg)}}
@keyframes tf-flick-b{0%,100%{transform:scale(1,1) translateX(0)}33%{transform:scale(.93,1.08) translateX(1px)}66%{transform:scale(1.04,.95) translateX(-1px)}}
@keyframes tf-flick-c{0%,100%{transform:scale(1,1);opacity:1}50%{transform:scale(.88,1.12);opacity:.82}}
@keyframes tf-rise{0%{transform:translate(0,0) scale(1);opacity:0}12%{opacity:1}100%{transform:translate(var(--x,0),-36px) scale(.3);opacity:0}}
@keyframes tf-glow{0%,100%{opacity:.6;transform:scale(.94)}50%{opacity:1;transform:scale(1.05)}}
@keyframes tf-burst{0%{transform:scale(var(--tf-fs,1))}35%{transform:scale(calc(var(--tf-fs,1)*1.28))}100%{transform:scale(var(--tf-fs,1))}}
@keyframes tf-float{0%,100%{transform:translateY(1.5px) rotate(-4deg)}50%{transform:translateY(-1.5px) rotate(2deg)}}
@keyframes tf-twinkle{0%,100%{opacity:.15}50%{opacity:.85}}
@keyframes tf-colon{50%{opacity:.45}}

/* paused session / app in background: freeze every layer (no work off-screen) */
:is([data-paused-v354],html.tf-hidden-v354 #homeRunningStripV189,html.tf-hidden-v354 .tf-host-v356) :is(.tf-l,.tf-sparks i,.tf-glow>i,.tf-moon svg,.tf-moon i,.clk-c-v354){animation-play-state:paused!important}
[data-paused-v354] .tf-sparks{opacity:0}

/* reduced motion or Hiệu ứng = tắt: static flame, no flicker, no sparks */
@media (prefers-reduced-motion:reduce){
 :is(#homeRunningStripV189,.tf-host-v356) :is(.tf-l,.tf-sparks i,.tf-glow>i,.tf-moon svg,.tf-moon i,.tf-fire,.clk-c-v354){animation:none!important}
 :is(#homeRunningStripV189,.tf-host-v356) .tf-sparks{display:none!important}
}
html[data-reward-motion="off"] :is(#homeRunningStripV189,.tf-host-v356) :is(.tf-l,.tf-sparks i,.tf-glow>i,.tf-moon svg,.tf-moon i,.tf-fire,.clk-c-v354){animation:none!important}
html[data-reward-motion="off"] :is(#homeRunningStripV189,.tf-host-v356) .tf-sparks{display:none!important}

/* 360px phones */
@media (max-width:370px){
 body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB){grid-template-columns:72px minmax(0,1fr) 44px!important;column-gap:10px!important;min-height:104px!important}
 body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{width:72px;height:72px}
 body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .home-running-time{font-size:40px!important}
 body:has(#home.active) #homeRunningStripV189[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{gap:4px}
 .tf-marks-v354 span{padding:2px 5px;font-size:10.5px}
}

/* ---------- v356 · Duy trì 100%: one-shot flare (replaces the v301 rim pulse) ---------- */
[data-celebrate-v356] .tf-fire{animation:tf-flare-v356 1.6s cubic-bezier(.2,1.4,.35,1) 1!important}
[data-celebrate-v356] .tf-glow{--tf-go:1;--tf-gs:1.15}
[data-celebrate-v356] .tf-sparks i{display:block!important;animation-duration:.9s!important}
[data-celebrate-v356] .tf-ring-v354::after{content:'';position:absolute;inset:-2px;border-radius:50%;border:3px solid var(--tf-f2);pointer-events:none;z-index:6;animation:tf-ripple-v356 1.6s ease-out 1 both}
:is(#homeRunningStripV189,.tf-host-v356)[data-celebrate-v356]{box-shadow:0 0 0 2px color-mix(in srgb,var(--tf-glow) 60%,transparent),0 0 26px color-mix(in srgb,var(--tf-glow) 55%,transparent)!important;transition:box-shadow .3s}
:is(#homeRunningStripV189,.tf-host-v356)[data-celebrate-v356] .tf-ring-v354>.tf-badge{background:var(--tf-f1)!important}
@keyframes tf-flare-v356{0%{transform:scale(var(--tf-fs,.9))}22%{transform:scale(1.5)}55%{transform:scale(1.22)}100%{transform:scale(var(--tf-fs,.9))}}
@keyframes tf-ripple-v356{0%{transform:scale(.9);opacity:.95}100%{transform:scale(1.7);opacity:0}}
@media (prefers-reduced-motion:reduce){[data-celebrate-v356] .tf-fire{animation:none!important}[data-celebrate-v356] .tf-ring-v354::after{display:none}[data-celebrate-v356] .tf-sparks{display:none!important}}
html[data-reward-motion="off"] [data-celebrate-v356] .tf-fire{animation:none!important}
html[data-reward-motion="off"] [data-celebrate-v356] .tf-ring-v354::after{display:none}
html[data-reward-motion="off"] [data-celebrate-v356] .tf-sparks{display:none!important}

/* ---------- v356 · preview in Thú & hiệu ứng time ---------- */
.gallery-time-v332.tf-host-v356{justify-content:flex-start;gap:12px;padding:16px 14px;border-color:color-mix(in srgb,var(--tf-c) 55%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 14%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 70%);color:var(--tf-c)}
.gallery-time-v332.tf-host-v356>.tf-ring-v354{flex:none;width:64px;height:64px}
.gallery-time-v332.tf-host-v356>.timer-pet-v297{flex:none;margin-left:auto}
.gallery-time-v332.tf-host-v356>div{flex:1 1 auto;min-width:0}
.gallery-time-v332.tf-host-v356 strong{color:var(--tf-c);font-size:26px;letter-spacing:.5px;white-space:nowrap}
.gallery-time-v332.tf-host-v356 b{display:block;overflow-wrap:anywhere}

/* ---------- v359 · Chuyển việc nhanh: same live flame card as Hôm nay ----------
   Host = #quickSwitchCurrent (gets .tf-host-v356 + data-flame/cat/heat from hlpTimerFlameV354).
   html …:not(#tfA):not(#tfB) beats the older quick-switch grid/theme rules (themes.css, c-*.css, mascots.css). */
#quickSwitchCurrent:not([data-flame-v354]) .tf-v354,#quickSwitchCurrent .tf-marks-v354[hidden]{display:none!important}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){display:grid!important;grid-template-columns:84px minmax(0,1fr) 52px!important;grid-template-rows:auto auto auto!important;align-items:center!important;column-gap:12px!important;row-gap:1px!important;padding:12px 12px 12px 10px!important;min-height:112px!important;height:auto!important;border-radius:18px!important;border:1.5px solid color-mix(in srgb,var(--tf-c) 48%,transparent)!important;color:var(--hlp-ink,#213b48)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 13%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 72%)!important;box-shadow:0 6px 20px color-mix(in srgb,var(--tf-glow) 18%,transparent)!important;overflow:hidden}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)[data-heat-v354="2"]{background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 19%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 78%)!important}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)[data-heat-v354="3"]{background:linear-gradient(120deg,color-mix(in srgb,var(--tf-glow) 25%,var(--hlp-surface,#fff)) 0%,var(--hlp-surface,#fff) 84%)!important;border-color:color-mix(in srgb,var(--tf-c) 70%,transparent)!important}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)::before,
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-running-dot,
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .running-limit-v247,
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-start-cta-v343{display:none!important}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{grid-column:1!important;grid-row:1/4!important;width:84px;height:84px}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label{grid-column:2!important;grid-row:1!important;font-size:12px!important;line-height:1.3!important;font-weight:650!important;color:var(--hlp-muted,#5b6470)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label b{color:var(--tf-c)!important;font-weight:800}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .running-clock-row-v263{grid-column:2!important;grid-row:2!important;min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187{font-size:44px!important;line-height:1!important;letter-spacing:-1px!important;font-weight:800!important;font-variant-numeric:tabular-nums!important;font-feature-settings:'tnum' 1;color:var(--tf-c)!important;white-space:nowrap;margin:2px 0 3px}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187 .clk-s-v354{font-size:.5em;font-weight:750;opacity:.62;margin-left:2px;letter-spacing:0}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187 .clk-c-v354{display:inline-block;animation:tf-colon 2s steps(1,end) infinite}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{grid-column:2/4!important;grid-row:3!important;display:flex;flex-wrap:nowrap;gap:5px;margin-top:3px;min-width:0;overflow:hidden}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{grid-column:3!important;grid-row:1/3!important;width:52px!important;min-width:52px!important;height:52px!important;align-self:center!important}
html.tf-hidden-v354 #quickSwitchCurrent .clk-c-v354{animation-play-state:paused!important}
@media (max-width:370px){
 html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){grid-template-columns:72px minmax(0,1fr) 44px!important;column-gap:10px!important;min-height:104px!important}
 html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{width:72px;height:72px}
 html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187{font-size:40px!important}
 html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{width:44px!important;min-width:44px!important;height:44px!important}
 html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{gap:4px}
}
/* "Gần đây": the running card shows a status pill, not a second (9px) clock */
#quickSwitchDialog .qs-running.qs-running-v359{font-size:11px!important;font-weight:800;padding:3px 8px!important;background:color-mix(in srgb,var(--qs-accent,#257ca5) 14%,var(--hlp-surface,#fff))!important;color:var(--qs-accent,#257ca5)!important}
/* v359 · dark themes: "Gần đây" titles were #193345 on a dark card (c-865b74ed #quickSwitchDialog .qs-main b) */
html[data-hlp-theme]:not([data-hlp-theme=classic]) #quickSwitchDialog .quick-switch-item .qs-main b{color:var(--hlp-ink)!important}
html[data-hlp-theme]:not([data-hlp-theme=classic]) #quickSwitchDialog .quick-switch-item :is(.qs-main small,.qs-today-v242){color:var(--hlp-muted)!important}
html[data-hlp-theme]:not([data-hlp-theme=classic]) #quickSwitchDialog .qs-running.qs-running-v359{background:color-mix(in srgb,var(--qs-accent,#7cc4ff) 22%,var(--hlp-surface))!important;color:color-mix(in srgb,var(--qs-accent,#7cc4ff) 45%,var(--hlp-ink))!important}
/* v359 · dark themes: dialog#quickSwitchDialog{background:#fff!important} out-ranked the theme surface → white list + light headings */
html[data-hlp-theme]:not([data-hlp-theme=classic]) dialog#quickSwitchDialog,html[data-hlp-theme]:not([data-hlp-theme=classic]) dialog#quickSwitchDialog>.modal{background:var(--hlp-surface)!important;color:var(--hlp-ink)!important}
/* the pill sits on its own line under "Hôm nay…" instead of overlapping it */
#quickSwitchDialog .quick-switch-item .qs-running.qs-running-v359{position:static!important;display:inline-flex!important;align-items:center;gap:4px;width:max-content;margin-top:5px!important;border-radius:999px!important;line-height:1.2!important;inset:auto!important}
#quickSwitchDialog .quick-switch-item.is-running .qs-today-v242{white-space:normal!important}
#quickSwitchDialog .quick-switch-item .qs-main .qs-running.qs-running-v359{display:flex!important}
html[data-hlp-theme]:not([data-hlp-theme=classic]) #quickSwitchDialog #quickSwitchFilters{background:var(--hlp-surface)!important}
/* app hidden → the quick-switch card (flame, colon, dragon) stops animating too */
html.tf-hidden-v354 #quickSwitchCurrent *,html.tf-hidden-v354 #quickSwitchCurrent::before{animation-play-state:paused!important}
html[data-hlp-theme]:not([data-hlp-theme=classic]) #quickSwitchDialog .qs-today-v242{color:var(--hlp-muted)!important}


/* v396 · Compact Pro / Chuyển việc nhanh: presentation-only, no timer/data changes. */
@media (max-width:700px){
  dialog#quickSwitchDialog>.modal.quick-switch-modal{
    padding:calc(9px + env(safe-area-inset-top,0px)) 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
  }
  #quickSwitchDialog .qs-sticky-stack-v276{
    gap:7px!important;
    padding-bottom:8px!important;
    border-bottom:1px solid var(--hlp-border,#e4e9ed);
  }
  #quickSwitchDialog .quick-switch-head{align-items:center!important;min-height:37px!important}
  #quickSwitchDialog .quick-switch-head h3{
    font-size:21px!important;line-height:1.2!important;letter-spacing:-.6px!important;
  }
  #quickSwitchDialog #quickSwitchCloseBtn{
    min-height:36px!important;padding:7px 12px!important;
    border-radius:11px!important;font-size:13px!important;
  }
  #quickSwitchDialog #quickSwitchFilters{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;padding:0!important;margin:0!important;
  }
  #quickSwitchDialog #quickSwitchFilters>button{
    min-height:34px!important;height:34px!important;min-width:0!important;
    padding:4px 2px!important;font-size:clamp(10px,2.9vw,12px)!important;
    line-height:1.2!important;border-radius:10px!important;box-shadow:none!important;
    letter-spacing:-.1px!important;
  }
  #quickSwitchDialog #quickSwitchFilters>button.active{
    box-shadow:0 2px 6px color-mix(in srgb,currentColor 12%,transparent)!important;
  }
  #quickSwitchDialog #quickSwitchList{
    padding-top:7px!important;padding-bottom:16px!important;
    scroll-padding-top:8px!important;
  }
  #quickSwitchDialog .qs-color-filter-v278{
    gap:6px!important;margin:0 0 9px!important;padding:3px 2px 5px!important;
    align-items:center!important;scrollbar-width:none;
  }
  #quickSwitchDialog .qs-color-filter-v278 button{
    width:32px!important;height:32px!important;min-width:32px!important;
    padding:5px!important;flex:none!important;
  }
  #quickSwitchDialog .qs-color-filter-v278 button:first-child{
    min-width:88px!important;width:auto!important;height:32px!important;
    font-size:11px!important;padding:4px 8px!important;
  }
  #quickSwitchDialog .quick-switch-list{gap:12px!important}
  #quickSwitchDialog .quick-switch-section{gap:6px!important}
  #quickSwitchDialog .quick-switch-section-head{margin-top:2px!important}
  #quickSwitchDialog .quick-switch-section-head b{
    font-size:13px!important;letter-spacing:-.15px;
  }
  #quickSwitchDialog .quick-switch-section-head span{font-size:10px!important}
  #quickSwitchDialog .quick-switch-grid{gap:8px!important}
  #quickSwitchDialog .quick-switch-item{
    min-height:80px!important;padding:8px 9px!important;
    grid-template-columns:5px minmax(0,1fr)!important;
    gap:7px!important;border-radius:12px!important;border-width:1px!important;
    box-shadow:none!important;
    background:var(--hlp-surface,#fff)!important;
    border-color:var(--hlp-border,#e3e7ec)!important;
    transition:transform .12s ease,background-color .12s ease!important;
  }
  #quickSwitchDialog .quick-switch-item:active{transform:scale(.985)!important}
  #quickSwitchDialog .quick-switch-item .qs-marker{
    width:5px!important;min-height:43px!important;
  }
  #quickSwitchDialog .quick-switch-item .qs-main b{
    font-size:14px!important;line-height:1.27!important;
    font-weight:800!important;letter-spacing:-.15px!important;
  }
  #quickSwitchDialog .quick-switch-item .qs-main small{
    font-size:10.5px!important;line-height:1.25!important;
    margin-top:3px!important;font-weight:600!important;
  }
  #quickSwitchDialog .quick-switch-item .qs-today-v242{
    font-size:11px!important;line-height:1.3!important;
  }
  #quickSwitchDialog .quick-switch-item .qs-running.qs-running-v359{
    font-size:10px!important;padding:3px 7px!important;margin-top:4px!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-fire{
    background:color-mix(in srgb,#d95a3c 5%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-important{
    background:color-mix(in srgb,#c08a28 6%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-clean{
    background:color-mix(in srgb,#2f8c84 5%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-water{
    background:color-mix(in srgb,#2b88aa 5%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-life{
    background:color-mix(in srgb,#4f8668 5%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-rest{
    background:color-mix(in srgb,#778590 4%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-rabbit{
    background:color-mix(in srgb,#8062a3 5%,var(--hlp-surface,#fff))!important;
  }
  #quickSwitchDialog .quick-switch-item.is-running{
    border:2px solid var(--qs-accent,#287f96)!important;
    box-shadow:0 0 0 2px color-mix(in srgb,var(--qs-accent,#287f96) 11%,transparent)!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-limit-near{
    border-color:#d78b27!important;box-shadow:inset 0 0 0 1px #d78b27!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-limit-over{
    border-color:#ce473e!important;box-shadow:inset 0 0 0 1px #ce473e!important;
  }
  #quickSwitchDialog .quick-switch-item.qs-type-water.qs-maintain-done{
    background:color-mix(in srgb,#55a873 14%,var(--hlp-surface,#fff))!important;
    border:2px solid #55a873!important;
  }
  #quickSwitchDialog .quick-switch-item:focus-visible{
    outline:3px solid var(--qs-accent,#287f96)!important;outline-offset:2px!important;
  }
}
/* The timer is deliberately compact only in Quick Switch; Home remains unchanged. */
@media (max-width:700px){
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){
    grid-template-columns:62px minmax(0,1fr) 34px!important;
    grid-template-rows:auto auto auto!important;
    column-gap:9px!important;row-gap:0!important;
    padding:8px 9px!important;min-height:88px!important;
    border-radius:15px!important;
    box-shadow:0 2px 9px color-mix(in srgb,var(--tf-glow) 11%,transparent)!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{
    width:62px!important;height:62px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{
    width:34px!important;min-width:34px!important;height:34px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label{
    font-size:11.5px!important;line-height:1.25!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .running-clock-row-v263{
    flex-wrap:nowrap!important;gap:5px!important;min-width:0;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187{
    font-size:32px!important;line-height:1.04!important;margin:0!important;letter-spacing:-.7px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{
    gap:4px!important;margin-top:2px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354 span{
    font-size:10px!important;padding:2px 5px!important;
  }
  /* Once the task list scrolls, the pinned timer turns into a readable one-line status. */
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:1fr!important;
    column-gap:8px!important;min-height:47px!important;
    padding:6px 10px!important;
  }
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354,
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297,
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .tf-marks-v354{
    display:none!important;
  }
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .home-running-label{
    grid-column:1!important;grid-row:1!important;font-size:11.5px!important;
  }
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) .running-clock-row-v263{
    grid-column:2!important;grid-row:1!important;
  }
  html #quickSwitchDialog.qs-scrolled-v396 #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187{
    font-size:23px!important;
  }
}
@media (max-width:370px){
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){
    grid-template-columns:56px minmax(0,1fr) 28px!important;
    column-gap:7px!important;padding:7px 8px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.tf-ring-v354{
    width:56px!important;height:56px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{
    width:28px!important;min-width:28px!important;height:28px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB) #quickSwitchCurrentTimeV187{
    font-size:28px!important;
  }
  #quickSwitchDialog .quick-switch-item .qs-main b{font-size:13px!important}
}
@media (prefers-reduced-motion:no-preference){
  #quickSwitchDialog .qs-running.qs-running-v359::before{
    animation:qs-active-pulse-v396 1.7s ease-in-out infinite;
  }
}
@keyframes qs-active-pulse-v396{50%{opacity:.4}}

/* v397: active-project quick switch, two responsive columns and full titles. */
#quickSwitchDialog .qs-project-grid-v397{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;align-items:stretch;
}
#quickSwitchDialog .qs-project-v397{
  width:100%;min-width:0;min-height:78px!important;
  display:grid!important;grid-template-columns:5px minmax(0,1fr)!important;
  padding:10px 11px!important;align-items:stretch;text-align:left;
}
#quickSwitchDialog .qs-project-v397 .qs-main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
#quickSwitchDialog .qs-project-v397 .qs-main b{
  display:block!important;min-width:0;width:100%;max-height:none!important;
  -webkit-line-clamp:unset!important;line-clamp:unset!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;
  font-size:14px!important;line-height:1.3!important;color:var(--hlp-ink,#233d50)!important;
}
#quickSwitchDialog .qs-project-v397 .qs-main small{
  display:block!important;margin-top:5px!important;
  font-size:11px!important;line-height:1.3!important;
  color:var(--hlp-muted,#61798b)!important;
}
#quickSwitchDialog .qs-project-v397 .qs-running.qs-running-v359{
  font-size:10px!important;margin-top:6px!important;
}
#quickSwitchDialog .qs-project-v397.is-running{
  border:2px solid var(--qs-accent,#cc5231)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--qs-accent,#cc5231) 11%,transparent)!important;
}
@media(max-width:370px){
  #quickSwitchDialog .qs-project-grid-v397{gap:7px!important}
  #quickSwitchDialog .qs-project-v397{padding:9px 8px!important;gap:6px!important}
  #quickSwitchDialog .qs-project-v397 .qs-main b{font-size:13px!important}
}

/* v398 - Always visible project list in Quick Switch, separated from type/color filters. */
#quickSwitchDialog .qs-project-section-v398{display:grid!important;gap:8px!important;margin:2px 0 8px!important;min-width:0}
#quickSwitchDialog .qs-project-section-v398 .quick-switch-section-head{display:flex!important;align-items:center!important}
#quickSwitchDialog .qs-project-grid-v398{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#quickSwitchDialog .qs-project-item-v398{
  width:100%;min-width:0;min-height:72px!important;height:auto!important;
  padding:9px 10px!important;display:grid!important;grid-template-columns:5px minmax(0,1fr)!important;
  gap:8px!important;text-align:left!important;align-items:center!important;
  background:var(--hlp-surface,#fff)!important;border:1px solid var(--hlp-border,#dbe5eb)!important;
  border-radius:12px!important;
}
#quickSwitchDialog .qs-project-item-v398 .qs-main{min-width:0;display:flex!important;flex-direction:column!important;align-items:flex-start!important}
#quickSwitchDialog .qs-project-item-v398 .qs-main b{
  display:block!important;width:100%!important;white-space:normal!important;
  max-height:none!important;overflow:visible!important;overflow-wrap:anywhere!important;
  -webkit-line-clamp:unset!important;line-clamp:unset!important;
  font-size:14px!important;line-height:1.3!important;font-weight:800!important;
  color:var(--hlp-ink,#233d50)!important;
}
#quickSwitchDialog .qs-project-item-v398 .qs-main small{
  color:var(--hlp-muted,#62788a)!important;font-size:10px!important;line-height:1.4!important;
  white-space:normal!important;margin-top:4px!important;
}
#quickSwitchDialog .qs-project-item-v398.is-running{
  border:2px solid var(--qs-accent,#c94a32)!important;
  background:color-mix(in srgb,var(--qs-accent,#c94a32) 6%,var(--hlp-surface,#fff))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--qs-accent,#c94a32) 12%,transparent)!important;
}
#quickSwitchDialog .qs-project-item-v398 .qs-running{font-size:10px!important;margin-top:4px!important}
#quickSwitchDialog .qs-project-empty-v398{font-size:12px;color:var(--hlp-muted,#62788a);margin:0;padding:8px 0}
@media(max-width:370px){
 #quickSwitchDialog .qs-project-grid-v398{gap:7px!important}
 #quickSwitchDialog .qs-project-item-v398{padding:8px 7px!important;gap:6px!important}
 #quickSwitchDialog .qs-project-item-v398 .qs-main b{font-size:13px!important}
}


/* v399: visual rank hierarchy. Each rank gets its own legible badge and section heading. */
#quickSwitchDialog .qs-project-rank-group-v399{
  --rank-fill:#e9edf3;--rank-ink:#374151;--rank-border:#a6b1c0;
  display:grid!important;gap:7px!important;min-width:0;margin:3px 0 9px!important;
}
#quickSwitchDialog .qs-project-rank-group-v399.qs-rank-s{
  --rank-fill:#ffe5a5;--rank-ink:#793d00;--rank-border:#e4b456;
}
#quickSwitchDialog .qs-project-rank-group-v399.qs-rank-a{
  --rank-fill:#e9dcff;--rank-ink:#543095;--rank-border:#af90dd;
}
#quickSwitchDialog .qs-project-rank-group-v399.qs-rank-b{
  --rank-fill:#d9eeff;--rank-ink:#165482;--rank-border:#80b6da;
}
#quickSwitchDialog .qs-project-rank-group-v399.qs-rank-c{
  --rank-fill:#e7ebf0;--rank-ink:#465365;--rank-border:#aeb9c4;
}
#quickSwitchDialog .qs-project-rank-heading-v399{
  display:flex!important;align-items:center!important;gap:7px!important;
  min-width:0;padding:3px 1px 4px!important;
  border-bottom:1px solid color-mix(in srgb,var(--rank-ink) 22%,transparent);
}
#quickSwitchDialog .qs-project-rank-mini-v399{
  width:23px;height:23px;min-width:23px;
  display:grid;place-items:center;border-radius:7px;
  font-size:12px;line-height:1;font-weight:900;
  background:var(--rank-fill);color:var(--rank-ink);
  border:1px solid var(--rank-border);
}
#quickSwitchDialog .qs-project-rank-heading-v399>b{
  min-width:0;flex:1;color:var(--hlp-ink,#213e52)!important;
  font-size:12px!important;line-height:1.35!important;font-weight:800!important;
}
#quickSwitchDialog .qs-project-rank-count-v399{
  flex:none;color:var(--hlp-muted,#70818c)!important;
  font-size:10px!important;line-height:1.2!important;
}
#quickSwitchDialog .qs-project-grid-v399{align-items:stretch!important}
#quickSwitchDialog .qs-project-rank-group-v399 .qs-project-item-v399{
  min-height:78px!important;
  border-color:color-mix(in srgb,var(--rank-border) 54%,var(--hlp-border,#e3e6ea))!important;
  background:color-mix(in srgb,var(--rank-fill) 10%,var(--hlp-surface,#fff))!important;
}
#quickSwitchDialog .qs-project-rank-group-v399 .qs-project-item-v399.is-running{
  border-color:var(--qs-accent,#c64e32)!important;
  border-width:2px!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--qs-accent,#c64e32) 12%,transparent)!important;
}
#quickSwitchDialog .qs-project-item-v399 .qs-project-title-v399{
  display:flex!important;align-items:flex-start!important;gap:7px!important;
  min-width:0;width:100%;
}
#quickSwitchDialog .qs-project-item-v399 .qs-project-title-v399>b{
  min-width:0!important;flex:1 1 auto!important;line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
#quickSwitchDialog .qs-project-item-v399 .qs-project-badge-v399{
  display:grid!important;place-items:center!important;
  flex:0 0 30px!important;width:30px!important;height:30px!important;
  border:1px solid var(--rank-border)!important;border-radius:9px!important;
  background:var(--rank-fill)!important;color:var(--rank-ink)!important;
  font-size:19px!important;font-weight:950!important;line-height:1!important;
  box-shadow:0 1px 2px #172f4312!important;
}
#quickSwitchDialog .qs-project-item-v399 .qs-project-priority-v399{
  color:var(--rank-ink)!important;opacity:0.93;
  font-weight:750!important;font-size:10.5px!important;
  line-height:1.35!important;margin-top:6px!important;
}
#quickSwitchDialog .qs-project-rank-group-v399.qs-rank-s .qs-project-item-v399{
  border-color:color-mix(in srgb,var(--rank-border) 72%,var(--hlp-border,#e3e6ea))!important;
}
@media(max-width:370px){
  #quickSwitchDialog .qs-project-rank-heading-v399>b{font-size:11px!important}
  #quickSwitchDialog .qs-project-item-v399 .qs-project-badge-v399{
    flex-basis:27px!important;width:27px!important;height:27px!important;font-size:18px!important;
  }
}


/* quick-switch pet containment v408: the mobile slot can be 44px wide,
   while the owl/pixel image stayed at 50px and touched the rounded border.
   Confine artwork to its own column; do not alter the home timer or timing. */
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){
  padding-right:18px!important;
  grid-template-columns:84px minmax(0,1fr) 50px!important;
}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{
  display:grid!important;
  place-items:center!important;
  justify-self:center!important;
  align-self:center!important;
  position:relative!important;
  left:-4px!important;
  box-sizing:border-box!important;
  width:46px!important;
  min-width:0!important;
  height:46px!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
}
html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297>.pixel-pet-v303{
  display:block!important;
  width:42px!important;
  height:42px!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  overflow:hidden!important;
}
@media(max-width:370px){
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB){
    grid-template-columns:72px minmax(0,1fr) 44px!important;
    padding-right:15px!important;
    column-gap:8px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297{
    width:42px!important;
    height:42px!important;
    left:-4px!important;
  }
  html #quickSwitchDialog #quickSwitchCurrent[data-flame-v354]:not(#tfA):not(#tfB)>.timer-pet-v297>.pixel-pet-v303{
    width:38px!important;
    height:38px!important;
  }
}
