/*
# CHUNK_START: GROK_STYLE_OVERHAUL
  Новый стиль в духе grok.com: тёмный фон, белый текст, фиолетово-синие акценты, минимализм.
*/

/* # ANCHOR: color_variables */
:root {
  --bg-dark: #14161d;   /* тёмно-сине-серый фон неба */
  --surface: #1c1e25;   /* поверхности с лёгким сине-серым */
  --border:  #31333a;   /* границы */
  --text:    #e0e0e0;   /* основной текст */
  --text-dim:#9a9a9a;   /* второстепенный текст */
  --accent:  #6b6f7f;   /* спокойный серый акцент */
}

/* # ANCHOR: base-colors */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  max-width: 100vw;
  overflow-x: hidden;
}

/* # ANCHOR: calendar-grid */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 16px;
  max-width: 100vw;
}

.day {
  border: 1px solid var(--border);
  padding: 4px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-size: 15px;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 0.7em;
}

.has-task:not(.today) {
  background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4d 100%);
  color: var(--text);
}

.today {
  background: linear-gradient(90deg, #4a4a4d 0%, #5b5b60 100%) !important;
  border: 3px solid #4a4a4d !important;
  color: #fff !important;
  font-weight: 700;
  animation: todayPulse 1.5s infinite;
}

.selected:not(.today) {
  background: linear-gradient(90deg, #46464a 0%, #5b5b60 100%);
  color: var(--text);
}

.selected.today {
  box-shadow: 0 0 0 4px #6366f1, 0 0 12px #a21caf;
  border: 3px solid #6366f1 !important;
}

@media (prefers-color-scheme: dark) {
  .has-task:not(.today) {
    background: linear-gradient(90deg, #a21caf 0%, #6366f1 100%);
  }
  .selected:not(.today) {
    background: linear-gradient(90deg, #818cf8 0%, #6366f1 100%);
    color: #fff;
  }
}

#task-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
#task-form input, #task-form button {
  padding: 6px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.5em;
  transition: border 0.2s, box-shadow 0.2s;
}
#task-form input:focus, #task-form button:focus {
  outline: none;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
#task-form button {
  background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4d 100%);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  border: none;
}
#task-form button:hover {
  filter: brightness(1.1);
}

.task-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  background: var(--surface);
  border-radius: 0.8em;
  box-shadow: 0 1px 4px #0003;
  padding: 8px 10px;
  font-size: 15px;
  min-height: 36px;
  max-width: 100vw;
  overflow-x: auto;
  color: var(--text);
}
.task-item span {
  flex: 1;
  line-height: 1.3;
  min-width: 0;
  word-break: break-word;
}
.task-item button {
  margin-left: 6px;
  cursor: pointer;
  font-size: 17px;
  background: none;
  border: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.task-item button:hover {
  color: var(--text);
}

#msg-box {
  margin: 10px 0;
  padding: 8px;
  border-radius: 0.7em;
  font-weight: bold;
  text-align: center;
  display: none;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
}
h2, h3 {
  margin: 16px 0 8px 0;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
#calendar {
  margin-top: 10px;
}

@media (max-width: 600px) {
  body { font-size: 19px; }
  .task-item { font-size: 18px; min-height: 44px; padding: 12px 8px; }
  .task-item span { font-size: 18px; }
  #task-form input, #task-form button { font-size: 18px; }
  .day { font-size: 18px; }
  h2, h3 { font-size: 22px; }
}

@keyframes todayPulse {
  0% { box-shadow: 0 0 0 0 #4a4a4d88; }
  70% { box-shadow: 0 0 0 8px #4a4a4d00; }
  100% { box-shadow: 0 0 0 0 #4a4a4d00; }
}

/* # ANCHOR: tabs */
.tabs {
  background: none;
  border-radius: 0.6em;
  box-shadow: none;
  font-size: 0.85em;
  padding: 0.2em 0.2em;
}
.tab-btn {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
  border-radius: 0.5em;
  padding: 0.08em 0.18em;
  font-size: 0.82em;
  min-width: 0;
  box-shadow: none;
  color: var(--text-dim);
}
.tab-btn.bg-cosmic-700, .tab-btn.active {
  background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4d 100%);
  color: var(--text);
  box-shadow: none;
}
.tab-btn:active {
  filter: none;
}
.tab-btn:focus,
.tab-btn:active {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--accent) !important;
  background: none !important;
  border: none !important;
  filter: none !important;
}
.tab-btn span { display: block; }
.tab-btn span.text-2xl { font-size: 1.15em; }
.tab-btn span.text-xs { font-size: 0.68em; margin-top: -0.18em; }

button.tab-btn.bg-cosmic-700 {
  background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4d 100%) !important;
}

