/* =====================================================================
   Liquid Glass theme
   Loaded for everyone, but only active when <html data-theme="liquid">.
   Each user chooses Default or Liquid Glass in My profile > Appearance.
   Per-user variables set on <html>: --glass-blur --glass-a --glass-a2 --glass-a3 --wp-dim
   ===================================================================== */

/* ---------- wallpapers (also used for the picker swatches) ---------- */
.lg-bg-aurora { background-color: #dbeafe; background-image: radial-gradient(60% 55% at 12% 8%, #7dd3fc 0, transparent 62%), radial-gradient(55% 50% at 88% 12%, #c4b5fd 0, transparent 62%), radial-gradient(65% 60% at 78% 92%, #f9a8d4 0, transparent 62%), radial-gradient(50% 50% at 8% 88%, #86efac 0, transparent 60%); }
.lg-bg-sunset { background-color: #fde7d6; background-image: radial-gradient(60% 55% at 85% 8%, #fda4af 0, transparent 62%), radial-gradient(55% 55% at 10% 15%, #fdba74 0, transparent 62%), radial-gradient(70% 60% at 70% 95%, #c084fc 0, transparent 62%), radial-gradient(50% 50% at 10% 90%, #f472b6 0, transparent 60%); }
.lg-bg-ocean { background-color: #cdeefa; background-image: radial-gradient(60% 55% at 15% 10%, #22d3ee 0, transparent 62%), radial-gradient(55% 55% at 90% 20%, #60a5fa 0, transparent 62%), radial-gradient(70% 60% at 60% 95%, #2dd4bf 0, transparent 62%), radial-gradient(45% 45% at 5% 85%, #818cf8 0, transparent 60%); }
.lg-bg-meadow { background-color: #e3f5d9; background-image: radial-gradient(60% 55% at 12% 10%, #bef264 0, transparent 62%), radial-gradient(55% 55% at 88% 18%, #5eead4 0, transparent 62%), radial-gradient(70% 60% at 75% 95%, #4ade80 0, transparent 62%), radial-gradient(45% 45% at 8% 88%, #fde047 0, transparent 60%); }
.lg-bg-orchid { background-color: #f3e3f8; background-image: radial-gradient(60% 55% at 14% 8%, #e879f9 0, transparent 62%), radial-gradient(55% 55% at 90% 15%, #a78bfa 0, transparent 62%), radial-gradient(70% 60% at 72% 95%, #fb7185 0, transparent 62%), radial-gradient(45% 45% at 6% 90%, #60a5fa 0, transparent 60%); }
.lg-bg-graphite { background-color: #10131c; background-image: radial-gradient(60% 55% at 15% 10%, #334155 0, transparent 62%), radial-gradient(55% 55% at 90% 15%, #4338ca 0, transparent 65%), radial-gradient(70% 60% at 70% 95%, #0f766e 0, transparent 62%), radial-gradient(45% 45% at 5% 90%, #7c3aed 0, transparent 62%); }

.lg-wp { display: none; }
html[data-theme="liquid"] .lg-wp { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-size: cover; background-position: center; background-repeat: no-repeat; }
html[data-theme="liquid"] .lg-wp::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--wp-dim, 0)); }

/* ---------- light palette ---------- */
html[data-theme="liquid"] {
  --ga: var(--glass-a, .46);
  --ga2: var(--glass-a2, .74);
  --ga3: var(--glass-a3, .95);
  --glass-rgb: 255, 255, 255;
  --hl: rgba(255, 255, 255, .8);
  --hl2: rgba(255, 255, 255, .3);
  --glass-shadow: 0 12px 36px rgba(28, 38, 80, .16), 0 2px 8px rgba(28, 38, 80, .07);
  --bg: transparent;
  --surface: rgba(var(--glass-rgb), var(--ga));
  --surface-2: rgba(var(--glass-rgb), calc(var(--ga) * .6));
  --border: rgba(255, 255, 255, .66);
  --text: #0c1322;
  --text-2: #273045;
  --muted: #566077;
  --brand-soft: color-mix(in srgb, var(--brand) 16%, rgba(255, 255, 255, .55));
  --brand-line: color-mix(in srgb, var(--brand) 38%, rgba(255, 255, 255, .6));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: var(--glass-shadow);
  --lg-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23566077' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
  background: #cfd9ec;
}

/* ---------- dark palette (explicit Dark, or Auto while the device is dark) ---------- */
html[data-theme="liquid"][data-mode="dark"] {
  --ga: calc(var(--glass-a, .46) + .14);
  --ga2: calc(var(--glass-a2, .74) + .08);
  --ga3: var(--glass-a3, .95);
  --glass-rgb: 20, 24, 36;
  --hl: rgba(255, 255, 255, .26);
  --hl2: rgba(255, 255, 255, .07);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
  --border: rgba(255, 255, 255, .17);
  --text: #f3f5fb;
  --text-2: #d2d8e6;
  --muted: #aab3c6;
  --brand-soft: color-mix(in srgb, var(--brand) 32%, rgba(20, 24, 36, .6));
  --brand-line: color-mix(in srgb, var(--brand) 55%, rgba(255, 255, 255, .12));
  --lg-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2397a1b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
  background: #090c14;
}
html[data-theme="liquid"][data-mode="dark"] .lg-wp::after { background: rgba(0, 0, 0, calc(.38 + var(--wp-dim, 0))); }
@media (prefers-color-scheme: dark) {
  html[data-theme="liquid"][data-mode="auto"] {
    --ga: calc(var(--glass-a, .46) + .14);
    --ga2: calc(var(--glass-a2, .74) + .08);
    --ga3: var(--glass-a3, .95);
    --glass-rgb: 20, 24, 36;
    --hl: rgba(255, 255, 255, .26);
    --hl2: rgba(255, 255, 255, .07);
    --glass-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
    --border: rgba(255, 255, 255, .17);
    --text: #f3f5fb;
    --text-2: #d2d8e6;
    --muted: #aab3c6;
    --brand-soft: color-mix(in srgb, var(--brand) 32%, rgba(20, 24, 36, .6));
    --brand-line: color-mix(in srgb, var(--brand) 55%, rgba(255, 255, 255, .12));
    --lg-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2397a1b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: dark;
    background: #090c14;
  }
  html[data-theme="liquid"][data-mode="auto"] .lg-wp::after { background: rgba(0, 0, 0, calc(.38 + var(--wp-dim, 0))); }
}

/* ---------- base ---------- */
html[data-theme="liquid"] body { background: transparent; color: var(--text); -webkit-font-smoothing: antialiased; }
html[data-theme="liquid"] .auth-body { background: transparent; }

/* ---------- glass surfaces ---------- */
html[data-theme="liquid"] .sidebar,
html[data-theme="liquid"] .topbar,
html[data-theme="liquid"] .card,
html[data-theme="liquid"] .kpi,
html[data-theme="liquid"] .col,
html[data-theme="liquid"] .bottom-nav,
html[data-theme="liquid"] .seg-toggle,
html[data-theme="liquid"] .tabs {
  background: linear-gradient(145deg, rgba(var(--glass-rgb), calc(var(--ga) + .16)) 0%, rgba(var(--glass-rgb), var(--ga)) 55%, rgba(var(--glass-rgb), calc(var(--ga) * .85)) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 24px)) saturate(1.8);
  backdrop-filter: blur(var(--glass-blur, 24px)) saturate(1.8);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hl2), inset 0 -14px 22px -16px var(--hl2), var(--glass-shadow);
}
html[data-theme="liquid"] .tcard {
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--hl), 0 4px 14px rgba(20, 30, 60, .08);
}
html[data-theme="liquid"] .menu-pop {
  background: rgba(var(--glass-rgb), var(--ga3));
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--hl), 0 18px 48px rgba(10, 16, 40, .25);
}
html[data-theme="liquid"] .scrim { background: rgba(10, 15, 30, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* floating sidebar + topbar on desktop */
@media (min-width: 901px) {
  html[data-theme="liquid"] .sidebar { top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; border-radius: 28px; }
  html[data-theme="liquid"] .topbar { top: 12px; margin: 12px 16px 0; border-radius: 22px; }
}
@media (max-width: 900px) {
  html[data-theme="liquid"] .sidebar { border-radius: 0 28px 28px 0; }
  html[data-theme="liquid"] .bottom-nav { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; border-radius: 28px; padding-bottom: 6px; }
}

/* ---------- navigation ---------- */
html[data-theme="liquid"] .nav a { border-radius: 14px; transition: background .15s, transform .15s; }
html[data-theme="liquid"] .nav a:hover { background: rgba(var(--glass-rgb), calc(var(--ga) + .14)); }
html[data-theme="liquid"] .nav a.active {
  background: linear-gradient(180deg, rgba(var(--glass-rgb), calc(var(--ga2) + .1)), color-mix(in srgb, var(--brand) 18%, rgba(var(--glass-rgb), var(--ga2))));
  color: var(--brand);
  box-shadow: inset 0 1px 0 var(--hl), 0 4px 14px color-mix(in srgb, var(--brand) 20%, transparent);
}
html[data-theme="liquid"] .sidebar-user { border-top-color: var(--border); }

/* ---------- buttons ---------- */
html[data-theme="liquid"] .btn { border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
html[data-theme="liquid"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-danger-text):not(.btn-wa):not(.btn-kudos):not(.btn-ghost) {
  background: rgba(var(--glass-rgb), var(--ga2));
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hl), 0 2px 8px rgba(20, 30, 60, .08);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
}
html[data-theme="liquid"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-danger-text):not(.btn-wa):not(.btn-kudos):not(.btn-ghost):hover {
  background: rgba(var(--glass-rgb), calc(var(--ga2) + .12));
  transform: translateY(-1px);
}
html[data-theme="liquid"] .btn:active { transform: scale(.97); }
html[data-theme="liquid"] .btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 76%, #fff), var(--brand));
  border-color: color-mix(in srgb, var(--brand) 65%, #fff);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 16px color-mix(in srgb, var(--brand) 38%, transparent);
}
html[data-theme="liquid"] .btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 68%, #fff), color-mix(in srgb, var(--brand) 92%, #000));
  transform: translateY(-1px);
}
html[data-theme="liquid"] .icon-btn { border-radius: 999px; }

/* ---------- form fields ---------- */
html[data-theme="liquid"] input,
html[data-theme="liquid"] select,
html[data-theme="liquid"] textarea {
  background-color: rgba(var(--glass-rgb), var(--ga2));
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(20, 30, 60, .08);
}
html[data-theme="liquid"] select { background-image: var(--lg-arrow); }
html[data-theme="liquid"] input:focus,
html[data-theme="liquid"] select:focus,
html[data-theme="liquid"] textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
}
html[data-theme="liquid"] ::placeholder { color: var(--muted); opacity: .8; }

