:root {
  --rw-surface: #eef2f6;
  --rw-panel: #ffffff;
  --rw-line: #d7dee8;
  --rw-text: #16212f;
  --rw-muted: #5a6a7f;
  --rw-accent: #0e7490;
  --rw-accent-hover: #0b6078;
  --rw-primary: #1f4a67;
  --rw-primary-hover: #173a52;

  /* Theme-aware utility tokens */
  --rw-slate-100: #f4f8fc;
  --rw-slate-200: #e8eef5;
  --rw-slate-300: #d2dce8;
  --rw-slate-400: #74859b;
  --rw-slate-500: #5b6b80;
  --rw-slate-600: #7f8fa3;
  --rw-slate-700: #d2dae5;
  --rw-slate-800: #c7d2e0;
  --rw-slate-900: #f8fbff;

  --rw-cyan-100: #0f4f66;
  --rw-cyan-200: #0f607a;
  --rw-cyan-300: #0e7490;
  --rw-cyan-400: #0891b2;
  --rw-cyan-700: #4ea6bf;
  --rw-cyan-800: #72bdd1;
  --rw-cyan-900: #dff6fc;

  --rw-amber-100: #7a4a08;
  --rw-amber-300: #9a5a07;
  --rw-amber-500: #d97706;
  --rw-amber-600: #b45309;
  --rw-amber-700: #92400e;
  --rw-amber-900: #fff2df;

  --rw-emerald-100: #155e4b;
  --rw-emerald-200: #0f7660;
  --rw-emerald-300: #047857;
  --rw-emerald-600: #059669;
  --rw-emerald-900: #dff9ef;

  --rw-fuchsia-300: #a21caf;
  --rw-fuchsia-500: #c026d3;
  --rw-fuchsia-700: #86198f;
  --rw-fuchsia-900: #fbe8ff;

  --ce-shell-base: #eef3f8;
  --ce-shell-grad-1: rgba(192, 38, 211, 0.09);
  --ce-shell-grad-2: rgba(8, 145, 178, 0.12);
  --ce-card-bg: rgba(255, 255, 255, 0.88);
  --ce-card-shadow: 0 20px 34px -24px rgba(22, 33, 47, 0.35);
  --ce-panel-bg: #f8fbff;
  --ce-overlay-bg: rgba(22, 33, 47, 0.42);
}

html.dark {
  --rw-surface: #161a1f;
  --rw-panel: #1f242b;
  --rw-line: #323842;
  --rw-text: #f2f4f7;
  --rw-muted: #b8c0cc;
  --rw-accent: #ef9a68;
  --rw-accent-hover: #f4ad83;
  --rw-primary: #454140;
  --rw-primary-hover: #54504f;

  --rw-slate-100: #f1f5f9;
  --rw-slate-200: #e2e8f0;
  --rw-slate-300: #cbd5e1;
  --rw-slate-400: #94a3b8;
  --rw-slate-500: #64748b;
  --rw-slate-600: #475569;
  --rw-slate-700: #334155;
  --rw-slate-800: #1e293b;
  --rw-slate-900: #0f172a;

  --rw-cyan-100: #cffafe;
  --rw-cyan-200: #a5f3fc;
  --rw-cyan-300: #67e8f9;
  --rw-cyan-400: #22d3ee;
  --rw-cyan-700: #0e7490;
  --rw-cyan-800: #155e75;
  --rw-cyan-900: #164e63;

  --rw-amber-100: #fef3c7;
  --rw-amber-300: #fcd34d;
  --rw-amber-500: #f59e0b;
  --rw-amber-600: #d97706;
  --rw-amber-700: #b45309;
  --rw-amber-900: #78350f;

  --rw-emerald-100: #d1fae5;
  --rw-emerald-200: #a7f3d0;
  --rw-emerald-300: #6ee7b7;
  --rw-emerald-600: #059669;
  --rw-emerald-900: #064e3b;

  --rw-fuchsia-300: #f0abfc;
  --rw-fuchsia-500: #d946ef;
  --rw-fuchsia-700: #a21caf;
  --rw-fuchsia-900: #701a75;

  --ce-shell-base: #0f172a;
  --ce-shell-grad-1: rgba(217, 70, 239, 0.12);
  --ce-shell-grad-2: rgba(6, 182, 212, 0.18);
  --ce-card-bg: rgba(15, 23, 42, 0.75);
  --ce-card-shadow: 0 22px 36px -24px rgba(2, 6, 23, 0.9);
  --ce-panel-bg: #0f172a;
  --ce-overlay-bg: rgba(2, 6, 23, 0.78);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.rw-focus:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rw-accent) 42%, transparent);
}