/* # ANCHOR: cards */
.thought-card, .reminder-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  box-shadow: 0 4px 16px #00000044, 0 1.5px 6px #00000022;
  border-radius: 1.2em;
  background: rgba(30,35,60,0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f3f3fa;
}
.category-chip {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.2em 0.7em;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-radius: 9999px;
  text-transform: lowercase;
  font-weight: 600;
}
.body-text {
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}
.action-btn {
  align-self: flex-end;
  margin-top: 0.6rem;
}

/* # ANCHOR: fab */
.fab {
  box-shadow: 0 6px 24px #00000055, 0 1.5px 6px #00000022;
  border: none;
  outline: none;
  background: linear-gradient(90deg, #3a3a3c 0%, #4a4a4d 100%);
  color: var(--text);
  border-radius: 50%;
  font-size: 2em;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}
.fab:active {
  filter: brightness(0.93);
}

/* # ANCHOR: timeline */
#reminders-timeline {
  min-height: 40px;
}
#reminders-timeline .w-3 {
  box-shadow: 0 0 8px #00000066;
}

@media (max-width: 600px) {
  .thought-card, .reminder-card { font-size: 1.1em; padding: 1.1em 0.8em; }
  .fab { width: 56px; height: 56px; font-size: 2em; }
  .tabs { font-size: 1em; }
}

/* # CHUNK_END: GROK_STYLE_OVERHAUL */

/* # ANCHOR: hidden_tab_controllers */
.hidden-tab-controller {
  display: none;
}

.star {
  position: absolute;
  background-color: #dfe4ff; /* чуть голубоватые звёзды */
  border-radius: 50%;
  /* # ANCHOR: star_animations */
  animation: twinkle var(--duration) ease-in-out infinite;
}

