:root {
  --sujj-bg: #fffaf1;
  --sujj-surface: #fffdf8;
  --sujj-surface-strong: #f5e6cd;
  --sujj-ink: #4a2e20;
  --sujj-muted: #856e5c;
  --sujj-accent: #c75a2b;
  --sujj-accent-strong: #a84421;
  --sujj-accent-soft: #f3d493;
  --sujj-border: #ead8bd;
  --sujj-focus: #d98b3a;
  --sujj-shadow: 0 18px 44px rgba(112, 68, 31, .12);
  --sujj-grid: rgba(199, 90, 43, .035);
}

html[data-sujj-theme="berry-nocturne"] {
  --sujj-bg: #2d1b1d;
  --sujj-surface: #412526;
  --sujj-surface-strong: #553033;
  --sujj-ink: #ffe8c5;
  --sujj-muted: #e0af96;
  --sujj-accent: #f1ad43;
  --sujj-accent-strong: #d86a37;
  --sujj-accent-soft: #742e37;
  --sujj-border: #6f4141;
  --sujj-focus: #f7c978;
  --sujj-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --sujj-grid: rgba(255, 207, 137, .04);
}

html[data-sujj-theme="silver-plate"] {
  --sujj-bg: #eef3f2;
  --sujj-surface: #fbfcfb;
  --sujj-surface-strong: #d6e3e1;
  --sujj-ink: #40585a;
  --sujj-muted: #72898b;
  --sujj-accent: #b84f2b;
  --sujj-accent-strong: #963b20;
  --sujj-accent-soft: #dfb46d;
  --sujj-border: #c7d8d6;
  --sujj-focus: #7fa09f;
  --sujj-shadow: 0 18px 44px rgba(66, 94, 94, .13);
  --sujj-grid: rgba(127, 160, 159, .055);
}

html[data-sujj-theme] body {
  background-color: var(--sujj-bg) !important;
  background-image:
    linear-gradient(90deg, var(--sujj-grid) 1px, transparent 1px),
    linear-gradient(var(--sujj-grid) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  color: var(--sujj-ink) !important;
  transition: background-color .25s ease, color .25s ease;
}

html[data-sujj-theme] #app {
  color: var(--sujj-ink);
}

html[data-sujj-theme] .bg-white,
html[data-sujj-theme] [class*="bg-gray-50"],
html[data-sujj-theme] [class*="bg-gray-100"],
html[data-sujj-theme] [class*="bg-slate-50"] {
  background-color: var(--sujj-surface) !important;
}

html[data-sujj-theme] [class*="border-gray-200"],
html[data-sujj-theme] [class*="border-gray-300"],
html[data-sujj-theme] [class*="border-slate-200"],
html[data-sujj-theme] [class*="divide-gray-200"] {
  border-color: var(--sujj-border) !important;
}

html[data-sujj-theme] [class*="text-gray-400"],
html[data-sujj-theme] [class*="text-gray-500"],
html[data-sujj-theme] [class*="text-gray-600"],
html[data-sujj-theme] [class*="text-slate-500"],
html[data-sujj-theme] [class*="text-slate-600"] {
  color: var(--sujj-muted) !important;
}

html[data-sujj-theme] .btn-primary,
html[data-sujj-theme] [class*="bg-primary-500"],
html[data-sujj-theme] [class*="bg-primary-600"],
html[data-sujj-theme] .sujj-primary-action {
  background: var(--sujj-accent) !important;
  border-color: var(--sujj-accent) !important;
  color: #fffdf8 !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--sujj-accent) 27%, transparent) !important;
}

html[data-sujj-theme] .btn-primary:hover,
html[data-sujj-theme] [class*="hover\:bg-primary-"]:hover,
html[data-sujj-theme] .sujj-primary-action:hover {
  background: var(--sujj-accent-strong) !important;
  border-color: var(--sujj-accent-strong) !important;
}

html[data-sujj-theme] [class*="text-primary-"],
html[data-sujj-theme] [class*="text-teal-"],
html[data-sujj-theme] [class*="text-emerald-"] {
  color: var(--sujj-accent-strong) !important;
}

html[data-sujj-theme] [class*="border-primary-"],
html[data-sujj-theme] [class*="ring-primary-"] {
  border-color: var(--sujj-accent) !important;
  --tw-ring-color: var(--sujj-focus) !important;
}

html[data-sujj-theme] input,
html[data-sujj-theme] textarea,
html[data-sujj-theme] select {
  background-color: color-mix(in srgb, var(--sujj-surface) 94%, var(--sujj-surface-strong)) !important;
  border-color: var(--sujj-border) !important;
  color: var(--sujj-ink) !important;
}

html[data-sujj-theme] input:focus,
html[data-sujj-theme] textarea:focus,
html[data-sujj-theme] select:focus {
  border-color: var(--sujj-focus) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sujj-focus) 20%, transparent) !important;
  outline: none !important;
}

html[data-sujj-theme] [class*="shadow-lg"],
html[data-sujj-theme] [class*="shadow-xl"] {
  box-shadow: var(--sujj-shadow) !important;
}

html[data-sujj-theme] .dark:bg-dark-900:is(.dark *),
html[data-sujj-theme] .dark:bg-dark-800:is(.dark *),
html[data-sujj-theme] .dark:bg-dark-700:is(.dark *) {
  background-color: var(--sujj-surface-strong) !important;
}

