/* ==========================================================================
   OpenList v4.2.6 Warm Theme (theme.css)
   Cream & Peach Theme with Hope UI Palette Overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   Light Mode Palette Overrides (:root, body.hope-ui-light)
   -------------------------------------------------------------------------- */
:root,
body.hope-ui-light,
body.hope-ui-light * {
  /* Brand Tokens */
  --jx-cream: #fbf7ef;
  --jx-card: #fffdf8;
  --jx-line: #efe4d3;
  --jx-peach: #e8875a;
  --jx-text: #4a3b30;

  /* Primary Palette (Warm Peach / Terracotta Scale 1-12) */
  --hope-colors-primary1: #fefcf9 !important;
  --hope-colors-primary2: #fdf6ef !important;
  --hope-colors-primary3: #fbeee2 !important;
  --hope-colors-primary4: #f8e3d3 !important;
  --hope-colors-primary5: #f4d5c1 !important;
  --hope-colors-primary6: #efc4aa !important;
  --hope-colors-primary7: #e8ad8c !important;
  --hope-colors-primary8: #e09468 !important;
  --hope-colors-primary9: #e8875a !important;
  --hope-colors-primary10: #db7a4d !important;
  --hope-colors-primary11: #b8643c !important;
  --hope-colors-primary12: #5a2e18 !important;

  /* Info Palette (Eliminate blue: mapped to Warm Peach / Terracotta) */
  --hope-colors-info1: #fefcf9 !important;
  --hope-colors-info2: #fdf6ef !important;
  --hope-colors-info3: #fbeee2 !important;
  --hope-colors-info4: #f8e3d3 !important;
  --hope-colors-info5: #f4d5c1 !important;
  --hope-colors-info6: #efc4aa !important;
  --hope-colors-info7: #e8ad8c !important;
  --hope-colors-info8: #e09468 !important;
  --hope-colors-info9: #e8875a !important;
  --hope-colors-info10: #db7a4d !important;
  --hope-colors-info11: #b8643c !important;
  --hope-colors-info12: #5a2e18 !important;

  /* Accent Palette (Eliminate purple: mapped to Warm Peach / Terracotta) */
  --hope-colors-accent1: #fefcf9 !important;
  --hope-colors-accent2: #fdf6ef !important;
  --hope-colors-accent3: #fbeee2 !important;
  --hope-colors-accent4: #f8e3d3 !important;
  --hope-colors-accent5: #f4d5c1 !important;
  --hope-colors-accent6: #efc4aa !important;
  --hope-colors-accent7: #e8ad8c !important;
  --hope-colors-accent8: #e09468 !important;
  --hope-colors-accent9: #e8875a !important;
  --hope-colors-accent10: #db7a4d !important;
  --hope-colors-accent11: #b8643c !important;
  --hope-colors-accent12: #5a2e18 !important;

  /* Neutral Palette (Warm Sand & Cream Scale) */
  --hope-colors-neutral1: #fdfbf7 !important;
  --hope-colors-neutral2: #faf6ef !important;
  --hope-colors-neutral3: #f5efe5 !important;
  --hope-colors-neutral4: #f0e8dc !important;
  --hope-colors-neutral5: #ebe2d4 !important;
  --hope-colors-neutral6: #e5dacb !important;
  --hope-colors-neutral7: #dccfbd !important;
  --hope-colors-neutral8: #cbbba5 !important;
  --hope-colors-neutral9: #9c8d7b !important;
  --hope-colors-neutral10: #918371 !important;
  --hope-colors-neutral11: #6e6050 !important;
  --hope-colors-neutral12: #2e241c !important;

  /* Warning Palette (Warmed Amber / Golden Honey Scale) */
  --hope-colors-warning1: #fefdfa !important;
  --hope-colors-warning2: #fef8ed !important;
  --hope-colors-warning3: #fdf0d7 !important;
  --hope-colors-warning4: #fce5be !important;
  --hope-colors-warning5: #f9d8a1 !important;
  --hope-colors-warning6: #f5c77f !important;
  --hope-colors-warning7: #efb057 !important;
  --hope-colors-warning8: #e4952b !important;
  --hope-colors-warning9: #d97706 !important;
  --hope-colors-warning10: #b45309 !important;
  --hope-colors-warning11: #8d3e00 !important;
  --hope-colors-warning12: #4e2503 !important;

  /* Danger Palette (Warmed Terracotta Crimson Scale) */
  --hope-colors-danger1: #fefcfb !important;
  --hope-colors-danger2: #fdf4f2 !important;
  --hope-colors-danger3: #fbe7e4 !important;
  --hope-colors-danger4: #f8d5cf !important;
  --hope-colors-danger5: #f3bfb6 !important;
  --hope-colors-danger6: #eca397 !important;
  --hope-colors-danger7: #e17f70 !important;
  --hope-colors-danger8: #d65745 !important;
  --hope-colors-danger9: #c73e2d !important;
  --hope-colors-danger10: #b53424 !important;
  --hope-colors-danger11: #972719 !important;
  --hope-colors-danger12: #4d140e !important;

  /* Success Palette (Warm Sage / Olive Green Scale) */
  --hope-colors-success1: #fbfdfb !important;
  --hope-colors-success2: #f2faf4 !important;
  --hope-colors-success3: #e4f4e9 !important;
  --hope-colors-success4: #d2ebdb !important;
  --hope-colors-success5: #bcdec9 !important;
  --hope-colors-success6: #9fcbb0 !important;
  --hope-colors-success7: #7ab390 !important;
  --hope-colors-success8: #55976e !important;
  --hope-colors-success9: #3b7f54 !important;
  --hope-colors-success10: #316f48 !important;
  --hope-colors-success11: #245837 !important;
  --hope-colors-success12: #122e1c !important;

  /* Hope UI Semantics */
  --hope-colors-background: #fbf7ef !important;
  --hope-colors-loContrast: #fffdf8 !important;
  --hope-colors-focusRing: rgba(232, 135, 90, 0.4) !important;
  --hope-colors-closeButtonHoverBackground: rgba(74, 59, 48, 0.08) !important;
  --hope-colors-closeButtonActiveBackground: rgba(74, 59, 48, 0.14) !important;
}

