/* v1.14.19 — persistent Light / Dark / System appearance
   Dark mode deliberately reverses the existing monochrome interface palette.
   Uploaded artwork, video, avatars, covers and branding images are counter-filtered
   so their original colors remain unchanged. */
html {
  background: #fff;
}
html[data-theme="dark"] {
  background: #fff;
  color-scheme: light;
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme="dark"] img,
html[data-theme="dark"] picture,
html[data-theme="dark"] video,
html[data-theme="dark"] canvas,
html[data-theme="dark"] iframe,
html[data-theme="dark"] object,
html[data-theme="dark"] embed,
html[data-theme="dark"] input[type="image"] {
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme="dark"] img::selection,
html[data-theme="dark"] video::selection {
  background: transparent;
}
.theme-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border: 1px solid currentColor;
  background: #fff;
  color: #111;
  min-width: 198px;
}
.theme-switcher button {
  appearance: none;
  border: 0;
  border-right: 1px solid currentColor;
  background: transparent;
  color: inherit;
  min-height: 36px;
  padding: 0 11px;
  font: 700 10px/1 "Courier New", Courier, "Liberation Mono", monospace;
  letter-spacing: .035em;
  cursor: pointer;
}
.theme-switcher button:last-child {
  border-right: 0;
}
.theme-switcher button:hover,
.theme-switcher button:focus-visible {
  background: #efefec;
}
.theme-switcher button.is-active,
.theme-switcher button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}
.theme-switcher button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.desktop-menu-theme {
  display: grid;
  gap: 9px;
  padding-top: 3px;
}
.desktop-menu-theme > span,
.mobile-menu-theme > span {
  display: block;
  color: #888;
  font: 700 9px/1.2 "Courier New", Courier, "Liberation Mono", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.desktop-menu-theme .theme-switcher {
  width: 100%;
}
.mobile-menu-theme {
  display: grid;
  gap: 12px;
  margin: 25px 0 4px;
  padding-top: 20px;
  border-top: 1px solid #e9e9e6;
}
.mobile-menu-theme .theme-switcher {
  width: 100%;
  min-width: 0;
}
.mobile-menu-theme .theme-switcher button {
  min-height: 44px;
  font-size: 11px;
}
.admin-theme-switcher .theme-switcher {
  min-width: 178px;
}
.settings-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e9e9e6;
  border: 1px solid #e9e9e6;
}
.settings-theme-option {
  position: relative;
  display: grid;
  gap: 11px;
  min-height: 154px;
  padding: 22px;
  background: #fff;
  cursor: pointer;
}
.settings-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-theme-option strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.035em;
}
.settings-theme-option span {
  color: #777;
  font-size: 11px;
  line-height: 1.55;
}
.settings-theme-option i {
  display: block;
  width: 48px;
  height: 30px;
  border: 1px solid #111;
  background: #fff;
  box-shadow: inset 23px 0 0 #111;
}
.settings-theme-option[data-theme-preview="dark"] i {
  background: #111;
  box-shadow: inset -23px 0 0 #fff;
}
.settings-theme-option[data-theme-preview="system"] i {
  background: linear-gradient(90deg, #fff 0 50%, #111 50% 100%);
  box-shadow: none;
}
.settings-theme-option:has(input:checked) {
  outline: 3px solid #111;
  outline-offset: -3px;
}
.settings-theme-option:focus-within {
  outline: 3px solid #111;
  outline-offset: -3px;
}
@media (max-width: 760px) {
  .settings-theme-options {
    grid-template-columns: 1fr;
  }
  .settings-theme-option {
    min-height: 112px;
    grid-template-columns: 64px 1fr;
    align-items: center;
  }
  .settings-theme-option i {
    grid-row: 1 / span 2;
  }
}
@media (max-width: 900px) {
  .admin-theme-switcher {
    display: none;
  }
}
@media print {
  html[data-theme="dark"] {
    filter: none !important;
    background: #fff !important;
  }
  html[data-theme="dark"] img,
  html[data-theme="dark"] picture,
  html[data-theme="dark"] video,
  html[data-theme="dark"] canvas,
  html[data-theme="dark"] iframe,
  html[data-theme="dark"] object,
  html[data-theme="dark"] embed {
    filter: none !important;
  }
}

/* v1.14.18 compatibility — keep the administrator-selected cover gradient
   visually unchanged while the rest of Dark mode remains inverted. */
html[data-theme="dark"] .ello-profile-hero.has-cover.has-cover-overlay::after{
  filter:invert(1) hue-rotate(180deg);
}

/* v1.14.19 — compact mobile appearance cards and settings chrome */
@media (max-width:640px){
  .settings-theme-options{width:100%;max-width:100%;min-width:0;grid-template-columns:1fr;overflow:hidden}
  .settings-theme-option{width:100%;max-width:100%;min-width:0;min-height:108px;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;gap:7px 14px;padding:17px 15px;overflow:hidden}
  .settings-theme-option i{grid-row:1 / span 2;width:44px;height:28px;align-self:center}
  .settings-theme-option strong{min-width:0;max-width:100%;font-size:clamp(24px,8vw,32px);line-height:1;overflow-wrap:anywhere;white-space:normal}
  .settings-theme-option span{min-width:0;max-width:100%;font-size:10px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
}
