/* The Diamond Reports v3.7.5 — Halloween only at logo position #1.
   Other menus, icons, cards and theme colors are intentionally untouched. */
#iosHomeView .tdr-phan-mascot.is-halloween { isolation:isolate; }
#iosHomeView .tdr-phan-mascot.is-halloween .tdr-phan-sparkle { display:none!important; }
#iosHomeView .tdr-phan-mascot.is-halloween.is-halloween-playing .tdr-phan-actor { opacity:0; }
#iosHomeView .tdr-phan-mascot.is-halloween .tdr-phan-actor,
#iosHomeView .tdr-phan-mascot.is-halloween .tdr-phan-eyes-closed {animation:none!important;-webkit-animation:none!important;}
#iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie {
  position:absolute;
  z-index:5;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:inherit;
  overflow:hidden;
  background:transparent;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease;
}
#iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie.is-ready {opacity:1;}
#iosHomeView .tdr-phan-mascot.is-halloween:not(.is-halloween-playing)::after {
  content:'🎃';
  position:absolute;
  z-index:4;
  bottom:-5px;
  right:-6px;
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#212125;
  border:1.5px solid var(--ai-bg,#000);
  font-size:11px;
  line-height:1;
  pointer-events:none;
}
html[data-theme='light'] #iosHomeView .tdr-phan-mascot.is-halloween:not(.is-halloween-playing)::after {background:#f5f5f7;}
#iosMoreView .tdr-seasonal-card {
  margin-top:12px;
  padding:15px;
  border:1px solid var(--ai-line,rgba(120,120,128,.2));
  border-radius:21px;
  background:var(--ai-surface,var(--app-surface,#fff));
  box-shadow:var(--ai-shadow,none);
  color:var(--ai-ink,var(--app-label,#222));
  min-width:0;
}
#iosMoreView .tdr-seasonal-head {
  display:flex;
  gap:11px;
  align-items:center;
  min-width:0;
}
#iosMoreView .tdr-seasonal-pumpkin-icon {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,149,0,.11);
  color:#e98627;
}
#iosMoreView .tdr-seasonal-pumpkin-icon svg {width:23px;height:23px;display:block;}
#iosMoreView .tdr-seasonal-copy {flex:1;min-width:0;}
#iosMoreView .tdr-seasonal-copy strong {display:block;font-size:14px;line-height:1.25;font-weight:680;}
#iosMoreView .tdr-seasonal-copy small {display:block;margin-top:4px;color:var(--ai-secondary,var(--app-secondary,#6b6b6b));font-size:11.5px;line-height:1.4;}
#iosMoreView .tdr-seasonal-switch {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  padding:4px;
  margin-top:13px;
  border-radius:13px;
  background:var(--ai-segment,var(--app-surface-soft,#f2f2f7));
}
#iosMoreView .tdr-seasonal-switch button {
  min-width:0;
  min-height:39px;
  padding:9px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ai-secondary,var(--app-secondary,#6a6a6a));
  font:650 12.5px/1.2 var(--app-font-en,system-ui,sans-serif);
  cursor:pointer;
}
#iosMoreView .tdr-seasonal-switch button.is-active {
  background:var(--ai-selected,var(--app-surface,#fff));
  color:var(--ai-ink,var(--app-label,#222));
  box-shadow:0 2px 8px rgba(0,0,0,.07);
}
#iosMoreView .tdr-seasonal-switch button:focus-visible {outline:2px solid var(--ai-blue,#007aff);outline-offset:1px;}
@media (prefers-reduced-motion:reduce){
  #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie {display:none!important;transition:none!important;}
  #iosHomeView .tdr-phan-mascot.is-halloween .tdr-phan-actor {opacity:1!important;}
}
html[data-motion='off'] #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie{display:none!important;}
html[data-motion='off'] #iosHomeView .tdr-phan-mascot.is-halloween .tdr-phan-actor{opacity:1!important;}


/* ======================================================================
   v3.7.5 | Prominent looping Halloween logo and collision-free Apple header
   ONLY affects Halloween on the home page. Other icons and app logic stay.
   ====================================================================== */
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView {
  --tdr-halloween-logo-size: clamp(94px, 29vw, 116px);
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header {
  display:block !important;
  margin: 8px 0 20px !important;
  padding:0 !important;
  min-width:0 !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup {
  width:100% !important;
  display:grid !important;
  grid-template-columns:var(--tdr-halloween-logo-size) minmax(0,1fr) !important;
  gap:clamp(10px, 3.4vw, 16px) !important;
  align-items:center !important;
  min-height:var(--tdr-halloween-logo-size) !important;
  min-width:0 !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot {
  position:relative !important;
  display:block !important;
  grid-column:1 !important;
  width:var(--tdr-halloween-logo-size) !important;
  height:var(--tdr-halloween-logo-size) !important;
  min-width:var(--tdr-halloween-logo-size) !important;
  max-width:var(--tdr-halloween-logo-size) !important;
  min-height:var(--tdr-halloween-logo-size) !important;
  flex:none !important;
  margin:0 !important;
  border-radius:26px !important;
  background:rgba(122,88,183,.06) !important;
  box-shadow:inset 0 0 0 1px rgba(156,134,203,.12) !important;
  overflow:visible !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-phan-actor,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie {
  border-radius:inherit !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie {
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  pointer-events:none !important;
  border:0 !important;
  overflow:hidden !important;
  background:transparent !important;
  transform:none !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy {
  grid-column:2 !important;
  position:relative !important;
  display:block !important;
  min-width:0 !important;
  min-height:var(--tdr-halloween-logo-size) !important;
  height:var(--tdr-halloween-logo-size) !important;
  padding:0 !important;
  align-self:center !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row {
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  width:100% !important;
  min-height:var(--tdr-halloween-logo-size) !important;
  height:var(--tdr-halloween-logo-size) !important;
  padding:18px 0 0 !important;
  box-sizing:border-box !important;
  gap:0 !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before {
  content:'HALLOWEEN EDITION';
  position:absolute;
  top:calc(50% - 26px);
  left:0;
  right:46px;
  color:#AF88E4;
  font-size:9px;
  line-height:1.2;
  letter-spacing:.12em;
  font-weight:760;
  white-space:nowrap;
  pointer-events:none;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title {
  display:block !important;
  position:relative !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  font-size:clamp(18px, 4.7vw, 23px) !important;
  line-height:1.16 !important;
  font-weight:760 !important;
  letter-spacing:-.048em !important;
  white-space:normal !important;
  text-overflow:clip !important;
  overflow:visible !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-theme-button-home {
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
  flex:none !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:50% !important;
  z-index:2 !important;
}
html[data-theme="light"][data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before {color:#7D50B2;}
html[data-theme="light"][data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot {background:rgba(126,87,194,.045)!important;box-shadow:inset 0 0 0 1px rgba(128,99,187,.13)!important;}
@media(max-width:360px) {
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView {--tdr-halloween-logo-size:92px;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row {padding-top:18px!important;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title {font-size:17px!important;letter-spacing:-.05em!important;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before {font-size:8px;letter-spacing:.09em;right:37px;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-theme-button-home {width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot {border-radius:22px!important;}
}
@media(min-width:640px) {
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView {--tdr-halloween-logo-size:120px;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title {font-size:30px!important;}
}
@media(prefers-reduced-motion:reduce) {
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie {display:none!important;}
}


/* ======================================================================
   v3.7.9 | Halloween app theme polish
   - mascot tile matches dark/light theme instead of white tile feel
   - subtle Halloween app background for both light and dark mode
   - gentle moving glow / mist / sparkle, respects Reduce Motion
   ====================================================================== */
html[data-seasonal-icon="halloween"][data-theme="dark"] {
  --app-bg:#0b0811;
  --app-surface:#17151e;
  --app-surface-soft:#1c1924;
  --app-label:#f4f3f8;
  --app-secondary:#a39cb4;
  --app-tertiary:#7d768c;
  --app-line:rgba(205,188,255,.085);
}
html[data-seasonal-icon="halloween"][data-theme="light"] {
  --app-bg:#f7f2fb;
  --app-surface:#fffaf7;
  --app-surface-soft:#f5eefb;
  --app-label:#201828;
  --app-secondary:#6f617f;
  --app-tertiary:#9c8eac;
  --app-line:rgba(109,75,156,.11);
}
html[data-seasonal-icon="halloween"] body.ios-shell-active {
  background:
    radial-gradient(44rem 30rem at 12% -4%, rgba(141,92,246,.16), transparent 56%),
    radial-gradient(32rem 24rem at 90% 8%, rgba(255,147,41,.12), transparent 54%),
    radial-gradient(30rem 22rem at 50% 106%, rgba(84,208,187,.10), transparent 52%),
    linear-gradient(180deg, var(--app-bg) 0%, color-mix(in srgb, var(--app-bg) 92%, #000 8%) 100%) !important;
  background-attachment: fixed !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page{
  position:relative;
  isolation:isolate;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::before,
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::after{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::before{
  opacity:.9;
  background:
    radial-gradient(16px 16px at 14% 18%, rgba(255,205,106,.11), transparent 62%),
    radial-gradient(12px 12px at 80% 22%, rgba(150,112,255,.12), transparent 62%),
    radial-gradient(18px 18px at 25% 78%, rgba(112,226,202,.08), transparent 64%),
    radial-gradient(10px 10px at 72% 67%, rgba(255,160,72,.10), transparent 60%);
  animation:tdrHalloweenFloat 16s ease-in-out infinite alternate;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::after{
  z-index:-1;
  opacity:.52;
  background:
    radial-gradient(26rem 14rem at 20% 12%, rgba(255,255,255,.06), transparent 64%),
    radial-gradient(24rem 12rem at 76% 60%, rgba(183,138,255,.08), transparent 62%),
    radial-gradient(24rem 12rem at 10% 90%, rgba(255,160,95,.06), transparent 60%);
  filter:blur(10px);
  animation:tdrHalloweenMist 22s linear infinite alternate;
}
@keyframes tdrHalloweenFloat{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,-6px,0) scale(1.02)}
  100%{transform:translate3d(0,4px,0) scale(.99)}
}
@keyframes tdrHalloweenMist{
  0%{transform:translate3d(-1.5%,0,0)}
  100%{transform:translate3d(1.5%,-1.2%,0)}
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-report-grid,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView #iosStatsCard,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-v3-home-client-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-rank-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-list,
html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active .card,
html[data-seasonal-icon="halloween"] body.ios-shell-active .meta-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active .clients-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active .report-note-card,
html[data-seasonal-icon="halloween"] body.ios-shell-active .excursion-card{
  backdrop-filter:saturate(1.12) blur(18px);
  -webkit-backdrop-filter:saturate(1.12) blur(18px);
}
html[data-seasonal-icon="halloween"][data-theme="dark"] body.ios-shell-active #iosHomeView .tdr-phan-mascot{
  background:linear-gradient(180deg, rgba(23,21,30,.96), rgba(17,14,23,.96)) !important;
  box-shadow:inset 0 0 0 1px rgba(219,206,255,.06), 0 10px 26px rgba(0,0,0,.26) !important;
}
html[data-seasonal-icon="halloween"][data-theme="light"] body.ios-shell-active #iosHomeView .tdr-phan-mascot{
  background:linear-gradient(180deg, rgba(255,250,247,.96), rgba(246,239,252,.94)) !important;
  box-shadow:inset 0 0 0 1px rgba(125,80,178,.12), 0 10px 24px rgba(92,62,143,.10) !important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot::before{
  content:'';
  position:absolute;
  inset:6px;
  border-radius:inherit;
  background:radial-gradient(circle at 24% 20%, rgba(255,255,255,.12), transparent 42%), radial-gradient(circle at 85% 82%, rgba(255,173,76,.10), transparent 35%);
  pointer-events:none;
  z-index:1;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie{
  position:absolute !important;
  z-index:5;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-phan-actor{
  z-index:2;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before{
  text-shadow:0 0 12px rgba(172,120,255,.18);
}
html[data-seasonal-icon="halloween"][data-theme="dark"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before{color:#bc93ff;}
html[data-seasonal-icon="halloween"][data-theme="light"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before{color:#8856ca;}
@media (prefers-reduced-motion:reduce){
  html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::before,
  html[data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::after{animation:none!important}
}
html[data-motion='off'][data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::before,
html[data-motion='off'][data-seasonal-icon="halloween"] body.ios-shell-active .ios-page::after{animation:none!important}


/* v3.7.9 | User SVG replacements: home logo (#1) + HALLOWEEN EDITION badge (#2) */
html:not([data-seasonal-icon="halloween"]) body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{display:none!important;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row::before{content:none!important;display:none!important;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:6px!important;
  min-height:var(--tdr-halloween-logo-size)!important;
  height:auto!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{
  display:block!important;
  width:min(280px,calc(100% - 46px))!important;
  max-width:calc(100% - 46px)!important;
  height:36px!important;
  margin:0!important;
  flex:0 0 auto!important;
  pointer-events:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge object,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge iframe,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge img,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge svg{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  pointer-events:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row{
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  gap:10px!important;
  align-items:center!important;
  justify-content:space-between!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
  max-width:calc(100% - 46px)!important;
}
@media(max-width:360px){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{gap:4px!important;}
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{
    width:min(228px,calc(100% - 40px))!important;
    max-width:calc(100% - 40px)!important;
    height:30px!important;
  }
}


/* v3.7.9 | Halloween home header refinement */
/* SVG #1 remains the user's exact animated haunted-house graphic. */
#iosHomeView .tdr-halloween-static { display:none!important; }
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot{
  overflow:hidden!important;
  isolation:isolate!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-phan-actor{
  opacity:0!important;
  visibility:hidden!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-halloween-static{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  z-index:4!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  opacity:1!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie{
  z-index:5!important;
  border-radius:inherit!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot::after{
  display:none!important;
  content:none!important;
}
/* The Home theme toggle is removed only from Home; Appearance / More remains intact. */
#iosHomeView .ios-theme-button-home,
#iosHomeView #iosThemeButton{display:none!important;}

html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:clamp(0px,.5vw,3px)!important;
  width:100%!important;
  min-height:var(--tdr-halloween-logo-size)!important;
  box-sizing:border-box!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:clamp(72px,22.8vw,96px)!important;
  margin:0!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  filter:brightness(0) saturate(100%) invert(74%) sepia(45%) saturate(478%) hue-rotate(329deg) brightness(99%) contrast(90%)
         drop-shadow(0px 1px 4px rgba(250,147,86,.18))!important;
}
html[data-theme="light"][data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge img{
  filter:brightness(0) saturate(100%) invert(28%) sepia(40%) saturate(763%) hue-rotate(330deg) brightness(88%) contrast(98%)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row{
  padding:0!important;
  min-height:auto!important;
  height:auto!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  align-items:center!important;
  width:100%!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
  width:100%!important;
  max-width:100%!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  letter-spacing:-.048em!important;
  font-size:clamp(15px,4.7vw,23px)!important;
  overflow:visible!important;
}
@media(max-width:360px){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
    font-size:clamp(14px,4.65vw,17px)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-halloween-static{
    display:block!important;
  }
}


/* v3.7.10 | Home header alignment refinement */
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{
  align-items:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{
  margin-inline:auto!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row{
  justify-content:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
  text-align:center!important;
  margin-inline:auto!important;
}


/* v3.7.12 | Home header: SVG as transparent background layer behind Halloween/The Diamond Reports */
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header{overflow:visible!important;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup{
  position:relative!important;
  display:block!important;
  min-height:clamp(140px,39vw,180px)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  min-height:clamp(140px,39vw,180px)!important;
  margin:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  pointer-events:none!important;
  z-index:0!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot::before,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot::after{display:none!important;content:none!important;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-phan-actor,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-seasonal-lottie,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-phan-sparkle{display:none!important;opacity:0!important;visibility:hidden!important;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-halloween-static{
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:min(78vw, 430px)!important;
  height:min(78vw, 430px)!important;
  transform:translate(-50%,-52%)!important;
  object-fit:contain!important;
  border-radius:0!important;
  filter:none!important;
  opacity:1!important;
  z-index:0!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{
  position:relative!important;
  z-index:2!important;
  min-height:clamp(140px,39vw,180px)!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge{
  width:min(100%, 380px)!important;
  height:clamp(74px,23vw,98px)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row{
  justify-content:center!important;
  align-items:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
  text-align:center!important;
  width:auto!important;
  max-width:100%!important;
}
@media(max-width:390px){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot .tdr-halloween-static{
    width:min(84vw, 360px)!important;
    height:min(84vw, 360px)!important;
    transform:translate(-50%,-50%)!important;
  }
}


/* v3.7.15 — Frameless transparent Halloween hero (replaces boxed mascot layer) */
#iosHomeView .tdr-halloween-hero-art{display:none;}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup{
  position:relative!important;
  isolation:isolate!important;
  background:none!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overflow:visible!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header::before,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header::after,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup::before,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup::after{
  content:none!important;
  display:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-phan-mascot{
  display:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art{
  display:block!important;
  position:absolute!important;
  z-index:0!important;
  left:50%!important;
  top:50%!important;
  width:min(100%,420px)!important;
  height:min(96vw,360px)!important;
  max-width:none!important;
  object-fit:contain!important;
  transform:translate(-50%,-51%)!important;
  opacity:.93!important;
  border:none!important;
  outline:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  pointer-events:none!important;
  filter:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy{
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  text-align:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title{
  text-shadow:0 2px 5px rgba(0,0,0,.95),0 0 14px rgba(0,0,0,.85)!important;
}
@media(max-width:360px){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art{
    width:min(100%,345px)!important;
    height:340px!important;
  }
}

/* v3.7.15 responsive clearance: keep the frameless SVG inside the header,
   without clipping it against the status bar or overlapping the next card. */
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup,
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy {
  min-height:clamp(222px,64vw,276px)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art {
  height:min(68vw,292px)!important;
  top:46%!important;
  transform:translate(-50%,-50%)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header {
  margin-bottom:20px!important;
}
@media(max-width:360px){
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art {
    height:218px!important;
    top:46%!important;
    transform:translate(-50%,-50%)!important;
  }
}


/* v3.7.15 — larger frameless Halloween art, compact Home header */
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-home-header {
  margin:3px 0 8px!important;
  min-height:0!important;
  padding:0!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup {
  display:block!important;
  height:clamp(190px,55vw,234px)!important;
  min-height:0!important;
  overflow:visible!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-copy {
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  width:100%!important;
  min-height:0!important;
  height:100%!important;
  justify-content:center!important;
  align-items:center!important;
  background:transparent!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art {
  position:absolute!important;
  display:block!important;
  z-index:0!important;
  left:50%!important;
  top:45%!important;
  width:calc(100% + 5px)!important;
  max-width:480px!important;
  height:clamp(214px,63vw,270px)!important;
  max-height:none!important;
  transform:translate(-50%,-50%)!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  pointer-events:none!important;
  opacity:.98!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-seasonal-badge {
  height:clamp(65px,20vw,88px)!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row {
  justify-content:center!important;
  align-items:center!important;
}
html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-title-row .ios-brand-title {
  text-align:center!important;
}
@media (max-width:360px) {
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .ios-brand-lockup {
    height:195px!important;
  }
  html[data-seasonal-icon="halloween"] body.ios-shell-active #iosHomeView .tdr-halloween-hero-art {
    width:calc(100% + 12px)!important;
    height:217px!important;
    top:46%!important;
  }
}