/* --------------------------------------------------------------------------
   Dark Mode Palette Overrides (body.hope-ui-dark)
   -------------------------------------------------------------------------- */
html body.hope-ui-dark,
body.hope-ui-dark,
body.hope-ui-dark * {
  /* Brand Tokens (Dark) */
  --jx-cream: #1f1a16;
  --jx-card: #2a231d;
  --jx-line: rgba(255, 220, 190, 0.08);
  --jx-peach: #e8875a;
  --jx-text: #efe4d6;

  /* Primary Palette Dark (Scale 1-12) */
  --hope-colors-primary1: #1f1915 !important;
  --hope-colors-primary2: #2a1f19 !important;
  --hope-colors-primary3: #3a2519 !important;
  --hope-colors-primary4: #46291a !important;
  --hope-colors-primary5: #52301f !important;
  --hope-colors-primary6: #633b27 !important;
  --hope-colors-primary7: #7d4b32 !important;
  --hope-colors-primary8: #a3613f !important;
  --hope-colors-primary9: #e8875a !important;
  --hope-colors-primary10: #f0996f !important;
  --hope-colors-primary11: #f0a882 !important;
  --hope-colors-primary12: #fbe3d4 !important;

  /* Info Palette Dark (Eliminate blue: mapped to Warm Peach Dark Scale) */
  --hope-colors-info1: #1f1915 !important;
  --hope-colors-info2: #2a1f19 !important;
  --hope-colors-info3: #3a2519 !important;
  --hope-colors-info4: #46291a !important;
  --hope-colors-info5: #52301f !important;
  --hope-colors-info6: #633b27 !important;
  --hope-colors-info7: #7d4b32 !important;
  --hope-colors-info8: #a3613f !important;
  --hope-colors-info9: #e8875a !important;
  --hope-colors-info10: #f0996f !important;
  --hope-colors-info11: #f0a882 !important;
  --hope-colors-info12: #fbe3d4 !important;

  /* Accent Palette Dark (Eliminate purple: mapped to Warm Peach Dark Scale) */
  --hope-colors-accent1: #1f1915 !important;
  --hope-colors-accent2: #2a1f19 !important;
  --hope-colors-accent3: #3a2519 !important;
  --hope-colors-accent4: #46291a !important;
  --hope-colors-accent5: #52301f !important;
  --hope-colors-accent6: #633b27 !important;
  --hope-colors-accent7: #7d4b32 !important;
  --hope-colors-accent8: #a3613f !important;
  --hope-colors-accent9: #e8875a !important;
  --hope-colors-accent10: #f0996f !important;
  --hope-colors-accent11: #f0a882 !important;
  --hope-colors-accent12: #fbe3d4 !important;

  /* Neutral Palette Dark (Warm Dark Neutrals Scale) */
  --hope-colors-neutral1: #1f1a16 !important;
  --hope-colors-neutral2: #241e1a !important;
  --hope-colors-neutral3: #2a231d !important;
  --hope-colors-neutral4: #312922 !important;
  --hope-colors-neutral5: #372e27 !important;
  --hope-colors-neutral6: #3e342c !important;
  --hope-colors-neutral7: #4a3f36 !important;
  --hope-colors-neutral8: #5e5045 !important;
  --hope-colors-neutral9: #8a7a6c !important;
  --hope-colors-neutral10: #978777 !important;
  --hope-colors-neutral11: #c4b4a4 !important;
  --hope-colors-neutral12: #efe4d6 !important;

  /* Warning Palette Dark (Warmed Amber Dark Scale) */
  --hope-colors-warning1: #21180d !important;
  --hope-colors-warning2: #2d200e !important;
  --hope-colors-warning3: #3d2b11 !important;
  --hope-colors-warning4: #4b3413 !important;
  --hope-colors-warning5: #5c3f15 !important;
  --hope-colors-warning6: #704c18 !important;
  --hope-colors-warning7: #8c5f1c !important;
  --hope-colors-warning8: #b37920 !important;
  --hope-colors-warning9: #f59e0b !important;
  --hope-colors-warning10: #fbbf24 !important;
  --hope-colors-warning11: #fcd34d !important;
  --hope-colors-warning12: #fef3c7 !important;

  /* Danger Palette Dark (Warmed Terracotta Crimson Dark Scale) */
  --hope-colors-danger1: #221414 !important;
  --hope-colors-danger2: #2d1819 !important;
  --hope-colors-danger3: #3d1d1e !important;
  --hope-colors-danger4: #4c2122 !important;
  --hope-colors-danger5: #5d2628 !important;
  --hope-colors-danger6: #722d30 !important;
  --hope-colors-danger7: #90363a !important;
  --hope-colors-danger8: #ba4247 !important;
  --hope-colors-danger9: #e55353 !important;
  --hope-colors-danger10: #ef6b6b !important;
  --hope-colors-danger11: #f88b8b !important;
  --hope-colors-danger12: #fde8e8 !important;

  /* Success Palette Dark (Warm Sage Dark Scale) */
  --hope-colors-success1: #131f17 !important;
  --hope-colors-success2: #17291d !important;
  --hope-colors-success3: #1d3726 !important;
  --hope-colors-success4: #22442e !important;
  --hope-colors-success5: #295337 !important;
  --hope-colors-success6: #326643 !important;
  --hope-colors-success7: #3e8054 !important;
  --hope-colors-success8: #4fa56c !important;
  --hope-colors-success9: #5bb981 !important;
  --hope-colors-success10: #6bc490 !important;
  --hope-colors-success11: #8ed7ab !important;
  --hope-colors-success12: #d8f3e2 !important;

  /* Hope UI Semantics Dark */
  --hope-colors-background: #1f1a16 !important;
  --hope-colors-loContrast: #2a231d !important;
  --hope-colors-focusRing: rgba(232, 135, 90, 0.4) !important;
  --hope-colors-closeButtonHoverBackground: rgba(255, 255, 255, 0.08) !important;
  --hope-colors-closeButtonActiveBackground: rgba(255, 255, 255, 0.14) !important;
}

