.overview-modal__content {
  width: min(900px,96vw);
  padding: 1.6rem;
}


.overview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: solid 1px var(--border);
  padding: 10px;
}


.overview-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}


.overview-hgroup h2 {
  margin: 0;
  font-size: 1.1rem;
}


.overview-hgroup p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}


.overview-card {
  background: #fff;
  border-radius: 18px;
}


.overview-card__header {
  padding: 1rem 1rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}


.overview-card__title {
  font-size: 0.9rem;
  font-weight: 900;
}


.overview-card__body {
  padding: 0 1rem 1rem;
}


.overview-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}


.overview-kpi {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.75rem;
}


.overview-kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


.overview-kpi__label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
}


.overview-kpi__value {
  margin-top: 0.4rem;
  font-size: 1.3rem;
  font-weight: 950;
}


.overview-kpi__hint {
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.75rem;
}


.overview-pill {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
}


.overview-pill.ok {
  color: #16a34a;
}


.overview-pill.warn {
  color: #d97706;
}


.overview-pill.bad {
  color: #dc2626;
}


.overview-progress {
  margin-top: 0.9rem;
}


.overview-progress__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}


.overview-progress__label {
  font-weight: 900;
  font-size: 0.8rem;
}


.overview-progress__meta {
  color: #64748b;
  font-size: 0.75rem;
}


.overview-track {
  height: 10px;
  background: #e5e7eb;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}


.overview-bar {
  height: 100%;
  background: linear-gradient(90deg,#2563eb,#16a34a);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}


.overview-modal__content.is-animate .overview-bar {
  transform: scaleX(1);
}


.overview-list {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}


.overview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}


.overview-item__left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}


.overview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}


.overview-dot.today {
  background: #2563eb;
}


.overview-dot.overdue {
  background: #dc2626;
}


.overview-dot.soon {
  background: #d97706;
}


.overview-dot.done {
  background: #16a34a;
}


.overview-item__title {
  font-weight: 900;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.overview-item__meta {
  color: #64748b;
  font-size: 0.75rem;
}


.overview-item__right {
  flex: 0 0 auto;
}


.overview-badge {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
}


.overview-badge.overdue {
  color: #dc2626;
}


.overview-badge.today {
  color: #2563eb;
}


.overview-badge.soon {
  color: #d97706;
}


.overview-badge.done {
  color: #16a34a;
}


@media (max-width:900px) {
  .settings__sidebar {
    display: none;
  }
}


@media (max-width:520px) {
  .overview-kpis {
    grid-template-columns: 1fr;
  }
}


:root[data-theme="dark"] .overview-modal__content {
  background: #0f172a;
  border-color: #ffffff14;
  box-shadow: 0 26px 60px #06090d80;
  color: #e5e7eb;
}


:root[data-theme="dark"] .overview-hgroup p,:root[data-theme="dark"] .overview-kpi__label,:root[data-theme="dark"] .overview-kpi__hint,:root[data-theme="dark"] .overview-progress__meta,:root[data-theme="dark"] .overview-item__meta {
  color: #94a3b8;
}


:root[data-theme="dark"] .overview-card,:root[data-theme="dark"] .overview-item {
  background: #111827;
  border-color: #94a3b82e;
}


:root[data-theme="dark"] .overview-kpi {
  background: #111827cc;
  border-color: #94a3b82e;
}


:root[data-theme="dark"] .overview-pill,:root[data-theme="dark"] .overview-badge {
  background: #0f172a;
  border-color: #94a3b840;
}


:root[data-theme="dark"] .overview-track {
  background: #0f172acc;
  border-color: #94a3b82e;
}


:root[data-theme="dark"] #todo-calendar .fc {
  color: var(--cal-text);
  background: var(--cal-surface);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-toolbar-title,:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell-cushion,:root[data-theme="dark"] #todo-calendar .fc .fc-daygrid-day-number {
  color: var(--cal-text);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell,:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell-cushion {
  color: var(--cal-text);
  background: var(--cal-surface);
  border-color: var(--border);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell-cushion,:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell-cushion a,:root[data-theme="dark"] #todo-calendar .fc-day-header-text,:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell-cushion .fc-day-header-text {
  color: #e5e7eb !important;
}


:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell.fc-day,:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell.fc-day-today {
  background: var(--cal-surface);
  border-color: var(--border);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-col-header {
  background: var(--cal-surface);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-col-header-cell,:root[data-theme="dark"] #todo-calendar .fc .fc-daygrid-day,:root[data-theme="dark"] #todo-calendar .fc .fc-scrollgrid,:root[data-theme="dark"] #todo-calendar .fc .fc-scrollgrid-section>td {
  background: var(--cal-surface);
  border-color: var(--border);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-scrollgrid-section-header,:root[data-theme="dark"] #todo-calendar .fc .fc-scrollgrid-section-sticky {
  background: var(--cal-surface);
  border-color: var(--border);
  color: var(--cal-text);
  position: static;
}


:root[data-theme="dark"] #todo-calendar .fc .fc-scrollgrid-sync-inner {
  color: var(--cal-text);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-timegrid-slot,:root[data-theme="dark"] #todo-calendar .fc .fc-timegrid-axis,:root[data-theme="dark"] #todo-calendar .fc .fc-timegrid-divider {
  background: var(--cal-surface);
  border-color: var(--border);
  color: var(--cal-muted);
}


:root[data-theme="dark"] #todo-calendar .fc .fc-button {
  background: #111827;
  border-color: #ffffff14;
  color: #e5e7eb;
}