/* ---------- misc polish ---------- */
html[data-theme="liquid"] .tabs a.on { background: var(--brand-soft); color: var(--brand); border-radius: 999px; }
html[data-theme="liquid"] .table th { backdrop-filter: none; }
html[data-theme="liquid"] .avatar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 6px rgba(20, 30, 60, .15); }
html[data-theme="liquid"] a { text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="liquid"] .sidebar,
  html[data-theme="liquid"] .topbar,
  html[data-theme="liquid"] .card,
  html[data-theme="liquid"] .kpi,
  html[data-theme="liquid"] .col,
  html[data-theme="liquid"] .bottom-nav { background: rgba(var(--glass-rgb), .92); }
}

/* =====================================================================
   Appearance picker (My profile) - always styled, in both themes
   ===================================================================== */
.ui-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 18px; }
.ui-opt { position: relative; display: block; cursor: pointer; }
.ui-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ui-tile { display: block; border: 2px solid var(--border); border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; transition: border-color .15s, box-shadow .15s; }
.ui-opt > input:checked + .ui-tile { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.ui-opt > input:focus-visible + .ui-tile { outline: 2px solid var(--brand); outline-offset: 2px; }
.ui-opt > b { display: block; margin-top: 7px; font-size: 13px; text-align: center; }
.ui-prev { display: block; height: 84px; position: relative; }
.ui-prev-default { background: #f4f5f7; }
.ui-prev-default::before { content: ""; position: absolute; inset: 12px; background: #fff; border: 1px solid #e6e8ec; border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.ui-prev-liquid { background-color: #dbeafe; background-image: radial-gradient(60% 55% at 12% 8%, #7dd3fc 0, transparent 62%), radial-gradient(55% 50% at 88% 12%, #c4b5fd 0, transparent 62%), radial-gradient(65% 60% at 78% 92%, #f9a8d4 0, transparent 62%); }
.ui-prev-liquid::before { content: ""; position: absolute; inset: 12px; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .3)); border: 1px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 20px rgba(60, 80, 160, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ui-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface-2); }
.ui-seg label { position: relative; cursor: pointer; margin: 0; }
.ui-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ui-seg span { display: block; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.ui-seg input:checked + span { background: var(--brand); color: #fff; }
.ui-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ui-wall .ui-tile { height: 64px; border-radius: 14px; }
.ui-wall > b { font-size: 12px; margin-top: 5px; }
.ui-upload { display: grid; gap: 8px; }
.ui-slider { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; margin: 8px 0; }
.ui-slider label { margin: 0; font-weight: 600; font-size: 13px; }
.ui-slider output { font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
input.ui-range { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; accent-color: var(--brand); height: 28px; }
@media (max-width: 560px) {
  .ui-slider { grid-template-columns: 1fr 48px; }
  .ui-slider label { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------
   Generated: the app's own system-dark badge/chip palette, mirrored per Light/Dark choice
   so status badges, ratings and flashes match the selected look (not the device setting).
   --------------------------------------------------------------------- */
html[data-theme="liquid"][data-mode="dark"] .st-todo,
html[data-theme="liquid"][data-mode="dark"] .pri-low { background: #262b34; color: #c9ced8; }
html[data-theme="liquid"][data-mode="light"] .st-todo { background: #f1f3f6; color: #4b5563 }
html[data-theme="liquid"][data-mode="light"] .pri-low { background: #f1f3f6; color: #4b5563 }
html[data-theme="liquid"][data-mode="dark"] .st-in_progress,
html[data-theme="liquid"][data-mode="dark"] .pri-medium { background: #172554; color: #93c5fd; }
html[data-theme="liquid"][data-mode="light"] .st-in_progress { background: #e8f0ff; color: #1d4ed8 }
html[data-theme="liquid"][data-mode="light"] .pri-medium { background: #e0ecff; color: #1d4ed8 }
html[data-theme="liquid"][data-mode="dark"] .st-in_review { background: #2e1065; color: #c4b5fd; }
html[data-theme="liquid"][data-mode="light"] .st-in_review { background: #f3ecff; color: #6d28d9 }
html[data-theme="liquid"][data-mode="dark"] .st-changes,
html[data-theme="liquid"][data-mode="dark"] .pri-high { background: #431407; color: #fdba74; }
html[data-theme="liquid"][data-mode="light"] .st-changes { background: #fff3e6; color: #c2410c }
html[data-theme="liquid"][data-mode="light"] .pri-high { background: #ffedd5; color: #c2410c }
html[data-theme="liquid"][data-mode="dark"] .st-on_hold { background: #422006; color: #fde047; }
html[data-theme="liquid"][data-mode="light"] .st-on_hold { background: #fef9e7; color: #a16207 }
html[data-theme="liquid"][data-mode="dark"] .st-done { background: #052e16; color: #86efac; }
html[data-theme="liquid"][data-mode="light"] .st-done { background: #e7f7ee; color: #15803d }
html[data-theme="liquid"][data-mode="dark"] .pri-urgent,
html[data-theme="liquid"][data-mode="dark"] .badge-danger { background: #450a0a; color: #fca5a5; }
html[data-theme="liquid"][data-mode="light"] .pri-urgent { background: #fee2e2; color: #b91c1c }
html[data-theme="liquid"][data-mode="light"] .badge-danger { background: #fee2e2; color: #b91c1c }
html[data-theme="liquid"][data-mode="dark"] .avatar { color: hsl(var(--h) 70% 85%); background: hsl(var(--h) 35% 25%); }
html[data-theme="liquid"][data-mode="light"] .avatar { color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 90%) }
html[data-theme="liquid"][data-mode="dark"] .stars .off { color: #374151; }
html[data-theme="liquid"][data-mode="light"] .stars .off { color: #e5e7eb }
html[data-theme="liquid"][data-mode="dark"] .star-input label { color: #374151; }
html[data-theme="liquid"][data-mode="light"] .star-input label { color: #e5e7eb }
html[data-theme="liquid"][data-mode="dark"] .flash-success { background: #052e16; border-color: #14532d; color: #86efac; }
html[data-theme="liquid"][data-mode="light"] .flash-success { background: #ecfdf3; border-color: #bbf0cf; color: #166534 }
html[data-theme="liquid"][data-mode="dark"] .flash-error { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
html[data-theme="liquid"][data-mode="light"] .flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b }
html[data-theme="liquid"][data-mode="dark"] .my-rank,
html[data-theme="liquid"][data-mode="dark"] .winner.w1 { background: #2a2006; border-color: #713f12; color: #fde68a; }
html[data-theme="liquid"][data-mode="light"] .my-rank { background: #fffbeb; color: #92400e }
html[data-theme="liquid"][data-mode="light"] .winner.w1 { background: linear-gradient(180deg, #fffbeb, #fff); border-color: #fde68a }
html[data-theme="liquid"][data-mode="dark"] .btn-kudos { background: #3b0a24; border-color: #831843; color: #f9a8d4; }
html[data-theme="liquid"][data-mode="light"] .btn-kudos { background: #fdf2f8; border-color: #fbcfe8; color: #be185d }
html[data-theme="liquid"][data-mode="dark"] .role-superadmin { background: #eef0f3; color: #111827; }
html[data-theme="liquid"][data-mode="light"] .role-superadmin { background: #111827; color: #fff }
html[data-theme="liquid"][data-mode="dark"] .secret code { background: var(--surface); }
html[data-theme="liquid"][data-mode="light"] .secret code { background: #fff }
html[data-theme="liquid"][data-mode="dark"] .rank.r1 { background: #713f12; color: #fde68a; }
html[data-theme="liquid"][data-mode="light"] .rank.r1 { background: #fde68a; color: #92400e }
html[data-theme="liquid"][data-mode="dark"] .rank.r2 { background: #374151; color: #e5e7eb; }
html[data-theme="liquid"][data-mode="light"] .rank.r2 { background: #e5e7eb; color: #374151 }
html[data-theme="liquid"][data-mode="dark"] .rank.r3 { background: #7c2d12; color: #fed7aa; }
html[data-theme="liquid"][data-mode="light"] .rank.r3 { background: #fed7aa; color: #9a3412 }
html[data-theme="liquid"][data-mode="dark"] .st-cancelled { background: #262b34; color: #8b93a3; }
html[data-theme="liquid"][data-mode="light"] .st-cancelled { background: #f3f4f6; color: #6b7280 }
html[data-theme="liquid"][data-mode="dark"] .k-sheet { background: #052e16; color: #86efac; }
html[data-theme="liquid"][data-mode="light"] .k-sheet { background: #e7f7ee; color: #15803d }
html[data-theme="liquid"][data-mode="dark"] .k-doc,
html[data-theme="liquid"][data-mode="dark"] .k-onedrive { background: #172554; color: #93c5fd; }
html[data-theme="liquid"][data-mode="light"] .k-doc { background: #e0ecff; color: #1d4ed8 }
html[data-theme="liquid"][data-mode="light"] .k-onedrive { background: #dbeafe; color: #1e40af }
html[data-theme="liquid"][data-mode="dark"] .k-slides { background: #422006; color: #fde047; }
html[data-theme="liquid"][data-mode="light"] .k-slides { background: #fef3c7; color: #b45309 }
html[data-theme="liquid"][data-mode="dark"] .k-form,
html[data-theme="liquid"][data-mode="dark"] .k-looker { background: #2e1065; color: #c4b5fd; }
html[data-theme="liquid"][data-mode="light"] .k-form { background: #f3ecff; color: #6d28d9 }
html[data-theme="liquid"][data-mode="light"] .k-looker { background: #e0e7ff; color: #4338ca }
html[data-theme="liquid"][data-mode="dark"] .k-drive { background: #082f49; color: #7dd3fc; }
html[data-theme="liquid"][data-mode="light"] .k-drive { background: #e0f2fe; color: #0369a1 }
html[data-theme="liquid"][data-mode="dark"] .inv-ok { background: #052e16; color: #86efac; }
html[data-theme="liquid"][data-mode="light"] .inv-ok { background: #e7f7ee; color: #15803d }
html[data-theme="liquid"][data-mode="dark"] .inv-low { background: #431407; color: #fdba74; }
html[data-theme="liquid"][data-mode="light"] .inv-low { background: #fff3e6; color: #c2410c }
html[data-theme="liquid"][data-mode="dark"] .inv-out { background: #450a0a; color: #fca5a5; }
html[data-theme="liquid"][data-mode="light"] .inv-out { background: #fee2e2; color: #b91c1c }
html[data-theme="liquid"][data-mode="dark"] .inv-out-row td { background: rgba(127, 29, 29, .18); }
html[data-theme="liquid"][data-mode="light"] .inv-out-row td { background: color-mix(in srgb, #fee2e2 35%, transparent) }
html[data-theme="liquid"][data-mode="dark"] .cal-item.is-over { background: #450a0a; color: #fca5a5; }
html[data-theme="liquid"][data-mode="light"] .cal-item.is-over { background: #fee2e2; color: #991b1b }

/* picker spacing */
.ui-seg { align-self: flex-start; width: fit-content; }
#uiLiquid .field { margin-bottom: 18px; }
.ui-walls { margin-top: 8px; }

/* dark-mode contrast: the brand is lifted toward white in dark mode, so buttons use dark text */
html[data-theme="liquid"][data-mode="dark"] .btn-primary { color: #0c1322; }
html[data-theme="liquid"][data-mode="dark"] .ui-seg input:checked + span { color: #0c1322; }
@media (prefers-color-scheme: dark) {
  html[data-theme="liquid"][data-mode="auto"] .btn-primary { color: #0c1322; }
  html[data-theme="liquid"][data-mode="auto"] .ui-seg input:checked + span { color: #0c1322; }
}
