:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --border-darker: #c1c9d4;
  --border-strong: #94a3b8;
  --accent-blue: #2563eb;
  --accent-blue-dark: #1e40af;
  --accent-green: #16a34a;
  --accent-amber: #d97706;
  --accent-red: #ff3333;
  --accent-purple: #8b5cf6;
  --accent-purple-dark: #6d28d9;
  --accent-teal: #186f95;
  --hover-bg: #f3f4f6;
  --scrollbar-thumb: #94a3b8;
  --scrollbar-thumb-hover: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --calendar-weekend-header-fill-solid:
    linear-gradient(
      0deg,
      rgba(107, 114, 128, 0.18),
      rgba(107, 114, 128, 0.18)),
    var(--bg-secondary);
  --calendar-weekend-day-fill-solid:
    linear-gradient(
      0deg,
      rgba(107, 114, 128, 0.10),
      rgba(107, 114, 128, 0.10)),
    var(--bg-primary);
  --calendar-weekend-day-fill-solid-hover:
    linear-gradient(
      0deg,
      rgba(107, 114, 128, 0.16),
      rgba(107, 114, 128, 0.16)),
    var(--bg-secondary);
  --calendar-weekend-header-fill-striped:
    repeating-linear-gradient(
      
      135deg,
      rgba(100, 116, 139, 0.20) 0,
      rgba(100, 116, 139, 0.20) 7px,
      rgba(100, 116, 139, 0.08) 7px,
      rgba(100, 116, 139, 0.08) 14px ),
    var(--bg-secondary);
  --calendar-weekend-day-fill-striped:
    repeating-linear-gradient(
      
      135deg,
      rgba(100, 116, 139, 0.16) 0,
      rgba(100, 116, 139, 0.16) 7px,
      rgba(100, 116, 139, 0.05) 7px,
      rgba(100, 116, 139, 0.05) 14px ),
    var(--bg-primary);
  --calendar-weekend-day-fill-striped-hover:
    repeating-linear-gradient(
      
      135deg,
      rgba(100, 116, 139, 0.22) 0,
      rgba(100, 116, 139, 0.22) 7px,
      rgba(100, 116, 139, 0.10) 7px,
      rgba(100, 116, 139, 0.10) 14px ),
    var(--bg-secondary);
  --calendar-weekend-header-fill: var(--calendar-weekend-header-fill-solid);
  --calendar-weekend-day-fill: var(--calendar-weekend-day-fill-solid);
  --calendar-weekend-day-fill-hover: var(--calendar-weekend-day-fill-solid-hover);
}
.checkbox-row {
  display: flex;
  align-items: center;
  margin: 6px 0;
}
.checkbox-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: transparent;
}
.checkbox-toggle.checked,
.checkbox-toggle[aria-pressed=true] {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}
.check-text {
  flex: 1;
  min-height: 18px;
  outline: none;
  padding-left: 8px;
}
.checkbox-toggle.variant-1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.checkbox-toggle.variant-1[aria-pressed=true],
.checkbox-toggle.variant-1.checked {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  background-image: none;
}
[data-theme=dark] {
  --bg-primary: #0f1419;
  --bg-secondary: #1c1f2b;
  --bg-tertiary: #252a36;
  --bg-card: #1a1f2e;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border: #374151;
  --border-light: #2d3340;
  --border-darker: #4b5563;
  --border-strong: #4b5563;
  --hover-bg: #2d3340;
  --accent-blue: #3b82f6;
  --accent-blue-dark: #1e40af;
  --accent-green: #0ea36a;
  --accent-amber: #d18b06;
  --accent-green-strong: #0c5036;
  --accent-amber-strong: #4f2500;
  --accent-red: #ff4444;
  --accent-purple: #a78bfa;
  --accent-purple-dark: #7c3aed;
  --accent-teal: #2495c7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
  --scrollbar-thumb: #475569;
  --scrollbar-thumb-hover: #334155;
  --calendar-weekend-header-fill-solid:
    linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.21),
      rgba(148, 163, 184, 0.21)),
    var(--bg-tertiary);
  --calendar-weekend-day-fill-solid:
    linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.15),
      rgba(148, 163, 184, 0.15)),
    var(--bg-secondary);
  --calendar-weekend-day-fill-solid-hover:
    linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.19),
      rgba(148, 163, 184, 0.19)),
    var(--bg-tertiary);
  --calendar-weekend-header-fill-striped:
    repeating-linear-gradient(
      
      135deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 7px,
      rgba(255, 255, 255, 0.04) 7px,
      rgba(255, 255, 255, 0.04) 14px ),
    var(--bg-card);
  --calendar-weekend-day-fill-striped:
    repeating-linear-gradient(
      
      135deg,
      rgba(255, 255, 255, 0.10) 0,
      rgba(255, 255, 255, 0.10) 7px,
      rgba(255, 255, 255, 0.03) 7px,
      rgba(255, 255, 255, 0.03) 14px ),
    var(--bg-card);
  --calendar-weekend-day-fill-striped-hover:
    repeating-linear-gradient(
      
      135deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 7px,
      rgba(255, 255, 255, 0.05) 7px,
      rgba(255, 255, 255, 0.05) 14px ),
    var(--bg-tertiary);
  --calendar-weekend-header-fill: var(--calendar-weekend-header-fill-solid);
  --calendar-weekend-day-fill: var(--calendar-weekend-day-fill-solid);
  --calendar-weekend-day-fill-hover: var(--calendar-weekend-day-fill-solid-hover);
}
.resizer {
  width: 4px;
  background: var(--border);
  cursor: col-resize;
  transition: background 0.2s;
  position: relative;
  user-select: none;
}
.resizer:hover,
.resizer.dragging {
  background: var(--accent-blue);
}
.app {
  display: flex;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}
@media (max-width: 768px) {
  body.notify-scroll-lock {
    overflow: hidden;
  }
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  height: 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.workspace-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.workspace-version {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}
.mobile-version {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-section {
  padding: 16px 0;
}
.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 20px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
}
.nav-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left-color: var(--accent-blue);
}
.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.new-project-btn {
  margin: 16px 20px;
  padding: 12px 16px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}
.page.active {
  display: flex;
}
.page-header {
  padding: 12px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 80px;
  box-sizing: border-box;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.task-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.task-nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.task-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.task-nav-btn:disabled:hover {
  background: none;
  color: var(--text-secondary);
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 2px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}
.page-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  position: relative;
  background: var(--bg-primary);
}
#tasks .page-content {
  padding-top: 16px;
}
.project-details-view .page-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  min-height: 0;
  height: calc(100vh - 80px);
}
.nav-section {
  padding: 16px 0;
}
.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 20px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
}
.nav-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.nav-item.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left-color: var(--accent-blue);
}
.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.new-project-btn {
  margin: 16px 20px;
  padding: 12px 16px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.flatpickr-calendar {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  color: var(--text-primary) !important;
  font-family: inherit;
  font-size: 14px;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: var(--border) !important;
}
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: var(--bg-card) !important;
}
.flatpickr-months {
  background: var(--bg-secondary) !important;
  padding: 6px 8px;
}
.flatpickr-month {
  color: var(--text-primary) !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
  color: var(--text-primary) !important;
  fill: var(--text-primary) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--text-primary) !important;
}
.flatpickr-current-month {
  color: var(--text-primary) !important;
}
.flatpickr-monthDropdown-months {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}
.flatpickr-monthDropdown-months option {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}
.numInput.cur-year {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}
.flatpickr-weekdays {
  background: var(--bg-secondary) !important;
}
.flatpickr-weekday {
  color: var(--text-muted) !important;
}
.flatpickr-days {
  background: var(--bg-card) !important;
}
.flatpickr-day {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  border: none !important;
}
.flatpickr-day:hover:not(.selected):not(.today) {
  background: var(--hover-bg) !important;
  border: 1px solid var(--accent-blue) !important;
}
.flatpickr-day.today {
  background: transparent !important;
  border: 1px solid var(--accent-blue) !important;
  color: var(--accent-blue) !important;
}
.flatpickr-day.today:hover {
  background: var(--hover-bg) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--accent-blue) !important;
  color: #fff !important;
  border: 1px solid var(--accent-blue) !important;
}
.flatpickr-day.inRange {
  background: rgba(59, 130, 246, 0.15) !important;
  border: none !important;
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  background: transparent !important;
  color: var(--text-muted) !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
}
.flatpickr-today-footer {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.flatpickr-today-btn {
  padding: 6px 12px;
  border: 1px solid var(--accent-blue);
  background: var(--accent-blue);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s ease;
}
.flatpickr-today-btn:hover {
  filter: brightness(1.05);
  border-color: var(--accent-blue);
}
.date-input-wrapper {
  position: relative;
  width: 100%;
}
.date-input-wrapper input {
  box-sizing: border-box;
}
.date-input-wrapper .date-display {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: text;
}
.form-input,
.form-textarea,
.form-select,
.modal-content,
.task-card,
.project-card,
.kanban-column,
.dropdown-panel {
  border: 1px solid var(--border-strong);
}
.modal-content {
  color: var(--text-primary);
}
.modal-content h2,
.modal-content h3,
.modal-content h4 {
  color: var(--text-primary);
}
.modal-content .form-label,
.modal-content label {
  color: var(--text-secondary);
}
.modal-content p,
.modal-content .task-description-display {
  color: var(--text-secondary);
}
.feedback-input-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: stretch;
}
.feedback-subtitle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
#feedback .page-subtitle {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.feedback-save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.feedback-save-status.is-hidden {
  display: none;
}
.feedback-save-indicator {
  display: none;
}
.feedback-save-status.is-saving {
  color: var(--accent-blue);
}
.feedback-save-status.is-saving .feedback-save-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: feedback-spin 0.8s linear infinite;
}
.feedback-save-status.is-error {
  color: var(--accent-red);
}
.feedback-save-status.is-offline {
  color: var(--accent-amber);
}
.feedback-save-status.is-saved .feedback-save-indicator {
  display: inline-block;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
@keyframes feedback-spin {
  to {
    transform: rotate(360deg);
  }
}
.feedback-type-select {
  padding: 12px 16px;
  padding-right: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  min-width: 140px;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
[data-theme=dark] .feedback-type-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}
#feedback-type-group {
  position: relative;
}
#feedback-type-group .filter-button {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
[data-theme=light] #feedback-type-group .filter-button {
  background: var(--bg-card);
}
#feedback-type-group .dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
}
#feedback-type-group .dropdown-list {
  max-height: 200px;
}
.feedback-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  height: 48px;
}
[data-theme=light] #feedback .feedback-input {
  background: var(--bg-card);
}
.feedback-screenshot-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  border-width: 2px;
  border-style: dashed;
  border-color: var(--border);
  background: var(--bg-tertiary);
  text-align: center;
}
[data-theme=light] #feedback .feedback-screenshot-dropzone {
  background: var(--bg-card);
  border-color: var(--border-strong);
  border-width: 1.5px;
}
.feedback-screenshot-dropzone-text {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feedback-screenshot-dropzone-icon {
  font-size: 18px;
  margin-left: 8px;
}
.feedback-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}
.feedback-item.done {
  opacity: 0.5;
}
.feedback-item:hover {
  border-color: var(--accent-blue);
}
.feedback-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.feedback-type-icon {
  font-size: 20px;
}
.feedback-description {
  flex: 1;
  color: var(--text-primary);
}
.feedback-item.done .feedback-description {
  text-decoration: line-through;
}
.feedback-date {
  font-size: 12px;
  color: var(--text-muted);
}
.screenshot-link {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  flex-shrink: 0;
}
.screenshot-link:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
}
.feedback-item {
  position: relative;
}
.feedback-delete-btn {
  margin-left: auto;
  background: none;
  color: var(--text-muted);
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.feedback-item:hover .feedback-delete-btn {
  opacity: 1;
}
.feedback-delete-btn:hover {
  color: var(--accent-red);
}
.feedback-screenshot-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 16px;
  margin-left: 8px;
  margin-right: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.feedback-screenshot-link:hover {
  opacity: 0.7;
}
.feedback-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 16px;
}
.feedback-pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.feedback-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback-pagination-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-pagination-btn:hover:not(:disabled) {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}
.feedback-pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}
.feedback-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.feedback-pagination-page {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0 8px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .feedback-pagination {
    flex-direction: column;
    gap: 12px;
  }
  .feedback-pagination-info {
    width: 100%;
    text-align: center;
  }
  .feedback-pagination-controls {
    width: 100%;
    justify-content: center;
  }
}
.camera-divider {
  font-size: 20px;
  color: var(--text-muted);
  display: none;
  align-items: center;
  flex-shrink: 0;
}
.screenshot-upload-link {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  cursor: pointer;
}
[data-theme=light] #feedback .screenshot-upload-link {
  background: var(--bg-card);
}
.screenshot-upload-link:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}
.feedback-screenshot-dragover {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 1px var(--accent-blue);
}
[data-theme=light] #feedback .feedback-screenshot-dropzone.feedback-screenshot-dragover {
  background: rgba(59, 130, 246, 0.1) !important;
}
.feedback-screenshot-preview {
  margin-top: 12px;
}
.feedback-screenshot-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feedback-screenshot-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feedback-screenshot-meta {
  flex: 1;
  min-width: 0;
}
.feedback-screenshot-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.feedback-screenshot-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.feedback-screenshot-remove {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--accent-red);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.editable-project-title {
  background: transparent;
  border: none;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0;
  margin: 0;
  outline: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.editable-project-title:hover,
.editable-project-title:focus {
  border-bottom-color: var(--accent-blue);
}
.project-details-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
#project-title-display {
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
#project-title-display:hover {
  border-bottom-color: var(--accent-blue);
}
#project-title-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editable-project-title {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 4px 12px;
  outline: none;
}
.title-edit-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s;
}
.title-edit-btn.confirm {
  background: var(--accent-green);
  color: white;
}
.title-edit-btn.cancel {
  background: var(--accent-red);
  color: white;
}
.title-edit-btn:hover {
  opacity: 0.8;
}
.task-card.selected {
  border: 2px solid var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
}
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.attachment-item:hover {
  border-color: var(--accent-blue);
}
.attachment-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
}
.attachment-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 6px;
}
.attachment-icon {
  font-size: 16px;
}
.attachment-thumb {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 24px;
  line-height: 1;
}
.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.attachment-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-meta {
  color: var(--text-muted);
  font-weight: 400;
}
.attachment-external {
  font-size: 12px;
  color: var(--accent-blue);
}
.attachment-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.attachment-item:hover .attachment-remove {
  opacity: 1;
}
.attachment-item:focus-within .attachment-remove {
  opacity: 1;
}
.attachment-remove:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.12);
}
@media (hover: none) {
  .attachment-remove {
    opacity: 1;
  }
}
.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-body {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  min-height: 300px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d1d5db' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  border-radius: 8px !important;
}
[data-theme=dark] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  border-width: 1px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.7) inset;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.confirm-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}
.confirm-error.show {
  display: block;
}
.project-dropdown {
  position: relative;
  width: 100%;
}
.project-current {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  text-align: left;
}
.project-current:hover {
  border-color: var(--accent-blue);
}
.project-current .dropdown-arrow {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s;
}
.project-dropdown.active .project-current {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}
.project-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}
.project-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  display: none;
  z-index: 1500;
  max-height: 200px;
  overflow-y: auto;
}
.project-dropdown.active .project-options {
  display: none;
}
.project-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-primary);
}
.project-option:hover {
  background: var(--hover-bg);
}
.project-option:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.project-option:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.project-options-portal {
  position: fixed;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  z-index: 3000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  scroll-behavior: smooth;
  box-sizing: border-box;
}
.project-portal-search {
  position: sticky;
  top: 0;
  background: var(--bg-tertiary);
  padding: 8px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.project-portal-search .form-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
}
.project-options-portal::-webkit-scrollbar {
  width: 10px;
}
.project-options-portal::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-left: 1px solid var(--border);
  border-radius: 0 8px 8px 0;
}
.project-options-portal::-webkit-scrollbar-thumb {
  background: var(--hover-bg);
  border: 2px solid var(--bg-tertiary);
  border-radius: 8px;
}
.project-options-portal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}
.project-options-portal {
  scrollbar-width: thin;
  scrollbar-color: var(--hover-bg) var(--bg-tertiary);
}
.time-options-portal {
  position: fixed;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 4px;
  z-index: 3000;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  scroll-behavior: smooth;
  box-sizing: border-box;
  padding: 6px 0;
}
.time-options-portal .time-option {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  user-select: none;
}
.time-options-portal .time-option:hover {
  background: var(--hover-bg);
}
.time-options-portal .time-option.selected {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text-primary);
}
.time-options-portal::-webkit-scrollbar {
  width: 10px;
}
.time-options-portal::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
}
.time-options-portal::-webkit-scrollbar-thumb {
  background: var(--hover-bg);
  border: 2px solid var(--bg-tertiary);
  border-radius: 8px;
}
.time-options-portal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}
.time-options-portal {
  scrollbar-width: thin;
  scrollbar-color: var(--hover-bg) var(--bg-tertiary);
}
.tz-options-portal {
  position: fixed;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 4px;
  z-index: 3000;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  padding: 6px 0;
}
.tz-options-portal .tz-option {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  user-select: none;
  white-space: normal;
  word-break: break-word;
}
.tz-options-portal .tz-option:hover {
  background: var(--hover-bg);
}
.tz-options-portal .tz-option.selected {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text-primary);
}
.tz-options-portal::-webkit-scrollbar {
  width: 10px;
}
.tz-options-portal::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
}
.tz-options-portal::-webkit-scrollbar-thumb {
  background: var(--hover-bg);
  border: 2px solid var(--bg-tertiary);
  border-radius: 8px;
}
.tz-options-portal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}
.tz-options-portal {
  scrollbar-width: thin;
  scrollbar-color: var(--hover-bg) var(--bg-tertiary);
}
.day-items-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.day-items-modal.active {
  display: flex;
}
.day-items-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.day-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.day-items-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.day-items-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}
.day-items-close:hover {
  color: var(--text-primary);
}
.day-items-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.day-items-header-actions .day-items-add-task {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 32px;
  height: auto;
  line-height: 1.2;
}
.day-items-section {
  margin-bottom: 24px;
}
.day-items-section:last-child {
  margin-bottom: 0;
}
.day-items-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.day-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.day-item:hover {
  background: var(--hover-bg);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}
