body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #B6BCC9;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

label {
  color: #ffffff;
}

.text-soft {
  color: #B6BCC9 !important;
}

h1, h2, h3, h4,
.font-display {
  font-family: 'Fraunces', 'Source Serif 4', serif;
  letter-spacing: -0.01em;
}

/* Compact dropzone variant */
.dz-compact {
  min-height: 50px;
  padding: 12px;
}
.dz-compact .dz-message {
  margin: 0;
}
.dropzone {
  min-height: 50px;
}

/* Global helpers */
textarea::-webkit-scrollbar { width: 8px; }
textarea::-webkit-scrollbar-track { background: transparent; }
textarea::-webkit-scrollbar-thumb { background-color: #312E81; border-radius: 20px; }
.card-glow { box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.35); }
.editor-btn:hover { background-color: rgba(255, 255, 255, 0.05); }

@keyframes shuffleJitter {
  0%   { transform: translateX(0) rotate(0); }
  20%  { transform: translateX(-6px) rotate(-2deg); }
  40%  { transform: translateX(6px) rotate(2deg); }
  60%  { transform: translateX(-4px) rotate(-1deg); }
  80%  { transform: translateX(4px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0); }
}
.is-shuffling {
  animation: shuffleJitter 0.6s ease-in-out infinite;
  filter: brightness(1.08);
}

@keyframes cardFloat {
  0%   { --float-y: 0px; }
  50%  { --float-y: -8px; }
  100% { --float-y: 0px; }
}
.float-card {
  --float-y: 0px;
  transform: translate(var(--tw-translate-x, 0), calc(var(--tw-translate-y, 0) + var(--float-y))) rotate(var(--tw-rotate, 0deg)) skewX(var(--tw-skew-x, 0deg)) skewY(var(--tw-skew-y, 0deg)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
  animation: cardFloat 5s ease-in-out infinite;
}

/* Manual draw overlay */
.manual-overlay {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  border-radius: 1.2rem;
  overflow: hidden;
}
.manual-pill {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
  overflow: hidden;
  color: white;
}
.manual-pill select {
  background: transparent;
  border: none;
  color: white;
  padding: 0.65rem 0.9rem;
  outline: none;
  width: 100%;
  appearance: none;
}
.manual-pill option { color: black; }
.manual-pill .rx-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-left: none;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  font-size: 0.9rem;
}
.manual-pill .rx-toggle input { display: none; }
.manual-pill .rx-toggle.active {
  background: rgba(99,102,241,0.4);
  color: #fff;
}