.card-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.1rem 1.2rem 1.1rem;
  border-radius: 1.3em;
  background: rgba(30,35,60,0.72);
  box-shadow: 0 6px 32px #00000033, 0 1.5px 6px #00000022;
  min-height: 90px;
  margin-bottom: 1.1rem;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card-modern:hover {
  box-shadow: 0 10px 40px #00000055, 0 2px 8px #00000033;
  transform: translateY(-2px) scale(1.012);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.92em;
  font-weight: 600;
  padding: 0.18em 0.95em 0.18em 0.7em;
  border-radius: 9999px;
  background: rgba(255,255,255,0.13);
  color: #fff;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px #0002;
  position: relative;
}
.category-chip .chip-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.2em;
  border-radius: 50%;
  background: #7dd3fc;
}
.category-chip[data-category*="работа"] .chip-icon { background: #60a5fa; }
.category-chip[data-category*="личн"] .chip-icon { background: #f472b6; }
.category-chip[data-category*="разраб"] .chip-icon { background: #a78bfa; }
.category-chip[data-category*="финанс"] .chip-icon { background: #facc15; }
.category-chip[data-category*="книг"] .chip-icon { background: #34d399; }
.category-chip[data-category*="проч"] .chip-icon { background: #fbbf24; }
.category-chip[data-category*="проек"] .chip-icon { background: #f87171; }
.category-chip[data-category*="знан"] .chip-icon { background: #38bdf8; }
.category-chip[data-category="default"] .chip-icon { background: #a3a3a3; }
.card-content {
  font-size: 1.08em;
  font-weight: 500;
  line-height: 1.6;
  color: #f3f3fa;
  max-height: 4.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
}
.card-content:after {
  content: '';
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 1.2em;
  background: linear-gradient(180deg, transparent, rgba(30,35,60,0.85));
  pointer-events: none;
  display: block;
}
.card-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7em;
}
.action-btn {
  font-size: 1em;
  font-weight: 700;
  border-radius: 0.8em;
  box-shadow: 0 2px 8px #0003;
  padding: 0.6em 1.3em;
  transition: background 0.18s, transform 0.13s;
}
.action-btn:active {
  transform: scale(0.97);
}

.card-clean {
  background: rgba(30,35,60,0.92);
  border-radius: 1.1em;
  box-shadow: 0 2px 8px #0002;
  margin-bottom: 0.7em;
  padding: 0.9em 1em 0.9em 0.7em;
  border: 1px solid rgba(80,90,120,0.13);
  min-height: 56px;
  position: relative;
}
.category-dot {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  margin-bottom: 0.3em;
  background: #a3a3a3;
  display: block;
}
.category-dot[data-category*="работа"] { background: #60a5fa; }
.category-dot[data-category*="личн"] { background: #f472b6; }
.category-dot[data-category*="разраб"] { background: #a78bfa; }
.category-dot[data-category*="финанс"] { background: #facc15; }
.category-dot[data-category*="книг"] { background: #34d399; }
.category-dot[data-category*="проч"] { background: #fbbf24; }
.category-dot[data-category*="проек"] { background: #f87171; }
.category-dot[data-category*="знан"] { background: #38bdf8; }
.category-dot[data-category="default"] { background: #a3a3a3; }
.category-label {
  font-size: 0.72em;
  color: #bdbdbd;
  margin-top: 0.1em;
  text-align: center;
  font-weight: 500;
  text-transform: lowercase;
}
.main-text {
  font-size: 1.04em;
  font-weight: 500;
  line-height: 1.5;
  color: #f3f3fa;
  flex: 1 1 0%;
  word-break: break-word;
  margin-right: 0.7em;
  margin-left: 0.1em;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.action-btn-small {
  background: none;
  border: none;
  outline: none;
  margin-left: 0.2em;
  margin-right: 0.1em;
  padding: 0.2em 0.3em;
  border-radius: 0.7em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s, box-shadow 0.13s, transform 0.13s;
  font-size: 1.25em;
  color: #4ade80;
  box-shadow: none;
}
.action-btn-small:hover {
  background: rgba(52,211,153,0.08);
  color: #22c55e;
}
.action-btn-small.done {
  color: #a3a3a3;
  cursor: default;
}
.icon-check {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background: none;
  border-radius: 50%;
  border: 2.5px solid #4ade80;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-left: 0.1em;
  margin-bottom: 0.1em;
  position: relative;
}
.icon-done {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #a3a3a3;
  position: relative;
}
.icon-done:after {
  content: '';
  display: block;
  position: absolute;
  left: 0.35em;
  top: 0.15em;
  width: 0.35em;
  height: 0.7em;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

.reminders-card-ios {
  background: rgba(255,255,255,0.85);
  border-radius: 1.2em;
  box-shadow: 0 4px 18px #0001, 0 1.5px 6px #0002;
  margin-bottom: 1.1em;
  padding: 1.1em 1.1em 1.1em 0.7em;
  min-height: 62px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1.5px solid rgba(180,180,200,0.13);
}
.cat-ios {
  min-width: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}
.cat-dot-ios {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  margin-bottom: 0.25em;
  background: #a3a3a3;
  display: block;
}
.cat-dot-ios[data-category*="работа"] { background: #60a5fa; }
.cat-dot-ios[data-category*="личн"] { background: #f472b6; }
.cat-dot-ios[data-category*="разраб"] { background: #a78bfa; }
.cat-dot-ios[data-category*="финанс"] { background: #facc15; }
.cat-dot-ios[data-category*="книг"] { background: #34d399; }
.cat-dot-ios[data-category*="проч"] { background: #fbbf24; }
.cat-dot-ios[data-category*="проек"] { background: #f87171; }
.cat-dot-ios[data-category*="знан"] { background: #38bdf8; }
.cat-dot-ios[data-category="default"] { background: #a3a3a3; }
.cat-label-ios {
  font-size: 0.72em;
  color: #8a8a8a;
  margin-top: 0.1em;
  text-align: center;
  font-weight: 500;
  text-transform: lowercase;
}
.main-text-ios {
  font-size: 1.13em;
  font-weight: 600;
  line-height: 1.5;
  color: #232336;
  flex: 1 1 0%;
  word-break: break-word;
  margin-right: 0.7em;
  margin-left: 0.1em;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  position: relative;
}
.main-text-ios:after {
  content: '';
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 1.2em;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  display: block;
}
.done-btn-ios {
  background: #f3f3fa;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  width: 2.1em;
  height: 2.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 0.1em;
  box-shadow: 0 1px 4px #0001;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.13s, transform 0.13s;
  font-size: 1.2em;
  color: #4ade80;
}
.done-btn-ios:hover {
  background: #e0f7ef;
  color: #22c55e;
  box-shadow: 0 2px 8px #22c55e22;
}
.done-btn-ios.done {
  background: #e5e7eb;
  color: #a3a3a3;
  border-color: #e5e7eb;
  cursor: default;
}
.icon-check-ios {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background: none;
  border-radius: 50%;
  border: 2.5px solid #4ade80;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  margin-left: 0.1em;
  margin-bottom: 0.1em;
  position: relative;
}
.icon-done-ios {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #a3a3a3;
  position: relative;
}
.icon-done-ios:after {
  content: '';
  display: block;
  position: absolute;
  left: 0.32em;
  top: 0.13em;
  width: 0.32em;
  height: 0.65em;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}

.reminder-card-2row {
  background: rgba(255,255,255,0.21);
  border-radius: 0.7em;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 0.4em;
  padding: 0.42em 0.5em 0.48em 0.5em;
  min-height: 27px;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  border: 1px solid rgba(180,180,200,0.07);
}
.reminder-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reminder-cat-pill {
  min-width: 1.1em;
  padding: 0.09em 0.43em;
  font-size: 0.7em;
  font-weight: 600;
  border-radius: 9999px;
  margin-right: 0.1em;
  background: rgba(255,255,255,0.18);
  color: #232336;
  box-shadow: 0 2px 8px #0001;
}
.reminder-cat-pill[data-category*="работа"] { background: #e0f2ff; color: #2563eb; }
.reminder-cat-pill[data-category*="личн"] { background: #ffe4f1; color: #be185d; }
.reminder-cat-pill[data-category*="разраб"] { background: #ede9fe; color: #7c3aed; }
.reminder-cat-pill[data-category*="финанс"] { background: #fef9c3; color: #b45309; }
.reminder-cat-pill[data-category*="книг"] { background: #d1fae5; color: #047857; }
.reminder-cat-pill[data-category*="проч"] { background: #fef3c7; color: #92400e; }
.reminder-cat-pill[data-category*="проек"] { background: #fee2e2; color: #b91c1c; }
.reminder-cat-pill[data-category*="знан"] { background: #bae6fd; color: #0369a1; }
.reminder-cat-pill[data-category="default"] { background: #e5e7eb; color: #6b7280; }
.reminder-btn-icon {
  background: none;
  border: 2px solid #bdbdbd;
  border-radius: 0.25em;
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s;
  margin-left: 0.1em;
  margin-right: 0.1em;
  box-shadow: none;
  padding: 0;
}
.reminder-btn-icon:hover:not(.done) {
  border-color: #22c55e;
}
.reminder-btn-icon.done {
  background: #22c55e;
  border-color: #22c55e;
  cursor: default;
  opacity: 1;
}
.reminder-main-text {
  font-size: 0.54em;
  margin-top: 0.09em;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.reminder-btn-icon .icon-check-ios {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reminder-btn-icon .icon-check-ios {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
}
.reminder-btn-icon .icon-check-ios:before {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background: none;
  border: none;
}
.reminder-btn-icon .icon-check-ios {
  position: relative;
}
.reminder-btn-icon .icon-check-ios:after {
  content: '';
  position: absolute;
  left: 0.22em;
  top: 0.45em;
  width: 0.45em;
  height: 0.22em;
  border-left: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
  transform: rotate(-45deg);
}

.thought-card-2row {
  background: rgba(255,255,255,0.21);
  border-radius: 0.7em;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 0.4em;
  padding: 0.42em 0.5em 0.48em 0.5em;
  min-height: 27px;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  border: 1px solid rgba(180,180,200,0.07);
}
.thought-main-text {
  font-size: 0.54em;
  margin-top: 0.09em;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: -webkit-box;
  word-break: break-word;
}

body.light-theme #calendar-month-label {
  color: #232336 !important;
  font-family: 'Orbitron', 'Inter', 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0.01em;
}

body:not(.light-theme) .reminder-card-2row,
body:not(.light-theme) .thought-card-2row {
  background: rgba(255,255,255,0.48);
  color: #f3f3fa;
}
body:not(.light-theme) .reminder-main-text,
body:not(.light-theme) .thought-main-text {
  color: #f3f3fa;
}
body:not(.light-theme) .reminder-cat-pill[data-category*="работа"]  { background: #2563eb; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="личн"]   { background: #be185d; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="разраб"] { background: #7c3aed; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="финанс"] { background: #facc15; color: #232336; font-weight: 700; text-shadow: 0 1px 4px #fff6; }
body:not(.light-theme) .reminder-cat-pill[data-category*="книг"]   { background: #047857; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="проч"]   { background: #92400e; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="проек"]  { background: #b91c1c; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category*="знан"]   { background: #0369a1; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }
body:not(.light-theme) .reminder-cat-pill[data-category="default"] { background: #6b7280; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #0006; }

/* # ANCHOR: bottom-nav-padding */
.pb-bottom-nav {
  padding-bottom: 72px;
}

/* # ANCHOR: light_theme_task_card */
body.light-theme #task-list > li,
body.light-theme .task-item {
  background: #fff !important;
  color: #232336 !important;
  border: 1.5px solid #e5e7eb !important;
  box-shadow: 0 2px 12px #0001, 0 1.5px 6px #0000000a !important;
  font-size: 15px !important;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}
body.light-theme #task-list > li .font-bold,
body.light-theme .task-item .font-bold {
  color: #18181b !important;
  text-shadow: none !important;
  font-size: 0.95em !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
body.light-theme #task-list > li .text-cosmic-100,
body.light-theme .task-item .text-cosmic-100 {
  color: #4b5563 !important;
}
body.light-theme #task-list > li .text-cosmic-300,
body.light-theme .task-item .text-cosmic-300 {
  color: #6b7280 !important;
}
body.light-theme #task-list > li .text-blue-200,
body.light-theme .task-item .text-blue-200 {
  color: #2563eb !important;
}
body.light-theme #task-list > li .text-blue-300,
body.light-theme .task-item .text-blue-300 {
  color: #4b5563 !important;
}
body.light-theme #task-list > li .border-space-700,
body.light-theme .task-item.border-space-700 {
  border-color: #e5e7eb !important;
}
body.light-theme #task-list > li .bg-space-800\/60,
body.light-theme .task-item.bg-space-800\/60 {
  background: #fff !important;
}
body.light-theme #task-list > li .ring-cosmic-400,
body.light-theme .task-item.ring-cosmic-400 {
  box-shadow: 0 0 0 2px #facc15 !important;
}
body.light-theme #task-list > li .glow-effect,
body.light-theme .task-item.glow-effect {
  box-shadow: 0 0 12px 2px #facc1580 !important;
}
body.light-theme #task-list > li button,
body.light-theme .task-item button {
  color: #9ca3af !important;
  background: none !important;
}
body.light-theme #task-list > li button:hover,
body.light-theme .task-item button:hover {
  color: #232336 !important;
}
/* # ANCHOR_END: light_theme_task_card */

/* # ANCHOR: light_theme_task_date_icon */
body.light-theme #task-list > li .date-dark,
body.light-theme .task-item .date-dark {
  color: #18181b !important;
}
body.light-theme #task-list > li .date-dark-strong,
body.light-theme .task-item .date-dark-strong {
  color: #000 !important;
  font-weight: 600 !important;
}
/* # ANCHOR_END: light_theme_task_date_icon */

/* # ANCHOR: light_theme_tasklist_header */
body.light-theme h3.font-orbitron {
  color: #18181b !important;
  text-shadow: none !important;
}
/* # ANCHOR_END: light_theme_tasklist_header */

/* # ANCHOR: light_theme_task_title */
body.light-theme #task-list > li .font-bold,
body.light-theme .task-item .font-bold {
  color: #18181b !important;
  text-shadow: none !important;
  font-size: 0.95em !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
/* # ANCHOR_END: light_theme_task_title */

/* # ANCHOR: light_theme_task_dep */
body.light-theme #task-list > li .text-blue-300,
body.light-theme .task-item .text-blue-300 {
  color: #4b5563 !important;
}
/* # ANCHOR_END: light_theme_task_dep */

/* # ANCHOR: overdue_task_light_theme_fix */
body.light-theme #task-list > li.border-red-500.bg-red-900\/40,
body.light-theme .task-item.border-red-500.bg-red-900\/40 {
  border-color: #ef4444 !important; /* Tailwind red-500 */
  background: #fee2e2 !important;   /* Tailwind red-100 */
}
/* # ANCHOR_END: overdue_task_light_theme_fix */

/* ANCHOR: edit_task_modal_styles */
#edit-task-modal {
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  position: fixed;
  inset: 0;
}
#edit-task-modal[style*="display: flex"] {
  display: flex !important;
}
#edit-task-modal .animate-fade-in {
  animation: fadeInModal 0.18s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
/* ANCHOR_END: edit_task_modal_styles */ 