:root[data-theme="dark"] #todo-calendar .fc .fc-button:hover {
  background: #1f2937;
}


:root[data-theme="dark"] #todo-calendar .fc .fc-today {
  background: #60a5fa2e;
}


:root[data-theme="dark"] #todo-calendar .fc .fc-event {
  color: #0b1517;
  border: none;
}


:root[data-theme="dark"] .calendar-section,:root[data-theme="dark"] .calendar-section * {
  color: var(--cal-text);
}


:root[data-theme="dark"] .calendar-section .cal-title {
  color: #e5e7eb;
}


:root[data-theme="dark"] .calendar-section .cal-subtitle {
  color: #94a3b8;
}


:root[data-theme="dark"] #miniCal,:root[data-theme="dark"] .calendar-section {
  background: #111827f2;
  border-radius: 16px;
}


:root[data-theme="dark"] .calendar-section {
  padding: 1rem;
  box-shadow: 0 20px 40px #02061773;
  margin: 0.6rem 0;
}


:root[data-theme="dark"] .sidebar__group.calendar-section {
  background: #111827f2;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 40px #02061773;
}


:root[data-theme="dark"] #miniCal .calendar-day {
  background: #181c23b3 !important;
  border: 1px solid var(--cal-border) !important;
  color: #e5e7eb !important;
}


:root[data-theme="dark"] #miniCal .calendar-day:hover {
  background: #1f2937d9 !important;
}


:root[data-theme="dark"] .calendar-section .cal-nav-btn,:root[data-theme="dark"] .calendar-section .cal-open-btn,:root[data-theme="dark"] .calendar-section .cal-close-btn {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 6px 14px #02061759;
}


:root[data-theme="dark"] .calendar-section .cal-nav-btn:hover,:root[data-theme="dark"] .calendar-section .cal-open-btn:hover,:root[data-theme="dark"] .calendar-section .cal-close-btn:hover {
  background: #1f2937;
  border-color: #94a3b899;
}


#calendar-day-modal .calendar-day-modal__content {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px #00000040;
  overflow: hidden;
  padding: 0;
}


#calendar-day-modal .calendar-day-modal__header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}


#calendar-day-modal .calendar-day-modal__header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}


#calendar-day-modal .meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}


#calendar-day-modal .chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}


#calendar-day-modal .muted {
  color: var(--muted);
  font-size: 13px;
}


#calendar-day-modal .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}


#calendar-day-modal .icon-btn:hover {
  background: #0f172a14;
}


#calendar-day-modal .list {
  max-height: 420px;
  overflow: auto;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


#calendar-day-modal .item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 1px 2px #0000000f;
  display: flex;
  gap: 12px;
  transition: box-shadow 0.2s ease;
  background: var(--surface);
  cursor: pointer;
}