/* Palette helpers */
.bg-rw-surface { background-color: var(--rw-surface); }
.bg-rw-panel { background-color: var(--rw-panel); }
.bg-rw-panel\/95 { background-color: color-mix(in srgb, var(--rw-panel) 95%, transparent); }
.bg-rw-primary { background-color: var(--rw-primary); }
.text-rw-text { color: var(--rw-text); }
.text-rw-muted { color: var(--rw-muted); }
.text-rw-accent { color: var(--rw-accent); }
.border-rw-line { border-color: var(--rw-line); }
.hover\:bg-rw-primaryHover:hover { background-color: var(--rw-primary-hover); }
.hover\:bg-rw-surface:hover { background-color: color-mix(in srgb, var(--rw-surface) 88%, #000 12%); }

/* Core utility subset (used in templates) */
.font-sans { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.text-center { text-align: center; }
.text-transparent { color: transparent; }
.text-white { color: #fff; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.select-none { user-select: none; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.\\-right-2 { right: -0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: .25rem; margin-right: .25rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-6xl { max-width: 72rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[36px\] { min-height: 36px; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-\[56px\] { min-height: 56px; }
.min-w-\[36px\] { min-width: 36px; }
.min-w-\[44px\] { min-width: 44px; }
.p-1 { padding: .25rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.border { border: 1px solid; }
.border-2 { border: 2px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.rounded { border-radius: .5rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-7xl { font-size: 4.5rem; }
.text-9xl { font-size: 8rem; }
.text-\[11px\] { font-size: 11px; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.01em; }
.tracking-widest { letter-spacing: .1em; }
.tracking-\[0\.08em\] { letter-spacing: .08em; }
.tracking-\[0\.12em\] { letter-spacing: .12em; }
.tracking-\[0\.14em\] { letter-spacing: .14em; }
.tracking-\[0\.16em\] { letter-spacing: .16em; }
.tracking-\[0\.18em\] { letter-spacing: .18em; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.pointer-events-none { pointer-events: none; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

/* Gradient helper used in title */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-via, var(--tw-gradient-to)), var(--tw-gradient-to));
}
.from-cyan-300 { --tw-gradient-from: var(--rw-cyan-300); }
.from-cyan-400 { --tw-gradient-from: var(--rw-cyan-400); }
.via-cyan-400 { --tw-gradient-via: var(--rw-cyan-400); }
.to-fuchsia-400 { --tw-gradient-to: var(--rw-fuchsia-300); }
.to-fuchsia-500 { --tw-gradient-to: var(--rw-fuchsia-500); }

/* Color utility subset */
.text-slate-100 { color: var(--rw-slate-100); }
.text-slate-200 { color: var(--rw-slate-200); }
.text-slate-300 { color: var(--rw-slate-300); }
.text-slate-400 { color: var(--rw-slate-400); }
.text-slate-500 { color: var(--rw-slate-500); }
.text-slate-100\/5 { color: color-mix(in srgb, var(--rw-slate-100) 5%, transparent); }
.text-slate-100\/10 { color: color-mix(in srgb, var(--rw-slate-100) 10%, transparent); }
.text-cyan-100 { color: var(--rw-cyan-100); }
.text-cyan-200 { color: var(--rw-cyan-200); }
.text-cyan-300 { color: var(--rw-cyan-300); }
.text-cyan-300\/80 { color: color-mix(in srgb, var(--rw-cyan-300) 80%, transparent); }
.text-amber-100 { color: var(--rw-amber-100); }
.text-amber-100\/85 { color: color-mix(in srgb, var(--rw-amber-100) 85%, transparent); }
.text-amber-300 { color: var(--rw-amber-300); }
.text-emerald-200 { color: var(--rw-emerald-200); }
.text-emerald-300 { color: var(--rw-emerald-300); }
.text-emerald-100\/85 { color: color-mix(in srgb, var(--rw-emerald-100) 85%, transparent); }
.text-fuchsia-300 { color: var(--rw-fuchsia-300); }

.bg-slate-900 { background-color: var(--rw-slate-900); }
.bg-slate-800 { background-color: var(--rw-slate-800); }
.bg-slate-900\/40 { background-color: color-mix(in srgb, var(--rw-slate-900) 40%, transparent); }
.bg-slate-900\/45 { background-color: color-mix(in srgb, var(--rw-slate-900) 45%, transparent); }
.bg-slate-900\/65 { background-color: color-mix(in srgb, var(--rw-slate-900) 65%, transparent); }
.bg-slate-900\/85 { background-color: color-mix(in srgb, var(--rw-slate-900) 85%, transparent); }
.bg-slate-900\/95 { background-color: color-mix(in srgb, var(--rw-slate-900) 95%, transparent); }
.bg-cyan-900 { background-color: var(--rw-cyan-900); }
.bg-cyan-900\/15 { background-color: color-mix(in srgb, var(--rw-cyan-900) 15%, transparent); }
.bg-cyan-900\/20 { background-color: color-mix(in srgb, var(--rw-cyan-900) 20%, transparent); }
.bg-amber-900\/20 { background-color: color-mix(in srgb, var(--rw-amber-900) 20%, transparent); }
.bg-amber-900\/25 { background-color: color-mix(in srgb, var(--rw-amber-900) 25%, transparent); }
.bg-emerald-900\/20 { background-color: color-mix(in srgb, var(--rw-emerald-900) 20%, transparent); }
.bg-fuchsia-900 { background-color: var(--rw-fuchsia-900); }

.border-slate-600 { border-color: var(--rw-slate-600); }
.border-slate-700 { border-color: var(--rw-slate-700); }
.border-cyan-700 { border-color: var(--rw-cyan-700); }
.border-cyan-400 { border-color: var(--rw-cyan-400); }
.border-cyan-700\/50 { border-color: color-mix(in srgb, var(--rw-cyan-700) 50%, transparent); }
.border-cyan-800\/40 { border-color: color-mix(in srgb, var(--rw-cyan-800) 40%, transparent); }
.border-amber-500\/50 { border-color: color-mix(in srgb, var(--rw-amber-500) 50%, transparent); }
.border-amber-600\/40 { border-color: color-mix(in srgb, var(--rw-amber-600) 40%, transparent); }
.border-amber-700\/40 { border-color: color-mix(in srgb, var(--rw-amber-700) 40%, transparent); }
.border-emerald-600\/40 { border-color: color-mix(in srgb, var(--rw-emerald-600) 40%, transparent); }
.border-emerald-600\/50 { border-color: color-mix(in srgb, var(--rw-emerald-600) 50%, transparent); }
.border-fuchsia-700 { border-color: var(--rw-fuchsia-700); }

.hover\:text-white:hover { color: #fff; }
.hover\:text-slate-200:hover { color: var(--rw-slate-200); }
.hover\:border-slate-500:hover { border-color: var(--rw-slate-500); }

/* Responsive subset */
@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .md\:px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
  .md\:py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .md\:p-5 { padding: 1.25rem; }
  .md\:p-7 { padding: 1.75rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-8xl { font-size: 6rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Today page component styles */
.ce-shell {
  min-height: 100vh;
  background:
      radial-gradient(circle at 85% 10%, var(--ce-shell-grad-1), transparent 38%),
      radial-gradient(circle at 15% 15%, var(--ce-shell-grad-2), transparent 42%),
      var(--ce-shell-base);
}

.ce-card {
  border: 1px solid var(--rw-slate-700);
  border-radius: 1rem;
  background: var(--ce-card-bg);
  box-shadow: var(--ce-card-shadow);
}

.ce-chip {
  border: 1px solid var(--rw-cyan-700);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--rw-cyan-900) 42%, transparent);
  color: var(--rw-cyan-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
}

.ce-chip--phase {
  border-color: var(--rw-fuchsia-700);
  background: color-mix(in srgb, var(--rw-fuchsia-900) 48%, transparent);
  color: var(--rw-fuchsia-300);
}

.ce-chip--metric {
  display: inline-block;
  border: 1px solid var(--rw-slate-600);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--rw-slate-700) 40%, transparent);
  color: var(--rw-slate-400);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .55rem;
}

.ce-button-primary {
  min-height: 52px;
  padding: .5rem 1.25rem;
  border: 1px solid var(--rw-cyan-400);
  border-radius: .85rem;
  background: linear-gradient(90deg, var(--rw-cyan-400) 0%, var(--rw-cyan-300) 100%);
  color: var(--rw-cyan-100);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .12s ease, filter .2s ease;
}

.ce-button-primary:hover { filter: brightness(1.07); }
.ce-button-primary:active { transform: scale(.985); }

.ce-button-primary--compact {
  min-height: 46px;
  font-size: .95rem;
}

/* Warm accent button — amber/orange solid */
.ce-button-warm {
  min-height: 44px;
  padding: .5rem 1.25rem;
  border: 1px solid var(--rw-amber-600);
  border-radius: .75rem;
  background: var(--rw-amber-600);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease, filter .2s ease;
}

.ce-button-warm:hover {
  background: var(--rw-amber-500);
  filter: brightness(1.05);
}

.ce-button-warm:active {
  transform: scale(.985);
}

.ce-button-warm--compact {
  min-height: 36px;
  padding: .35rem .9rem;
  font-size: .82rem;
}

/* Small circular danger icon button (e.g., trash) */
.ce-icon-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: var(--rw-slate-500);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.ce-icon-button-danger:hover {
  color: #f43f5e;
  background: color-mix(in srgb, #f43f5e 12%, transparent);
  border-color: color-mix(in srgb, #f43f5e 25%, transparent);
}

/* Base input styling */
.ce-input {
  border: 1px solid var(--rw-slate-600);
  border-radius: .5rem;
  background: var(--rw-slate-800);
  padding: .5rem .75rem;
  font-size: 1rem;
  color: var(--rw-slate-100);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ce-input::placeholder {
  color: var(--rw-slate-500);
}

.ce-input:focus {
  border-color: var(--rw-amber-500);
  outline: none;
  box-shadow: 0 0 0 1px var(--rw-amber-500);
}

.ce-button-secondary {
  min-height: 48px;
  border: 1px solid var(--rw-slate-600);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--rw-slate-900) 82%, transparent);
  color: var(--rw-slate-200);
  font-weight: 700;
}

.ce-link-danger {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--rw-amber-700) 75%, #7f1d1d 25%);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--rw-amber-900) 35%, transparent);
  color: var(--rw-amber-100);
  font-weight: 700;
  padding: 0 .9rem;
}

.ce-exercise {
  border: 1px solid var(--rw-slate-700);
  border-radius: .95rem;
  background: color-mix(in srgb, var(--rw-slate-900) 68%, transparent);
  transition: border-color .18s ease, transform .14s ease;
}

.ce-exercise:hover {
  border-color: var(--rw-cyan-400);
  transform: translateY(-1px);
}

.ce-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
}

.ce-cal-cell {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--rw-slate-700);
  border-radius: .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
  transition: filter .15s ease, transform .08s ease;
}

.ce-cal-cell:hover { filter: brightness(1.08); }
.ce-cal-cell:active { transform: scale(.98); }

.ce-cal-cell--default {
  color: var(--rw-slate-400);
  background: color-mix(in srgb, var(--rw-slate-900) 60%, transparent);
}

.ce-cal-cell--completed {
  color: var(--rw-emerald-100);
  border-color: var(--rw-emerald-600);
  background: color-mix(in srgb, var(--rw-emerald-600) 26%, transparent);
}

.ce-cal-cell--skipped {
  color: var(--rw-amber-100);
  border-color: var(--rw-amber-500);
  background: color-mix(in srgb, var(--rw-amber-500) 20%, transparent);
}

.ce-cal-cell--today {
  color: var(--rw-cyan-300);
  border-width: 2px;
  border-color: var(--rw-cyan-400);
  background: color-mix(in srgb, var(--rw-cyan-700) 26%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rw-cyan-400) 24%, transparent);
}

.ce-cal-cell--selected {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--rw-fuchsia-500) 40%, transparent);
  border-color: color-mix(in srgb, var(--rw-fuchsia-500) 70%, transparent);
}

.ce-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--rw-slate-700);
  border-radius: 9999px;
  padding: .42rem .9rem;
  font-size: .84rem;
  font-weight: 700;
}