/* --------------------------------------------------------------------------
   Global Typography & Backgrounds
   -------------------------------------------------------------------------- */
body.hope-ui-light {
  background: var(--jx-cream) !important;
  color: var(--jx-text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif !important;
}

body.hope-ui-dark {
  background: #1f1a16 !important;
  color: #efe4d6;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif !important;
}

body.hope-ui-light .hope-ui-light,
body.hope-ui-light #root > div {
  background-color: transparent;
}

::selection {
  background: #f6c9ad;
  color: #2e241c;
}

body.hope-ui-dark ::selection {
  background: #7d4b32;
  color: #fbe3d4;
}

/* --------------------------------------------------------------------------
   Base Component Rounding & General Controls
   -------------------------------------------------------------------------- */
button,
input,
textarea,
select,
.hope-input,
.hope-button,
.hope-select__trigger,
.hope-textarea {
  border-radius: 12px !important;
}

/* Rounded Cards & Surfaces */
.obj-box,
.readme,
.markdown-body {
  border-radius: 18px !important;
  box-shadow: 0 6px 24px rgba(160, 110, 60, 0.08) !important;
  border: 1px solid var(--jx-line);
}

.hope-ui-light .obj-box,
.hope-ui-light .readme,
.hope-ui-light .hope-c-PJLV-iigjoxS-css,
.hope-ui-light .nav,
.hope-ui-light .header + div .hope-stack > div {
  border-radius: 18px !important;
}