/* TinyMCE dark theming */
.tox {
  --surface: #0d1322;
  --border: rgba(255,255,255,0.08);
}
.tox.tox-tinymce {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-editor-header {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.tox .tox-menubar { background: var(--surface) !important; }
.tox .tox-statusbar {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: #cbd5e1;
}
.tox .tox-edit-area__iframe { background: #050816; }
.tox .tox-tbtn,
.tox .tox-mbtn { color: #e5e7eb; }
.tox .tox-tbtn:hover,
.tox .tox-mbtn:hover { background: rgba(255,255,255,0.05); }
.tox-toolbar__group:last-child { margin-left: auto; }

/* Astro / entry presentation */
.astro-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.92), rgba(12,15,26,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.astro-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
}
.astro-subcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px 14px;
}
.entry-content {
  color: #B6BCC9;
  line-height: 1.9;
  font-size: 1.05rem;
  max-width: 68ch;
  margin: 0 auto;
}
.entry-content p { margin-bottom: 1.15em; }
.entry-content h1,
.entry-content h2,
.entry-content h3 { font-weight: 700; margin: 1.2em 0 0.6em; line-height: 1.2; }
.entry-content ul,
.entry-content ol { margin: 1em 0 1em 1.2em; padding-left: 1em; }
.entry-content blockquote {
  border-left: 4px solid rgba(255,255,255,0.1);
  padding-left: 1em;
  color: #B6BCC9;
  font-style: italic;
}
.entry-content img { max-width: 100%; border-radius: 0.75rem; }

/* Card modal + preview */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(99, 102, 241, 0.08), transparent 30%), rgba(2, 6, 15, 0.82);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.card-modal {
  background: linear-gradient(145deg, rgba(10, 14, 28, 0.96), rgba(8, 11, 24, 0.98));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  max-width: 1280px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.card-modal-close { cursor: pointer; }
.modal-grid {
  gap: 1.75rem;
  /* Default to single column on small screens to avoid horizontal scroll */
  grid-template-columns: 1fr !important;
}
.modal-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.card-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(99,102,241,0.09));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.card-summary-thumb {
  height: 56px;
  width: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.card-summary-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}
.card-summary-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.card-summary-tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.15);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-scroll {
  overflow-y: auto;
  padding-right: 0.25rem;
  flex: 1 1 auto;
}
@media (min-width: 1024px) {
  .modal-grid {
    /* Favor meaning column (approx 1:1.4) */
    grid-template-columns: minmax(280px, 420px) minmax(480px, 1.4fr) !important;
    gap: 2.25rem;
    align-items: start;
  }
}
.card-accordion .item {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}
.card-accordion button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: #e5e7eb;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.card-accordion .body {
  padding: 1.05rem 1.15rem 1.15rem 1.15rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  border-top: 1px solid rgba(255,255,255,0.06);
}
.keyword-badge {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  font-size: 12px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  letter-spacing: 0.01em;
}
.keyword-badge-empty {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #cbd5e1;
}
@media (max-width: 767px) {
  .modal-keyword-row {
    flex-wrap: wrap;
  }
}
.card-rotate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
}
.modal-card-figure {
  width: 100%;
  max-width: 320px;
  min-height: 420px;
  aspect-ratio: 2 / 3.3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.1);
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  overflow: hidden;
}
.theme-light .modal-card-figure {
  background-color: rgba(0,0,0,0.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.meaning-body {
  background: rgba(10, 14, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0.35rem 0.5rem;
}
.meaning-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tldr-row {
  display: none;
}
.tldr-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12,17,36,0.9), rgba(19,24,48,0.82));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.tldr-icon {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c7d2fe;
  background: rgba(99,102,241,0.18);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.16);
}
.tldr-icon .material-symbols-outlined { font-size: 22px; }
.tldr-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tldr-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c7d2fe;
  margin: 0;
}
.tldr-content p { margin: 0; line-height: 1.6; }
.tldr-divider {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  justify-self: stretch;
}
.meaning-main p {
  margin: 0;
  line-height: 1.8;
  color: #e5e7eb;
}
.meaning-main p b,
.meaning-main p strong {
  color: #a5b4fc;
}
.shows-up-title {
  font-weight: 700;
  margin: 0;
  color: #e5e7eb;
}
.shows-up-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  color: #cbd5e1;
  display: grid;
  gap: 0.28rem;
  font-size: 0.9rem;
}
.shows-up-list li { line-height: 1.4; }
.shows-up-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.daily-focus-panel {
  position: relative;
  overflow: visible;
}
.daily-focus-panel::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 32px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translate(60%, -60%);
  z-index: 0;
}
.daily-focus-panel > * {
  position: relative;
  z-index: 1;
}
.daily-focus-header {
  position: relative;
  z-index: 2;
}
.daily-focus-orb {
  position: absolute;
  right: 40px;
  top: 32px;
  height: 150px;
  width: 150px;
  transform: translate(60%, -60%);
  border-radius: 999px;
  border: 2px solid rgba(239, 233, 221, 0.75);
  box-shadow: 0 0 0 5px rgba(239, 233, 221, 0.16),
              0 18px 40px rgba(0,0,0,0.4);
  background: rgba(6, 9, 20, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.daily-focus-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}
@media (max-width: 640px) {
  .daily-focus-panel::before {
    right: 28px;
    top: 20px;
    width: 140px;
    height: 140px;
    transform: translate(55%, -55%);
  }
  .daily-focus-orb {
    height: 120px;
    width: 120px;
    right: 28px;
    top: 20px;
    transform: translate(55%, -55%);
  }
}
@media (max-width: 767px) {
  .tldr-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
  }
  .tldr-card { padding: 0.6rem 0.65rem; }
  .tldr-divider { display: none; }
  .meaning-body { padding: 0.6rem; }
}