.ce-status--done {
  color: var(--rw-emerald-300);
  border-color: var(--rw-emerald-600);
  background: color-mix(in srgb, var(--rw-emerald-900) 45%, transparent);
}

.ce-status--skipped {
  color: var(--rw-amber-300);
  border-color: var(--rw-amber-500);
  background: color-mix(in srgb, var(--rw-amber-900) 40%, transparent);
}

.ce-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  background: var(--ce-overlay-bg);
  backdrop-filter: blur(4px);
}

.ce-modal-overlay[data-open="true"] {
  display: flex;
}

.ce-modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--rw-slate-700);
  border-radius: 1rem;
  background: var(--ce-panel-bg);
  box-shadow: 0 34px 46px -28px color-mix(in srgb, var(--rw-slate-900) 95%, transparent);
}

@media (min-width: 1024px) {
  .ce-modal-overlay {
    align-items: center;
    padding: 1.25rem;
  }
}


.ce-header-state {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rw-slate-600);
  border-radius: 9999px;
  padding: .08rem .45rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.ce-header-state--not-logged {
  color: var(--rw-slate-300);
  border-color: var(--rw-slate-600);
  background: color-mix(in srgb, var(--rw-slate-700) 52%, transparent);
}

.ce-header-state--logged {
  color: color-mix(in srgb, var(--rw-emerald-200) 84%, #86efac 16%);
  border-color: color-mix(in srgb, var(--rw-emerald-600) 45%, transparent);
  background: color-mix(in srgb, var(--rw-emerald-600) 16%, transparent);
}
