/*
 * V262 — day palette for chapter archive and single chapter pages.
 * Dark mode remains the original design. The reader colour button works as
 * an inversion: global day => light reader, click => dark reader; global dark
 * => dark reader, click => light reader.
 */

/* ---------- shared day tokens ---------- */
html[data-ud-theme="day"] body.udgallu-chapters-archive,
html[data-ud-theme="day"] body.udgallu-single-chapter{
  color-scheme:light;
  --ud-bg:#f3efe5;
  --ud-panel:rgba(255,253,248,.91);
  --ud-text:#2b251e;
  --ud-muted:#756a5e;
  --ud-green:#d66f1f;
  --ud-gold:#b66a20;
  --ud-red:#a84432;
  --ud-border:rgba(151,98,47,.24);
  --ud-border-soft:rgba(76,55,35,.13);
  background:#f3efe5!important;
  color:#2b251e!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-page,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-page{
  background:
    radial-gradient(circle at 18% 12%,rgba(210,111,31,.10),transparent 30%),
    radial-gradient(circle at 82% 42%,rgba(74,104,50,.06),transparent 26%),
    linear-gradient(180deg,#f8f4eb 0%,#f3efe5 48%,#ece4d7 100%)!important;
  color:#2b251e!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive #udgallu-global-fireflies,
html[data-ud-theme="day"] body.udgallu-single-chapter #udgallu-global-fireflies{
  opacity:.62!important;
  mix-blend-mode:multiply!important;
}

/* ---------- shared header ---------- */
html[data-ud-theme="day"] body.udgallu-chapters-archive header.ud-header,
html[data-ud-theme="day"] body.udgallu-single-chapter header.ud-header{
  background:linear-gradient(180deg,rgba(18,17,15,.73),rgba(18,17,15,.48))!important;
  border-bottom-color:rgba(235,142,58,.42)!important;
  box-shadow:0 10px 30px rgba(31,24,17,.18),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(16px) saturate(110%)!important;
  -webkit-backdrop-filter:blur(16px) saturate(110%)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-logo,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-logo,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-desktop-nav>a,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-desktop-nav>a,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-more-toggle,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-language-toggle,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-auth-link,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-auth-register,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-auth-register{
  color:#f7f1e7!important;
  text-shadow:0 2px 8px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-logo>span,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-logo>span{
  color:#f28a2d!important;
  text-shadow:0 2px 8px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-desktop-nav>a:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-desktop-nav>a:hover,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-desktop-nav>a.is-active,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-desktop-nav>a.is-active,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-more-toggle:hover,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-language-toggle:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-language-toggle:hover{
  color:#ff9638!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-desktop-nav>a.is-active::after,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-desktop-nav>a.is-active::after{
  background:linear-gradient(90deg,transparent,#ef8125,transparent)!important;
  box-shadow:0 0 15px rgba(239,129,37,.56)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-language-menu,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-more-dropdown,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-more-dropdown,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-user-dropdown,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-user-dropdown{
  z-index:10120!important;
  background:#fffaf0!important;
  border-color:rgba(92,61,31,.32)!important;
  color:#241c15!important;
  box-shadow:0 22px 62px rgba(28,19,11,.26),inset 0 1px 0 rgba(255,255,255,.98)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-language-menu a,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-language-menu a,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-more-dropdown a,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-more-dropdown a,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-user-dropdown a,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-user-dropdown a{
  color:#241c15!important;
  background:transparent!important;
  border-color:rgba(92,61,31,.13)!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-language-menu a:hover,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-more-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-more-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-header .ud-user-dropdown a:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-header .ud-user-dropdown a:hover{
  color:#a9460b!important;
  background:rgba(216,121,36,.13)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-burger,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-burger{
  border-color:rgba(255,255,255,.30)!important;
  background:rgba(0,0,0,.16)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-burger span,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-burger span{background:#fff8ed!important}

/* ---------- shared theme switches ---------- */
body.udgallu-chapters-archive .ud-theme-switch,
body.udgallu-single-chapter .ud-theme-switch{
  font:inherit;
  cursor:pointer;
}
body.udgallu-chapters-archive .ud-theme-switch-footer,
body.udgallu-single-chapter .ud-theme-switch-footer{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:7px 13px;
  border:1px solid rgba(145,173,104,.28);
  border-radius:999px;
  background:rgba(145,173,104,.07);
  color:#c9c1b3;
}
body.udgallu-chapters-archive .ud-user-dropdown .ud-theme-switch-menu,
body.udgallu-single-chapter .ud-user-dropdown .ud-theme-switch-menu{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:5px;
  padding:10px 11px;
  border:0;
  border-top:1px solid rgba(145,173,104,.15);
  background:transparent;
  color:#e9e1d2;
  text-align:left;
}
body.udgallu-chapters-archive .ud-theme-switch-icon,
body.udgallu-single-chapter .ud-theme-switch-icon{font-size:17px;line-height:1}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-theme-switch-footer,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-theme-switch-footer{
  color:#34291f!important;
  border-color:rgba(134,83,36,.26)!important;
  background:rgba(255,255,255,.62)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-user-dropdown .ud-theme-switch-menu,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-user-dropdown .ud-theme-switch-menu{
  color:#241c15!important;
  border-top-color:rgba(92,61,31,.15)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-theme-switch:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-theme-switch:hover{
  color:#a9460b!important;
  background:rgba(216,121,36,.11)!important;
}

/* ---------- chapter archive hero ---------- */
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-archive-hero{
  background:
    linear-gradient(90deg,rgba(20,15,10,.64),rgba(20,15,10,.18) 48%,rgba(20,15,10,.54)),
    linear-gradient(180deg,rgba(20,15,10,.05) 0%,rgba(243,239,229,.08) 52%,#f3efe5 100%),
    var(--archive-bg)!important;
  background-size:cover!important;
  background-position:center center!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-archive-hero::after{
  background:linear-gradient(180deg,transparent 0%,rgba(243,239,229,.08) 56%,#f3efe5 100%)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-archive-hero h1{
  color:#fff8ee!important;
  text-shadow:0 3px 18px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-breadcrumbs,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-breadcrumbs a{
  color:rgba(255,248,237,.78)!important;
  text-shadow:0 2px 7px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-lead{
  color:#ff9a3d!important;
  text-shadow:0 2px 9px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-sublead{
  color:#fff8ed!important;
  text-shadow:0 2px 9px rgba(0,0,0,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-title-line{
  background:linear-gradient(90deg,#ef8125,transparent)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-title-line::before{background:#ef8125!important}

/* Archive filters */
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-archive-filter-trigger{
  color:#f8eee2!important;
  border-color:rgba(255,255,255,.32)!important;
  background:rgba(24,18,13,.34)!important;
  text-shadow:0 1px 5px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-panel{
  border-top-color:rgba(91,63,38,.18)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-group{
  border-right-color:rgba(91,63,38,.16)!important;
  background:rgba(255,253,248,.62)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-summary{color:#342b22!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-summary strong{color:#2d251e!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-summary small{color:#766957!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-summary-icon,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-summary-arrow{color:#c35f17!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-list{
  background:#fffaf1!important;
  border-color:rgba(110,72,37,.25)!important;
  box-shadow:0 22px 62px rgba(61,42,24,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-btn{color:#62584d!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-btn:hover,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-btn.is-active{
  color:#a9470d!important;
  background:rgba(216,121,36,.11)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-reset-btn{
  color:#b34f0e!important;
  background:rgba(255,255,255,.46)!important;
  border-color:rgba(126,79,35,.18)!important;
}

/* Archive cards */
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-section{
  background:linear-gradient(180deg,rgba(243,239,229,0),#f3efe5 80px)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-card{
  color:#2d271f!important;
  border-color:rgba(124,82,41,.20)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(249,245,237,.96))!important;
  box-shadow:0 12px 34px rgba(72,50,28,.08)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-card:hover{
  border-color:rgba(216,121,36,.56)!important;
  box-shadow:0 18px 50px rgba(72,50,28,.16)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-num{
  color:#b65312!important;
  border-color:rgba(110,72,37,.14)!important;
  background:linear-gradient(180deg,#fbf7ef,#eee4d5)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-main h2{color:#2b241d!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-main p,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-meta{color:#665b4f!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-kicker,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-status{color:#bf5812!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-stars{color:#b66a20!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-arrow{
  color:#b45d18!important;
  border-color:rgba(110,72,37,.14)!important;
  background:rgba(216,121,36,.055)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-card.has-liquid-progress .ud-chapter-num-value{
  color:#fffaf0!important;
  text-shadow:0 2px 8px rgba(75,34,8,.92),0 0 2px rgba(75,34,8,.74)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapter-card.has-liquid-progress .ud-chapter-audio-mark{
  color:#fff1b8!important;
  text-shadow:0 2px 7px rgba(75,34,8,.95),0 0 2px rgba(75,34,8,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapters-page{
  color:#a94c10!important;
  border-color:rgba(130,82,38,.25)!important;
  background:rgba(255,253,248,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-chapters-page.is-current{
  color:#fffaf2!important;
  background:linear-gradient(180deg,#e68b36,#bc5e17)!important;
  border-color:#c86b20!important;
  box-shadow:0 8px 24px rgba(146,72,17,.20)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-empty-message{
  color:#665b4f!important;
  border-color:rgba(124,82,41,.20)!important;
  background:rgba(255,253,248,.78)!important;
}

/* ---------- single chapter hero ---------- */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero::after{
  background:linear-gradient(180deg,transparent 0%,rgba(20,15,10,.12) 46%,rgba(243,239,229,.20) 68%,#f3efe5 100%)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero h1{
  color:#fff8ed!important;
  text-shadow:0 3px 18px rgba(0,0,0,.86)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero .ud-breadcrumbs,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero .ud-breadcrumbs a{
  color:rgba(255,248,237,.78)!important;
  text-shadow:0 2px 7px rgba(0,0,0,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero .ud-chapter-kicker,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero .ud-lead{
  color:#ff9638!important;
  text-shadow:0 2px 9px rgba(0,0,0,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-hero .ud-sublead{
  color:#fff7eb!important;
  text-shadow:0 2px 9px rgba(0,0,0,.82)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-meta-strip{
  border-top-color:rgba(255,255,255,.20)!important;
  background:rgba(13,11,9,.16)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-meta-item{
  border-color:rgba(255,255,255,.14)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-meta-item small{color:rgba(255,244,229,.70)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-meta-item strong{color:#fffaf2!important;text-shadow:0 2px 6px rgba(0,0,0,.70)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-meta-icon{color:#f08a30!important}

/* Single chapter panels and common content */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-section{
  background:linear-gradient(180deg,rgba(243,239,229,0),#f3efe5 70px)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-panel{
  border-color:rgba(124,82,41,.20)!important;
  background:
    radial-gradient(circle at 0 0,rgba(216,121,36,.075),transparent 34%),
    rgba(255,253,248,.91)!important;
  box-shadow:0 18px 56px rgba(72,50,28,.10)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-h2,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-panel .ud-h2,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-location h3,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-extra-audio h3{
  color:#2c251e!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-text,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-text p,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-scene-count,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-reader-save-note{
  color:#6c6155!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-scene-caption,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-location-link,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-reader-save-note a,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-bookmark-status{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-scene-frame{
  border-color:rgba(124,82,41,.20)!important;
  background:#eee8dd!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-current-scene-img{
  filter:drop-shadow(0 18px 35px rgba(61,43,25,.22))!important;
}

/* Reader inversion rules. */
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-shell{
  background:#f7f2e8!important;
  border-color:rgba(74,55,36,.22)!important;
}
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-shell{
  background:#f7f2e8!important;
  border-color:rgba(74,55,36,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-text,
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-text p,
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-text li,
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-text blockquote,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text p,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text li,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text blockquote{
  color:#191713!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-text a,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text a{color:#a7470c!important}
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-progress,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-progress{background:rgba(0,0,0,.12)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-percent,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-percent{color:#3c3329!important}
html[data-ud-theme="day"] body.udgallu-single-chapter:not(.ud-reader-inverted) .ud-reader-progress-fill,
html:not([data-ud-theme="day"]) body.udgallu-single-chapter.ud-reader-inverted .ud-reader-progress-fill{
  background:linear-gradient(180deg,#efb16e,#c65d14)!important;
}

/* In day mode the local reader button inverts the text area back to dark. */
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-shell{
  background:rgba(3,8,7,.91)!important;
  border-color:rgba(224,151,74,.25)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text,
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text p,
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text li,
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text blockquote{
  color:#ddd5c7!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-text a{color:#f19a46!important}
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-progress{background:rgba(255,255,255,.12)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-percent{color:rgba(244,236,222,.78)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter.ud-reader-inverted .ud-reader-progress-fill{
  background:linear-gradient(180deg,#f2c777,#d66f1f)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-reader-tool{
  color:#b64e0c!important;
  border-color:rgba(124,82,41,.24)!important;
  background:rgba(255,255,255,.72)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-reader-tool:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-reader-tool[aria-pressed="true"]{
  color:#fff8ef!important;
  border-color:#c95f14!important;
  background:#c95f14!important;
}

/* Audio, comments, mentions, navigation. */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-audio-player,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-player,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mentions-content{
  color:#332a22!important;
  border-color:rgba(124,82,41,.20)!important;
  background:rgba(247,242,233,.86)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-audio-seek,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-seek{
  background:rgba(75,55,35,.13)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-audio-progress,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-seek span{
  background:linear-gradient(90deg,#dd761f,#b9500d)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-play,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-volume,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-play,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-volume,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-resume-btn,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-submit{
  color:#a9480c!important;
  border-color:rgba(182,91,24,.34)!important;
  background:rgba(216,121,36,.10)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-time,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-duration,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mini-audio-time{color:#65594d!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native label,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native .logged-in-as,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native .comment-notes{color:#6c6155!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native textarea,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native input[type="text"],
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-native input[type="email"]{
  color:#29231c!important;
  border-color:rgba(124,82,41,.22)!important;
  background:#fffdf8!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-thread .comment-body,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-thread p{color:#383027!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-thread .comment-author,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comment-form-title,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-comments #reply-title{color:#b34d0b!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-card{
  color:#302820!important;
  border-color:rgba(124,82,41,.18)!important;
  background:rgba(255,255,255,.60)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-title{color:#2f271f!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body p,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mentions-hint{color:#6d6256!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-gallery,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-gallery-img{border-color:rgba(124,82,41,.20)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-nav-box{
  color:#685d51!important;
  border-color:rgba(124,82,41,.20)!important;
  background:rgba(255,253,248,.78)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-nav-box:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-nav-box.is-current{color:#a9480c!important;border-color:rgba(201,95,20,.46)!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-nav-box strong{color:#b9500d!important}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-inner{
  color:#2d261f!important;
  border-color:rgba(124,82,41,.24)!important;
  background:#fffaf1!important;
  box-shadow:0 18px 52px rgba(60,41,23,.24)!important;
}

/* Sticky audio remains compact but follows the day palette. */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-audio,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-popover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-extra-panel,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-scenes-panel{
  color:#2c251e!important;
  border-color:rgba(124,82,41,.24)!important;
  background:rgba(255,251,243,.97)!important;
  box-shadow:0 20px 60px rgba(61,42,24,.22)!important;
}

/* ---------- shared footer ---------- */
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer{
  color:#4f453a!important;
  border-top-color:rgba(99,70,41,.17)!important;
  background:rgba(237,229,216,.94)!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer .ud-logo,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer .ud-logo{color:#352d25!important;text-shadow:none!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer .ud-logo span,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer .ud-logo span{color:#bd5913!important;text-shadow:none!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer p,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer p,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer-sources-bottom,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer-sources-bottom,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-copyright,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-copyright{color:#6d6256!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer-source b,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer-source b,
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer-feedback b,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer-feedback b{color:#493d32!important}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-footer-feedback,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-footer-feedback{
  border-color:rgba(124,82,41,.22)!important;
  background:rgba(255,255,255,.48)!important;
}

/* ---------- mobile day menu ---------- */
@media(max-width:900px){
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-menu,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-menu{
    background:radial-gradient(circle at 30% 0%,rgba(216,121,36,.10),transparent 38%),rgba(248,243,233,.987)!important;
    border-color:rgba(73,53,34,.20)!important;
    box-shadow:0 28px 80px rgba(42,30,18,.24)!important;
    color:#17130f!important;
  }
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-links a,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-links a{
    color:#17130f!important;
    border-bottom-color:rgba(73,53,34,.14)!important;
  }
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-links a:hover,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-links a:hover,
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-links a.is-active,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-links a.is-active{color:#c85f0f!important}
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-language-title,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-language-title,
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-more-title,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-more-title{color:#6f5b48!important}
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-mobile-language-list a,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-mobile-language-list a,
  html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-theme-switch-mobile,
  html[data-ud-theme="day"] body.udgallu-single-chapter .ud-theme-switch-mobile{
    color:#17130f!important;
    border:1px solid rgba(124,77,37,.24)!important;
    background:rgba(255,255,255,.58)!important;
  }
  body.udgallu-chapters-archive .ud-theme-switch-mobile,
  body.udgallu-single-chapter .ud-theme-switch-mobile{
    width:100%;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    margin-top:18px;
    border:1px solid rgba(145,173,104,.26);
    border-radius:9px;
    background:rgba(145,173,104,.08);
    color:#e9e1d2;
  }
}

/* ========================================================================== 
   V262.1 — precise day-theme fixes for chapter archive and single chapter
   ========================================================================== */

/* Chapter archive: filter cells and reset control stay transparent. */
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-filter-group{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-reset-btn{
  background:transparent!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-chapters-archive .ud-reset-btn:hover{
  background:rgba(216,121,36,.08)!important;
}

/* Chapter mentions: orange names, dark readable descriptions. */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mentions-content,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mentions-group{
  color:#302820!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mentions-group h3{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body small{
  color:#817263!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body strong,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-title{
  color:#bd570f!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body span,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body p{
  color:#5f554a!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-body em{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-chapter-mention-thumb{
  border-right-color:rgba(124,82,41,.16)!important;
}

/* Sticky audio playlist: complete daylight palette, including generated rows. */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-playlist{
  color:#2c251e!important;
  border:1px solid rgba(124,82,41,.24)!important;
  background:#fffaf2!important;
  box-shadow:0 20px 60px rgba(61,42,24,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-playlist-head{
  color:#b9500d!important;
  border-bottom-color:rgba(124,82,41,.16)!important;
  background:#f8f0e4!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track{
  color:#342b22!important;
  border-bottom-color:rgba(124,82,41,.13)!important;
  background:transparent!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track:hover,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track.is-active{
  color:#2a211a!important;
  background:rgba(216,121,36,.10)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track strong{
  color:#342b22!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track small{
  color:#776a5d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track span,
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-sticky-track .ud-sticky-track-play{
  color:#c45d12!important;
}

/* Chapter term informer: one thin border, cream surface, dark typography. */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip{
  padding:10px!important;
  color:#302820!important;
  border:1px solid rgba(177,91,25,.38)!important;
  background:#fffaf1!important;
  box-shadow:0 18px 46px rgba(60,41,23,.22)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-inner{
  color:#302820!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-img{
  border:1px solid rgba(124,82,41,.20)!important;
  background:#f3eadc!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-type{
  color:#748e48!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-title{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-desc{
  color:#5f554a!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-link{
  color:#b9500d!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-term-tooltip-link:hover{
  color:#8e3908!important;
}

/* ========================================================================== 
   V262.2 — chapter tutorial daylight palette
   ========================================================================== */
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-backdrop,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-backdrop{
  background:rgba(74,58,40,.30)!important;
  backdrop-filter:blur(4px)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-card,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-card{
  color:#302820!important;
  border:1px solid rgba(190,91,17,.42)!important;
  background:linear-gradient(145deg,#fffaf1,#f5ecde)!important;
  box-shadow:0 26px 90px rgba(64,43,22,.30),0 0 30px rgba(210,104,24,.12)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-close,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-close{
  color:#a9470a!important;
  border-color:rgba(177,81,14,.34)!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-close:hover,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-close:hover{
  color:#7d3005!important;
  background:#fff!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-kicker,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-kicker{
  color:#bd570f!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-title,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-title{
  color:#302820!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-icon,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-icon{
  color:#bd570f!important;
  background:radial-gradient(circle,rgba(216,121,36,.20),rgba(216,121,36,.07) 58%,transparent 74%)!important;
  text-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-text,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-text{
  color:#5b5045!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-dot,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-dot{
  background:rgba(74,61,47,.30)!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-dot.is-active,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-dot.is-active{
  background:#e47720!important;
  box-shadow:0 0 10px rgba(216,105,24,.35)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-btn,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-btn{
  color:#684523!important;
  border-color:rgba(177,81,14,.38)!important;
  background:rgba(255,255,255,.58)!important;
  box-shadow:none!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-btn:hover,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-btn:hover{
  color:#883604!important;
  background:#fff!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-btn.is-primary,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-btn.is-primary{
  color:#fffaf1!important;
  border-color:#c95f10!important;
  background:linear-gradient(135deg,#c75c0d,#ef862b)!important;
  box-shadow:0 8px 20px rgba(181,75,7,.20)!important;
}
html[data-ud-theme="day"] body.udgallu-single-chapter .ud-tutorial-btn.is-primary:hover,
html[data-ud-theme="day"] body.single-chapters .ud-tutorial-btn.is-primary:hover{
  color:#fff!important;
  background:linear-gradient(135deg,#ad4606,#df701d)!important;
}