.day-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.day-item-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.day-items-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.day-items-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.enhanced-stat-card:active {
  transform: translateY(0px) scale(0.98);
}
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  flex-shrink: 0;
}
.modal-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  bottom: -2px;
  z-index: 0;
  overflow: hidden;
}
.modal-tab-mobile {
  display: none;
}
.modal-tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 2px;
  background: var(--bg-tertiary);
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: -1;
}
.modal-tab:hover {
  color: var(--text-primary);
  border-radius: 8px 8px 0 0;
}
.modal-tab:hover::before,
.modal-tab:focus-visible::before {
  opacity: 1;
}
.modal-tab:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}
.modal-tab.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  font-weight: 600;
}
.modal-tab-content {
  display: none;
}
.modal-tab-content.active {
  display: block;
}
@media (min-width: 769px) {
  #project-details-content #project-details-tab.modal-tab-content.active {
    gap: 24px;
  }
  #project-details-content #project-details-tab .project-details-description {
    margin-bottom: 0;
  }
  #project-details-content #project-details-tab .project-timeline {
    margin-top: 0;
    padding-top: 24px;
  }
  #project-details-content #project-history-tab .project-history-section {
    max-height: calc(100vh - 260px);
    min-height: calc(100vh - 260px);
  }
}
.task-history-container,
.project-history-section {
  position: relative;
  padding: 40px 12px 20px 0;
  overflow-y: auto;
  overflow-x: hidden;
}
#task-history-tab.modal-tab-content.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#task-history-tab.modal-tab-content.active .task-history-container {
  flex: 1;
  min-height: 0;
}
.task-history-container::-webkit-scrollbar,
.project-history-section::-webkit-scrollbar {
  width: 8px;
}
.task-history-container::-webkit-scrollbar-track,
.project-history-section::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
.task-history-container::-webkit-scrollbar-thumb,
.project-history-section::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
.task-history-container::-webkit-scrollbar-thumb:hover,
.project-history-section::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
.history-timeline-inline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  overflow-x: hidden;
}
.history-entry-inline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.history-entry-inline:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.history-entry-header-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.history-action-label-inline {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  flex: 1;
}
.history-time-inline {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}
.history-expand-btn-inline {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.history-expand-btn-inline:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.expand-icon-inline {
  font-size: 9px;
  transition: transform 0.2s;
}
.history-entry-details-inline {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.history-empty-inline {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border);
  border-radius: 10px;
}
.history-changes-compact {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-change-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  flex-wrap: wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.history-change-compact--single {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 8px 10px;
}
.history-change-compact--single .change-field-label {
  min-width: 0;
}
.history-change-compact--single .change-after-compact {
  padding: 0;
  background: transparent;
  white-space: normal;
  overflow-wrap: anywhere;
}
.change-field-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  min-width: 80px;
  flex-shrink: 0;
}
.change-before-compact {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.change-arrow-compact {
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}
.change-after-compact {
  color: var(--text-primary);
  font-weight: 500;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.history-change-compact .change-before-compact span,
.history-change-compact .change-after-compact span {
  border-radius: 2px !important;
}
.change-null {
  color: var(--text-muted);
  opacity: 0.6;
  font-style: italic;
}
.history-change-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
}
.history-change-description .change-field-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}
.description-diff {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.description-before {
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.description-before s {
  text-decoration: line-through;
  opacity: 0.7;
}
.description-after {
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.history-show-more-btn {
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}
.history-show-more-btn:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.history-sort-toggle {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.history-sort-toggle:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.history-sort-toggle:active {
  opacity: 0.9;
}
.history-change {
  padding: 10px;
  margin-bottom: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.history-change:last-child {
  margin-bottom: 0;
}
.history-change-field {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.history-change-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}
.history-change-before,
.history-change-after {
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 12px;
  word-break: break-word;
}
.history-change-before {
  border-left: 2px solid var(--accent-red);
}
.history-change-after {
  border-left: 2px solid var(--accent-green);
}
.change-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 4px;
}
.change-label-null {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.6;
}
.history-change-arrow {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  align-self: center;
}
.history-tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--accent-blue);
  color: white;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-right: 4px;
}
@media (max-width: 768px) {
  .modal-content {
    padding: 24px 20px !important;
    margin: 0 16px !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
  }
  #export-data-modal .modal-content {
    padding: 24px !important;
  }
  #export-data-modal .modal-title {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
  }
  #export-data-modal p {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
  }
  #export-data-modal .modal-actions {
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
  }
  .modal-title {
    margin-bottom: 16px !important;
    padding: 0 !important;
  }
  .modal-content p {
    margin-bottom: 20px !important;
    padding: 0 !important;
  }
  .modal-actions {
    gap: 12px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .modal-actions button {
    width: 100% !important;
    margin: 0 !important;
  }
  .modal-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .history-change-values {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .history-change-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
[data-theme=dark] .history-entry-inline {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .history-entry-inline:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
}
.history-search-input {
  flex: 1;
  min-width: 250px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.2s;
}
.history-search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.history-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.history-filter-btn,
.history-action-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.history-filter-btn:hover,
.history-action-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}
.history-filter-btn.active,
.history-action-btn.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.history-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.history-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-blue);
}
.history-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.history-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.history-date-group {
  position: relative;
}
.history-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.history-date-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.history-date-count {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  font-weight: 500;
}
.history-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 24px;
}
.history-entries::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background:
    linear-gradient(
      to bottom,
      var(--accent-blue),
      var(--accent-green));
  border-radius: 2px;
}
.history-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.history-entry:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-blue);
}
.history-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  flex-wrap: wrap;
}
.history-action-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.history-type-icon {
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.history-entity-title {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 150px;
}
.history-action-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 12px;
}
.history-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.history-expand-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.history-expand-btn:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.expand-icon {
  font-size: 10px;
  transition: transform 0.2s;
}
.history-entry-details {
  padding: 0 16px 16px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.history-change {
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.history-change:last-child {
  margin-bottom: 0;
}
.history-change-field {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.history-change-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}
.history-change-before,
.history-change-after {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 13px;
  word-break: break-word;
}
.history-change-before {
  border-left: 3px solid var(--accent-red);
}
.history-change-after {
  border-left: 3px solid var(--accent-green);
}
.change-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}
.change-label-null {
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.6;
}
.history-change-arrow {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
  align-self: center;
}
.history-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-blue);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
}
.history-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 12px;
}
@media (max-width: 768px) {
  .history-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .history-search-input {
    min-width: 100%;
  }
  .history-filter-group {
    justify-content: center;
  }
  .history-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-change-values {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .history-change-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .history-entries {
    padding-left: 16px;
  }
  .history-entries::before {
    width: 2px;
  }
}
[data-theme=dark] .history-entry {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .history-entry:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
[data-theme=dark] .history-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
@keyframes historySlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.history-entry {
  animation: historySlideIn 0.3s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .history-entry,
  .history-filter-btn,
  .history-action-btn,
  .history-stat-card {
    animation: none;
    transition: none;
  }
  .history-entry:hover,
  .history-filter-btn:hover,
  .history-action-btn:hover {
    transform: none;
  }
}
.modal-content.settings-modal-content {
  max-width: 860px;
  max-height: 80vh !important;
  height: auto !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.12),
    0 0 1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}
[data-theme=dark] .modal-content.settings-modal-content {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(0, 0, 0, 0.5);
  border-color: var(--border-strong);
}
.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border);
}
[data-theme=dark] .settings-modal-header {
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-tertiary) 100%);
}
.settings-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.settings-icon-wrapper {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(59, 130, 246, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
[data-theme=dark] .settings-icon-wrapper {
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.15) 0%,
      rgba(37, 99, 235, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}
.settings-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.settings-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.settings-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}
.settings-close {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
}
.settings-close:hover {
  background: var(--bg-primary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: scale(1.05);
}
.settings-close:active {
  transform: scale(0.95);
}
.settings-modal-body {
  padding: 32px 36px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg-primary);
}
.settings-modal-body::-webkit-scrollbar {
  width: 8px;
}
.settings-modal-body::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
  margin: 4px 0;
}
.settings-modal-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: background 0.2s;
}
.settings-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
.settings-modal-body form {
  padding: 0;
  margin: 0;
}
.modal-content.settings-modal-content #settings-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
}
.settings-section:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
}
[data-theme=dark] .settings-section {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.15);
}
[data-theme=dark] .settings-section:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}
.settings-section:last-child {
  margin-bottom: 0;
}
.settings-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background:
    linear-gradient(
      to bottom,
      var(--bg-secondary),
      transparent);
  border-bottom: 1px solid var(--border-light);
}
[data-theme=dark] .settings-section-header {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02),
      transparent);
}
.settings-section-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
  opacity: 0.9;
}
.settings-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}
.settings-section-content {
  padding: 8px 28px 28px 28px;
  overflow-x: hidden;
}
.settings-field {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}
.settings-field:hover {
  background: var(--bg-secondary);
  margin: 0 -28px;
  padding: 20px 28px;
  border-radius: 8px;
}
[data-theme=dark] .settings-field:hover {
  background: rgba(255, 255, 255, 0.02);
}
.settings-field:first-child {
  padding-top: 20px;
}
.settings-field:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}
.settings-field-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.settings-field-label {
  flex: 1;
  min-width: 0;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}
.field-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.settings-field-input {
  flex-shrink: 0;
  width: 50%;
  max-width: 350px;
}
.settings-field-input:has(button) {
  display: flex;
  justify-content: flex-end;
}
.settings-field-toggle .settings-field-input {
  width: auto;
}
.workspace-logo-input-row {
  display: grid;
  --profile-media-control-width: 320px;
  --profile-media-preview-size: 52px;
  --profile-media-clear-size: 28px;
  width: var(--profile-media-control-width);
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr) var(--profile-media-preview-size) var(--profile-media-clear-size);
  align-items: center;
  column-gap: 10px;
}
#workspace-logo-input {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}
.workspace-logo-preview {
  grid-row: 1;
  grid-column: 2;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.12);
  flex-shrink: 0;
  display: none;
  margin: 0;
}
.workspace-logo-clear-btn {
  grid-row: 1;
  grid-column: 3;
  position: static;
  top: 0;
  right: 0;
  align-self: center;
  width: var(--profile-media-clear-size, 28px);
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--accent-red);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  margin-left: 0;
  padding: 0;
  box-shadow: none;
}
.workspace-logo-clear-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #fca5a5;
}
[data-theme=light] .workspace-logo-clear-btn {
  background: transparent;
  border-color: transparent;
  color: #b91c1c;
}
.user-avatar-input-row {
  display: grid;
  --profile-media-control-width: 320px;
  --profile-media-preview-size: 52px;
  --profile-media-clear-size: 28px;
  width: var(--profile-media-control-width);
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr) var(--profile-media-preview-size) var(--profile-media-clear-size);
  align-items: center;
  column-gap: 10px;
}
.workspace-logo-dropzone,
.user-avatar-dropzone {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}
.workspace-logo-input-row.has-logo .workspace-logo-dropzone,
.user-avatar-input-row.has-avatar .user-avatar-dropzone {
  grid-column: 1;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}
.workspace-logo-dropzone .workspace-logo-dropzone-text,
.user-avatar-dropzone .workspace-logo-dropzone-text {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-avatar-preview {
  grid-row: 1;
  grid-column: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.12);
  flex-shrink: 0;
  display: none;
  margin: 0;
}
.user-avatar-clear-btn {
  grid-row: 1;
  grid-column: 3;
  position: static;
  top: 0;
  right: 0;
  align-self: center;
  width: var(--profile-media-clear-size, 28px);
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--accent-red);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  margin-left: 0;
  padding: 0;
  box-shadow: none;
}
.user-avatar-clear-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #fca5a5;
}
[data-theme=light] .user-avatar-clear-btn {
  background: transparent;
  border-color: transparent;
  color: #b91c1c;
}
[data-theme=light] .task-attachment-dropzone {
  background: #ffffff !important;
}
[data-theme=light] .task-attachment-dropzone:not(.task-attachment-dragover) {
  border-color: var(--border-strong) !important;
  border-width: 1.5px !important;
}
.import-file-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
}
.import-file-dropzone:hover {
  border-color: var(--accent-blue);
  background: var(--hover-bg);
}
.import-file-dropzone.import-dropzone-dragover {
  border-color: var(--accent-blue) !important;
  background: var(--hover-bg) !important;
  box-shadow: 0 0 0 2px var(--accent-blue);
}
[data-theme=light] .import-file-dropzone:not(.import-dropzone-dragover) {
  border-color: var(--border-strong) !important;
  border-width: 1.5px !important;
}
[data-theme=dark] .import-file-dropzone:not(.import-dropzone-dragover) {
  border-color: var(--border-darker) !important;
  border-width: 2px !important;
}
.import-dropzone-text {
  transition: color 0.2s ease;
}
[data-theme=light] .task-attachment-dropzone.task-attachment-dragover {
  background: rgba(59, 130, 246, 0.1) !important;
}
.crop-modal-content {
  max-width: 720px;
  width: 90%;
}
.crop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-secondary) 100%);
}
[data-theme=dark] .crop-modal-header {
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-tertiary) 100%);
}
.crop-modal-header .modal-title {
  margin: 0;
}
.crop-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crop-instructions {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  text-align: center;
}
.crop-canvas-container {
  position: relative;
  width: fit-content;
  max-width: 600px;
  max-height: 60vh;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
#crop-canvas {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  cursor: move;
}
.crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.crop-selection {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--accent-blue);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  pointer-events: auto;
  cursor: move;
}
.crop-selection[data-shape=circle] {
  border-color: transparent;
  box-shadow: none;
}
.crop-selection[data-shape=circle]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-blue);
  pointer-events: none;
}
.crop-selection[data-shape=circle]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.crop-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-blue);
  border: 3px solid white;
  border-radius: 50%;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.crop-handle-nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}