#calendar-day-modal .item:hover {
  box-shadow: 0 10px 24px #0000001a;
}


#calendar-day-modal .item:focus-visible {
  outline: none;
  border-color: #2563eb99;
  box-shadow: 0 0 0 3px #2563eb24;
}


#calendar-day-modal .avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #10b9811f;
  border: 1px solid rgba(16,185,129,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #059669;
}


#calendar-day-modal .avatar--alt {
  background: #4f46e51f;
  border-color: #4f46e540;
  color: #4338ca;
}


#calendar-day-modal .content {
  flex: 1;
  min-width: 0;
}


#calendar-day-modal .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}


#calendar-day-modal .title {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}


#calendar-day-modal .sub {
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#calendar-day-modal .right {
  display: flex;
  gap: 8px;
  align-items: center;
}


#calendar-day-modal .time {
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}


#calendar-day-modal .calendar-day-modal__footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}


#calendar-day-modal .btn {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}


#calendar-day-modal .btn--ghost {
  background: transparent;
  color: var(--muted);
}


#calendar-day-modal .btn--ghost:hover {
  background: #0f172a14;
}


#calendar-day-modal .btn--primary {
  background: #0f172a;
  color: #fff;
}


#calendar-day-modal .btn--primary:hover {
  background: #111827;
}


#calendar-day-modal .calendar-day-empty {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
}


:root[data-theme="dark"] #calendar-day-modal .icon-btn:hover,:root[data-theme="dark"] #calendar-day-modal .btn--ghost:hover {
  background: #ffffff14;
}


:root[data-theme="dark"] #calendar-day-modal .calendar-day-modal__content {
  background: #111827;
  border-color: #94a3b833;
}


:root[data-theme="dark"] #calendar-day-modal .calendar-day-modal__header h2,:root[data-theme="dark"] #calendar-day-modal .chip,:root[data-theme="dark"] #calendar-day-modal .title {
  color: #e5e7eb;
}


:root[data-theme="dark"] #calendar-day-modal .chip {
  background: #0f172ab3;
}


:root[data-theme="dark"] #calendar-day-modal .item,:root[data-theme="dark"] #calendar-day-modal .calendar-day-modal__footer {
  background: #0f172a;
  border-color: #94a3b829;
}


:root[data-theme="dark"] #calendar-day-modal .time {
  background: #1f2937;
  color: #e5e7eb;
}


:root[data-theme="dark"] #calendar-day-modal .calendar-day-empty {
  background: #0f172a99;
  border-color: #94a3b833;
}


:root[data-theme="dark"] #calendar-day-modal .btn--primary {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.5);
}


:root[data-theme="dark"] #calendar-day-modal .btn--primary:hover {
  background: #111827;
  border-color: #94a3b8b3;
}


:root[data-theme="dark"] #calendar-day-modal .btn--ghost {
  border: 1px solid rgba(148,163,184,0.35);
}


:root[data-theme="dark"] #calendar-day-modal .btn--ghost:hover {
  border-color: #94a3b899;
}


.auth-forgot:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle at 30% 30%,rgba(255,138,91,0.18),transparent 60%);
  filter: blur(1px);
  opacity: 0.8;
  pointer-events: none;
}


.auth-forgot h1 {
  font-size: 1.9rem;
  margin: 0.2rem 0 0.4rem;
  color: var(--text);
}


.auth-forgot .muted {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}


.auth-forgot label {
  gap: 0.3rem;
  font-weight: 600;
  color: #4b5563;
}


.auth-forgot input {
  border-radius: 16px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  box-shadow: inset 0 1px #fffc;
}


.auth-forgot .auth-button {
  margin-top: 0.2rem;
  text-transform: none;
  letter-spacing: 0.4px;
  border: 1px solid var(--border);
}


.auth-forgot__toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}


.auth-forgot__toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}


.modal {
  position: fixed;
  inset: 0;
  background: #06080ca6;
  display: none;
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}


.modal.is-open {
  display: flex;
  animation: fadeUp 0.3s ease;
}


.modal.is-closing {
  display: flex;
}


