/* IV_CUSTOM_THEME_ENGINE_V1459 */

/* Continuous, keyboard-accessible rainbow selector. */
.iv-theme-controls:has(.iv1459-theme-picker){
 width:min(380px,calc(100% - 28px));
 margin-inline:auto;
 display:block;
}
.iv1459-theme-picker{
 width:100%;
 display:flex;
 flex-direction:column;
 gap:12px;
 align-items:center;
 padding:12px 16px;
 box-sizing:border-box;
}
.iv1459-theme-label{
 font-size:12px;
 font-weight:650;
 letter-spacing:.03em;
 color:var(--iv1459-text,#f5f7fb);
}
.iv1459-hue-slider{
 -webkit-appearance:none;
 appearance:none;
 display:block;
 width:100%;
 height:13px;
 border:0;
 border-radius:50px;
 margin:8px 0;
 padding:0;
 outline-offset:8px;
 cursor:pointer;
 background:linear-gradient(to right,
 #ff3030 0%,#ffff00 16.67%,
 #00ef4a 33.33%,#00dfff 50%,
 #2440ff 66.67%,#f000ff 83.33%,
 #ff3030 100%)!important;
}
.iv1459-hue-slider::-webkit-slider-thumb{
 -webkit-appearance:none;
 appearance:none;
 width:27px;
 height:27px;
 background:var(--iv-slider-color,#ff9933);
 border:3px solid #fff;
 border-radius:50%;
 box-shadow:0 2px 10px rgba(0,0,0,.45);
}
.iv1459-hue-slider::-moz-range-thumb{
 width:22px;
 height:22px;
 background:var(--iv-slider-color,#ff9933);
 border:3px solid #fff;
 border-radius:50%;
 box-shadow:0 2px 10px rgba(0,0,0,.45);
}
.iv1459-hue-slider:focus-visible{
 outline:3px solid var(--iv-user-color,#ff9933);
}
.iv1459-hue-preview{
 width:13px;
 height:13px;
 border-radius:50%;
 background:var(--iv-user-color,#ff9933);
 border:1px solid rgba(255,255,255,.5);
}

/* Core shared color tokens; preserve original IV logo. */
body[data-iv-custom-color="on"]{
 --iv1459-text:#f5f7fb;
 --iv1459-muted:#bec7d6;
 --iv1459-surface:#10141c;
 color:var(--iv1459-text)!important;
 background-color:#080a10!important;
 background-image:
 radial-gradient(ellipse at 94% 91%,
 rgba(var(--iv-color-rgb),.39) 0%,
 rgba(var(--iv-color-rgb),.13) 32%,
 transparent 68%),
 linear-gradient(140deg,#06080e,#0a0c12)!important;
}
body[data-iv-custom-color="on"] .iv-main,
body[data-iv-custom-color="on"] .cf1050-app{
 background:transparent!important;
 color:var(--iv1459-text)!important;
}
body[data-iv-custom-color="on"] .iv-header,
body[data-iv-custom-color="on"] .iv-bottom-nav,
body[data-iv-custom-color="on"] .cf1050-bottom-nav{
 background:#090c12!important;
 border-color:rgba(var(--iv-color-rgb),.26)!important;
 color:var(--iv1459-text)!important;
}
body[data-iv-custom-color="on"] .iv-clock,
body[data-iv-custom-color="on"] .iv-date{
 color:#f6f7fc!important;
}
body[data-iv-custom-color="on"] .iv-search{
 border-color:var(--iv-user-color)!important;
 background:#11151e!important;
 box-shadow:0 0 0 1px rgba(var(--iv-color-rgb),.08);
}
body[data-iv-custom-color="on"] .iv-search input{
 color:#f5f7fb!important;
 background:transparent!important;
}
body[data-iv-custom-color="on"] .iv-search input::placeholder{
 color:#bfc8d6!important;
}
body[data-iv-custom-color="on"] .search-icon,
body[data-iv-custom-color="on"] .voice-icon,
body[data-iv-custom-color="on"] .iv-nav-link[href="/home"],
body[data-iv-custom-color="on"] .iv-nav-link[aria-current="page"]{
 color:var(--iv-user-color)!important;
}
body[data-iv-custom-color="on"] .iv-nav-link[href="/home"]{
 background:var(--iv-user-color-soft)!important;
 border-color:rgba(var(--iv-color-rgb),.25)!important;
}
body[data-iv-custom-color="on"] :is(
 .cf1050-post-btn,.cf1050-fab,
 .iv1431-publish,.iv1440-submit,.iv1454-submit
 ){
 background:var(--iv-user-color)!important;
 color:var(--iv-user-on-color)!important;
}
body[data-iv-custom-color="on"] :is(
 input,textarea,select,button
 ):focus-visible{
 outline-color:var(--iv-user-color)!important;
}
@media(max-width:640px){
 .iv1459-theme-picker{padding:8px 4px}
 .iv1459-hue-slider{min-height:28px}
}
@media(prefers-reduced-motion:reduce){
 .iv1459-hue-slider{scroll-behavior:auto}
}


/* IV_COMPACT_HEADER_THEME_V1460 */

/* Remove the Home clock and date without changing
   the existing underlying clock functionality. */
body[data-iv-custom-color="on"] .iv-time-area{
 display:none!important;
}

/* Compact centered color selector beneath header. */
.iv-theme-controls.iv1460-header-picker{
 box-sizing:border-box!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 position:relative;
 width:100%!important;
 max-width:none!important;
 height:34px!important;
 min-height:34px!important;
 margin:0!important;
 padding:0 16px!important;
 border:0!important;
 background:rgba(5,8,14,.82)!important;
 grid-column:auto!important;
 grid-row:auto!important;
 z-index:10;
}

/* Remove label and redundant color indicator. */
.iv1460-header-picker .iv1459-theme-label,
.iv1460-header-picker .iv1459-hue-preview{
 display:none!important;
}

/* Preserve the picker, centered in a slim row. */
.iv1460-header-picker .iv1459-theme-picker{
 box-sizing:border-box!important;
 width:min(340px,calc(100% - 16px))!important;
 max-width:340px!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 padding:0!important;
 margin:0!important;
 gap:0!important;
}

/* Thinner rainbow track. */
.iv1460-header-picker .iv1459-hue-slider{
 -webkit-appearance:none!important;
 appearance:none!important;
 display:block!important;
 width:100%!important;
 height:5px!important;
 min-height:5px!important;
 margin:0!important;
 padding:0!important;
 flex:none!important;
 border:0!important;
 border-radius:999px!important;
 cursor:pointer;
 background:linear-gradient(to right,
  #ff3030 0%,#ffff00 16.67%,
  #00ef4a 33.33%,#00dfff 50%,
  #2440ff 66.67%,#f000ff 83.33%,
  #ff3030 100%)!important;
}

/* Small but usable slider handle. */
.iv1460-header-picker
.iv1459-hue-slider::-webkit-slider-thumb{
 -webkit-appearance:none!important;
 appearance:none!important;
 width:19px!important;
 height:19px!important;
 border:2px solid #fff!important;
 border-radius:50%!important;
 background:var(--iv-slider-color,#ff9933)!important;
 box-shadow:0 1px 5px rgba(0,0,0,.4);
}

.iv1460-header-picker
.iv1459-hue-slider::-moz-range-thumb{
 width:15px!important;
 height:15px!important;
 border:2px solid #fff!important;
 border-radius:50%!important;
 background:var(--iv-slider-color,#ff9933)!important;
 box-shadow:0 1px 5px rgba(0,0,0,.4);
}

.iv1460-header-picker .iv1459-hue-slider:focus-visible{
 outline:2px solid var(--iv-user-color,#ff9933);
 outline-offset:7px;
}

/* Prevent older mobile theme grid rules from
   positioning the picker beside the logo. */
@media(max-width:640px){
 .iv-theme-controls.iv1460-header-picker{
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 14px!important;
 }

 .iv1460-header-picker .iv1459-theme-picker{
  width:min(300px,100%)!important;
 }

 .iv1460-header-picker .iv1459-hue-slider{
  height:5px!important;
  min-height:5px!important;
 }
}