.crop-handle-ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}
.crop-handle-sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}
.crop-handle-se {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}
.crop-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
#crop-dimensions {
  font-weight: 600;
  color: var(--text-primary);
}
#crop-size-estimate {
  color: var(--text-muted);
}
#crop-size-estimate.size-warning {
  color: var(--accent-amber);
  font-weight: 600;
}
#crop-size-estimate.size-error {
  color: var(--accent-red);
  font-weight: 600;
}
.crop-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.crop-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .crop-modal-content {
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  .crop-modal-header {
    padding: 14px 16px;
    flex-shrink: 0;
  }
  .crop-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  .crop-canvas-container {
    max-height: 40vh;
  }
  #crop-canvas {
    max-height: 40vh;
  }
  .crop-modal-footer {
    padding: 14px 16px;
    flex-shrink: 0;
  }
  .crop-actions {
    width: 100%;
    flex-direction: column;
  }
  .crop-actions .btn-secondary {
    order: 0 !important;
  }
  .crop-actions .btn-primary {
    order: 1 !important;
  }
  .crop-actions button {
    width: 100%;
  }
  .crop-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  #export-data-modal .modal-actions {
    flex-direction: column !important;
  }
  #export-data-modal .modal-actions .btn-secondary {
    order: 0 !important;
  }
  #export-data-modal .modal-actions .btn-primary {
    order: 1 !important;
  }
}
.modal-content {
  color: var(--text-primary);
}
.modal-content h2,
.modal-content h3,
.modal-content h4 {
  color: var(--text-primary);
}
.modal-content .form-label,
.modal-content label {
  color: #374151 !important;
}
[data-theme=dark] .modal-content .form-label,
[data-theme=dark] .modal-content label {
  color: #d1d5db !important;
}
.modal-content input,
.modal-content textarea,
.modal-content .form-input,
.modal-content .form-textarea {
  color: #111827 !important;
}
[data-theme=dark] .modal-content input,
[data-theme=dark] .modal-content textarea,
[data-theme=dark] .modal-content .form-input,
[data-theme=dark] .modal-content .form-textarea {
  color: #f9fafb !important;
}
.modal-content input::placeholder,
.modal-content textarea::placeholder,
.modal-content .form-input::placeholder,
.modal-content .form-textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}
[data-theme=dark] .modal-content input::placeholder,
[data-theme=dark] .modal-content textarea::placeholder,
[data-theme=dark] .modal-content .form-input::placeholder,
[data-theme=dark] .modal-content .form-textarea::placeholder {
  color: #9ca3af !important;
  opacity: 0.8 !important;
}
.form-input,
.form-textarea,
.form-select {
  border-color: #94a3b8 !important;
}
[data-theme=dark] .form-input,
[data-theme=dark] .form-textarea,
[data-theme=dark] .form-select {
  border-color: var(--border) !important;
}
.priority-options,
.status-options,
.rich-editor,
.priority-current,
.status-current {
  background: #ffffff !important;
}
[data-theme=dark] .priority-options,
[data-theme=dark] .status-options,
[data-theme=dark] .rich-editor,
[data-theme=dark] .priority-current,
[data-theme=dark] .status-current {
  background: var(--bg-tertiary) !important;
}
.settings-field-logo {
  align-items: center;
}
.settings-input {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.settings-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.settings-input-icon .settings-input {
  padding-right: 44px;
}
.settings-input-icon-svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  opacity: 0.9;
  pointer-events: none;
}
.settings-input-hhmm {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.settings-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.settings-input:hover {
  border-color: var(--border-strong);
}
.settings-input:focus {
  border-color: var(--accent-blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
[data-theme=dark] .settings-input:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.settings-select {
  width: 100%;
  padding: 11px 40px 11px 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.settings-select-clock {
  padding-right: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right 44px center, right 12px center;
}
.settings-time-trigger {
  text-align: left;
}
#email-notification-timezone-trigger {
  display: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}
.settings-timezone-trigger {
  text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
[data-theme=dark] .settings-timezone-trigger {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
[data-theme=dark] .settings-select-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.settings-collapsible {
  overflow: hidden;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 220ms ease;
}
.settings-collapsible.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.settings-collapsible .settings-field:hover {
  margin: 0;
  padding: 20px 0;
  border-radius: 8px;
  background: var(--bg-secondary);
}
[data-theme=dark] .settings-collapsible .settings-field:hover {
  background: rgba(255, 255, 255, 0.02);
}
.settings-select:hover {
  border-color: var(--border-strong);
}
.settings-select:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
[data-theme=dark] .settings-select:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
#history-sort-order {
  width: auto;
  min-width: 0;
  display: inline-flex;
}
.history-sort-input {
  display: flex;
  justify-content: flex-end;
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
}
.premium-toggle {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}
.settings-section .premium-toggle {
  margin-right: 6px;
}
.premium-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.premium-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
  border: 2px solid var(--border);
}
.premium-toggle label:hover {
  border-color: var(--border-strong);
  background: var(--bg-primary);
}
.premium-toggle label:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f0f0f0 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}
[data-theme=dark] .premium-toggle label:before {
  background:
    linear-gradient(
      135deg,
      #e5e7eb 0%,
      #d1d5db 100%);
}
.premium-toggle input:checked + label {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
[data-theme=dark] .premium-toggle input:checked + label {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}
.settings-section .premium-toggle input:checked + label {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) inset;
}
[data-theme=dark] .settings-section .premium-toggle input:checked + label {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) inset;
}
.premium-toggle input:checked + label:before {
  transform: translateX(24px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
}
.premium-toggle input:focus + label {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}
.settings-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 24px 36px;
  margin: 0;
  background:
    linear-gradient(
      to top,
      var(--bg-card) 0%,
      var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
[data-theme=dark] .settings-modal-footer {
  background:
    linear-gradient(
      to top,
      var(--bg-card) 0%,
      var(--bg-secondary) 100%);
}
.settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
}
.settings-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.settings-btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.settings-btn-cancel:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.data-management-field .settings-btn-cancel {
  width: 141px;
  justify-content: center;
  white-space: nowrap;
}
.settings-btn-save {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  opacity: 0.7;
}
.settings-btn-save.dirty {
  background: var(--accent-blue);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 1;
}
.settings-btn-save.dirty:hover {
  background: #1d4ed8;
}
[data-theme=dark] .settings-btn-save.dirty:hover {
  background: #2563eb;
}
.settings-btn-danger {
  background: var(--accent-red, #dc2626);
  color: white;
  border: none;
}
.settings-btn-danger:hover {
  background: #b91c1c;
}
[data-theme=dark] .settings-btn-danger:hover {
  background: #ef4444;
}
.reset-pin-modal-content {
  max-width: 440px;
  width: 90%;
  padding: 0 !important;
  margin: 20px auto !important;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
}
.reset-pin-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reset-pin-header {
  padding: 32px 32px 24px 32px;
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}
[data-theme=dark] .reset-pin-header {
  background:
    linear-gradient(
      135deg,
      var(--bg-card) 0%,
      var(--bg-tertiary) 100%);
}
.reset-pin-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.reset-pin-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.reset-pin-form {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reset-pin-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reset-pin-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: -5px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}
.reset-pin-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.reset-pin-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  font-family: "Courier New", monospace;
  letter-spacing: 4px;
  transition: all 0.2s;
}
.reset-pin-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 2px;
}
.reset-pin-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg-card);
}
[data-theme=dark] .reset-pin-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.reset-pin-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.reset-pin-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  outline: none;
}
.reset-pin-btn-cancel {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.reset-pin-btn-cancel:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.reset-pin-btn-cancel:active {
  transform: translateY(0);
}
.reset-pin-btn-primary {
  background: var(--accent-blue);
  color: white;
}
.reset-pin-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
[data-theme=dark] .reset-pin-btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.reset-pin-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
@media (max-width: 480px) {
  .reset-pin-modal-content {
    max-width: 100%;
    margin: 16px !important;
    border-radius: 16px;
  }
  .reset-pin-header {
    padding: 24px 20px 18px 20px;
  }
  .reset-pin-title {
    font-size: 20px;
  }
  .reset-pin-description {
    font-size: 13px;
  }
  .reset-pin-form {
    padding: 20px;
    gap: 16px;
  }
  .reset-pin-input {
    padding: 12px 14px;
    font-size: 18px;
  }
  .reset-pin-actions {
    flex-direction: row-reverse;
    gap: 10px;
    margin-top: 8px;
  }
  .reset-pin-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 13px;
  }
}
.tasks-list-mobile {
  display: none;
  padding: 0;
  gap: 0;
}
.task-card-mobile {
  position: relative;
  background: var(--bg-card);
  margin: 0 12px 12px 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.task-card-mobile:active {
  transform: scale(0.98);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 2px 2px rgba(0, 0, 0, 0.04);
}
.task-card-mobile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: all 0.3s ease;
}
.task-card-mobile[data-priority=high]::before {
  background:
    linear-gradient(
      90deg,
      #ef4444,
      #dc2626);
}
.task-card-mobile[data-priority=medium]::before {
  background:
    linear-gradient(
      90deg,
      #f59e0b,
      #d97706);
}
.task-card-mobile[data-priority=low]::before {
  background:
    linear-gradient(
      90deg,
      #10b981,
      #059669);
}
.task-card-mobile.expanded {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.06);
}
[data-theme=dark] .task-card-mobile {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.3);
}
[data-theme=dark] .task-card-mobile.expanded {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.4);
}
.card-header-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  gap: 12px;
  min-height: 64px;
}
.card-header-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.card-title-premium {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.task-card-mobile.is-done .card-title-premium {
  color: var(--text-muted);
}
.card-meta-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  min-width: 0;
}
.status-dot-premium {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-premium.backlog {
  background: #4B5563;
}
.status-dot-premium.todo {
  background: #186f95;
}
.status-dot-premium.progress {
  background: var(--status-progress);
}
.status-dot-premium.review {
  background: var(--status-review);
}
.status-dot-premium.done {
  background: var(--status-done);
}
.status-badge-mobile {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.status-badge-mobile.backlog {
  background: rgba(75, 85, 99, 0.15);
  color: #4B5563;
}
.status-badge-mobile.todo {
  background: rgba(24, 111, 149, 0.15);
  color: #186f95;
}
.status-badge-mobile.progress {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.status-badge-mobile.review {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
.status-badge-mobile.done {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.card-date-smart {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-date-smart.overdue {
  color: #ef4444;
  font-weight: 600;
}
.card-date-smart.today {
  color: #f59e0b;
  font-weight: 600;
}
.card-date-smart.soon {
  color: #10b981;
}
.card-actions-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.card-open-btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.card-open-btn-premium svg {
  width: 18px;
  height: 18px;
  color: #111827;
}
[data-theme=dark] .card-open-btn-premium svg {
  color: #f9fafb;
}
.card-open-btn-premium:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
[data-theme=dark] .card-open-btn-premium:hover {
  background: rgba(255, 255, 255, 0.1);
}
.card-open-btn-premium:active {
  transform: translateY(0);
}
.card-chevron-premium {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.task-card-mobile.expanded .card-chevron-premium {
  transform: rotate(180deg);
}
.card-body-premium {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 18px;
  transition:
    max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.task-card-mobile.expanded .card-body-premium {
  max-height: 600px;
  opacity: 1;
  padding: 0 18px 18px 18px;
}
.card-description-premium {
  margin-bottom: 14px;
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border-left: 3px solid var(--border);
}
.card-description-premium-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.card-description-premium-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 120px;
  overflow-y: auto;
  word-wrap: break-word;
}
.task-card-mobile .card-description-premium-text {
  white-space: pre-line;
}
.card-description-premium-text:empty::before {
  content: "No description";
  color: var(--text-tertiary);
  font-style: italic;
  opacity: 0.6;
}
.card-tags-premium {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-tag-premium {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.card-project-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.card-project-dot-premium {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-tertiary);
}
.card-project-name-premium {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.card-footer-premium {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-meta-item-premium {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.card-meta-item-premium svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
  flex-shrink: 0;
}
.tasks-list-mobile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.tasks-list-mobile-empty svg {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  margin-bottom: 20px;
  color: var(--text-tertiary);
}
.tasks-list-mobile-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}
.tasks-list-mobile-empty p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 280px;
}
.card-swipe-action {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-swipe-action.left {
  left: 0;
  background:
    linear-gradient(
      90deg,
      #10b981,
      transparent);
}
.card-swipe-action.right {
  right: 0;
  background:
    linear-gradient(
      270deg,
      #ef4444,
      transparent);
}
.card-swipe-action svg {
  width: 24px;
  height: 24px;
  color: white;
}
.tasks-list-mobile {
  display: none;
}
.projects-list-mobile {
  display: none;
}
.mobile-header {
  display: none;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-right: 50px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.action-btn.primary {
  background: var(--accent-blue);
  color: white;
}
.action-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.dashboard-content {
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 100%);
}
.hero-stats {
  display: none;
}
.research-insights .insights-pill {
  display: none;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.activity-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
#activity-page {
  display: none;
}
.activity-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.activity-item-full {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
}
.activity-full-date {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.activity-item {
  font-size: 15px;
}
.activity-text {
  font-size: 15px;
}
.all-activity-list {
  max-height: 70vh;
  overflow-y: auto;
}
.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.hero-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.hero-stat-card.primary {
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  color: white;
  border: none;
}
.hero-stat-card.success {
  background:
    linear-gradient(
      135deg,
      #11998e 0%,
      #38ef7d 100%);
  color: white;
  border: none;
}
.hero-stat-card.hero-completion-split {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-completion-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-completion-section:first-child {
}
.hero-completion-section:last-child {
}
.hero-completion-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
}
.hero-completion-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.hero-completion-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}
.hero-completion-split .completion-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0;
}
.hero-completion-split .completion-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hero-completion-split .completion-ring .ring-background {
  stroke: var(--border);
  opacity: 0.3;
}
.hero-completion-section:first-child .completion-ring circle.progress-circle {
  stroke: #38ef7d;
}
.hero-completion-section:last-child .completion-ring circle.progress-circle {
  stroke: #8b5cf6;
}
.hero-completion-split .ring-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hero-completion-split .hero-stat-label {
  font-size: 16px;
  opacity: 0.95;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-completion-split .hero-completion-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  gap: 0;
}
.hero-completion-split .count-numerator {
  line-height: 1;
}
.hero-completion-split .count-divider {
  width: 20px;
  height: 0;
  border-top: 1px solid var(--text-muted);
  opacity: 0.5;
  margin: 2px 0;
}
.hero-completion-split .count-denominator {
  line-height: 1;
}
.hero-stat-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 4px;
}
.hero-stat-trend {
  font-size: 14px;
  opacity: 0.8;
}
.hero-stat-visual {
  width: 120px;
  height: 80px;
}
.completion-ring {
  position: relative;
  width: 80px;
  height: 80px;
}
.completion-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-circle {
  transition: stroke-dashoffset 1s ease;
  stroke-linecap: round;
}
.ring-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.stats-section {
  grid-column: 1 / -1;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.stats-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.time-filter {
  display: none;
}
.filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.enhanced-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.enhanced-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 64px;
  overflow: hidden;
}
.enhanced-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}
.stat-icon-new {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.stat-icon-new.blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}
.stat-icon-new.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}
.stat-icon-new.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.stat-icon-new.red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}
.stat-icon-new.purple {
  background: rgba(147, 51, 234, 0.15);
  color: #9333ea);
}
.stat-icon-new.teal {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
}
.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}
.stat-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.stat-title {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.stat-change {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.stat-change.positive {
  color: var(--accent-green);
}
.stat-change.negative {
  color: var(--accent-red);
}
.stat-change.neutral {
  color: var(--text-muted);
}
.progress-overview-card,
.activity-feed-card,
.insights-card,
.quick-actions-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.insights-card {
  padding: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.insights-card .card-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.clickable-project:hover {
  background: var(--hover-bg);
}
.clickable-project:active {
  background: var(--bg-tertiary);
  opacity: 0.9;
}
.progress-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.backlog {
  background: #4B5563;
}
.dot.todo {
  background: #186f95;
}
.dot.progress {
  background: var(--accent-blue);
}
.dot.review {
  background: var(--accent-amber);
}
.dot.done {
  background: var(--accent-green);
}
.progress-visualization {
  margin-top: 16px;
}
.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progress-bar-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
}
.progress-bar-item:hover {
  background: var(--hover-bg);
}
.progress-bar-item:active {
  opacity: 0.9;
}
.project-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.project-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.text-truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.text-truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.view-all-btn {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-all-btn:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.activity-feed {
  max-height: 300px;
  overflow-y: auto;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.activity-icon.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}
.activity-icon.created {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}
.activity-icon.updated {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}
.activity-content {
  flex: 1;
}
.activity-text {
  font-size: 14px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.activity-time {
  font-size: 12px;
  color: var(--text-muted);
}
.insights-badge {
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border-left: 4px solid;
}
.insight-item.priority {
  background: rgba(59, 130, 246, 0.12);
  border-left-color: var(--accent-blue);
}
.insight-item.success {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: var(--accent-green);
}
.insight-item.warning {
  background: rgba(245, 158, 11, 0.12);
  border-left-color: var(--accent-amber);
}
[data-theme=dark] .insight-item.priority {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #60a5fa;
}
[data-theme=dark] .insight-item.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #34d399;
}
[data-theme=dark] .insight-item.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #fbbf24;
}
.insight-icon {
  font-size: 16px;
  margin-top: 2px;
}
.insight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.insight-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: var(--text-primary);
}
.quick-action:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.quick-action:hover .qa-text,
.quick-action:hover .qa-icon {
  color: white;
}
.qa-icon {
  font-size: 24px;
  color: inherit;
}
.qa-text {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
}
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .enhanced-stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-actions {
    flex-direction: column;
  }
}
@media (min-width: 1400px) {
  .enhanced-stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.projects-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
.projects-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.projects-filters-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  flex: 0 1 auto;
  min-width: 0;
}
.projects-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}
.projects-search {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  min-width: 600px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.projects-search:focus {
  outline: none;
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}
.projects-filters {
  display: flex;
  gap: 8px;
}
.pf-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}
.pf-chip.active {
  background:
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.06),
      rgba(16, 185, 129, 0.03));
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
html[lang=es] .projects-filters-toolbar .dropdown-panel .project-status-badge {
  padding: 6px 18px;
  min-width: 128px;
  text-align: center;
  letter-spacing: 0.4px;
}
.projects-sort select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
}
.projects-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}
.projects-sort-standalone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}
.sort-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.sort-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.sort-btn.manual {
  background: var(--accent-blue);
  color: white;
}
.sort-btn.disabled {
  opacity: 0.6;
  cursor: default;
}
.projects-sort-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: none;
  min-width: 200px;
}
.projects-sort-panel[aria-hidden=false] {
  display: block;
}
.projects-sort-panel .dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
}
.projects-sort-panel .dropdown-list li {
  margin: 0;
}
.projects-sort-panel .projects-sort-option {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 6px;
}
.projects-sort-panel .projects-sort-option:hover {
  background: var(--bg-tertiary);
}
.projects-sort-standalone .sort-btn {
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.projects-sort-standalone .sort-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.projects-sort-standalone .sort-btn.manual {
  background: var(--accent-blue);
  color: white;
}
.projects-sort-standalone .sort-btn.disabled,
.projects-sort-standalone .sort-btn[disabled] {
  opacity: 0.6;
  cursor: default;
  color: var(--text-muted);
  background: transparent;
}
.sort-label-arrow {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--accent-blue);
  background: var(--accent-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.sort-help {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.sort-help:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
  background: var(--hover-bg);
}
.projects-sort-panel .projects-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.projects-sort-panel .projects-sort-option.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
}
.sort-option-indicator {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--accent-blue);
  background: var(--accent-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.sort-option-indicator:hover {
  color: white;
  border-color: var(--accent-blue);
  background: var(--accent-blue);
}
.sort-label-arrow svg,
.sort-option-indicator svg {
  width: 11px;
  height: 11px;
  display: block;
  transition: transform 0.15s ease;
  transform-origin: 50% 50%;
}
.sort-label-arrow.is-up svg,
.sort-option-indicator.is-up svg {
  transform: rotate(180deg);
}
.sort-label-arrow.is-down svg,
.sort-option-indicator.is-down svg {
  transform: rotate(0deg);
}
[data-theme=dark] .projects-search {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-primary);
  box-shadow: none;
}
[data-theme=dark] .pf-chip {
  border-color: var(--border-light);
  color: var(--text-secondary);
}
[data-theme=dark] .pf-chip.active {
  background:
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.08),
      rgba(16, 185, 129, 0.03));
}
.projects-controls-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.projects-sort select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.projects-sort select:focus {
  outline: none;
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}
.add-btn {
  padding: 10px 16px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  height: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: fit-content;
}
.projects-header .add-btn {
  flex-shrink: 1;
  max-width: 100%;
}
.projects-right .add-btn {
  background: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.projects-right .add-btn:active {
  background: #6d28d9;
  transform: scale(0.98);
}
.project-list-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.project-list {
  display: flex;
  flex-direction: column;
}
.project-list-item {
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.project-list-item:last-child {
  border-bottom: none;
}
.project-list-item:hover {
  background: var(--bg-hover);
}
.project-list-item.expanded {
  background: var(--bg-secondary);
}
.project-row {
  display: grid;
  grid-template-columns: 40px 1fr 120px 240px 160px 140px;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  cursor: pointer;
  position: relative;
}
.project-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: var(--text-muted);
  font-size: 25px;
  user-select: none;
}
.project-list-item.expanded .project-chevron {
  transform: rotate(90deg);
}
.project-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.project-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: none;
}
[data-theme=dark] .project-swatch {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.project-name-desc {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.project-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-title-link {
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
  width: fit-content;
}
.project-title-link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.project-title-link:active {
  color: var(--accent-blue-dark, #2563eb);
}
.project-description {
  color: var(--text-secondary);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.project-tag {
  color: white;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
}
.project-status-col {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.project-status-badge {
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0px;
  width: auto;
  min-width: 110px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  white-space: nowrap;
}
.project-status-badge.planning {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}
.project-status-badge.backlog {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.project-status-badge.active {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
}
.project-status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}
.project-status-badge.on-hold {
  background: rgba(148, 163, 184, 0.1);
  color: rgb(148, 163, 184);
}
[data-theme=dark] .project-status-badge {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.project-progress-col {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.progress-bar-wrapper {
  flex: 1;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  position: relative;
}
[data-theme=dark] .progress-bar-wrapper {
  background: #272e3d;
}
.progress-segment {
  height: 100%;
  transition: width 0.3s ease;
}
.progress-segment.done {
  background: var(--accent-green);
}
.progress-segment.progress {
  background: var(--accent-blue);
}
.progress-segment.review {
  background: var(--accent-amber);
}
.progress-segment.todo {
  background: var(--accent-teal);
}
.progress-segment.backlog {
  background: var(--text-muted);
  opacity: 0.25;
}
.progress-percent {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  min-width: 42px;
  text-align: right;
}
.project-tasks-col {
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  margin-left: 8px;
}
.project-tasks-count {
  font-weight: 700;
  color: var(--text-primary);
}
.project-tasks-breakdown {
  color: var(--text-muted);
  font-size: 12px;
}
.project-dates-col {
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: -80px;
}
.date-badge {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.date-arrow {
  color: var(--text-muted);
  font-size: 11px;
}
.project-tasks-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}
.project-list-item.expanded .project-tasks-expanded {
  max-height: 5000px;
  opacity: 1;
}
.expanded-tasks-container {
  padding: 20px 20px 20px 76px;
  max-width: 60%;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.expanded-tasks-container::-webkit-scrollbar {
  width: 4px;
}
.expanded-tasks-container::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.expanded-tasks-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.expanded-tasks-container:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
}
.expanded-tasks-container::-webkit-scrollbar-button {
  display: none;
}
.expanded-tasks-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.expanded-tasks-header .expanded-add-task-btn {
  margin-left: auto;
  padding: 6px 12px;
  height: auto;
  font-size: 12px;
  line-height: 1.2;
}
.expanded-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 140px) minmax(110px, 140px);
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.expanded-task-item:hover {
  background: var(--bg-hover);
  border-color: var(--accent-blue);
  transform: translateX(4px);
}
.expanded-task-item:last-child {
  margin-bottom: 0;
}
.expanded-task-info {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.expanded-task-name {
  font-weight: 500;
  margin-bottom: 4px;
}
.task-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.task-status-dot.todo {
  background: var(--text-muted);
}
.task-status-dot.progress {
  background: var(--accent-blue);
}
.task-status-dot.review {
  background: var(--accent-amber);
}
.task-status-dot.done {
  background: var(--accent-green);
}
.priority-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}
.priority-chip.priority-high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.priority-chip.priority-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.priority-chip.priority-low {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.expanded-task-name {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expanded-task-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
}
.expanded-task-dates {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.expanded-task-meta .task-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0 !important;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.expanded-task-item.expanded-task-item--stacked {
  align-items: start;
}
.expanded-task-item.expanded-task-item--stacked .expanded-task-info {
  flex-wrap: wrap;
}
.expanded-task-item.expanded-task-item--stacked .expanded-task-name {
  flex: 1 1 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.expanded-task-item.expanded-task-item--stacked .expanded-task-meta {
  flex: 1 1 100%;
  flex-wrap: wrap;
  overflow: visible;
}
.expanded-task-item.expanded-task-item--stacked .expanded-task-meta .task-tags {
  flex-wrap: wrap;
  overflow: visible;
}
.expanded-task-item.expanded-task-item--stacked .expanded-task-dates {
  white-space: normal;
  flex-wrap: wrap;
}
.expanded-task-priority {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.expanded-task-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.expanded-task-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
  text-align: center;
}
.expanded-task-status.backlog {
  background: #4B5563;
  color: #fff;
}
.expanded-task-status.todo {
  background: #186f95;
  color: #fff;
}
.expanded-task-status.progress {
  background: var(--accent-blue);
  color: #fff;
}
.expanded-task-status.review {
  background: var(--accent-amber);
  color: #fff;
}
.expanded-task-status.done {
  background: var(--accent-green);
  color: #fff;
}
@media (max-width: 900px) {
  .expanded-task-item {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .expanded-task-priority,
  .expanded-task-status-col {
    justify-content: flex-end;
    justify-self: end;
    width: auto;
  }
  .expanded-task-priority .priority-chip {
    width: auto;
  }
  .expanded-task-status {
    width: auto;
  }
  .expanded-task-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .expanded-task-dates {
    white-space: normal;
    flex-wrap: wrap;
  }
  .expanded-task-meta {
    flex-wrap: wrap;
    overflow: visible;
  }
  .expanded-task-meta .task-tags {
    flex-wrap: wrap;
    overflow: visible;
  }
}
.no-tasks-message {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}
.mini-progress-wrapper {
  display: none;
}
.mini-progress {
  display: none;
}
.mini-segment {
  display: none;
}
.mini-progress-meta {
  display: none;
}
.project-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.project-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.project-headline {
  flex: 1 1 auto;
  min-width: 0;
}
.project-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-dates {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.project-count {
  font-size: 13px;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.project-dates-pair {
  margin-bottom: 10px;
}
.project-count.square {
  background: var(--bg-tertiary);
  margin-bottom: 12px;
  width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  padding: 0 4px;
}
.date-pill {
  display: inline-block;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
}
.date-sep {
  color: var(--text-muted);
  margin: 0 8px;
  font-size: 14px;
}
.project-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}
.legend-left {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.project-count.legend-left {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0.01));
  border: 1px solid var(--border-strong);
  min-width: 44px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 8px;
  font-size: 13px;
}
.project-count.legend-right {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0.01));
  border: 1px solid var(--border-strong);
  min-width: 44px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 8px;
  font-size: 13px;
}
.project-count.legend-right {
  margin-left: 8px;
}
.project-count.inline {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  min-width: 36px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 6px;
  font-size: 12px;
}
.project-count.inline[tabindex] {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  box-shadow: none;
  font-weight: 600;
  padding: 0 6px;
}
[data-theme=dark] .project-count.inline[tabindex] {
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-dot.progress {
  background: var(--accent-blue);
}
.legend-dot.review {
  background: var(--accent-amber);
}
.legend-dot.todo {
  background: var(--text-muted);
}
.legend-dot.done {
  background: var(--accent-green);
}
.legend-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}
.mini-progress-percent {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.project-status-wrap {
  display: flex;
  align-items: center;
}
.project-card-top > div:last-child {
  margin-left: 12px;
}
[data-theme=dark] .date-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.project-card .date-pill {
  opacity: 0.95;
}
.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.kanban-header.calendar-mode {
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
}
.kanban-header.calendar-mode .add-btn {
  display: none;
}
#kanban-settings-btn:hover {
  background: var(--hover-bg) !important;
}
.view-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 4px;
}
.backlog-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.backlog-quick-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  border-color: var(--border);
}
.backlog-quick-btn:active {
  transform: translateY(1px);
}
.view-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active {
  background: var(--accent-blue);
  color: white;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 500px;
}
.kanban-board.hidden {
  display: none;
}
.kanban-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}
[data-theme=dark] .kanban-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.kanban-column:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.sort-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 4px;
}
.sort-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.sort-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.sort-btn.manual {
  background: var(--accent-blue);
  color: white;
}
.sort-btn.disabled,
.sort-btn[disabled] {
  opacity: 0.5;
  cursor: default;
  color: var(--text-muted);
  background: transparent;
  pointer-events: none;
}
.task-card.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  cursor: grabbing;
}
.task-card.drag-over-top::before,
.task-card.drag-over-bottom::after {
  display: none !important;
}
.drag-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 0;
  margin: 0;
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.08),
      rgba(139, 92, 246, 0.05));
  border: 2px dashed rgba(99, 102, 241, 0.4);
  overflow: hidden;
  transition:
    height 200ms cubic-bezier(0.4, 0, 0.2, 1),
    margin 200ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 160ms ease;
  opacity: 0;
  pointer-events: none;
}
.drag-placeholder.active {
  height: 90px;
  margin: 8px 0;
  opacity: 1;
}
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task-card.drag-over-top::before,
  .task-card.drag-over-bottom::after {
    transition: none;
  }
}
.task-card.drag-over-top::before,
.task-card.drag-over-bottom::after {
  display: none;
}
.task-card.drag-over-top {
  border-top: none;
}
.task-card.drag-over-bottom {
  border-bottom: none;
}
.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.column-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.column-count {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.task-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.task-title {
  font-weight: 500;
  margin-bottom: 6px;
}
.task-card.is-done .task-title {
  color: var(--text-muted);
}
.task-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}
.task-due {
  color: var(--text-muted);
}
.task-priority {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  min-width: 70px;
  text-align: center;
  display: inline-block;
}
.list-view .task-meta,
.project-task-item .task-meta {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.list-view .task-priority,
.project-task-item .task-priority {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 120px;
}
.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
.priority-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.active {
  display: flex;
}
#export-data-modal {
  z-index: 1100;
}
.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: visible;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.modal-content:has(#task-footer[style*=flex]) {
  height: 80vh;
}
.modal-content:has(#task-footer[style*=none]) {
  height: auto;
}
.modal-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 12px;
}
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
  margin: 4px 0;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: background 0.2s;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