.hope-ui-light .obj-box,
.hope-ui-light .readme-box,
.hope-ui-light .markdown-body {
  background: var(--jx-card) !important;
}

.hope-ui-dark .obj-box,
.hope-ui-dark .readme,
.hope-ui-dark .markdown-body {
  background: #2a231d !important;
  border-color: rgba(255, 220, 190, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

.hope-ui-dark .obj-box * {
  border-color: rgba(255, 220, 190, 0.08);
}

.hope-ui-dark .hope-text,
.hope-ui-dark .list-item {
  color: #efe4d6;
}

/* --------------------------------------------------------------------------
   Public Header & List/Grid Items
   -------------------------------------------------------------------------- */
.hope-ui-light .header {
  background: rgba(251, 247, 239, 0.85) !important;
  backdrop-filter: blur(10px);
}

.hope-ui-dark .header {
  background: rgba(31, 26, 22, 0.85) !important;
  backdrop-filter: blur(10px);
}

.header img,
.header .hope-image {
  border-radius: 50% !important;
}

.list-item,
.grid-item {
  border-radius: 12px !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hope-ui-light .list-item:hover,
.hope-ui-light .grid-item:hover {
  background: #f7ecdf !important;
}

.hope-ui-dark .list-item:hover,
.hope-ui-dark .grid-item:hover {
  background: rgba(232, 135, 90, 0.12) !important;
}

/* Footer */
.footer,
footer {
  opacity: 0.75;
  font-size: 12px;
}

.footer a {
  color: var(--jx-peach) !important;
}

/* --------------------------------------------------------------------------
   Breadcrumbs with Warm House Icon
   -------------------------------------------------------------------------- */
nav.nav {
  background: var(--jx-card) !important;
  border: 1px solid var(--jx-line);
  border-radius: 14px !important;
  padding: 0.45rem 0.9rem !important;
  box-shadow: 0 4px 16px rgba(160, 110, 60, 0.06);
}

.hope-ui-dark nav.nav {
  background: #2a231d !important;
  border-color: rgba(255, 220, 190, 0.08);
  box-shadow: none;
}

nav.nav .nav-link,
.hope-breadcrumb__link {
  color: #b8643c !important;
  font-weight: 500;
}

.hope-ui-dark nav.nav .nav-link,
.hope-ui-dark .hope-breadcrumb__link {
  color: #f0a882 !important;
}

nav.nav li:first-child .nav-link::before,
.hope-breadcrumb__item:first-child .hope-breadcrumb__link::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23e8875a%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3.5%2011%2012%204l8.5%207%27%20/%3E%3Cpath%20d%3D%27M5.5%209.5V19a1.5%201.5%200%200%200%201.5%201.5h10a1.5%201.5%200%200%200%201.5-1.5V9.5%27%20fill%3D%27%23e8875a%27%20fill-opacity%3D%27.14%27/%3E%3Cpath%20d%3D%27M10%2020.5v-5a2%202%200%200%201%204%200v5%27/%3E%3C/svg%3E") center/contain no-repeat;
  margin-right: 0.4em;
  vertical-align: -0.15em;
}

/* --------------------------------------------------------------------------
   Login Page Styling
   -------------------------------------------------------------------------- */
#root > .hope-center {
  background: var(--jx-cream) !important;
}

body.hope-ui-dark #root > .hope-center {
  background: #1f1a16 !important;
}

#root > .hope-center > div:not(.hope-stack) {
  display: none !important;
}

#root > .hope-center > .hope-stack {
  background: var(--jx-card) !important;
  border: 1px solid var(--jx-line);
  border-radius: 22px !important;
  box-shadow: 0 12px 40px rgba(160, 110, 60, 0.12) !important;
  padding: 2.2rem 2rem !important;
}

.hope-ui-dark #root > .hope-center > .hope-stack {
  background: #2a231d !important;
  border-color: rgba(255, 220, 190, 0.08) !important;
}

#root > .hope-center h2 {
  color: var(--jx-peach) !important;
}

#root > .hope-center img {
  border-radius: 50% !important;
}

#root > .hope-center input.hope-input {
  background: #f6efe4 !important;
}

.hope-ui-dark #root > .hope-center input.hope-input {
  background: #342b24 !important;
}

#root > .hope-center button.hope-button {
  background: #f8e6d9 !important;
  color: #b8643c !important;
}

#root > .hope-center .hope-stack .hope-stack button:nth-child(2) {
  background: var(--jx-peach) !important;
  color: #ffffff !important;
}

.hope-ui-dark #root > .hope-center button.hope-button {
  background: rgba(232, 135, 90, 0.15) !important;
  color: #f0a882 !important;
}