.modal__content {
  background: #fff;
  color: #101828;
  padding: 1.8rem 1.8rem 1.6rem;
  border-radius: var(--radius);
  width: min(920px,100%);
  display: grid;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 60px #0f172a33;
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transition: opacity 0.32s ease,transform 0.32s ease;
}


.modal.is-open .modal__content {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.modal.is-closing .modal__content {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}


.modal__content.calendar-modal__content {
  background: #fff;
  color: #101828;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 60px #0f172a33;
}


.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}


.modal__content.calendar-modal__content .modal__head {
  color: #edf1f6;
}


.modal__content.calendar-modal__content .modal__head .icon {
  background: #ffffff0f;
  border-color: #ffffff1a;
  color: #e5e7eb;
}


:root[data-theme="dark"] .modal__content.calendar-modal__content {
  background: #181c23f2;
  color: #edf1f6;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 26px 60px #06090d80;
}


:root[data-theme="dark"] .modal__content.calendar-modal__content .modal__head {
  color: #edf1f6;
  background: #181c23f2;
}


:root[data-theme="dark"] .modal__content.calendar-modal__content .modal__head .icon {
  background: #ffffff0f;
  border-color: #ffffff1a;
  color: #e5e7eb;
}


.modal .muted {
  color: #667085;
}


.modal label {
  gap: 0.5rem;
  color: #475467;
  font-weight: 600;
}


#task-modal .task-form__field {
  display: grid;
  gap: 0.34rem;
}


#task-modal .task-form__field>label,#task-modal .task-form__label {
  display: block;
  align-self: end;
  transform: translateY(-2px);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.15;
  color: #475467;
  font-weight: 600;
}


#task-modal .task-priority-field {
  display: grid;
  gap: 0.45rem;
}


#task-modal .task-priority-seg {
  gap: 7px;
  padding: 7px;
}


#task-modal .task-priority-option {
  padding: 7px 10px;
  font-size: 12px;
  gap: 6px;
}


#task-modal .task-priority-dot {
  width: 7px;
  height: 7px;
}


#task-modal .task-priority-option[aria-pressed="true"] .task-priority-dot {
  transform: scale(1.16);
  box-shadow: 0 0 0 3px #0f172a14;
}


#task-modal input,#task-modal select,#task-modal textarea {
  border-radius: 14px;
}


#task-modal input {
  min-height: 44px;
  padding: 0.56rem 0.82rem;
}


#task-modal select {
  min-height: 35px;
  padding: 0.45rem 0.66rem;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 500;
}


#task-modal .cselect {
  z-index: 1;
}


#task-modal .cselect.is-open {
  z-index: 32;
}


#task-modal .cselect__trigger {
  border-radius: 14px;
  min-height: 35px;
  padding: 0.45rem 0.66rem;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 500;
  background: linear-gradient(180deg,#f8fbff,#eef6ff);
  border-color: #2563eb33;
  color: #0f172a;
  box-shadow: inset 0 1px #ffffffe6;
}


#task-modal .cselect__option {
  font-size: 0.88rem;
  line-height: 1.2;
}


#task-modal .cselect__trigger:hover {
  border-color: #2563eb57;
}


#task-modal .cselect__trigger:focus-visible {
  outline: none;
  border-color: #2563eb7a;
  box-shadow: 0 0 0 3px #2563eb29;
}


#task-modal .cselect__chev {
  color: #475467;
}


#task-modal .cselect__menu {
  background: linear-gradient(180deg,#fff,#f8fbff);
  border-color: #2563eb33;
  box-shadow: 0 14px 30px #0f172a33;
}


#task-modal .cselect__option:hover,#task-modal .cselect__option:focus-visible {
  background: #2563eb14;
  color: #1e3a8a;
}


#task-modal .cselect__option.is-selected {
  background: #2563eb29;
  color: #1e3a8a;
  font-weight: 600;
}


#task-modal textarea {
  border-radius: 12px;
  min-height: 240px;
  padding: 0.9rem 0.95rem;
  line-height: 1.45;
}


.modal input,.modal select,.modal textarea {
  background: #fff;
  border-color: #e2e8f0;
  color: #101828;
  box-shadow: none;
  padding: 0.75rem 0.9rem;
}


.modal textarea {
  min-height: 120px;
}


.modal__head .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475467;
}