html[data-sujj-theme] .sujj-brand {
  align-items: center;
  background: color-mix(in srgb, var(--sujj-surface) 90%, transparent);
  border: 1px solid var(--sujj-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sujj-ink) 10%, transparent);
  color: var(--sujj-ink);
  display: inline-flex;
  gap: 9px;
  padding: 6px 13px 6px 7px;
  position: fixed;
  right: 174px;
  top: 14px;
  z-index: 1005;
}

html[data-sujj-theme] .sujj-brand img {
  border: 2px solid var(--sujj-accent-soft);
  border-radius: 50%;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

html[data-sujj-theme] .sujj-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

html[data-sujj-theme] .sujj-brand small {
  color: var(--sujj-muted);
  font-size: 9px;
  letter-spacing: .08em;
  margin-left: 3px;
}

html[data-sujj-theme] .sujj-theme-switcher {
  position: fixed;
  right: 18px;
  top: 14px;
  z-index: 1006;
}

html[data-sujj-theme] .sujj-theme-trigger {
  align-items: center;
  background: var(--sujj-surface);
  border: 1px solid var(--sujj-border);
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--sujj-ink) 10%, transparent);
  color: var(--sujj-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
}

html[data-sujj-theme] .sujj-theme-trigger:hover {
  border-color: var(--sujj-accent);
  transform: translateY(-1px);
}

html[data-sujj-theme] .sujj-theme-trigger .sujj-swatch {
  background: var(--sujj-accent);
  border: 2px solid var(--sujj-accent-soft);
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

html[data-sujj-theme] .sujj-theme-menu {
  background: var(--sujj-surface);
  border: 1px solid var(--sujj-border);
  border-radius: 8px;
  box-shadow: var(--sujj-shadow);
  display: grid;
  gap: 5px;
  margin-top: 8px;
  min-width: 150px;
  padding: 7px;
}

html[data-sujj-theme] .sujj-theme-menu[hidden] {
  display: none;
}

html[data-sujj-theme] .sujj-theme-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--sujj-ink);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 9px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

html[data-sujj-theme] .sujj-theme-option:hover,
html[data-sujj-theme] .sujj-theme-option[aria-checked="true"] {
  background: var(--sujj-surface-strong);
}

html[data-sujj-theme] .sujj-theme-option .sujj-option-swatch {
  border: 1px solid var(--sujj-border);
  border-radius: 50%;
  height: 13px;
  width: 13px;
}

html[data-sujj-theme="berry-nocturne"] .sujj-theme-trigger,
html[data-sujj-theme="berry-nocturne"] .sujj-theme-menu {
  color: var(--sujj-ink);
}

html[data-sujj-theme="berry-nocturne"] .sujj-brand,
html[data-sujj-theme="berry-nocturne"] .sujj-theme-trigger {
  background: rgba(65, 37, 38, .94);
}

html[data-sujj-theme] img[alt="Logo"] {
  border-radius: 18px;
  object-fit: cover;
}

html[data-sujj-theme] .sujj-login-brand {
  color: var(--sujj-accent-strong) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

@media (max-width: 720px) {
  html[data-sujj-theme] .sujj-brand {
    left: 14px;
    right: auto;
    top: 12px;
  }

  html[data-sujj-theme] .sujj-brand small {
    display: none;
  }

  html[data-sujj-theme] .sujj-theme-switcher {
    right: 12px;
    top: 12px;
  }

  html[data-sujj-theme] .sujj-theme-trigger {
    min-height: 36px;
    padding: 0 10px;
  }
}

html[data-sujj-theme] .sujj-brand,
html[data-sujj-theme] .sujj-theme-switcher,
html[data-sujj-theme] img[alt="Logo"],
html[data-sujj-theme] img[data-sujj-logo="true"] {
  display: none !important;
}

html[data-sujj-theme] .sujj-theme-panel,
html[data-sujj-theme] .sujj-recharge-panel {
  align-items: center;
  background: var(--sujj-surface);
  border: 1px solid var(--sujj-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--sujj-ink) 8%, transparent);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 16px 0;
  padding: 16px 18px;
}

html[data-sujj-theme] .sujj-theme-panel-copy h3,
html[data-sujj-theme] .sujj-recharge-panel h3 {
  color: var(--sujj-ink);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

html[data-sujj-theme] .sujj-theme-panel-copy p,
html[data-sujj-theme] .sujj-recharge-panel p {
  color: var(--sujj-muted);
  font-size: 12px;
  margin: 0;
}

html[data-sujj-theme] .sujj-theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sujj-theme] .sujj-theme-panel .sujj-theme-option {
  align-items: center;
  background: transparent;
  border: 1px solid var(--sujj-border);
  border-radius: 6px;
  color: var(--sujj-ink);
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  width: auto;
}

html[data-sujj-theme] .sujj-theme-panel .sujj-theme-option[aria-checked="true"],
html[data-sujj-theme] .sujj-theme-panel .sujj-theme-option:hover {
  background: var(--sujj-surface-strong);
  border-color: var(--sujj-accent);
}

html[data-sujj-theme] .sujj-recharge-panel {
  border-left: 4px solid var(--sujj-accent);
}

html[data-sujj-theme] .sujj-recharge-kicker {
  color: var(--sujj-accent-strong);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

html[data-sujj-theme] .sujj-recharge-action {
  background: var(--sujj-accent);
  border-radius: 6px;
  color: #fffdf8 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 13px;
  white-space: nowrap;
}

html[data-sujj-theme] .sujj-recharge-action:hover {
  background: var(--sujj-accent-strong);
}

@media (max-width: 720px) {
  html[data-sujj-theme] .sujj-theme-panel,
  html[data-sujj-theme] .sujj-recharge-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-sujj-theme] .sujj-theme-options {
    width: 100%;
  }
}