/* Checkbox & Radios */
.hope-checkbox__control[data-checked],
.hope-radio__control[data-checked] {
  background-color: var(--jx-peach) !important;
  border-color: var(--jx-peach) !important;
  color: #ffffff !important;
}

.hope-checkbox__control:focus,
.hope-checkbox__control[data-focus],
.hope-radio__control:focus,
.hope-radio__control[data-focus] {
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.25) !important;
}

a.hope-text {
  color: #a88b72 !important;
}

/* ==========================================================================
   Admin Backend (/@manage) Styling
   ========================================================================== */

/* Top Header Bar ('OpenList Management' title is blue originally) */
header .hope-heading,
.hope-drawer__header {
  color: var(--jx-peach) !important;
  font-weight: 700 !important;
}

header {
  border-bottom: 1px solid var(--jx-line) !important;
  background-color: var(--jx-card) !important;
}

body.hope-ui-dark header {
  border-bottom: 1px solid rgba(255, 220, 190, 0.08) !important;
  background-color: #241e1a !important;
}

/* Left Sidebar Navigation (active item bluish bg originally) */
.hope-ui-light [style*="calc(100vh - 64px)"] > div:first-child {
  border-right: 1px solid var(--jx-line) !important;
  background-color: var(--jx-card) !important;
}

.hope-ui-dark [style*="calc(100vh - 64px)"] > div:first-child {
  border-right: 1px solid rgba(255, 220, 190, 0.08) !important;
  background-color: #241e1a !important;
}