/* Light theme overrides for the modal */
.theme-light .card-modal-overlay {
  background: radial-gradient(circle at 15% 15%, rgba(236, 185, 122, 0.25), transparent 36%), rgba(243, 232, 215, 0.8);
  backdrop-filter: blur(10px);
}
.theme-light .card-modal {
  background: linear-gradient(135deg, #f7e8d4, #f2dbc0);
  border: 1px solid rgba(77, 47, 32, 0.12);
  box-shadow: 0 30px 90px rgba(82, 58, 41, 0.3);
  color: #2c1a12;
}
.theme-light .card-accordion .item {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(77, 47, 32, 0.16);
  box-shadow: 0 16px 36px rgba(82, 58, 41, 0.18);
}
.theme-light .card-accordion button {
  color: #2c1a12;
}
.theme-light .card-accordion .body {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  color: #3a2419;
  border-top: 1px solid rgba(77, 47, 32, 0.12);
}
.theme-light .meaning-body {
  background: rgba(255,255,255,0.92);
  border-color: rgba(77, 47, 32, 0.14);
}
.theme-light .tldr-card {
  background: rgba(234, 191, 137, 0.35);
  border: 1px solid rgba(115, 81, 48, 0.2);
}
.theme-light .tldr-label { color: #876345; }
.theme-light .tldr-content p { color: #2f2018; }
.theme-light .meaning-main p { color: #2f2018; }
.theme-light .meaning-main p b,
.theme-light .meaning-main p strong { color: #7c3aed; }
.theme-light .shows-up-title { color: #2c1a12; }
.theme-light .shows-up-list { color: #3a2419; }

/* Calendar (journal) */
.cal-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.cal-day {
  aspect-ratio: 1/1;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.85);
}
.cal-day.outside { opacity: 0.35; }
.cal-day.today {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.4);
}
.cal-day:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.cal-day .date-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(99,102,241,0.8);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}
.cal-flip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
}
.cal-icon-face,
.cal-date-face {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, opacity 200ms ease;
}
.cal-date-face {
  opacity: 0;
  transform: translateY(-6px);
  font-weight: 700;
}
.cal-day:hover .cal-icon-face {
  opacity: 0;
  transform: translateY(6px);
}
.cal-day:hover .cal-date-face {
  opacity: 1;
  transform: translateY(0);
}

/* Choices.js dark theme (account) */
.choices { width: 100%; }
.choices__inner {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  min-height: 3.5rem;
  height: 3.5rem;
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgba(255,255,255,0.92);
  display: block;
  box-sizing: border-box;
}
.choices__list--single { padding: 0 !important; }
.choices__list--single .choices__item {
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(255,255,255,0.92) !important;
  line-height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.choices:focus,
.choices:focus-visible,
.choices__inner:focus,
.choices__inner:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: rgba(99,102,241,0.7) !important;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.6) !important;
}
.choices__list--dropdown,
.choices__list[aria-expanded] {
  background: #050816 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  margin-top: 0.5rem !important;
}
.choices__list--dropdown .choices__item { color: rgba(255,255,255,0.92); }
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(99,102,241,0.20) !important;
  color: rgba(255,255,255,0.95) !important;
}
.choices__list--dropdown .choices__item.is-selected,
.choices__list[aria-expanded] .choices__item.is-selected {
  background: rgba(99,102,241,0.28) !important;
  color: rgba(255,255,255,0.95) !important;
}
.choices__placeholder {
  color: rgba(255,255,255,0.35) !important;
  opacity: 1 !important;
}
.choices[data-type*="select-one"]::after {
  top: 50%;
  transform: translateY(-50%);
  right: 1.25rem;
  border-color: rgba(255,255,255,0.35) transparent transparent transparent;
}

.zc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.zc-glyph {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}
.zc-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.zc-title {
  color: rgba(255,255,255,0.92);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zc-date {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.choices__list--single .zc-date { display: none; }
.choices__list--single .zc-title {
  overflow: visible;
  text-overflow: clip;
}
.choices__list--single .choices__item {
  display: block !important;
  align-items: initial !important;
  gap: 0 !important;
}
.choices__list--single .choices__item .zc-row {
  display: flex;
  align-items: center;
  height: 1.5rem;
}
.choices--zodiac .choices__inner {
  display: flex;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.choices--zodiac .choices__list--single {
  width: 100%;
  display: flex;
  align-items: center;
}
.choices--zodiac .choices__list--single .choices__item {
  width: 100%;
  display: block !important;
  padding: 0 !important;
}
.choices--zodiac .zc-row { align-items: center; }
.choices--deck .choices__inner { display: block; }
.choices--zodiac.is-open .choices__inner,
.choices--zodiac.is-focused .choices__inner,
.choices--zodiac:focus .choices__inner,
.choices--zodiac:focus-visible .choices__inner {
  border-radius: 1rem !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.6) !important;
}
.choices--zodiac.is-open,
.choices--zodiac.is-focused { border-radius: 1rem !important; }
.choices--zodiac .choices__list--dropdown,
.choices--zodiac .choices__list[aria-expanded] {
  border-radius: 1rem !important;
  overflow: hidden !important;
}
.choices--mood .choices__inner,
.choices--focus .choices__inner {
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.8rem !important;
  border-radius: 0.9rem !important;
  border-color: rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.04) !important;
}
.choices--mood .choices__list--single,
.choices--mood .choices__list--dropdown .choices__item,
.choices--focus .choices__list--single,
.choices--focus .choices__list--dropdown .choices__item {
  display: block;
  padding: 0;
}
.choices--mood .mood-row,
.choices--focus .mood-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.35rem;
}
.choices--mood .mood-row .material-symbols-outlined,
.choices--focus .mood-row .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.choices--mood .mood-row .mood-label,
.choices--focus .mood-row .mood-label {
  display: inline-flex;
  align-items: center;
}
.choices--mood {
  position: relative;
  z-index: 30;
}
.choices--focus {
  position: relative;
  z-index: 30;
}
.choices--mood.is-open .choices__list--dropdown,
.choices--mood.is-open .choices__list[aria-expanded] {
  z-index: 60 !important;
}
.choices--focus.is-open .choices__list--dropdown,
.choices--focus.is-open .choices__list[aria-expanded] {
  z-index: 60 !important;
}

/* Force dark dropdown contrast on account page */
html.theme-dark .choices__list--dropdown,
html.theme-dark .choices__list[aria-expanded] {
  background: #050816 !important;
  border-color: rgba(255,255,255,0.10) !important;
}
html.theme-dark .choices__list--dropdown .choices__item,
html.theme-dark .choices__list[aria-expanded] .choices__item {
  color: rgba(255,255,255,0.92) !important;
}
html.theme-dark .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(99,102,241,0.20) !important;
  color: rgba(255,255,255,0.95) !important;
}
html.theme-dark .choices__placeholder {
  color: rgba(255,255,255,0.35) !important;
}
/* Keep selected item readable on dark */
html.theme-dark .choices__inner {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
html.theme-dark .choices__list--single .choices__item {
  color: rgba(255,255,255,0.92) !important;
}
html.theme-dark .choices[data-type*="select-one"]::after {
  border-color: rgba(255,255,255,0.75) transparent transparent transparent !important;
}
html.theme-dark .choices.is-disabled .choices__inner {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.30) !important;
}

/* Align deck/theme selects on account page */
.my-account-page .choices--deck .choices__inner {
  min-height: 3.25rem;
  height: 3.25rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
}
.my-account-page .choices--deck .choices__list--single .choices__item {
  display: flex !important;
  align-items: center;
  margin: 0 !important;
}

/* Dropzone */
.dropzone { border-style: dashed; border-width: 1px; min-height: 140px; }
.dropzone .dz-message { color: #cbd5e1; font-weight: 600; }