.modal-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.modal-right .form-group {
  margin-bottom: 16px;
}
.modal-right .form-group:last-child {
  margin-bottom: 0;
}
#task-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0 0;
  margin-top: 12px;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: static;
  bottom: auto;
}
.modal-tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.modal-tab-content.active form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.rich-editor {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  min-height: 250px;
  overflow: hidden;
  flex: 1;
}
.editor-content {
  padding: 12px;
  min-height: 200px;
  outline: none;
  color: var(--text-primary);
  line-height: 1.5;
}
.editor-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  cursor: pointer;
}
.editor-content a:hover {
  text-decoration: underline;
  filter: brightness(1.1);
}
.rich-editor .editor-content {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.modal-right .modal-actions {
  margin-top: auto;
}
.task-title-display {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.task-description-display {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.status-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.status-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.6;
}
.status-btn.active {
  opacity: 1;
}
.status-btn.todo {
  background: rgba(75, 85, 99, 0.32);
  color: var(--text-muted);
}
.status-btn.todo.active {
  background: #4B5563;
  color: white;
}
.status-btn.progress {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}
.status-btn.progress.active {
  background: var(--accent-blue);
  color: white;
}
.status-btn.review {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
.status-btn.review.active {
  background: var(--accent-amber);
  color: white;
}
.status-btn.done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
.status-btn.done.active {
  background: var(--accent-green);
  color: white;
}
.field-group {
  display: flex;
  flex-direction: column;
}
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field-value {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}
#attachment-file-dropzone {
  margin: 8px 1px 0 1px !important;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-secondary {
  padding: 10px 16px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.btn-primary {
  padding: 10px 16px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-primary:active {
  background: #1e40af;
  transform: scale(0.98);
}
#project-modal .btn-primary {
  background: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
#project-modal .btn-primary:active {
  background: #6d28d9;
  transform: scale(0.98);
}
#task-modal [data-action=addFileAttachment],
#task-modal [data-action=addAttachment] {
  width: 140px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.task-project-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.task-project-open-btn svg {
  width: 18px;
  height: 18px;
}
.task-project-open-btn:hover {
  background: transparent;
  transform: translateY(-1px);
}
.task-project-open-btn:active {
  transform: translateY(0);
}
.task-project-label-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}
.task-project-label-row .form-label {
  margin: 0;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.confirm-modal.active {
  display: flex;
}
.confirm-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  width: 400px;
  border: 1px solid var(--accent-red);
}
.confirm-title {
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 16px;
}
.confirm-input {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  margin: 12px 0;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
.confirm-actions .btn-secondary[data-action=confirmDeleteAccount],
.confirm-actions .btn-secondary[style*=accent-red] {
  color: white !important;
}
[data-theme]:not([data-theme=dark]) .confirm-actions .btn-secondary[data-action=confirmDeleteAccount],
[data-theme]:not([data-theme=dark]) .confirm-actions .btn-secondary[style*=accent-red] {
  color: white !important;
}
@media (max-width: 768px) {
  .confirm-content {
    width: min(100% - 32px, 360px);
    padding: 18px 16px;
    border-radius: 10px;
  }
  .confirm-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  #unsaved-changes-modal p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .confirm-actions {
    justify-content: center;
    gap: 10px;
  }
  .confirm-actions .btn-secondary,
  .confirm-actions [data-action=confirmDiscardChanges] {
    flex: 1 1 0;
  }
}
.options-menu {
  position: absolute;
  right: 0;
  top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.delete-btn {
  width: 100%;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.status-dropdown {
  position: relative;
}
.status-current {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}
.status-current .dropdown-arrow {
  margin-left: auto;
}
.status-current:hover {
  border-color: var(--accent-blue);
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.status-dot.todo {
  background: #6B7280;
}
.status-dot.progress {
  background: var(--accent-blue);
}
.status-dot.review {
  background: var(--accent-amber);
}
.status-dot.done {
  background: var(--accent-green);
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: default;
}
.status-badge.backlog {
  background: #4B5563;
  color: white;
}
.status-badge.todo {
  background: #186f95;
  color: white;
}
.status-badge.progress {
  background: var(--accent-blue);
  color: white;
}
.status-badge.review {
  background: var(--accent-amber);
  color: white;
}
.status-badge.done {
  background: var(--accent-green);
  color: white;
}
[data-theme=dark] .task-status-badge.review {
  background: var(--accent-amber-strong);
  color: white;
}
[data-theme=dark] .task-status-badge.done {
  background: var(--accent-green-strong);
  color: white;
}
.priority-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.priority-dot.high {
  background: var(--accent-red);
}
.priority-dot.medium {
  background: var(--accent-amber);
}
.priority-dot.low {
  background: var(--accent-green);
}
.priority-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.priority-dot.high {
  background: var(--accent-red);
}
.priority-dot.medium {
  background: var(--accent-amber);
}
.priority-dot.low {
  background: var(--accent-green);
}
.priority-dropdown {
  position: relative;
}
.priority-current {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}
.priority-current .dropdown-arrow {
  margin-left: auto;
}
.priority-current:hover {
  border-color: var(--accent-blue);
}
.priority-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}
.priority-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  display: none;
  z-index: 1500;
}
.priority-dropdown.active .priority-options {
  display: block;
}
.priority-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  transition: background-color 0.2s;
}
.priority-option:hover {
  background: var(--hover-bg);
}
.priority-option:first-child {
  border-radius: 8px 8px 0 0;
}
.priority-option:last-child {
  border-radius: 0 0 8px 8px;
}
.priority-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.priority-pill.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
.priority-pill.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
.priority-pill.priority-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
[data-theme=dark] .priority-pill.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
[data-theme=dark] .priority-pill.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
[data-theme=dark] .priority-pill.priority-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
.dropdown-list .priority-pill {
  margin-left: 8px;
}
.status-text {
  flex: 1;
  text-align: left;
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.status-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}
.status-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  display: none;
  z-index: 1500;
}
.status-dropdown.active .status-options {
  display: block;
}
.status-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.status-option:hover {
  background: var(--hover-bg);
}
.status-option:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.status-option:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.editor-toolbar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.editor-btn {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.editor-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.editor-btn.active {
  background: var(--accent-blue);
  color: white;
}
.editor-content h1,
.editor-content h2,
.editor-content h3 {
  margin: 8px 0 4px 0;
  color: var(--text-primary);
}
.editor-content ul,
.editor-content ol {
  margin: 8px 0;
  padding-left: 24px;
}
.editor-content hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid var(--border);
}
.tasks-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.tasks-list-meta {
  display: flex;
  justify-content: flex-start;
  margin: 4px 2px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.2px;
}
.tasks-list-meta--bottom {
  margin: 10px 2px 4px;
  justify-content: flex-end;
}
.tasks-list-count {
  font-weight: 600;
  color: var(--text-secondary);
}
.tasks-table th {
  white-space: nowrap;
  background: var(--bg-secondary);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.tasks-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.tasks-table tr.task-row-done td:first-child {
  color: var(--text-muted);
}
.tasks-table td:nth-child(3) {
  text-align: center;
}
.tasks-table .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}
.tasks-table tr {
  transition: background 0.2s;
}
.tasks-table tbody tr:hover {
  background: var(--bg-secondary);
  cursor: pointer;
}
.task-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 110px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.task-status-badge.backlog {
  background: rgba(75, 85, 99, 0.2);
  color: #4B5563;
}
.task-status-badge.todo {
  background: rgba(24, 111, 149, 0.2);
  color: #186f95;
}
.task-status-badge.progress {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}
.task-status-badge.review {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
.task-status-badge.done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
[data-theme=dark] .task-status-badge.backlog {
  color: #D1D5DB;
}
[data-theme=dark] .task-status-badge.todo {
  color: #60a5ca;
}
.list-view {
  display: none;
}
.list-view.active {
  display: block;
}
.tasks-table th:hover {
  background: var(--bg-tertiary);
}
.tasks-table th span {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}
.calendar-view {
  display: none;
}
.calendar-view.active {
  display: block;
}
.calendar-view .page-header {
  display: none;
}
.fab-calendar {
  display: none;
}
.calendar-view.preparing {
  display: block;
  opacity: 0;
  pointer-events: none;
}
.calendar-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.calendar-stage {
  position: relative;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.calendar-nav button {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.calendar-nav button:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.calendar-nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendar-month-year {
  font-size: 20px;
  font-weight: 600;
  min-width: 180px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.project-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  max-width: 100%;
  overflow: hidden;
}
.calendar-day-header {
  background: var(--bg-secondary);
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calendar-day-header.weekend {
  background: var(--calendar-weekend-header-fill);
}
.calendar-day {
  background: var(--bg-primary);
  min-height: 100px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}
.calendar-day.weekend {
  background: var(--calendar-weekend-day-fill);
}
.calendar-day.weekend:hover {
  background: var(--calendar-weekend-day-fill-hover);
}
.calendar-day:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.calendar-day.other-month {
  opacity: 0.3;
}
.calendar-day.today {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid var(--accent-blue);
}
.calendar-day.today .calendar-day-number {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 14px;
}
.calendar-day-number {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.tasks-container {
  margin-top: 4px;
}
.calendar-task {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-blue);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 2px 6px;
  margin: 3px 6px !important;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
  position: relative;
  z-index: 20;
}
.calendar-task:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.calendar-task.priority-high {
  border-left-color: var(--accent-red);
}
.calendar-task.priority-medium {
  border-left-color: var(--accent-amber);
}
.calendar-task.priority-low {
  border-left-color: var(--accent-green);
}
.calendar-task.done {
  opacity: 0.5;
  text-decoration: line-through;
}
.calendar-more {
  font-size: 10px;
  color: var(--accent-blue);
  margin-top: 2px;
  cursor: pointer;
}
.calendar-today-btn {
  padding: 8px 16px;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.calendar-today-btn--header {
  display: none;
}
.calendar-today-btn--nav {
  display: none;
}
.calendar-today-btn:hover {
  background: var(--accent-blue);
  opacity: 0.9;
}
.project-details-view {
  display: none;
}
.project-details-view.active {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.project-details-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: none;
  margin: 0;
  width: 100%;
}
.project-details-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.project-details-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-status-badge {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.project-status-badge.todo {
  background: rgba(107, 114, 128, 0.2);
  color: var(--text-muted);
}
.project-status-badge.backlog {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
}
.project-status-badge.active {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
}
.project-status-badge.planning {
  background: rgba(107, 114, 128, 0.2);
  color: var(--text-muted);
}
.project-status-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
[data-theme=dark] .project-status-badge {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.project-details-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.project-timeline {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.timeline-item {
  flex: 1;
}
.timeline-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.project-progress-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.progress-title {
  font-size: 18px;
  font-weight: 600;
}
.progress-percentage {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
}
.progress-bar-container {
  background: var(--bg-tertiary);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}
.progress-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.progress-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 8px;
}
.progress-stat.clickable {
  cursor: pointer;
  transition: background 0.2s ease;
}
.progress-stat.clickable:hover {
  background: var(--accent-blue);
  color: white !important;
}
.progress-stat.clickable:hover .progress-stat-number,
.progress-stat.clickable:hover .progress-stat-label {
  color: white !important;
}
.progress-stat-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.progress-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.project-tasks-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
}
.back-btn {
  padding: 8px 24px;
  background: #6366f1;
  border: 1px solid #5b21b6;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.back-btn:hover {
  background: #5b21b6;
  color: white;
}
.project-task-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.project-task-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-blue);
}
.project-task-info {
  flex: 1;
}
.project-task-title {
  font-weight: 500;
  margin-bottom: 4px;
}
.project-task-meta {
  font-size: 12px;
  color: var(--text-muted);
  justify-self: start;
}
.project-task-priority {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-task-priority > .task-priority {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.project-task-status-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-task-status-col > .status-badge {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .task-meta,
  .project-task-item {
    grid-template-columns: 1fr;
  }
  .project-task-priority,
  .project-task-status-col {
    justify-self: start;
  }
}
.user-menu {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: white;
  transition: all 0.2s;
}
.user-avatar.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
.user-avatar:hover {
  opacity: 1;
  transform: none;
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
}
.user-dropdown.active {
  display: block;
}
#kanban-settings-panel {
  left: 0;
  right: auto;
}
.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.dropdown-item:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.dropdown-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.editable-description {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}
.editable-date {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}
.calendar-project {
  background:
    linear-gradient(
      90deg,
      #6366f1,
      #8b5cf6);
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px 0;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
  position: relative;
}
.calendar-project-span {
  background:
    linear-gradient(
      90deg,
      #6366f1,
      #8b5cf6);
  color: white;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.calendar-project-span:hover {
  background:
    linear-gradient(
      90deg,
      #5b21b6,
      #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.calendar-project:hover {
  background:
    linear-gradient(
      90deg,
      #5b21b6,
      #7c3aed);
  transform: translateY(-1px);
}
.calendar-project-start {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}
.calendar-project-end {
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  background:
    linear-gradient(
      90deg,
      #8b5cf6,
      #a855f7);
}
.calendar-project-middle {
  border-radius: 2px;
  background:
    linear-gradient(
      90deg,
      #7c3aed,
      #8b5cf6);
}
.calendar-project-start::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #4c1d95;
  border-radius: 8px 0 0 8px;
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 25;
}
.project-bar {
  position: absolute;
  background:
    linear-gradient(
      90deg,
      #6366f1,
      #8b5cf6);
  color: white;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  height: 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  z-index: 30;
  cursor: pointer;
  transition: all 0.2s;
}
.project-bar.completed {
  opacity: 0.62;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.78);
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
}
.project-bar:hover {
  filter: brightness(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.task-bar {
  position: absolute;
  background: #3a4050;
  border: 1px solid #4a5060;
  border-left: 5px solid var(--accent-blue);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  height: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  z-index: 31;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.task-bar.done {
  opacity: 0.62;
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--text-secondary);
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
}
.task-bar:hover {
  background: #454c5d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  border-left-width: 6px;
}
:root:not([data-theme=dark]) .task-bar {
  background: #e8e8e8;
  border: 1px solid #d0d0d0;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
:root:not([data-theme=dark]) .task-bar:hover {
  background: #f2f2f2;
  border-color: #dcdcdc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.project-bar.continues-left {
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
  padding-left: 12px;
  box-shadow: -8px 0 12px -2px currentColor;
}
.project-bar.continues-right {
  clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
  padding-right: 12px;
  box-shadow: 8px 0 12px -2px currentColor;
}
.project-bar.continues-left.continues-right {
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
  padding-left: 12px;
  padding-right: 12px;
  box-shadow: -8px 0 12px -2px currentColor, 8px 0 12px -2px currentColor;
}
.task-bar.continues-left {
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
  padding-left: 12px;
  box-shadow: -8px 0 12px -2px currentColor;
}
.task-bar.continues-right {
  clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
  padding-right: 12px;
  box-shadow: 8px 0 12px -2px currentColor;
}
.task-bar.continues-left.continues-right {
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0% 50%);
  padding-left: 12px;
  padding-right: 12px;
  box-shadow: -8px 0 12px -2px currentColor, 8px 0 12px -2px currentColor;
}
.filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.projects-filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-right: 12px;
}
.projects-filters-toolbar .projects-search {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  min-width: 600px;
}
.projects-filters-toolbar .pf-chip {
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
}
.projects-filters-toolbar .pf-chip.active {
  background:
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.12),
      rgba(16, 185, 129, 0.06));
  border-color: var(--accent-blue);
  color: var(--text-primary);
}
.filter-input {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  min-width: 320px;
}
.filter-group {
  position: relative;
}
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.filter-button:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.filter-button.active {
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.12),
      rgba(16, 185, 129, 0.08));
  border-color: var(--accent-blue);
  color: var(--text-primary);
}
.filter-button.active:hover {
  background:
    linear-gradient(
      135deg,
      rgba(59, 130, 246, 0.18),
      rgba(16, 185, 129, 0.12));
}
.filter-count-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 20px;
  text-align: center;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-button.active .filter-count-badge {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}
.filter-count-badge:empty {
  display: none;
}
.filter-arrow {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  display: none;
  padding: 0;
  overflow: hidden;
}
.filter-group.open .dropdown-panel {
  display: block;
}
.dropdown-panel .dropdown-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.dropdown-panel .dropdown-sheet-handle {
  display: none;
}
.dropdown-panel .dropdown-sheet-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}
.dropdown-panel .dropdown-sheet-done {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.dropdown-panel .dropdown-sheet-done:hover {
  background: rgba(59, 130, 246, 0.1);
}
.dropdown-panel .dropdown-sheet-done:active {
  background: rgba(59, 130, 246, 0.15);
}
.dropdown-panel.has-sheet-header .dropdown-section-title {
  display: none;
}
.dropdown-section-title {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.filter-mode-toggle {
  display: flex;
  padding: 4px 8px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.filter-mode-btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.filter-mode-btn:hover {
  background: var(--hover-bg);
  color: var(--text);
  border-color: var(--accent-blue);
}
.filter-mode-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}
[data-theme=dark] .filter-mode-btn.active {
  background: var(--accent-blue);
  color: white;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}
.dropdown-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 0;
}
[data-theme=dark] .dropdown-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
[data-theme=dark] .dropdown-list::-webkit-scrollbar {
  width: 4px;
}
[data-theme=dark] .dropdown-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
[data-theme=dark] .dropdown-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
[data-theme=dark] .dropdown-list:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
}
[data-theme=dark] .dropdown-list::-webkit-scrollbar-button {
  display: none;
}
.dropdown-list li {
  list-style: none;
  padding: 0;
  display: block;
}
.dropdown-list li label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.dropdown-list li label:hover {
  background: var(--hover-bg);
}
.dropdown-list input[type=checkbox] {
  cursor: pointer;
  flex-shrink: 0;
}
.dropdown-list li:hover {
  background: var(--hover-bg);
}
.dropdown-list input[type=checkbox] {
  cursor: pointer;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  transition: background 0.2s, color 0.2s;
}
.filter-chip.chip-status {
  border-radius: 6px;
}
.filter-chip.chip-priority {
  border-radius: 16px;
}
.filter-chip .chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--accent-blue);
  line-height: 1;
}
.filter-chip:hover {
  background: rgba(37, 99, 235, 0.25);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.backlog {
  background: #4B5563;
}
.dot.todo {
  background: #186f95;
}
.dot.progress {
  background: var(--accent-blue);
}
.dot.review {
  background: var(--accent-amber);
}
.dot.done {
  background: var(--accent-green);
}
.dot.high {
  background: var(--accent-red);
}
.dot.medium {
  background: var(--accent-amber);
}
.dot.low {
  background: var(--accent-green);
}
.priority-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  min-width: 70px;
  text-align: center;
  text-transform: uppercase;
}
.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}
.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}
.priority-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
.select-all-row {
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.select-all-row strong {
  font-size: 12px;
  color: var(--accent-blue);
}
.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}
:root:not([data-theme=dark]) .btn-clear-filters {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}
:root:not([data-theme=dark]) .btn-clear-filters:hover {
  background: #c82333;
  border-color: #c82333;
}
[data-theme=dark] .btn-clear-filters {
  background: #9b1c31;
  color: #ffffff;
  border-color: #9b1c31;
}
[data-theme=dark] .btn-clear-filters:hover {
  background: #e63063;
  border-color: #e63063;
}
:root:not([data-theme=dark]) .kanban-column {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
:root:not([data-theme=dark]) .kanban-column:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
[data-theme=dark] .flatpickr-prev-month svg,
[data-theme=dark] .flatpickr-next-month svg {
  fill: var(--text-primary) !important;
}
[data-theme=dark] .flatpickr-weekday {
  color: var(--text-muted) !important;
}
.btn-clear-filters .filter-icon {
  font-size: 16px;
  line-height: 1;
}
.view-toggle.hidden {
  display: none;
}
@media (max-width: 768px) {
  .kanban-board {
    display: none !important;
  }
  .calendar-view {
    display: none !important;
  }
  .calendar-view.active {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--bg-primary) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 10 !important;
  }
  .calendar-container {
    padding: 0 8px 8px 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    padding-bottom: 80px !important;
  }
  .calendar-stage {
    position: relative !important;
    overflow: hidden !important;
    touch-action: pan-y;
  }
  .calendar-stage.is-animating {
    pointer-events: none;
  }
  .calendar-view .page-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 0 !important;
    height: auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
  }
  .calendar-view .page-header > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .calendar-view .page-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
  }
  .day-items-header-actions .day-items-add-task {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 36px !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  .calendar-header {
    flex-shrink: 0 !important;
    margin: 12px 0 8px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .calendar-header .calendar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
  }
  .calendar-header .calendar-nav button {
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    font-size: 18px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .calendar-header .calendar-nav button:active {
    background: var(--bg-tertiary) !important;
  }
  .calendar-nav-icon {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 3 !important;
  }
  .calendar-month-year {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    min-width: 140px !important;
  }
  .calendar-today-btn--nav {
    display: none !important;
  }
  .calendar-today-btn--header {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    align-self: center !important;
    padding: 0 12px !important;
    background: var(--accent-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
  }
  .calendar-today-btn--header:active {
    transform: scale(0.98);
  }
  .calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    grid-template-rows: auto repeat(6, minmax(90px, 1fr)) !important;
    gap: 2px !important;
    flex: 1 !important;
    min-height: 500px !important;
    width: 100% !important;
    background: var(--border-light) !important;
    padding: 2px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .calendar-grid,
  .project-overlay {
    will-change:
      transform,
      opacity,
      filter;
  }
  .calendar-grid.calendar-swipe-out-left,
  .project-overlay.calendar-swipe-out-left {
    animation: calendarSwipeOutLeft 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .calendar-grid.calendar-swipe-out-right,
  .project-overlay.calendar-swipe-out-right {
    animation: calendarSwipeOutRight 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .calendar-grid.calendar-swipe-in-left,
  .project-overlay.calendar-swipe-in-left {
    animation: calendarSwipeInLeft 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .calendar-grid.calendar-swipe-in-right,
  .project-overlay.calendar-swipe-in-right {
    animation: calendarSwipeInRight 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes calendarSwipeOutLeft {
    from {
      transform: translateX(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
    to {
      transform: translateX(-40%) scale(0.98);
      opacity: 0;
      filter: blur(2px);
    }
  }
  @keyframes calendarSwipeOutRight {
    from {
      transform: translateX(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
    to {
      transform: translateX(40%) scale(0.98);
      opacity: 0;
      filter: blur(2px);
    }
  }
  @keyframes calendarSwipeInLeft {
    from {
      transform: translateX(-35%) scale(0.98);
      opacity: 0;
      filter: blur(2px);
    }
    to {
      transform: translateX(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
  }
  @keyframes calendarSwipeInRight {
    from {
      transform: translateX(35%) scale(0.98);
      opacity: 0;
      filter: blur(2px);
    }
    to {
      transform: translateX(0) scale(1);
      opacity: 1;
      filter: blur(0);
    }
  }
  .calendar-day-header {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 0 !important;
    color: var(--text-muted) !important;
    background: var(--bg-card) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .calendar-day-header.weekend {
    background: var(--calendar-weekend-header-fill) !important;
  }
  .calendar-day {
    background: var(--bg-card) !important;
    padding: 6px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: relative !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    border: 1px solid var(--border-light) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .calendar-day.weekend {
    background: var(--calendar-weekend-day-fill) !important;
    border-color: var(--border-darker) !important;
  }
  .calendar-day:active {
    background: var(--bg-tertiary) !important;
  }
  .calendar-day.today {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 2px solid var(--accent-blue) !important;
  }
  .calendar-day.other-month {
    opacity: 0.3 !important;
  }
  .calendar-day-number {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }
  .calendar-day.today .calendar-day-number {
    color: var(--accent-blue) !important;
  }
  .calendar-day .tasks-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    flex: 1 !important;
    overflow: visible !important;
    align-items: stretch !important;
  }
  .calendar-task {
    padding: 3px 4px !important;
    margin: 2px 4px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: white !important;
    text-align: left !important;
    min-height: 16px !important;
  }
  .calendar-task.priority-high {
    background: #ef4444 !important;
  }
  .calendar-task.priority-medium {
    background: #f59e0b !important;
  }
  .calendar-task.priority-low {
    background: #10b981 !important;
  }
  .calendar-task:not(.priority-high):not(.priority-medium):not(.priority-low) {
    background: var(--accent-blue) !important;
  }
  .calendar-task.done {
    opacity: 0.3 !important;
  }
  .calendar-project {
    display: none !important;
  }
  .project-overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 25 !important;
    overflow: hidden !important;
  }
  .project-spacer {
    display: block !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }
  .calendar-task,
  .calendar-more,
  .calendar-day .tasks-container {
    display: none !important;
  }
  .calendar-more {
    font-size: 8px !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    margin-top: 1px !important;
  }
  .fab-calendar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .calendar-view.active .fab-calendar {
    display: flex;
  }
  .fab-calendar:active {
    transform: scale(0.9);
  }
  .fab-calendar svg {
    width: 24px;
    height: 24px;
  }
  .tasks-table {
    display: none !important;
  }
  .view-toggle {
    display: none !important;
  }
  .sort-toggle {
    display: none !important;
  }
  #kanban-settings-btn {
    display: none !important;
  }
  .kanban-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 8px 12px 3px 12px !important;
  }
  .kanban-header .add-btn {
    width: 100% !important;
    margin: 0 !important;
    min-height: 48px !important;
    font-size: 16px !important;
  }
  #tasks .list-view {
    display: block !important;
  }
  #tasks:has(.calendar-view.active) > .page-header,
  #tasks:has(.calendar-view.active) #global-filters,
  #tasks:has(.calendar-view.active) .list-view,
  #tasks:has(.calendar-view.active) .kanban-board,
  #tasks:has(.calendar-view.active) .tasks-list-mobile {
    display: none !important;
  }
  #tasks .calendar-view.active {
    display: block !important;
  }
  .tasks-list-mobile {
    display: flex;
    flex-direction: column;
  }
  .tasks-list-mobile .task-card-mobile:first-child {
    margin-top: 2px;
  }
  .task-card-mobile .card-open-btn-premium,
  .task-card-mobile .card-chevron-premium {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
  }
  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
    padding: 0;
  }
  .hamburger-btn:hover {
    background: var(--bg-tertiary);
  }
  .hamburger-btn:active {
    transform: scale(0.95);
  }
  .hamburger-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
  }
  .mobile-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
  }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .sidebar.active {
    left: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  }
  [data-theme=dark] .sidebar.active {
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  }
  .resizer {
    display: none !important;
  }
  .main-content {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .app {
    flex-direction: column;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  @supports (height: 100dvh) {
    .app {
      min-height: 100dvh;
    }
    .page {
      min-height: 100dvh;
    }
  }
  .page {
    min-height: auto !important;
    overflow-y: auto !important;
    padding-bottom: max(60px, env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling: touch;
  }
  .main-content {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .user-menu {
    position: absolute !important;
    top: 8px !important;
    right: 16px !important;
    z-index: 101 !important;
  }
  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 0 !important;
    --modal-padding: 16px;
    border-radius: 12px !important;
    max-height: 95vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  #task-modal .modal-content,
  #project-modal .modal-content {
    padding: 20px !important;
  }
  #project-modal .modal-title {
    margin-bottom: 20px !important;
  }
  #project-modal form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  #project-modal .form-group {
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #project-modal #project-tags-display {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #project-modal .form-group > div {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #project-modal .modal-actions {
    margin-top: 20px !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 12px !important;
  }
  #project-modal .modal-actions button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
  }
  #project-modal input[type=text],
  #project-modal .form-input {
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 44px !important;
  }
  #project-tags-display {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  #project-tags-display .task-tag {
    padding: 4px 8px !important;
    font-size: 12px !important;
    min-height: 28px !important;
  }
  #feedback-delete-modal .modal-content {
    padding: 24px !important;
  }
  @supports (height: 100dvh) {
    .modal-content {
      max-height: 95dvh !important;
    }
  }
  .modal-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-height: calc(95vh - 140px) !important;
    padding: 20px 16px !important;
    padding-right: 12px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  .modal-body::-webkit-scrollbar {
    width: 6px !important;
  }
  .modal-body::-webkit-scrollbar-track {
    background: transparent !important;
    margin: 8px 0 !important;
  }
  .modal-body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb) !important;
    border-radius: 3px !important;
  }
  .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover) !important;
  }
  .modal-left {
    min-width: 0 !important;
    width: 100% !important;
    padding-right: 0 !important;
    display: contents !important;
  }
  .modal-left > .form-group {
    width: 100% !important;
    padding-right: 0 !important;
  }
  .modal-left > .form-group:nth-child(1) {
    order: 1 !important;
  }
  .modal-left > .form-group:nth-child(2) {
    order: 3 !important;
  }
  .modal-left > .form-group:nth-child(3) {
    order: 4 !important;
  }
  .modal-right {
    min-width: 0 !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    order: 2 !important;
  }
  .modal-header {
    margin-bottom: 0 !important;
    padding: 24px 20px 24px 28px !important;
    background:
      linear-gradient(
        135deg,
        var(--bg-card) 0%,
        var(--bg-secondary) 100%) !important;
    border-bottom: 1px solid var(--border) !important;
    margin: 0 !important;
    margin-left: calc(-1 * var(--modal-padding, 24px)) !important;
    margin-right: calc(-1 * var(--modal-padding, 24px)) !important;
    margin-top: calc(-1 * var(--modal-padding, 24px)) !important;
    width: calc(100% + 2 * var(--modal-padding, 24px)) !important;
  }
  [data-theme=dark] .modal-header {
    background:
      linear-gradient(
        135deg,
        var(--bg-card) 0%,
        var(--bg-tertiary) 100%) !important;
  }
  .modal-header h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
  }
  .modal-tabs {
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
    overflow-x: visible !important;
  }
  .modal-tab {
    padding: 12px 20px !important;
    font-size: 15px !important;
    min-height: 44px !important;
    white-space: nowrap !important;
  }
  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 10px !important;
    padding: 16px 20px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    margin-left: calc(-1 * var(--modal-padding, 24px)) !important;
    margin-right: calc(-1 * var(--modal-padding, 24px)) !important;
    margin-bottom: calc(-1 * var(--modal-padding, 24px)) !important;
    width: calc(100% + 2 * var(--modal-padding, 24px)) !important;
    background:
      linear-gradient(
        to top,
        var(--bg-card) 0%,
        var(--bg-primary) 100%) !important;
    border-top: 1px solid var(--border) !important;
    flex-shrink: 0 !important;
  }
  [data-theme=dark] .modal-footer {
    background:
      linear-gradient(
        to top,
        var(--bg-card) 0%,
        var(--bg-secondary) 100%) !important;
  }
  .modal-footer button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    justify-content: center !important;
  }
  .form-group {
    margin-bottom: 16px !important;
  }
  .form-group label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  .form-group input[type=text],
  .form-group input[type=date],
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 44px !important;
  }
  .date-input-wrapper {
    display: flex !important;
    width: 100% !important;
    position: relative !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .date-input-wrapper .date-display,
  input.date-display,
  .form-group .date-input-wrapper .date-display,
  .modal-right .date-input-wrapper .date-display,
  #task-form .date-input-wrapper .date-display {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 44px !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  .date-input-wrapper .date-display::placeholder,
  input.date-display::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
  }
  .date-input-wrapper input[type=hidden],
  .date-input-wrapper input[type=date][style*="display: none"] {
    display: none !important;
  }
  .date-input-wrapper button {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    display: block !important;
  }
  input.date-invalid,
  .date-input-wrapper input.date-invalid,
  .date-input-wrapper input.date-display.date-invalid,
  input[name=startDate].date-invalid,
  input[name=endDate].date-invalid {
    border-color: var(--accent-red) !important;
    background-color: rgba(255, 51, 51, 0.05) !important;
  }
  .form-group:has(.date-input-wrapper),
  .modal-right .form-group:has(input[name=startDate]),
  .modal-right .form-group:has(input[name=endDate]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .form-row .form-group {
    width: 100% !important;
    flex: none !important;
  }
  .rich-editor {
    min-height: 200px !important;
  }
  .editor-toolbar {
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 8px !important;
  }
  .editor-toolbar button {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 6px !important;
  }
  .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .modal-actions button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
  #tags-display .task-tag {
    padding: 3px 6px !important;
    font-size: 11px !important;
    gap: 4px !important;
    border-radius: 3px !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    height: auto !important;
  }
  #tags-display .task-tag button {
    font-size: 12px !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1 !important;
    min-width: auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .status-badge-mobile {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }
  .card-tags-premium {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  .card-tag-premium {
    padding: 3px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
  }
  .active-filters .filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 4px 10px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    align-self: flex-start !important;
  }
  .active-filters .filter-chip .chip-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }
  .btn-clear-filters {
    width: 100% !important;
    display: inline-flex;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 12px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
  }
  .task-history-container {
    padding-top: 60px !important;
    position: relative !important;
  }
  .history-sort-toggle {
    position: absolute !important;
    top: 30px !important;
    right: 16px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  .history-entry-inline .history-tag,
  .history-entry-inline span[style*=background-color][style*="font-size: 10px"] {
    font-size: 8px !important;
    padding: 2px 4px !important;
    margin-right: 2px !important;
  }
  .history-change-compact span[style*=background],
  .history-change-compact span[style*=background-color] {
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
  .checkbox-toggle,
  .checkbox-toggle.variant-1 {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
  .checkbox-row {
    margin: 6px 0 !important;
  }
  .check-text {
    font-size: 15px !important;
    padding-left: 8px !important;
  }
  .modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }
  .custom-select,
  .select-wrapper {
    width: 100% !important;
  }
  .select-display {
    min-height: 44px !important;
    font-size: 16px !important;
  }
  .tag-input-wrapper {
    min-height: 44px !important;
  }
  .tag-input-wrapper input {
    font-size: 16px !important;
    padding: 10px !important;
  }
  .tag-item {
    padding: 6px 10px !important;
    font-size: 14px !important;
    min-height: 32px !important;
  }
  .attachments-section {
    margin-top: 16px !important;
  }
  .attachment-item {
    padding: 12px !important;
    min-height: 64px !important;
  }
  .priority-select,
  .status-select {
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 44px !important;
  }
  .project-list {
    display: none !important;
  }
  .project-list-container {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .projects-list-mobile {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .project-card-mobile {
    position: relative;
    background: var(--bg-card);
    margin: 0 12px 12px 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 2px 4px rgba(0, 0, 0, 0.04),
      0 4px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }
  .project-card-mobile:first-child {
    margin-top: 12px;
  }
  .project-card-mobile:active {
    transform: scale(0.98);
  }
  .project-card-mobile.expanded {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07);
  }
  .project-card-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    gap: 12px;
    min-height: 64px;
  }
  .project-card-header-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }
  .project-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .project-swatch-mobile {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  .project-card-title-premium {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-card-meta-premium {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
  }
  .project-status-badge-mobile {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .project-status-badge-mobile.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }
  .project-status-badge-mobile.planning {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
  }
  .project-status-badge-mobile.backlog {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
  }
  [data-theme=dark] .project-status-badge-mobile.planning {
    color: #9ca3af;
  }
  [data-theme=dark] .project-status-badge-mobile.backlog {
    color: #b6c2d1;
  }
  .project-status-badge-mobile.on-hold {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
  }
  .project-status-badge-mobile.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }
  [data-theme=dark] .project-status-badge-mobile {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  .project-card-tasks-count,
  .project-card-completion {
    font-size: 13px;
    font-weight: 500;
  }
  .project-card-actions-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .project-card-open-btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .project-card-open-btn-premium svg {
    width: 18px;
    height: 18px;
    color: #111827;
  }
  [data-theme=dark] .project-card-open-btn-premium svg {
    color: #f9fafb;
  }
  .project-card-open-btn-premium:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
  }
  [data-theme=dark] .project-card-open-btn-premium:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .project-card-open-btn-premium:active {
    transform: translateY(0);
  }
  .project-card-chevron-premium {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
  }
  .project-card-mobile.expanded .project-card-chevron-premium {
    transform: rotate(180deg);
  }
  .project-card-body-premium {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .project-card-mobile.expanded .project-card-body-premium {
    max-height: 600px;
    opacity: 1;
    padding: 0 18px 16px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  }
  .project-card-body-premium::-webkit-scrollbar {
    width: 4px;
  }
  .project-card-body-premium::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
  }
  .project-card-body-premium::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  .project-card-body-premium:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
  }
  .project-card-body-premium::-webkit-scrollbar-button {
    display: none;
  }
  .project-card-description-premium {
    margin-bottom: 16px;
  }
  .project-card-description-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .project-card-description-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .project-card-footer-premium {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .project-card-meta-item-premium {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
  }
  .project-card-meta-item-premium svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    flex-shrink: 0;
  }
  .project-card-progress-premium {
    margin-bottom: 16px;
  }
  .project-card-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }
  .project-card-progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
  }
  [data-theme=dark] .project-card-progress-bar {
    background: #272e3d;
  }
  .project-card-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .breakdown-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
  }
  .breakdown-item.done {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }
  .breakdown-item.progress {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }
  .breakdown-item.review {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
  }
  .breakdown-item.todo {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
  }
  .breakdown-item.backlog {
    background: rgba(107, 114, 128, 0.08);
    color: #9ca3af;
  }
  .projects-list-mobile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
  }
  .projects-list-mobile-empty svg {
    width: 80px;
    height: 80px;
    opacity: 0.2;
    margin-bottom: 20px;
    color: var(--text-tertiary);
  }
  .projects-list-mobile-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
  }
  .projects-list-mobile-empty p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
    max-width: 280px;
  }
  .projects-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .projects-filters-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    overflow: hidden !important;
  }
  .projects-filters-toolbar .projects-search {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .projects-filters-toolbar .projects-filters {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: "status status" "updated updated" "has    no" "clear  clear" !important;
    gap: 10px !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }
  .projects-filters-toolbar .projects-filters #group-project-status {
    grid-area: status !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .projects-filters-toolbar .projects-filters #group-project-updated {
    grid-area: updated !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .projects-filters-toolbar .projects-filters #group-project-updated .filter-button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .projects-filters-toolbar .projects-filters #group-project-status .filter-button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .projects-filters-toolbar .projects-filters .pf-chip[data-filter=has-tasks] {
    grid-area: has !important;
  }
  .projects-filters-toolbar .projects-filters .pf-chip[data-filter=no-tasks] {
    grid-area: no !important;
  }
  .projects-filters-toolbar .projects-filters .pf-chip {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  html[lang=es] .projects-filters-toolbar .dropdown-panel .project-status-badge {
    padding: 6px 14px;
    min-width: 96px;
    text-align: center;
  }
  .projects-filters-toolbar .projects-filters #btn-clear-projects {
    grid-area: clear !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .projects-search,
  .projects-filters-toolbar .projects-search {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .projects-sort-standalone {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .projects-sort-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  .projects-right {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }
  .projects-right .add-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    background: #7c3aed !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
  }
  .projects-right .add-btn:active {
    background: #6d28d9 !important;
    transform: scale(0.98) !important;
  }
  .sort-label-arrow {
    min-width: 18px !important;
    height: 18px !important;
  }
  .sort-label-arrow svg {
    width: 11px !important;
    height: 11px !important;
  }
  .notify-btn {
    width: 28px !important;
    height: 28px !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .notify-icon {
    font-size: 13px !important;
  }
  .projects-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .pf-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .project-details-view {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    background: var(--bg-primary) !important;
  }
  .project-details-view .page-content {
    height: 100vh !important;
    padding: 16px !important;
    overflow-y: auto !important;
  }
  .project-details-container {
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .project-details-header {
    padding: 20px !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .project-details-title {
    font-size: 20px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  .project-meta {
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .project-actions-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
  }
  .project-actions-header button {
    flex: 1 1 calc(50% - 4px) !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  .project-details-view .project-description {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .project-details-view input[type=text],
  .project-details-view input[type=date],
  .project-details-view textarea {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .project-details-view .back-btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .filters-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
    background: var(--bg-secondary) !important;
    border-radius: 16px !important;
    margin: 0 0 10px 0 !important;
    border: 1px solid var(--border-light) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .active-filters {
    margin: 6px 0 10px 0 !important;
  }
  .active-filters:empty {
    display: none !important;
    margin: 0 !important;
  }
  .filter-input {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  .filter-group {
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .filter-button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
    justify-content: space-between !important;
    text-align: left !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .filter-count-badge {
    font-size: 13px !important;
  }
  .filters-toolbar > div[style*="display: flex"] {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .filters-toolbar input[type=date] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  #btn-clear-filters,
  #btn-clear-projects {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    min-height: 44px !important;
    font-size: 15px !important;
    height: 44px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
  }
  .filters-toolbar {
    overflow: visible !important;
  }
  .filters-toolbar .filter-group {
    position: relative !important;
    overflow: visible !important;
  }
  .filters-toolbar .dropdown-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 60vh !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  }
  .filters-toolbar .filter-group.open .dropdown-panel {
    display: block !important;
  }
  [data-theme=dark] .filters-toolbar .dropdown-panel,
  [data-theme=dark] .projects-filters-toolbar .dropdown-panel {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55) !important;
  }
  #dropdown-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1199;
  }
  #dropdown-backdrop.open {
    display: block;
  }
  .dropdown-panel.has-sheet-header {
    z-index: 1200 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }
  .dropdown-panel.has-sheet-header .dropdown-section-title {
    display: none !important;
  }
  body.dropdown-sheet-open .filters-toolbar .dropdown-panel.has-sheet-header.sheet-anchored,
  body.dropdown-sheet-open .projects-filters-toolbar .dropdown-panel.has-sheet-header.sheet-anchored {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: var(--sheet-top, auto) !important;
    bottom: auto !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: var(--sheet-maxh, 60vh) !important;
    margin: 0 !important;
    border-radius: 14px !important;
    padding-bottom: 10px !important;
  }
  body.dropdown-sheet-open .filters-toolbar .dropdown-panel.has-sheet-header.sheet-anchored .dropdown-list,
  body.dropdown-sheet-open .projects-filters-toolbar .dropdown-panel.has-sheet-header.sheet-anchored .dropdown-list {
    max-height: calc(var(--sheet-maxh, 60vh) - 72px) !important;
    overflow-y: auto !important;
  }
  body.dropdown-sheet-open .filters-toolbar .dropdown-panel.has-sheet-header.sheet-bottom,
  body.dropdown-sheet-open .projects-filters-toolbar .dropdown-panel.has-sheet-header.sheet-bottom {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 10px) !important;
  }
  body.dropdown-sheet-open .filters-toolbar .dropdown-panel.has-sheet-header.sheet-bottom .dropdown-list,
  body.dropdown-sheet-open .projects-filters-toolbar .dropdown-panel.has-sheet-header.sheet-bottom .dropdown-list {
    max-height: calc(80vh - 72px - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
  }
  body.dropdown-sheet-open .filters-toolbar .dropdown-panel.has-sheet-header .dropdown-list li label,
  body.dropdown-sheet-open .projects-filters-toolbar .dropdown-panel.has-sheet-header .dropdown-list li label {
    white-space: normal !important;
  }
  .dropdown-panel .dropdown-sheet-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 12px 8px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "handle handle" "title  done";
    row-gap: 8px;
    z-index: 1;
  }
  .dropdown-panel .dropdown-sheet-handle {
    grid-area: handle;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
    justify-self: center;
  }
  .dropdown-panel .dropdown-sheet-title {
    grid-area: title;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    align-self: center;
  }
  .dropdown-panel .dropdown-sheet-done {
    grid-area: done;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 10px;
  }
  .dropdown-panel .dropdown-sheet-done:active {
    background: rgba(37, 99, 235, 0.12);
  }
  body.dropdown-sheet-open {
    overflow: hidden;
    touch-action: none;
  }
  .dropdown-list {
    max-height: calc(70vh - 60px) !important;
    overflow-y: auto !important;
  }
  [data-theme=dark] .dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  }
  [data-theme=dark] .dropdown-list::-webkit-scrollbar {
    width: 4px;
  }
  [data-theme=dark] .dropdown-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
  }
  [data-theme=dark] .dropdown-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  [data-theme=dark] .dropdown-list:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
  }
  [data-theme=dark] .dropdown-list::-webkit-scrollbar-button {
    display: none;
  }
  .dropdown-list li {
    min-height: 44px !important;
  }
  .dropdown-list label {
    min-height: 44px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
  }
  .dropdown-list input[type=checkbox] {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    accent-color: var(--accent-blue) !important;
  }
  .page-header {
    padding: 16px !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    height: auto !important;
  }
  .page-header > div {
    width: 100% !important;
  }
  .page-header h1 {
    font-size: 24px !important;
    margin: 0 !important;
  }
  .page-header .page-subtitle {
    font-size: 14px !important;
    margin-top: 4px !important;
  }
  .page-header .back-btn,
  .page-header .view-all-btn {
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 8px !important;
    order: 1 !important;
    font-size: 15px !important;
    justify-content: center !important;
  }
  .page-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .page-actions button,
  .page-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    justify-content: center !important;
  }
  .btn-primary,
  button[data-action=openTaskForm] {
    order: -1 !important;
  }
  .view-toggle {
    width: 100% !important;
    justify-content: stretch !important;
    gap: 6px !important;
    padding: 0 12px !important;
    margin-bottom: 12px !important;
  }
  .view-btn {
    flex: 1 !important;
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
  .backlog-quick-btn {
    min-height: 44px !important;
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
  .calendar-task-card {
    margin: 4px !important;
    padding: 8px !important;
    font-size: 13px !important;
    min-height: 40px !important;
  }
  .dashboard-content {
    padding: 0 !important;
    background: var(--bg-primary) !important;
  }
  #dashboard .page-header {
    padding: 12px 16px !important;
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    margin-bottom: 0 !important;
  }
  #dashboard .page-title {
    font-size: 24px !important;
    margin: 0 !important;
  }
  #dashboard .page-subtitle {
    font-size: 14px !important;
    margin-top: 4px !important;
    color: var(--text-secondary) !important;
  }
  .hero-stats {
    display: flex !important;
    gap: 0 !important;
    padding: 16px 12px !important;
    overflow: visible !important;
  }
  .hero-stat-card.primary {
    display: none !important;
  }
  .hero-stat-card {
    flex: 1 !important;
    width: 100% !important;
    padding: 24px !important;
    border-radius: 16px !important;
    background: var(--bg-card) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--border) !important;
  }
  .hero-stat-card.hero-completion-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding: 16px 12px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
  }
  .hero-completion-section {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .hero-completion-section:first-child {
  }
  .hero-completion-section:last-child {
  }
  .hero-completion-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .hero-completion-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .hero-completion-divider {
    width: 1px !important;
    height: 70px !important;
    background: var(--border) !important;
    margin: 0 8px !important;
    flex-shrink: 0 !important;
  }
  .hero-completion-split .completion-ring {
    width: 70px !important;
    height: 70px !important;
    margin: 0 !important;
  }
  .hero-completion-split .completion-ring .ring-background {
    stroke: var(--border) !important;
    opacity: 0.3 !important;
  }
  .hero-completion-split .ring-percentage {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
  }
  .hero-completion-split .hero-stat-label {
    font-size: 14px !important;
    text-align: center !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
  }
  .hero-completion-split .hero-completion-count {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    opacity: 0.7 !important;
    font-variant-numeric: tabular-nums !important;
    line-height: 1.2 !important;
    gap: 0 !important;
  }
  .hero-completion-split .count-numerator {
    line-height: 1 !important;
  }
  .hero-completion-split .count-divider {
    width: 18px !important;
    height: 0 !important;
    border-top: 1px solid var(--text-muted) !important;
    opacity: 0.5 !important;
    margin: 2px 0 !important;
  }
  .hero-completion-split .count-denominator {
    line-height: 1 !important;
  }
  .hero-stat-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .hero-stat-number {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-variant-numeric: tabular-nums !important;
  }
  .hero-stat-label {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
  }
  .hero-stat-trend {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
  }
  .hero-stat-visual {
    margin-top: 16px !important;
  }
  .completion-ring {
    width: 80px !important;
    height: 80px !important;
  }
  .dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 !important;
  }
  .quick-actions-card {
    order: 1 !important;
  }
  .stats-section {
    order: 2 !important;
  }
  .progress-overview-card {
    order: 3 !important;
  }
  .activity-feed-card {
    order: 4 !important;
  }
  .insights-card {
    order: 5 !important;
  }
  .stats-section {
    background: var(--bg-card) !important;
    padding: 16px !important;
    margin: 0 12px !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .stats-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .stats-header h3 {
    font-size: 20px !important;
    margin: 0 !important;
  }
  .time-filter {
    display: none !important;
  }
  .enhanced-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  .enhanced-stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 11px 14px !important;
    background: var(--bg-tertiary) !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: 48px !important;
    overflow: hidden !important;
  }
  .enhanced-stat-card:nth-child(5),
  .enhanced-stat-card:nth-child(6) {
    display: none !important;
  }
  .enhanced-stat-card:active {
    transform: scale(0.96) !important;
  }
  .stat-icon-new {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
  }
  .stat-icon-new.amber {
    background: rgba(245, 158, 11, 0.12) !important;
  }
  .stat-icon-new.blue {
    background: rgba(59, 130, 246, 0.12) !important;
  }
  .stat-icon-new.purple {
    background: rgba(147, 51, 234, 0.12) !important;
  }
  .stat-icon-new.red {
    background: rgba(239, 68, 68, 0.12) !important;
  }
  .stat-icon-new.green {
    background: rgba(34, 197, 94, 0.12) !important;
  }
  .stat-icon-new.teal {
    background: rgba(20, 184, 166, 0.12) !important;
  }
  .stat-number {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
    margin: 0 !important;
    margin-right: 12px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    min-width: 1.5em !important;
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
  }
  .stat-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
    justify-content: flex-start !important;
  }
  .stat-title {
    font-size: 15px !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: 100px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stat-change {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    flex: 1 !important;
    text-align: center !important;
  }
  .stat-change.positive {
    color: var(--accent-green) !important;
  }
  .stat-change.negative {
    color: var(--accent-red) !important;
  }
  .progress-overview-card {
    background: var(--bg-card) !important;
    padding: 16px !important;
    margin: 0 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .progress-overview-card .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  .progress-overview-card .card-header h3 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  .progress-legend {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .progress-overview-card .card-header {
    position: relative !important;
  }
  .progress-overview-card .view-all-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    padding-right: 0 !important;
  }
  .legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
  }
  .legend-item .dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 3px !important;
  }
  .progress-bars {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .progress-bar-item {
    padding: 12px !important;
    background: var(--bg-tertiary) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }
  .progress-bar-item:active {
    opacity: 0.9 !important;
  }
  .project-progress-header {
    gap: 8px !important;
  }
  .project-name {
    font-size: 14px !important;
  }
  .task-count {
    font-size: 11px !important;
  }
  .quick-actions-card {
    background: var(--bg-card) !important;
    padding: 16px !important;
    margin: 0 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .quick-actions-card .card-header {
    margin-bottom: 16px !important;
  }
  .quick-actions-card .card-header h3 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  .quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .quick-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 20px 12px !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    min-height: 88px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .quick-action:active {
    transform: scale(0.95) !important;
    background: var(--bg-secondary) !important;
  }
  .qa-icon {
    font-size: 28px !important;
  }
  .qa-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
  .activity-feed-card {
    background: var(--bg-card) !important;
    padding: 16px !important;
    margin: 0 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .activity-feed-card .card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
  }
  .activity-feed-card .card-header h3 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  .view-all-btn {
    font-size: 14px !important;
    color: var(--accent-blue) !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    min-height: 36px !important;
    cursor: pointer !important;
  }
  .activity-feed {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .activity-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px !important;
    background: var(--bg-tertiary) !important;
    border-radius: 10px !important;
    min-height: 64px !important;
  }
  .activity-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border-radius: 10px !important;
  }
  .activity-icon.completed {
    background: rgba(34, 197, 94, 0.1) !important;
  }
  .activity-icon.created {
    background: rgba(59, 130, 246, 0.1) !important;
  }
  .activity-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    justify-content: center !important;
  }
  .activity-text {
    font-size: 14px !important;
    color: var(--text-primary) !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .activity-time {
    font-size: 12px !important;
    color: var(--text-muted) !important;
  }
  .activity-item-full {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: 14px !important;
  }
  .activity-item-full .activity-text {
    flex: 1 !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .activity-full-date {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    white-space: nowrap !important;
    margin-left: 8px !important;
  }
  .all-activity-list {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .insights-card {
    background: var(--bg-card) !important;
    padding: 16px !important;
    margin: 0 12px 16px 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  }
  .insights-card .card-header {
    margin-bottom: 16px !important;
  }
  .insights-card .card-header h3 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  .insights-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .insight-item {
    display: flex !important;
    gap: 12px !important;
    padding: 14px !important;
    background: var(--bg-tertiary) !important;
    border-radius: 10px !important;
    border-left: 3px solid var(--border) !important;
  }
  .insight-item.priority {
    border-left-color: var(--accent-purple) !important;
  }
  .insight-item.success {
    border-left-color: var(--accent-green) !important;
  }
  .insight-item.warning {
    border-left-color: var(--accent-amber) !important;
  }
  .insight-icon {
    font-size: 24px !important;
    line-height: 1 !important;
  }
  .insight-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .insight-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
  }
  .insight-desc {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    line-height: 1.4 !important;
  }
  .nav-item.calendar-nav {
    display: flex !important;
  }
  #feedback .page-header {
    padding: 16px !important;
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .feedback-subtitle-row {
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
  }
  #feedback .page-subtitle {
    flex: 0 1 auto;
  }
  .feedback-save-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    font-size: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transform: translateY(1px);
  }
  .feedback-save-indicator {
    position: static;
  }
  #feedback .page-title {
    font-size: 24px !important;
  }
  #feedback .page-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: var(--text-secondary) !important;
  }
  .feedback-save-status {
    line-height: 1.4;
    align-items: center;
  }
  #feedback .page-content {
    padding: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .feedback-input-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
    align-items: stretch !important;
  }
  #feedback-type-group {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    position: relative !important;
  }
  #feedback-type-group .filter-button {
    width: 100% !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    justify-content: space-between !important;
  }
  [data-theme=light] #feedback-type-group .filter-button {
    background: var(--bg-card) !important;
  }
  #feedback-type-group .dropdown-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-height: 300px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  #feedback-type-group .dropdown-list {
    max-height: 240px !important;
  }
  .feedback-input {
    width: 100% !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
  }
  [data-theme=light] #feedback .feedback-input {
    background: var(--bg-card) !important;
  }
  .feedback-input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.75 !important;
    font-size: clamp(13px, 3.6vw, 15px) !important;
    line-height: 1.2 !important;
  }
  .camera-divider {
    display: none !important;
  }
  .screenshot-upload-link {
    display: none !important;
  }
  [data-theme=light] #feedback .screenshot-upload-link {
    background: var(--bg-card) !important;
  }
  .feedback-screenshot-dropzone {
    width: 100% !important;
    padding-right: 16px !important;
    border-width: 2px !important;
    border-style: dashed !important;
    border-color: var(--border) !important;
    background: var(--bg-tertiary) !important;
  }
  [data-theme=light] #feedback .feedback-screenshot-dropzone {
    background: var(--bg-card) !important;
    border-color: var(--border-strong) !important;
    border-width: 1.5px !important;
  }
  [data-theme=light] #feedback .feedback-screenshot-dropzone.feedback-screenshot-dragover {
    background: rgba(59, 130, 246, 0.1) !important;
  }
  .feedback-screenshot-preview {
    margin-top: 12px !important;
  }
  .feedback-screenshot-preview-card {
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .feedback-screenshot-thumb {
    width: 48px !important;
    height: 48px !important;
  }
  .feedback-screenshot-remove {
    min-height: 36px !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  .add-btn {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    min-height: 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
  }
  #feedback-list-pending,
  #feedback-list-done {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  #feedback-list-pending .feedback-item,
  #feedback-list-done .feedback-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }
  #feedback-list-pending .feedback-item .feedback-type-icon,
  #feedback-list-done .feedback-item .feedback-type-icon {
    position: absolute !important;
    top: 10px !important;
    left: 14px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
    z-index: 2 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
  }
  #feedback-list-pending .feedback-item .feedback-type-icon,
  #feedback-list-done .feedback-item .feedback-type-icon,
  #feedback-list-pending .feedback-item .feedback-screenshot-link,
  #feedback-list-done .feedback-item .feedback-screenshot-link {
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 1px !important;
  }
  #feedback-list-pending .feedback-item .feedback-checkbox,
  #feedback-list-done .feedback-item .feedback-checkbox {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    z-index: 2 !important;
    cursor: pointer !important;
  }
  #feedback-list-pending .feedback-item .feedback-description,
  #feedback-list-done .feedback-item .feedback-description {
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: var(--text-primary) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
    padding: 44px 16px 50px 16px !important;
    margin: 0 !important;
    flex: 1 !important;
    min-height: 80px !important;
  }
  #feedback-list-pending .feedback-item .feedback-date,
  #feedback-list-done .feedback-item .feedback-date {
    position: absolute !important;
    bottom: 15px !important;
    left: 16px !important;
    font-size: 11px !important;
    line-height: 11px !important;
    color: var(--text-muted) !important;
    opacity: 0.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    z-index: 2 !important;
  }
  #feedback-list-pending .feedback-item .feedback-screenshot-link,
  #feedback-list-done .feedback-item .feedback-screenshot-link {
    display: inline-flex !important;
    position: absolute !important;
    top: 10px !important;
    left: 44px !important;
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    appearance: none !important;
    z-index: 2 !important;
  }
  #feedback-list-pending .feedback-item .feedback-delete-btn,
  #feedback-list-done .feedback-item .feedback-delete-btn {
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 10px !important;
    margin: 0 !important;
    opacity: 0.7 !important;
    z-index: 2 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #feedback-list-pending .feedback-item .feedback-delete-btn:active,
  #feedback-list-done .feedback-item .feedback-delete-btn:active {
    opacity: 1 !important;
    color: var(--accent-red) !important;
  }
  .feedback-item.done .feedback-description {
    text-decoration: line-through !important;
    opacity: 0.6 !important;
  }
  .feedback-item.done .feedback-type-icon {
    opacity: 0.6 !important;
  }
  #feedback h3 {
    font-size: 18px !important;
  }
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .project-card {
    padding: 16px !important;
  }
  .project-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .project-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .project-actions button {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  button:not(.card-chevron-premium):not(.modal-close):not(.checkbox-toggle):not(.chip-remove):not(.calendar-today-btn):not(.calendar-today-btn--header):not(.calendar-today-btn--nav) {
    min-height: 25px !important;
    min-width: 25px !important;
  }
  a,
  .clickable {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  input[type=checkbox],
  input[type=radio] {
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 12px !important;
  }
  .task-description-display input[type=checkbox] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    margin: 0 4px 0 0 !important;
    vertical-align: text-bottom !important;
    transform: scale(0.9) !important;
  }
  h1 {
    font-size: 28px !important;
  }
  h2 {
    font-size: 24px !important;
  }
  h3 {
    font-size: 20px !important;
  }
  h4 {
    font-size: 18px !important;
  }
  p,
  li {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .project-details-view .task-tags span {
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  .page-content {
    padding: 0 16px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    scroll-padding-bottom: env(safe-area-inset-bottom) !important;
  }
  #tasks .page-content {
    padding: 16px !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .content-section {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }
  .section-header {
    margin: 12px 0 8px 0 !important;
  }
  .project-details-view {
    padding: 0 !important;
    background: var(--bg-primary) !important;
  }
  .project-details-header {
    padding: 0 !important;
    margin-bottom: 0 !important;
    background:
      linear-gradient(
        135deg,
        var(--bg-card) 0%,
        var(--bg-secondary) 100%) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: none !important;
  }
  [data-theme=dark] .project-details-header {
    background:
      linear-gradient(
        135deg,
        var(--bg-card) 0%,
        var(--bg-tertiary) 100%) !important;
  }
  .project-details-title {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
  }
  .project-details-title .back-btn {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 50% !important;
    z-index: 2 !important;
    font-size: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  .project-details-title .back-btn:active {
    background: var(--bg-secondary) !important;
    transform: scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  }
  .project-details-title .back-btn::before {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 6.5L8.5 12l6 5.5' stroke='%236366f1' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 22px 22px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin: 0 !important;
  }
  .project-details-title > div:last-child {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
    z-index: 2 !important;
  }
  .project-details-title .options-btn,
  .project-details-title #project-options-btn {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .project-details-title .options-btn:active {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(0.95) !important;
  }
  .project-details-title > span:first-child,
  .project-details-title #project-title-display {
    display: block;
    padding: 70px 20px 16px 20px !important;
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    order: 1 !important;
    letter-spacing: -0.5px !important;
    color: var(--text-primary) !important;
  }
  .project-details-title #project-title-edit {
    width: 100% !important;
    padding: 70px 20px 12px 20px !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    order: 1 !important;
  }
  .project-details-title #project-title-edit .editable-project-title {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
  }
  .project-details-title #project-title-edit .title-edit-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    border-radius: 14px !important;
  }
  .project-details-title .project-status-badge {
    display: inline-block !important;
    margin: 0 20px 20px 20px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    width: fit-content !important;
    order: 2 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
  }
  .project-details-header .modal-tabs,
  .project-details-header .project-details-tabs {
  }
  [data-theme=dark] .project-details-title .project-status-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  .project-details-description {
    padding: 0 20px 24px 20px !important;
    margin: 0 !important;
  }
  .project-details-description textarea {
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding: 16px !important;
    width: 100% !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    min-height: 100px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    resize: vertical !important;
  }
  .project-details-description textarea:focus {
    background: var(--bg-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  }
  .project-details-description textarea::placeholder {
    color: var(--text-muted) !important;
    font-style: italic !important;
  }
  .project-timeline {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 20px !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border-light) !important;
  }
  .timeline-item {
    flex: none !important;
    background: var(--bg-card) !important;
    padding: 18px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-light) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .timeline-item:nth-child(1),
  .timeline-item:nth-child(2) {
    grid-column: auto !important;
  }
  .timeline-item:nth-child(3) {
    grid-column: 1 / -1 !important;
  }
  .timeline-item:nth-child(3) .timeline-value::before {
    content: "\1f4c5  " !important;
  }
  .timeline-item:nth-child(4),
  .timeline-item:nth-child(5) {
    grid-column: auto !important;
  }
  .timeline-item:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  .timeline-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    color: var(--text-muted) !important;
  }
  .timeline-value {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
  }
  .timeline-item input.datepicker {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    width: 100% !important;
  }
  .project-progress-section {
    padding: 20px 16px !important;
    margin: 0 !important;
    background: var(--bg-card) !important;
    border-radius: 0 !important;
    border: 1px solid var(--border-light) !important;
    border-top: none !important;
    box-shadow: none !important;
  }
  .progress-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--border-light) !important;
  }
  .progress-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.3px !important;
  }
  .progress-percentage {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #6366f1 !important;
    letter-spacing: -1.5px !important;
    line-height: 1 !important;
  }
  .progress-bar-container {
    height: 8px !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    border: 1px solid rgba(99, 102, 241, 0.12) !important;
  }
  .progress-bar-fill {
    height: 100% !important;
    background: var(--accent-green) !important;
    border-radius: 100px !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .progress-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .progress-stat {
    background: var(--bg-secondary) !important;
    padding: 24px 16px !important;
    border-radius: 18px !important;
    text-align: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--border-light) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .progress-stat:active {
    transform: scale(0.97) !important;
    background: var(--bg-tertiary) !important;
    border-color: var(--primary-color) !important;
  }
  .progress-stat-number {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -0.5px !important;
    display: block !important;
    margin: 0 !important;
  }
  .progress-stat-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text-muted) !important;
    line-height: 1.2 !important;
    display: block !important;
    margin: 0 !important;
  }
  .project-tasks-section {
    padding: 0 20px 20px 20px !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-top: none !important;
    border-radius: 0 0 24px 24px !important;
  }
  .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
  }
  .section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
  }
  .add-btn {
    padding: 10px 20px !important;
    background: var(--accent-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
  }
  .project-tasks-section .add-btn {
    padding: 5px 10px !important;
    height: 34px !important;
    min-height: 34px !important;
    line-height: 1 !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  .add-btn:active {
    transform: scale(0.96) !important;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3) !important;
    background: var(--accent-blue-dark) !important;
  }
  .project-task-item {
    background: var(--bg-secondary) !important;
    padding: 16px 18px !important;
    margin-bottom: 10px !important;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 56px !important;
  }
  .project-task-item:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color) !important;
  }
  .project-task-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .project-task-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .project-task-meta {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .project-task-priority,
  .project-task-status-col {
    flex-shrink: 0 !important;
  }
  .task-priority,
  .status-badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  .project-history-section {
    padding: 0 20px 20px 20px !important;
    margin-top: 24px !important;
    position: relative !important;
  }
  .project-history-section .history-sort-toggle {
    position: absolute !important;
    top: -24px !important;
    right: 20px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
  }
  .project-history-section .history-tag,
  .project-history-section span[style*=background-color][style*="font-size: 10px"] {
    font-size: 8px !important;
    padding: 2px 4px !important;
    margin-right: 2px !important;
  }
  .project-history-section .history-change-compact span[style*=background],
  .project-history-section .history-change-compact span[style*=background-color] {
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
  .project-history-section .section-header {
    margin-bottom: 16px !important;
  }
  .project-history-section .section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
  }
  .history-timeline-inline {
    background: var(--bg-card) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    border: 1px solid var(--border-light) !important;
  }
  .history-item {
    padding: 12px !important;
    margin-bottom: 8px !important;
    background: var(--bg-secondary) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .history-empty-inline {
    background: var(--bg-card) !important;
    border-radius: 16px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    border: 1px solid var(--border-light) !important;
  }
  .color-picker-dropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 200px !important;
  }
}
@media (max-width: 480px) {
  .modal-header {
    padding: 20px 16px 20px 24px !important;
  }
  .modal-header h2 {
    font-size: 18px !important;
  }
  .modal-tabs {
    padding: 10px 16px !important;
  }
  .modal-tab {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  .modal-body {
    padding: 16px 12px !important;
    padding-right: 8px !important;
  }
  .modal-footer {
    padding: 14px 16px !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }
  .modal-footer button {
    min-height: 46px !important;
    font-size: 14px !important;
  }
}
@media (max-width: 480px) {
  .project-details-title > span:first-child,
  .project-details-title #project-title-display {
    padding: 60px 16px 12px 16px !important;
    font-size: 24px !important;
  }
  .project-details-title #project-title-edit {
    padding: 60px 16px 12px 16px !important;
  }
  .project-details-title #project-title-edit .editable-project-title {
    font-size: 20px !important;
    padding: 10px 12px !important;
  }
  .project-details-title .project-status-badge {
    margin: 0 16px 16px 16px !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
  }
  .project-details-header .modal-tabs,
  .project-details-header .project-details-tabs {
    padding: 10px 16px !important;
  }
  .project-details-description {
    padding: 0 16px 20px 16px !important;
  }
  .project-details-description textarea {
    font-size: 14px !important;
    padding: 14px !important;
    min-height: 90px !important;
  }
  .project-timeline {
    padding: 16px !important;
    gap: 10px !important;
  }
  .timeline-item {
    padding: 14px !important;
  }
  .timeline-label {
    font-size: 10px !important;
  }
  .timeline-value {
    font-size: 15px !important;
  }
  .project-progress-section {
    padding: 16px 12px !important;
  }
  .progress-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }
  .progress-title {
    font-size: 15px !important;
  }
  .progress-percentage {
    font-size: 28px !important;
  }
  .progress-bar-container {
    margin-bottom: 20px !important;
  }
  .progress-stats {
    gap: 12px !important;
  }
  .progress-stat {
    padding: 20px 12px !important;
  }
  .progress-stat-number {
    font-size: 24px !important;
  }
  .progress-stat-label {
    font-size: 10px !important;
  }
  .project-tasks-section {
    padding: 0 16px 16px 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .section-header {
    margin-bottom: 12px !important;
  }
  .section-title {
    font-size: 18px !important;
  }
  .project-tasks-section .add-btn {
    padding: 4px 8px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 11px !important;
  }
  .project-task-item {
    padding: 14px 16px !important;
    margin-bottom: 8px !important;
    min-height: 52px !important;
  }
  .project-task-title {
    font-size: 14px !important;
  }
  .project-task-meta {
    font-size: 11px !important;
  }
  .task-priority,
  .status-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
  .project-history-section {
    padding: 0 16px 16px 16px !important;
  }
  .project-history-section .section-title {
    font-size: 18px !important;
  }
  .history-timeline-inline {
    padding: 12px !important;
  }
  .history-item {
    padding: 10px !important;
    font-size: 13px !important;
  }
  .history-empty-inline {
    padding: 32px 16px !important;
  }
  .modal-tab-mobile {
    display: inline-block !important;
  }
  .modal-tab-mobile.hide-details-tab {
    display: none !important;
  }
  #task-modal .modal-body .form-group {
    margin-bottom: 4px !important;
  }
  #task-modal .modal-body .form-label {
    margin-bottom: 3px !important;
  }
  #task-modal .modal-body {
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #task-modal .modal-left,
  #task-modal .modal-right {
    width: 100% !important;
  }
  #task-modal .form-group:has([name=title]) {
    order: 1;
  }
  #task-modal .form-group:has(#hidden-status) {
    order: 2;
  }
  #task-modal .form-group:has(#hidden-priority) {
    order: 3;
  }
  #task-modal .form-group:has(#tag-input) {
    order: 4;
  }
  #task-modal .form-group:has([name=startDate]) {
    order: 5;
  }
  #task-modal .form-group:has([name=endDate]) {
    order: 6;
  }
  #task-modal .form-group:has(#hidden-project) {
    order: 7;
  }
  #task-modal .form-group:has(#attachments-files-list) {
    order: 8;
  }
  #task-modal .form-group:has(#task-description-editor) {
    order: 9;
  }
  #task-modal .form-group:has(#attachments-links-list) {
    order: 10;
  }
  #task-modal .mobile-details-field {
    display: none !important;
  }
  #task-modal .mobile-general-field {
    display: block !important;
  }
  body.mobile-tab-details-active #task-modal .mobile-general-field {
    display: none !important;
  }
  body.mobile-tab-details-active #task-modal .mobile-details-field {
    display: block !important;
  }
}
@media (max-width: 768px) {
  .modal-content.settings-modal-content {
    max-width: calc(100% - 24px) !important;
    height: calc(100vh - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    margin: 12px !important;
  }
  @supports (height: 100dvh) {
    .modal-content.settings-modal-content {
      height: calc(100dvh - 24px) !important;
      max-height: calc(100dvh - 24px) !important;
    }
  }
  .settings-modal-header {
    padding: 16px 20px !important;
    gap: 12px !important;
  }
  .settings-icon-wrapper {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    border-radius: 12px !important;
  }
  .settings-title {
    font-size: 20px !important;
  }
  .settings-subtitle {
    font-size: 12px !important;
  }
  .settings-close {
    width: 36px !important;
    height: 36px !important;
  }
  .settings-close svg {
    width: 18px !important;
    height: 18px !important;
  }
  .settings-modal-body {
    padding: 20px 16px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }
  #email-notification-timezone {
    display: none !important;
  }
  #email-notification-timezone-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 40px 11px 16px !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    background-color: var(--bg-primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    border: 2px solid var(--border) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-align: left !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  #email-notification-timezone-trigger:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
  }
  [data-theme=dark] #email-notification-timezone-trigger {
    background-color: var(--bg-primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  }
  .settings-section {
    margin-bottom: 16px !important;
    border-radius: 12px !important;
  }
  .settings-section-header {
    padding: 16px 18px !important;
  }
  .settings-section-title {
    font-size: 16px !important;
  }
  .settings-section-icon {
    width: 16px !important;
    height: 16px !important;
  }
  .settings-section-content {
    padding: 0 18px 18px !important;
  }
  .settings-field {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 0 !important;
  }
  .settings-field:hover {
    margin: 0 -18px !important;
    padding: 16px 18px !important;
  }
  .settings-field-label {
    width: 100% !important;
    flex: none !important;
  }
  .settings-field-input {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    display: block !important;
  }
  .settings-input,
  .settings-select {
    width: 100% !important;
  }
  .field-label {
    font-size: 14px !important;
  }
  .field-hint {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .settings-field-toggle {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
  .settings-field-toggle .settings-field-label {
    flex: 1 !important;
    padding-right: 12px !important;
  }
  .settings-field-toggle .settings-field-input {
    width: auto !important;
    flex-shrink: 0 !important;
  }
  .settings-modal-footer {
    padding: 16px 18px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    gap: 10px !important;
  }
  .settings-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
  .settings-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
}
@media (max-width: 480px) {
  .settings-modal-header {
    padding: 14px 16px !important;
  }
  .settings-subtitle {
    display: none !important;
  }
  .settings-modal-body {
    padding: 16px 12px !important;
  }
  .settings-section-content {
    padding: 0 14px 14px !important;
  }
  .settings-field:hover {
    margin: 0 -14px !important;
    padding: 16px 14px !important;
  }
  .settings-modal-footer {
    flex-direction: column !important;
    padding: 14px 16px !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }
  .settings-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 18, 1);
  z-index: 10000;
}
.auth-panel {
  display: flex;
  width: min(620px, calc(100% - 48px));
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(9, 12, 16, 0.98),
      rgba(5, 7, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.03);
  transform: translateY(6px);
  opacity: 0;
  animation: auth-panel-in .36s cubic-bezier(.2, .9, .3, 1) forwards;
}
@keyframes auth-panel-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.auth-left {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 22px;
  background:
    linear-gradient(
      180deg,
      rgba(37, 99, 235, 0.06),
      transparent 40%);
}
.auth-left .logo {
  width: 220px;
  height: auto;
}
.auth-right {
  flex: 1;
  padding: 20px 20px 22px 18px;
  color: #dfeff0;
  overflow-y: auto;
  max-height: 90vh;
}
.auth-right h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: #dfeff0;
}
.auth-right .muted {
  color: #9fb0b6;
  margin: 0 0 24px 0;
  font-size: 14px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: #dfeff0;
}
.remember-me-group label {
  display: flex !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
}
.form-group input[type=text],
.form-group input[type=email] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: #eaf6f6;
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input::placeholder {
  color: rgba(230, 246, 246, 0.45);
}
.form-group input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
}
.form-hint {
  display: block;
  font-size: 12px;
  color: #9fb0b6;
  margin-top: 6px;
}
.required {
  color: #ff6b6b;
}
.pin-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}
.pin-dots .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.2s;
}
.pin-dots .dot.filled {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}
.remember-me-group {
  margin: -12px 0 20px 0;
  padding: 0;
}
.remember-me-group label {
  color: var(--text-secondary);
  font-weight: 400;
  user-select: none;
}
.remember-me-group input[type=checkbox] {
  accent-color: var(--accent-blue);
  cursor: pointer;
  transition: all 0.2s;
}
.remember-me-group input[type=checkbox]:hover {
  accent-color: #1d4ed8;
}
[data-theme=dark] .remember-me-group input[type=checkbox] {
  accent-color: #2563eb;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.pin-btn {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #dfeff0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.4);
}
.pin-btn:active {
  transform: scale(0.95);
}
.pin-btn-clear {
  font-size: 24px;
}
.pin-btn-submit,
.pin-btn-next {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}
.pin-btn-submit:hover,
.pin-btn-next:hover {
  background: #1d4ed8;
}
.status {
  margin-top: 12px;
  min-height: 18px;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
}
.status.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}
.status.success {
  color: #51cf66;
  background: rgba(81, 207, 102, 0.1);
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
}
.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}
.auth-link:hover {
  opacity: 0.8;
}
.full-width {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}
.full-width:hover {
  background: #1d4ed8;
}
.full-width:active {
  transform: translateY(1px);
}
.admin-panel {
  flex-direction: column;
  max-width: 1000px;
  max-height: 92vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-header h1 {
  font-size: 22px;
  margin: 0;
  color: #dfeff0;
}
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.admin-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #dfeff0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  background: #2563eb;
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.2s;
}
.user-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.user-card-name {
  font-weight: 700;
  font-size: 15px;
  color: #dfeff0;
}
.user-card-username {
  font-size: 12px;
  color: #9fb0b6;
}
.user-card-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.user-card-status.active {
  background: rgba(81, 207, 102, 0.15);
  color: #51cf66;
}
.user-card-status.setup {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}
.user-card-info {
  font-size: 12px;
  color: #9fb0b6;
  margin-bottom: 8px;
}
.user-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.user-card-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #dfeff0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.user-card-actions button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.4);
}
.user-card-actions button.danger:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.btn.secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #dfeff0;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn.primary {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.btn.primary:hover {
  background: #1d4ed8;
}
.btn.primary:active {
  transform: translateY(1px);
}
@media (max-width: 768px) {
  .auth-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(6, 10, 18, 1);
    z-index: 10000;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .auth-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: min-content;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background:
      linear-gradient(
        180deg,
        rgba(9, 12, 16, 0.98),
        rgba(5, 7, 10, 0.98));
    border: none;
  }
  .auth-left {
    flex: 0 0 auto;
    padding: 12px;
    background:
      linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.06),
        transparent 40%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .auth-left .logo {
    width: 72px;
    height: auto;
  }
  .auth-right {
    flex: 1 1 auto;
    padding: 16px 20px 20px;
    color: #dfeff0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  .auth-right::after {
    content: "";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    background:
      linear-gradient(
        to bottom,
        transparent,
        rgba(5, 7, 10, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .auth-right::-webkit-scrollbar {
    width: 4px;
  }
  .auth-right::-webkit-scrollbar-track {
    background: transparent;
  }
  .auth-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  .auth-right h1 {
    font-size: 20px;
    margin: 0;
    padding: 0;
    letter-spacing: 0.2px;
    color: #dfeff0;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }
  .auth-right .muted {
    display: none !important;
  }
  .auth-back-link {
    font-size: 13px !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
  }
  .auth-footer .auth-link {
    display: none !important;
  }
  .form-group {
    margin: 0;
    padding: 0;
  }
  .form-group label {
    margin: 0 0 6px 0 !important;
    padding: 0;
    font-size: 13px !important;
    display: block;
    color: #9fb0b6;
    font-weight: 500;
  }
  .form-group input[type=text],
  .form-group input[type=email] {
    width: 100%;
    padding: 12px 14px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    color: #eaf6f6;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }
  .form-hint {
    font-size: 12px !important;
    margin-top: 4px !important;
    line-height: 1.4;
  }
  .pin-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 8px 0;
  }
  .pin-dots .dot {
    width: 12px;
    height: 12px;
  }
  .pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 260px;
    margin: 12px auto;
    box-sizing: border-box;
  }
  .pin-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #dfeff0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 52px;
    padding: 0;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
  }
  .pin-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.06);
  }
  .pin-btn-clear {
    font-size: 20px;
  }
  .pin-btn-submit,
  .pin-btn-next {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }
  .pin-btn-submit:hover,
  .pin-btn-next:hover {
    background: #1d4ed8;
  }
  .pin-btn-submit:active,
  .pin-btn-next:active {
    background: #1e40af;
  }
  .status {
    font-size: 13px !important;
    margin: 4px 0 0 0 !important;
    padding: 10px 12px !important;
    line-height: 1.4;
    text-align: center;
    min-height: 20px;
    border-radius: 8px;
  }
  .btn {
    padding: 12px 20px !important;
    font-size: 15px !important;
    min-height: 48px;
    border-radius: 10px;
  }
  .auth-footer {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }
  .admin-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .admin-header {
    flex: 0 0 auto;
    padding: 12px 16px !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .admin-header h1 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  .admin-header .btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .admin-content {
    flex: 1 1 auto;
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 12px !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .admin-section {
    margin-bottom: 0 !important;
  }
  .admin-section h2 {
    font-size: 16px !important;
    margin: 0 0 8px 0 !important;
  }
  .section-header {
    margin-bottom: 8px !important;
  }
  .section-header h2 {
    font-size: 16px !important;
  }
  .user-item {
    padding: 10px !important;
    gap: 8px !important;
  }
  .users-list {
    gap: 8px !important;
  }
  .btn.primary,
  button[type=submit] {
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: 15px !important;
    border-radius: 10px;
  }
  .auth-footer {
    margin-top: 16px;
    text-align: center;
    padding-bottom: 8px;
  }
  .auth-link {
    font-size: 13px;
  }
}
.notify-menu {
  position: relative;
}
.notify-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}
.notify-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.notify-btn.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.notify-icon {
  font-size: 12.5px;
  line-height: 1;
}
.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.notify-badge.is-visible {
  display: inline-flex;
}
.notify-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1002;
  overflow: hidden;
}
.notify-dropdown.active {
  display: block;
}
.notify-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notify-clear-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.notify-clear-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
}
.notify-clear-btn:active {
  transform: scale(0.95);
}
.notify-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.notify-list::-webkit-scrollbar {
  width: 6px;
}
.notify-list::-webkit-scrollbar-track {
  background: transparent;
}
.notify-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.notify-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}
.notify-section {
  border-radius: 12px;
  padding: 10px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
}
.notify-section--release {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.notify-section-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notify-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-transform: capitalize;
}
.notify-section-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.notify-section-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}
.notify-section-count--starting {
  color: #fff;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.45);
}
.notify-section-count--due {
  color: #fff;
  background: #ea580c;
  border-color: #f97316;
  box-shadow: 0 1px 6px rgba(234, 88, 12, 0.45);
}
.notify-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  opacity: 0.5;
}
.notify-dismiss-btn:hover {
  opacity: 1;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.1);
}
.notify-dismiss-btn:active {
  transform: scale(0.9);
}
.notify-section-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.notify-section-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notify-section-release-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.notify-section-release-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.notify-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notify-section-subheader {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 100%;
}
.notify-section-container {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}
.notify-section-container--starting {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
[data-theme=light] .notify-section-container--starting {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.notify-section-container--due {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
}
[data-theme=light] .notify-section-container--due {
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.notify-section-subheader--starting {
  color: #60a5fa;
  border-left-color: #3b82f6;
  border-right-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}
[data-theme=light] .notify-section-subheader--starting {
  color: #2563eb;
  border-left-color: #1d4ed8;
  border-right-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}
.notify-section-subheader--due {
  color: #fb923c;
  border-left-color: #f97316;
  border-right-color: #f97316;
  background: rgba(251, 146, 60, 0.12);
}
[data-theme=light] .notify-section-subheader--due {
  color: #ea580c;
  border-left-color: #c2410c;
  border-right-color: #c2410c;
  background: rgba(234, 88, 12, 0.08);
}
.notify-task {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.notify-task:hover {
  background: var(--bg-tertiary);
  border-color: var(--border);
}
.notify-task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.notify-task-title {
  font-size: 12.8px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.notify-task-project {
  font-size: 12px;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  width: auto;
  align-self: flex-start;
}
.notify-priority {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.notify-priority--high {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.notify-priority--medium {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.notify-priority--low {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.notify-task-overflow {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 5px;
  margin-top: 1px;
  line-height: 1.25;
  text-align: right;
}
.notify-section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}
.notify-link {
  border: none;
  background: var(--accent-blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.4px;
}
.notify-link--full {
  width: 100%;
  text-align: center;
  margin-top: 2px;
}
.notify-link:hover {
  opacity: 0.9;
}
.notify-link--starting {
  background: #3b82f6;
}
.notify-link--starting:hover {
  background: #2563eb;
}
.notify-link--starting:disabled {
  background: #6b7280;
}
.notify-link--due {
  background: #f97316;
}
.notify-link--due:hover {
  background: #ea580c;
}
.notify-link--due:disabled {
  background: #6b7280;
}
.notify-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.release-notes-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.release-hero {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 24px 28px;
  background: var(--bg-card);
}
.release-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.release-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.release-hero-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.release-hero-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 10px;
}
.release-hero-summary {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
}
.release-section-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.release-section-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.release-section-card--new {
  border-left: 3px solid var(--accent-green);
}
.release-section-card--improvements {
  border-left: 3px solid #a5b4fc;
}
.release-section-card--fixes {
  border-left: 3px solid var(--accent-amber);
}
.release-section-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.release-section-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--text-muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.release-section-icon[data-kind=new] {
  background: var(--accent-green);
  border-color: var(--accent-green);
}
.release-section-icon[data-kind=improvements] {
  background: #a5b4fc;
  border-color: #a5b4fc;
}
.release-section-icon[data-kind=fixes] {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
}
.release-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.release-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.release-section-empty {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.release-point-icon {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-muted);
  margin-top: 6px;
  flex-shrink: 0;
}
.release-history-block {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.release-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.release-history-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}
.release-history-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}
.release-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.release-history-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.release-history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.release-history-meta,
.release-history-summary {
  font-size: 12px;
  color: var(--text-secondary);
}
.release-history-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-card);
  text-align: center;
}
@media (max-width: 768px) {
  .release-hero {
    padding: 20px;
    border-radius: 18px;
  }
}
.updates-empty {
  padding: 24px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}
@media (max-width: 768px) {
  .notify-dropdown {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: 360px;
    margin: 0 auto;
    max-height: calc(100vh - 80px - env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .notify-dropdown.active {
    display: flex;
    flex-direction: column;
  }
  .notify-list {
    max-height: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
    scroll-padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
  }
  @supports (height: 100dvh) {
    .notify-dropdown {
      max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    }
  }
}