/* Sidebar Nav Items */
.hope-ui-light [style*="calc(100vh - 64px)"] a,
.hope-ui-light [style*="calc(100vh - 64px)"] .hope-anchor,
.hope-drawer__content a,
.hope-drawer__content .hope-anchor {
  color: var(--hope-colors-neutral11) !important;
  border-radius: 10px !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hope-ui-light [style*="calc(100vh - 64px)"] a:hover,
.hope-ui-light [style*="calc(100vh - 64px)"] .hope-anchor:hover,
.hope-drawer__content a:hover,
.hope-drawer__content .hope-anchor:hover {
  background-color: #f7ecdf !important;
  color: var(--jx-text) !important;
}

/* Active Nav Item */
.hope-ui-light a[style*="info4"],
.hope-ui-light .hope-anchor[style*="info4"],
.hope-ui-light a[aria-current="page"],
.hope-ui-light .hope-anchor[aria-current="page"],
.hope-ui-light a[data-active="true"] {
  background-color: #f8e3d3 !important;
  color: #b8643c !important;
  font-weight: 600 !important;
}

.hope-ui-dark [style*="calc(100vh - 64px)"] a,
.hope-ui-dark [style*="calc(100vh - 64px)"] .hope-anchor,
.hope-ui-dark .hope-drawer__content a,
.hope-ui-dark .hope-drawer__content .hope-anchor {
  color: #c4b4a4 !important;
  border-radius: 10px !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hope-ui-dark [style*="calc(100vh - 64px)"] a:hover,
.hope-ui-dark [style*="calc(100vh - 64px)"] .hope-anchor:hover,
.hope-ui-dark .hope-drawer__content a:hover,
.hope-ui-dark .hope-drawer__content .hope-anchor:hover {
  background-color: rgba(232, 135, 90, 0.12) !important;
  color: #fbe3d4 !important;
}

.hope-ui-dark a[style*="info4"],
.hope-ui-dark .hope-anchor[style*="info4"],
.hope-ui-dark a[aria-current="page"],
.hope-ui-dark .hope-anchor[aria-current="page"],
.hope-ui-dark a[data-active="true"] {
  background-color: rgba(232, 135, 90, 0.2) !important;
  color: #f0a882 !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   Inputs, Textareas, Selects
   -------------------------------------------------------------------------- */
.hope-ui-light .hope-input,
.hope-ui-light .hope-textarea,
.hope-ui-light .hope-select__trigger {
  background-color: var(--jx-card) !important;
  border: 1px solid var(--jx-line) !important;
  color: var(--jx-text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.hope-ui-light .hope-input:focus,
.hope-ui-light .hope-textarea:focus,
.hope-ui-light .hope-select__trigger:focus,
.hope-ui-light .hope-select__trigger[data-focus],
.hope-ui-light .hope-select__trigger[aria-expanded="true"] {
  border-color: var(--jx-peach) !important;
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.25) !important;
  outline: none !important;
}

.hope-ui-dark .hope-input,
.hope-ui-dark .hope-textarea,
.hope-ui-dark .hope-select__trigger {
  background-color: #2a231d !important;
  border: 1px solid rgba(255, 220, 190, 0.12) !important;
  color: #efe4d6 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.hope-ui-dark .hope-input:focus,
.hope-ui-dark .hope-textarea:focus,
.hope-ui-dark .hope-select__trigger:focus,
.hope-ui-dark .hope-select__trigger[data-focus],
.hope-ui-dark .hope-select__trigger[aria-expanded="true"] {
  border-color: var(--jx-peach) !important;
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.3) !important;
  outline: none !important;
}

/* Placeholder colors */
::placeholder,
.hope-select__placeholder {
  color: #9c8d7b !important;
}

.hope-ui-dark ::placeholder,
.hope-ui-dark .hope-select__placeholder {
  color: #8a7a6c !important;
}

/* --------------------------------------------------------------------------
   Switches (Eliminate blue toggle)
   -------------------------------------------------------------------------- */
.hope-switch__control {
  background-color: var(--hope-colors-neutral6) !important;
  border-color: transparent !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.hope-switch__control[data-checked],
.hope-switch[data-checked] .hope-switch__control,
.hope-switch input:checked + .hope-switch__control,
.hope-switch input:checked ~ .hope-switch__control {
  background-color: var(--jx-peach) !important;
  border-color: var(--jx-peach) !important;
  color: #ffffff !important;
}

.hope-switch__control::before {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(74, 59, 48, 0.25) !important;
}

.hope-switch__control:focus,
.hope-switch__control[data-focus] {
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.28) !important;
}

.hope-ui-dark .hope-switch__control {
  background-color: #3e342c !important;
}

.hope-ui-dark .hope-switch__control[data-checked],
.hope-ui-dark .hope-switch[data-checked] .hope-switch__control,
.hope-ui-dark .hope-switch input:checked + .hope-switch__control,
.hope-ui-dark .hope-switch input:checked ~ .hope-switch__control {
  background-color: var(--jx-peach) !important;
  border-color: var(--jx-peach) !important;
}

/* --------------------------------------------------------------------------
   Buttons (Eliminate purple, blue, harsh yellow)
   -------------------------------------------------------------------------- */
.hope-button,
.hope-icon-button {
  font-weight: 500 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.hope-button:focus,
.hope-button[data-focus],
.hope-icon-button:focus,
.hope-icon-button[data-focus] {
  box-shadow: 0 0 0 3px rgba(232, 135, 90, 0.28) !important;
}

/* Subtle Primary, Accent (purple) & Info (blue) Buttons -> Warm Terracotta/Peach */
.hope-ui-light .hope-button--subtle-primary,
.hope-ui-light .hope-button--subtle-accent,
.hope-ui-light .hope-button--subtle-info {
  background-color: #fbeee2 !important;
  color: #b8643c !important;
  border-color: transparent !important;
}

.hope-ui-light .hope-button--subtle-primary:hover,
.hope-ui-light .hope-button--subtle-accent:hover,
.hope-ui-light .hope-button--subtle-info:hover {
  background-color: #f8e3d3 !important;
  color: #5a2e18 !important;
}

.hope-ui-dark .hope-button--subtle-primary,
.hope-ui-dark .hope-button--subtle-accent,
.hope-ui-dark .hope-button--subtle-info {
  background-color: #3a2519 !important;
  color: #f0a882 !important;
  border-color: transparent !important;
}

.hope-ui-dark .hope-button--subtle-primary:hover,
.hope-ui-dark .hope-button--subtle-accent:hover,
.hope-ui-dark .hope-button--subtle-info:hover {
  background-color: #46291a !important;
  color: #fbe3d4 !important;
}

/* Solid Buttons (Primary, Accent, Info) */
.hope-button--solid-primary,
.hope-button--solid-accent,
.hope-button--solid-info {
  background-color: var(--jx-peach) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.hope-button--solid-primary:hover,
.hope-button--solid-accent:hover,
.hope-button--solid-info:hover {
  background-color: #db7a4d !important;
}

/* Subtle Warning (Yellow) Buttons -> Warm Honey Amber with Readable Contrast */
.hope-ui-light .hope-button--subtle-warning {
  background-color: #fef0d7 !important;
  color: #9a4c00 !important;
  border-color: transparent !important;
}

.hope-ui-light .hope-button--subtle-warning:hover {
  background-color: #fce5be !important;
  color: #6d3300 !important;
}

.hope-ui-dark .hope-button--subtle-warning {
  background-color: #3d2b11 !important;
  color: #fcd34d !important;
  border-color: transparent !important;
}

.hope-ui-dark .hope-button--subtle-warning:hover {
  background-color: #4b3413 !important;
  color: #fef3c7 !important;
}

/* Solid Warning Buttons */
.hope-ui-light .hope-button--solid-warning {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.hope-ui-light .hope-button--solid-warning:hover {
  background-color: #b45309 !important;
}

.hope-ui-dark .hope-button--solid-warning {
  background-color: #f59e0b !important;
  color: #21180d !important;
  border-color: transparent !important;
}

.hope-ui-dark .hope-button--solid-warning:hover {
  background-color: #fbbf24 !important;
}

/* Subtle Danger Buttons */
.hope-ui-light .hope-button--subtle-danger {
  background-color: #fbe7e4 !important;
  color: #972719 !important;
  border-color: transparent !important;
}

.hope-ui-light .hope-button--subtle-danger:hover {
  background-color: #f8d5cf !important;
  color: #721c11 !important;
}

.hope-ui-dark .hope-button--subtle-danger {
  background-color: #3d1d1e !important;
  color: #f88b8b !important;
  border-color: transparent !important;
}

.hope-ui-dark .hope-button--subtle-danger:hover {
  background-color: #4c2122 !important;
  color: #fde8e8 !important;
}

/* Solid Danger Buttons */
.hope-button--solid-danger {
  background-color: #c73e2d !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.hope-button--solid-danger:hover {
  background-color: #b53424 !important;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.hope-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--jx-line) !important;
}

.hope-ui-light .hope-thead {
  background-color: #faf6ef !important;
}

.hope-ui-light .hope-th {
  color: #6e6050 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--jx-line) !important;
  padding: 0.75rem 1rem !important;
}

.hope-ui-light .hope-td {
  color: var(--jx-text) !important;
  border-bottom: 1px solid var(--jx-line) !important;
  padding: 0.75rem 1rem !important;
}

.hope-ui-light .hope-tr:hover td,
.hope-ui-light .hope-table tbody tr:hover td {
  background-color: #f7ecdf !important;
}

.hope-ui-dark .hope-table {
  border-color: rgba(255, 220, 190, 0.08) !important;
  background-color: #2a231d !important;
}

.hope-ui-dark .hope-thead {
  background-color: #241e1a !important;
}

.hope-ui-dark .hope-th {
  color: #c4b4a4 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(255, 220, 190, 0.08) !important;
  padding: 0.75rem 1rem !important;
}

.hope-ui-dark .hope-td {
  color: #efe4d6 !important;
  border-bottom: 1px solid rgba(255, 220, 190, 0.08) !important;
  padding: 0.75rem 1rem !important;
}

.hope-ui-dark .hope-tr:hover td,
.hope-ui-dark .hope-table tbody tr:hover td {
  background-color: rgba(232, 135, 90, 0.1) !important;
}

/* --------------------------------------------------------------------------
   Alerts (Eliminate blue/cool alerts; warm semantic styling)
   -------------------------------------------------------------------------- */
.hope-alert {
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
}

/* Info Alert -> Warm Peach */
.hope-ui-light .hope-alert[data-status="info"],
.hope-ui-light .hope-alert--info {
  background-color: #fdf3ea !important;
  border: 1px solid #efc4aa !important;
  color: #5a2e18 !important;
}

.hope-ui-light .hope-alert[data-status="info"] .hope-alert__icon,
.hope-ui-light .hope-alert--info .hope-alert__icon {
  color: #e8875a !important;
}

.hope-ui-dark .hope-alert[data-status="info"],
.hope-ui-dark .hope-alert--info {
  background-color: #3a2519 !important;
  border: 1px solid #633b27 !important;
  color: #fbe3d4 !important;
}

.hope-ui-dark .hope-alert[data-status="info"] .hope-alert__icon,
.hope-ui-dark .hope-alert--info .hope-alert__icon {
  color: #f0a882 !important;
}

/* Warning Alert -> Warm Amber */
.hope-ui-light .hope-alert[data-status="warning"],
.hope-ui-light .hope-alert--warning {
  background-color: #fef8ed !important;
  border: 1px solid #fce5be !important;
  color: #5c3806 !important;
}

.hope-ui-light .hope-alert[data-status="warning"] .hope-alert__icon,
.hope-ui-light .hope-alert--warning .hope-alert__icon {
  color: #d97706 !important;
}

.hope-ui-dark .hope-alert[data-status="warning"],
.hope-ui-dark .hope-alert--warning {
  background-color: #382611 !important;
  border: 1px solid #5c3f15 !important;
  color: #fef3c7 !important;
}

.hope-ui-dark .hope-alert[data-status="warning"] .hope-alert__icon,
.hope-ui-dark .hope-alert--warning .hope-alert__icon {
  color: #fbbf24 !important;
}

/* Danger Alert -> Warm Terracotta Crimson */
.hope-ui-light .hope-alert[data-status="danger"],
.hope-ui-light .hope-alert--danger {
  background-color: #fdf4f2 !important;
  border: 1px solid #f8d5cf !important;
  color: #5e1e1e !important;
}

.hope-ui-light .hope-alert[data-status="danger"] .hope-alert__icon,
.hope-ui-light .hope-alert--danger .hope-alert__icon {
  color: #c73e2d !important;
}

.hope-ui-dark .hope-alert[data-status="danger"],
.hope-ui-dark .hope-alert--danger {
  background-color: #381a1c !important;
  border: 1px solid #5d2628 !important;
  color: #fde8e8 !important;
}

.hope-ui-dark .hope-alert[data-status="danger"] .hope-alert__icon,
.hope-ui-dark .hope-alert--danger .hope-alert__icon {
  color: #f88b8b !important;
}

/* Success Alert -> Warm Sage Green */
.hope-ui-light .hope-alert[data-status="success"],
.hope-ui-light .hope-alert--success {
  background-color: #f2faf4 !important;
  border: 1px solid #d2ebdb !important;
  color: #1c452b !important;
}

.hope-ui-light .hope-alert[data-status="success"] .hope-alert__icon,
.hope-ui-light .hope-alert--success .hope-alert__icon {
  color: #3b7f54 !important;
}

.hope-ui-dark .hope-alert[data-status="success"],
.hope-ui-dark .hope-alert--success {
  background-color: #17291d !important;
  border: 1px solid #295337 !important;
  color: #d8f3e2 !important;
}

.hope-ui-dark .hope-alert[data-status="success"] .hope-alert__icon,
.hope-ui-dark .hope-alert--success .hope-alert__icon {
  color: #6bc490 !important;
}

/* --------------------------------------------------------------------------
   Dropdowns, Menus, Popovers, Modals & Drawers
   -------------------------------------------------------------------------- */
.hope-ui-light .hope-popover__content,
.hope-ui-light .hope-modal__content,
.hope-ui-light .hope-drawer__content,
.hope-ui-light .hope-menu__content,
.hope-ui-light .hope-select__content,
.hope-ui-light .hope-select__listbox {
  background-color: var(--jx-card) !important;
  border: 1px solid var(--jx-line) !important;
  box-shadow: 0 8px 30px rgba(160, 110, 60, 0.12) !important;
  border-radius: 14px !important;
  color: var(--jx-text) !important;
}

.hope-ui-light .hope-menu__item:hover,
.hope-ui-light .hope-select__option:hover,
.hope-ui-light .hope-select__option[data-highlighted] {
  background-color: #f7ecdf !important;
  color: #b8643c !important;
}

.hope-ui-light .hope-select__option[aria-selected="true"],
.hope-ui-light .hope-select__option[data-selected] {
  background-color: #fbeee2 !important;
  color: var(--jx-peach) !important;
  font-weight: 600 !important;
}

.hope-ui-dark .hope-popover__content,
.hope-ui-dark .hope-modal__content,
.hope-ui-dark .hope-drawer__content,
.hope-ui-dark .hope-menu__content,
.hope-ui-dark .hope-select__content,
.hope-ui-dark .hope-select__listbox {
  background-color: #2a231d !important;
  border: 1px solid rgba(255, 220, 190, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  border-radius: 14px !important;
  color: #efe4d6 !important;
}

.hope-ui-dark .hope-menu__item:hover,
.hope-ui-dark .hope-select__option:hover,
.hope-ui-dark .hope-select__option[data-highlighted] {
  background-color: rgba(232, 135, 90, 0.15) !important;
  color: #f0a882 !important;
}

.hope-ui-dark .hope-select__option[aria-selected="true"],
.hope-ui-dark .hope-select__option[data-selected] {
  background-color: rgba(232, 135, 90, 0.25) !important;
  color: var(--jx-peach) !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   Tags, Badges & Progress
   -------------------------------------------------------------------------- */
.hope-badge,
.hope-tag {
  border-radius: 8px !important;
}

.hope-ui-light .hope-badge,
.hope-ui-light .hope-tag {
  background-color: #fbeee2 !important;
  color: #b8643c !important;
}

.hope-ui-dark .hope-badge,
.hope-ui-dark .hope-tag {
  background-color: #3a2519 !important;
  color: #f0a882 !important;
}

.hope-progress__indicator,
.hope-spinner,
.hope-circular-progress__indicator {
  color: var(--jx-peach) !important;
}
