:root {
  --bg-primary: #0f0f13;
  --bg-secondary: #16161d;
  --bg-card: #1e1e28;
  --bg-hover: #252530;
  --border-color: #2a2a38;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;
  --accent-blue: #5c6ef8;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --sidebar-width: 260px;
  --border-radius: 8px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  --bg-primary: #f3f6fb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-hover: #eef4ff;
  --border-color: #e2e8f3;
  --text-primary: #172033;
  --text-secondary: #5f6b85;
  --text-muted: #8d97ad;
  --accent-blue: #4f7cff;
  --shadow: 0 18px 40px rgba(41, 72, 152, 0.12);
  --shadow-soft: 0 10px 24px rgba(32, 54, 116, 0.08);
}

[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #2a2d34 0%, #23262d 100%);
  border-right: 1px solid #383c46;
  box-shadow: 18px 0 38px rgba(16, 18, 24, 0.44);
}

[data-theme="light"] .sidebar .nav-item {
  color: #c1c7d4;
}

[data-theme="light"] .sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="light"] .sidebar .nav-item.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(126, 138, 162, 0.34) 0%, rgba(95, 104, 123, 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(219, 225, 238, 0.22);
}

[data-theme="light"] .sidebar .sidebar-brand,
[data-theme="light"] .sidebar .logo-text {
  color: #eef1f6;
}

[data-theme="light"] .sidebar .sidebar-section,
[data-theme="light"] .sidebar .section-title {
  color: #9ea7ba;
}

[data-theme="light"] .sidebar .user-chip,
[data-theme="light"] .sidebar .logout-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #edf0f6;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.12), transparent 28%),
    radial-gradient(circle at 20% 12%, rgba(34, 197, 94, 0.08), transparent 18%),
    #f3f6fb;
}

[data-theme="light"] .main-content {
  position: relative;
  isolation: isolate;
  background: transparent;
}

[data-theme="light"] .main-content::before {
  content: "";
  position: absolute;
  inset: 18px 20px 18px 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(173, 183, 202, 0.85);
  box-shadow: 0 28px 66px rgba(28, 42, 76, 0.16);
  z-index: -1;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  font-weight: 700;
  font-size: 18px;
  color: #d0d0e0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), #7aa2ff);
  position: relative;
  box-shadow: 0 10px 20px rgba(79, 124, 255, 0.28);
}

.logo-mark span {
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
}

.logo-mark span:first-child {
  width: 14px;
  height: 4px;
  left: 7px;
  top: 8px;
}

.logo-mark span:last-child {
  width: 4px;
  height: 14px;
  left: 12px;
  top: 7px;
}

.logo-text {
  color: #d0d0e0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #a8a8c8;
  text-decoration: none;
  border-radius: 12px;
  margin: 2px 8px;
  transition: all 0.15s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-blue);
  color: white;
}

.sidebar-section {
  padding: 20px 20px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: white;
  font-weight: 600;
}

.logout-btn {
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.page-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-task-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-soft);
}

.dashboard-task-main {
  min-width: 0;
}

.dashboard-task-title {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 8px;
}

.dashboard-task-title:hover {
  color: var(--accent-blue);
}

.dashboard-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 10px;
}

.dashboard-chip.is-overdue {
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--accent-red);
}

.dashboard-task-id {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dashboard-board {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.dashboard-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.dashboard-column[data-bucket="overdue"],
.dashboard-column[data-bucket="today"] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow);
}

.dashboard-rules {
  border-left: 4px solid var(--accent-blue);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.board-help-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.board-help-chip {
  font-size: 12px;
  color: var(--accent-blue);
  border: 1px solid rgba(92, 110, 248, 0.35);
  background: rgba(92, 110, 248, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 13px;
  color: #b8bed3;
}

.rules-tip {
  font-size: 12px;
  color: #8e96b3;
}

.dashboard-column-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.column-title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.column-subtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

.dashboard-column-header h3 {
  font-size: inherit;
  font-weight: inherit;
}

.dashboard-column-header span {
  font-size: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-column-header.overdue {
  background: rgba(239, 68, 68, 0.38);
}

.dashboard-column-header.today {
  background: rgba(37, 99, 235, 0.42);
}

.dashboard-column-header.future {
  background: rgba(22, 163, 74, 0.38);
}

.dashboard-column-header.planned {
  background: rgba(217, 119, 6, 0.38);
}

.dashboard-column-body {
  min-height: 320px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-column.drag-over {
  outline: 2px dashed var(--accent-blue);
  outline-offset: 3px;
}

.dashboard-board-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-left: 4px solid transparent;
  border-radius: 12px;
  padding: 9px 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .dashboard-board-card {
  background: #1b1c25;
  border-color: #303243;
}

[data-theme="dark"] .deadline-item,
[data-theme="dark"] .dashboard-empty,
[data-theme="dark"] .timeline-card,
[data-theme="dark"] .dashboard-rules {
  border-color: #303243;
}

.dashboard-board-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.dashboard-column[data-bucket="overdue"] .dashboard-board-card {
  border-left-color: #ef4444;
}

.dashboard-column[data-bucket="today"] .dashboard-board-card {
  border-left-color: #3b82f6;
}

.dashboard-column[data-bucket="future"] .dashboard-board-card {
  border-left-color: #10b981;
}

.dashboard-column[data-bucket="planned"] .dashboard-board-card {
  border-left-color: #f59e0b;
}

.dashboard-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.urgent-card {
  position: relative;
}

.urgent-card-overdue {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14), rgba(27, 28, 37, 0.96));
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.26);
}

.urgent-card-today {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(27, 28, 37, 0.96));
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.24);
}

.urgency-pill {
  margin-right: auto;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.urgency-pill-overdue {
  color: #fee2e2;
  background: rgba(185, 28, 28, 0.72);
  border: 1px solid rgba(254, 202, 202, 0.25);
}

.urgency-pill-today {
  color: #dbeafe;
  background: rgba(29, 78, 216, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.25);
}

.dashboard-card-title {
  display: block;
  color: #f4f7ff;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  font-size: 14px;
}

.dashboard-card-title:hover {
  color: var(--accent-blue);
}

.dashboard-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  color: #c7cee3;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #36394b;
  border-radius: 999px;
  padding: 2px 8px;
  background: #20222d;
}

.assignee-pill {
  border: none;
}

.assignee-tone-0 { background: #1d4ed8; color: #fff; }
.assignee-tone-1 { background: #0f766e; color: #fff; }
.assignee-tone-2 { background: #b45309; color: #fff; }
.assignee-tone-3 { background: #be123c; color: #fff; }
.assignee-tone-4 { background: #7c3aed; color: #fff; }
.assignee-tone-5 { background: #0369a1; color: #fff; }
.assignee-tone-6 { background: #047857; color: #fff; }
.assignee-tone-7 { background: #9333ea; color: #fff; }
.assignee-tone-8 { background: #c2410c; color: #fff; }
.assignee-tone-9 { background: #dc2626; color: #fff; }

.dashboard-card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
}

.action-btn.close {
  color: var(--accent-red);
}

.dashboard-empty {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 24px 10px;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}

.timeline-card {
  overflow: hidden;
}

.deadline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deadline-item {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 10px;
}

.deadline-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deadline-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.deadline-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deadline-date {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card);
}

.deadline-health {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.deadline-health.late { color: #ef4444; }
.deadline-health.today { color: #2563eb; }
.deadline-health.soon { color: #f59e0b; }
.deadline-health.ok { color: #16a34a; }

.deadline-progress {
  margin-top: 6px;
}

.deadline-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.deadline-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  width: 0%;
}

.deadline-progress-fill.late {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.deadline-progress-fill.today {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.deadline-progress-fill.soon {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.deadline-progress-fill.ok {
  background: linear-gradient(90deg, #22c55e, #15803d);
}

.deadline-progress-fill.r0 { width: 6%; }
.deadline-progress-fill.r1 { width: 8%; }
.deadline-progress-fill.r2 { width: 16%; }
.deadline-progress-fill.r3 { width: 24%; }
.deadline-progress-fill.r4 { width: 32%; }
.deadline-progress-fill.r5 { width: 40%; }
.deadline-progress-fill.r6 { width: 48%; }
.deadline-progress-fill.r7 { width: 56%; }
.deadline-progress-fill.r8 { width: 64%; }
.deadline-progress-fill.r9 { width: 72%; }
.deadline-progress-fill.r10 { width: 80%; }
.deadline-progress-fill.r11 { width: 90%; }
.deadline-progress-fill.r12 { width: 100%; }

.deadline-progress-label {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  font-weight: 700;
}

.timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: 10px;
  align-items: center;
}

.timeline-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
}

.timeline-bar {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 700;
  overflow: hidden;
}

.timeline-bar.is-w1 {
  width: 16%;
}

.timeline-bar.is-w2 {
  width: 32%;
}

.timeline-bar.is-w3 {
  width: 48%;
}

.timeline-bar.is-w4 {
  width: 64%;
}

.timeline-bar.is-w5 {
  width: 80%;
}

.timeline-bar.is-w6 {
  width: calc(100% - 4px);
}

.timeline-bar.status-todo {
  background: #6b7280;
}

.timeline-bar.status-in_progress {
  background: #3b82f6;
}

.timeline-bar.status-in_review {
  background: #f59e0b;
}

.timeline-bar.status-blocked {
  background: #ef4444;
}

.timeline-bar.status-done {
  background: #10b981;
}

.timeline-bar.status-cancelled {
  background: #4b5563;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.task-card[data-priority="low"] {
  border-left-color: var(--accent-green);
}

.task-card[data-priority="medium"] {
  border-left-color: var(--accent-yellow);
}

.task-card[data-priority="high"] {
  border-left-color: #f97316;
}

.task-card[data-priority="urgent"] {
  border-left-color: var(--accent-red);
}

.task-lp {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

[data-task-open-url] {
  cursor: pointer;
}

[data-task-open-url]:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.status-badge[data-status="todo"] {
  background: rgba(136, 136, 170, 0.2);
  color: var(--text-secondary);
}

.status-badge[data-status="in_progress"] {
  background: rgba(92, 110, 248, 0.2);
  color: var(--accent-blue);
}

.status-badge[data-status="in_review"] {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-yellow);
}

.status-badge[data-status="blocked"] {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.status-badge[data-status="done"] {
  background: rgba(34, 197, 94, 0.2);
  color: var(--accent-green);
}

.status-badge[data-status="cancelled"] {
  background: rgba(85, 85, 112, 0.3);
  color: var(--text-secondary);
}

.priority-badge[data-priority="low"] {
  color: var(--accent-green);
}

.priority-badge[data-priority="medium"] {
  color: var(--accent-yellow);
}

.priority-badge[data-priority="high"] {
  color: #f97316;
}

.priority-badge[data-priority="urgent"] {
  color: var(--accent-red);
}

[data-status-menu] [data-status-options] {
  display: none;
  min-width: 160px;
}

[data-status-menu].open [data-status-options] {
  display: block;
}

[data-priority-menu] [data-priority-options] {
  display: none;
  min-width: 140px;
}

[data-priority-menu].open [data-priority-options] {
  display: block;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.priority-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.dashboard-board .priority-badge,
.task-card-detailed .priority-badge {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 1px;
}

.dashboard-board .priority-badge[data-priority="low"],
.task-card-detailed .priority-badge[data-priority="low"] {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.dashboard-board .priority-badge[data-priority="medium"],
.task-card-detailed .priority-badge[data-priority="medium"] {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.dashboard-board .priority-badge[data-priority="high"],
.task-card-detailed .priority-badge[data-priority="high"] {
  background: #ffe4cc;
  border-color: #fdba74;
  color: #9a3412;
}

.dashboard-board .priority-badge[data-priority="urgent"],
.task-card-detailed .priority-badge[data-priority="urgent"] {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.filters-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1fr auto auto;
  gap: 12px;
  margin-bottom: 16px;
}

.filters-bar input,
.filters-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
}

.view-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
}

.dropzone {
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: var(--bg-secondary);
}

.dropzone input[type="file"] {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-secondary);
}

.dropzone input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid #c6d3e7;
  border-radius: 9px;
  padding: 7px 12px;
  background: #eef3fb;
  color: #304664;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dropzone input[type="file"]::file-selector-button:hover {
  background: #e3ecfa;
  border-color: #aebfd9;
}

.dropzone input[type="file"]::file-selector-button:active {
  transform: translateY(1px);
}

.dropzone.dragover {
  border-color: var(--accent-blue);
  background: var(--bg-hover);
}

.file-preview {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.kanban-column {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 12px;
  min-height: 300px;
  box-shadow: var(--shadow-soft);
}

.kanban-column.drag-over {
  outline: 2px dashed var(--accent-blue);
  outline-offset: 4px;
}

.kanban-column h4 {
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-blue);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: none;
  font-size: 20px;
  z-index: 110;
}

.calendar-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.calendar-month-header h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday-row {
  margin-bottom: 8px;
}

.calendar-weekday-row div {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.calendar-day {
  min-height: 90px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  padding: 8px;
}

.calendar-day.empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.5;
}

.calendar-day.today {
  border-color: var(--accent-blue);
  box-shadow: inset 0 0 0 1px rgba(92, 110, 248, 0.4);
}

.calendar-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-day-number {
  font-size: 13px;
  font-weight: 700;
}

.calendar-day-total {
  font-size: 11px;
  color: var(--text-secondary);
}

.status-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.status-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.status-circle.status-todo {
  background: rgba(136, 136, 170, 0.2);
}

.status-circle.status-in_progress {
  background: rgba(92, 110, 248, 0.22);
}

.status-circle.status-in_review {
  background: rgba(245, 158, 11, 0.22);
}

.status-circle.status-blocked {
  background: rgba(239, 68, 68, 0.22);
}

.status-circle.status-done {
  background: rgba(34, 197, 94, 0.22);
}

.status-circle.status-cancelled {
  background: rgba(85, 85, 112, 0.35);
}

.calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at top right, rgba(92, 110, 248, 0.14), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-elevated) 90%, white 10%), var(--bg-secondary));
}

.calendar-kicker,
.calendar-month-kicker,
.login-summary-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.calendar-hero-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.calendar-hero-text,
.login-summary-text {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--text-secondary);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-secondary) 86%, white 14%);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calendar-summary-card,
.login-summary-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 92%, white 8%), var(--bg-secondary));
  box-shadow: 0 18px 40px rgba(9, 14, 30, 0.08);
}

.calendar-summary-card::after,
.login-summary-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.18;
}

.calendar-summary-card strong,
.login-summary-card strong {
  font-size: 34px;
  line-height: 1;
}

.calendar-summary-card span,
.login-summary-card span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-summary-card small,
.login-summary-card small {
  color: var(--text-secondary);
}

.calendar-summary-card.overdue,
.login-summary-card.overdue {
  border-color: rgba(226, 78, 78, 0.2);
}

.calendar-summary-card.overdue::after,
.login-summary-card.overdue::after {
  background: rgba(226, 78, 78, 0.42);
}

.calendar-summary-card.current,
.login-summary-card.today {
  border-color: rgba(245, 158, 11, 0.22);
}

.calendar-summary-card.current::after,
.login-summary-card.today::after {
  background: rgba(245, 158, 11, 0.44);
}

.calendar-summary-card.future {
  border-color: rgba(92, 110, 248, 0.22);
}

.calendar-summary-card.future::after {
  background: rgba(92, 110, 248, 0.42);
}

.calendar-month {
  padding: 22px;
  border: 1px solid var(--border-color);
}

.calendar-month-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-month-kicker {
  margin-bottom: 6px;
}

.calendar-month-header h3 {
  margin: 0;
}

.calendar-month-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-tertiary) 82%, white 18%);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.calendar-weekday-row div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-tertiary) 78%, white 22%);
  font-weight: 700;
}

.calendar-day {
  min-height: 118px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 88%, white 12%), var(--bg-secondary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.calendar-day.empty {
  background: color-mix(in srgb, var(--bg-secondary) 78%, transparent 22%);
}

.calendar-day.today {
  background:
    linear-gradient(180deg, rgba(92, 110, 248, 0.12), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 88%, white 12%), var(--bg-secondary));
}

.calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-tertiary) 75%, white 25%);
}

.calendar-day-total {
  font-weight: 600;
}

.status-circles {
  grid-template-columns: 1fr;
  align-content: start;
}

.status-circle {
  width: auto;
  height: auto;
  min-height: 28px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.login-summary-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 16, 28, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 240;
}

.login-summary-modal {
  position: relative;
  width: min(100%, 620px);
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at top right, rgba(92, 110, 248, 0.14), transparent 30%),
    linear-gradient(160deg, rgba(22, 25, 38, 0.98), rgba(15, 17, 27, 0.98));
  box-shadow: 0 28px 70px rgba(5, 10, 20, 0.42);
  color: #edf2ff;
  animation: login-summary-breathe 4.8s ease-in-out infinite;
}

.login-summary-modal::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(92, 110, 248, 0.18) 0%, rgba(92, 110, 248, 0.04) 46%, transparent 72%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -1;
  animation: login-summary-glow 4.8s ease-in-out infinite;
}

.login-summary-modal h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f7f9ff;
}

.login-summary-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.login-summary-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.login-summary-kicker {
  color: #7ea0ff;
}

.login-summary-text {
  color: rgba(233, 239, 255, 0.72);
}

.login-summary-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
}

.login-summary-card span {
  color: rgba(232, 238, 255, 0.8);
}

.login-summary-card strong {
  color: #ffffff;
}

.login-summary-card small {
  color: rgba(229, 235, 252, 0.64);
}

.login-summary-card.overdue {
  border-color: rgba(248, 113, 113, 0.28);
}

.login-summary-card.today {
  border-color: rgba(251, 191, 36, 0.3);
}

.login-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.login-summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
}

@keyframes login-summary-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 28px 70px rgba(5, 10, 20, 0.42);
  }
  50% {
    transform: translateY(-3px) scale(1.008);
    box-shadow: 0 34px 82px rgba(5, 10, 20, 0.5);
  }
}

@keyframes login-summary-glow {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

[data-theme="light"] .login-summary-overlay {
  background: rgba(17, 24, 39, 0.42);
}

[data-theme="light"] .login-summary-modal {
  border-color: #d7e0ef;
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 32px 80px rgba(26, 42, 76, 0.24);
  color: #1a2640;
}

[data-theme="light"] .login-summary-modal::before {
  background: radial-gradient(circle, rgba(79, 124, 255, 0.2) 0%, rgba(79, 124, 255, 0.05) 48%, transparent 72%);
}

[data-theme="light"] .login-summary-modal h2 {
  color: #1b2742;
}

[data-theme="light"] .login-summary-close {
  background: #eef3fb;
  color: #33415f;
}

[data-theme="light"] .login-summary-close:hover {
  background: #e5edf9;
}

[data-theme="light"] .login-summary-kicker {
  color: #4f7cff;
}

[data-theme="light"] .login-summary-text {
  color: #5a6883;
}

[data-theme="light"] .login-summary-card {
  background: #ffffff;
  border-color: #dbe4f2;
  box-shadow: 0 12px 28px rgba(35, 57, 109, 0.08);
}

[data-theme="light"] .login-summary-card span {
  color: #3a4764;
}

[data-theme="light"] .login-summary-card strong {
  color: #1b2742;
}

[data-theme="light"] .login-summary-card small {
  color: #73819b;
}

@media (max-width: 1024px) {
  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-hero {
    grid-template-columns: 1fr;
  }

  .calendar-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 16px;
  }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .kanban-board {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }
  .calendar-month {
    overflow-x: auto;
  }
  .calendar-grid {
    min-width: 680px;
  }
  .calendar-hero,
  .calendar-month,
  .login-summary-modal {
    padding: 20px;
  }
  .login-summary-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-task-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-task-id {
    align-self: flex-end;
  }
  .dashboard-board {
    grid-template-columns: 1fr;
  }
  .board-help-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .timeline-row {
    grid-template-columns: 1fr;
  }
}
/* Notifications */
.notification-bell-container {
  position: relative;
  margin-bottom: 0;
}

.notification-bell {
  width: 40px;
  height: 40px;
  text-align: center;
  padding: 0;
  font-size: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.notification-bell:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent-red);
  color: white;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.notification-badge.hidden {
  display: none;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.notification-dropdown.hidden {
  display: none;
}

.notification-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.notification-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 8px 0;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s ease;
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item.unread {
  background: var(--bg-hover);
  border-left: 3px solid var(--accent-blue);
  padding-left: 13px;
}

.notification-item-title {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.notification-item-message {
  font-size: 12px;
  margin: 0 0 4px 0;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* Activity Log */
.activity-log-container {
  max-height: 400px;
  overflow-y: auto;
}

.branding {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
}

.user-menu-name {
  font-size: 13px;
  font-weight: 600;
}

.user-menu-caret {
  font-size: 12px;
  color: var(--text-secondary);
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 120;
}

.user-menu-dropdown.hidden {
  display: none;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--bg-hover);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-blue), #7aa2ff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(79, 124, 255, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(79, 124, 255, 0.28);
  filter: saturate(1.04);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
}

.secondary-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

[data-theme="light"] .page-header {
  background: rgba(255, 255, 255, 0.64);
  border-color: #e4ebf6;
}

[data-theme="light"] .dashboard-column,
[data-theme="light"] .kanban-column,
[data-theme="light"] .calendar-day,
[data-theme="light"] .dashboard-task-row,
[data-theme="light"] .dropzone,
[data-theme="light"] .notification-dropdown,
[data-theme="light"] .user-menu-dropdown,
[data-theme="light"] .card,
[data-theme="light"] .task-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: #cdd6e6;
  box-shadow: 0 16px 36px rgba(29, 43, 75, 0.14);
}

[data-theme="light"] .dashboard-rules {
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.08), rgba(255, 255, 255, 0.9));
}

[data-theme="light"] .rules-grid {
  color: #50607d;
}

[data-theme="light"] .rules-tip {
  color: #7a86a2;
}

[data-theme="light"] .column-subtitle {
  color: #5f6b85;
}

[data-theme="light"] .dashboard-column-header span {
  color: #344466;
  border-color: #d7e2f7;
  background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .dashboard-column-header.overdue {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(255, 241, 242, 0.96));
}

[data-theme="light"] .dashboard-column-header.today {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(239, 246, 255, 0.96));
}

[data-theme="light"] .dashboard-column-header.future {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.96), rgba(240, 253, 244, 0.96));
}

[data-theme="light"] .dashboard-column-header.planned {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.96));
}

[data-theme="light"] .dashboard-board-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-color: #e2e8f3;
}

[data-theme="light"] .urgent-card-overdue {
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 72%);
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.12);
}

[data-theme="light"] .urgent-card-today {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 72%);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .urgency-pill-overdue {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

[data-theme="light"] .urgency-pill-today {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

[data-theme="light"] .dashboard-card-title {
  color: #1a2640;
}

[data-theme="light"] .meta-pill {
  color: #52607a;
  border-color: #e1e8f5;
  background: #f6f8fc;
}

[data-theme="light"] .deadline-item {
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

[data-theme="light"] .deadline-date {
  border-color: #e1e8f5;
  background: #f7f9fd;
}

[data-theme="light"] .card {
  border-radius: 18px;
}

[data-theme="light"] .filters-bar input,
[data-theme="light"] .filters-bar select,
[data-theme="light"] .view-toggle,
[data-theme="light"] .notification-bell,
[data-theme="light"] .user-menu-trigger,
[data-theme="light"] .logout-btn,
[data-theme="light"] .dashboard-empty,
[data-theme="light"] .action-btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: #e2e8f3;
  color: #172033;
}

[data-theme="light"] .view-toggle:hover,
[data-theme="light"] .action-btn:hover,
[data-theme="light"] .notification-bell:hover,
[data-theme="light"] .user-menu-trigger:hover {
  background: #eef4ff;
}

[data-theme="light"] .branding {
  color: #9ba5ba;
}

.board-shell {
  padding: 10px;
  border-radius: 18px;
}

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.board-toolbar-left,
.board-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-add-btn {
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  padding: 0 14px;
}

.board-pill {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.board-pill.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.board-team-dots {
  display: inline-flex;
  margin-left: 2px;
}

.board-team-dots span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -6px;
}

.board-team-dots span:nth-child(1) { background: #f59e0b; }
.board-team-dots span:nth-child(2) { background: #ec4899; }
.board-team-dots span:nth-child(3) { background: #3b82f6; }
.board-team-dots span:nth-child(4) { background: #22c55e; }

.board-like {
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 12px;
}

.board-column {
  border-radius: 14px;
  overflow: hidden;
}

.board-column .dashboard-column-header {
  background: transparent;
  padding: 10px 12px;
  border-bottom: 1px solid transparent;
  align-items: center;
}

.board-column .column-title {
  font-size: 14px;
  font-weight: 700;
}

.board-column .column-subtitle {
  display: none;
}

.board-column .dashboard-column-body {
  min-height: 280px;
  padding: 8px;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

.board-card {
  border-left-width: 0;
  border-radius: 10px;
  padding: 8px;
}

.board-card.tone-blue {
  background: #bfe8ff;
  border-color: #abddf8;
}

.board-card.tone-rose {
  background: #ffd7cc;
  border-color: #f2c3b8;
}

.board-card .dashboard-card-top {
  margin-bottom: 4px;
}

.board-card .dashboard-card-title {
  font-size: 13px;
  line-height: 1.32;
  color: #1f2a3d;
  margin-bottom: 4px;
}

.board-card .dashboard-card-meta {
  gap: 4px;
}

.board-card .meta-pill {
  font-size: 10px;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.52);
}

.board-card .dashboard-card-actions {
  margin-top: 5px;
  padding-top: 5px;
}

.board-card .action-btn {
  font-size: 11px;
  padding: 2px 8px;
}

.board-card .dashboard-card-meta {
  align-items: center;
}

.board-card .action-btn.icon-only {
  font-size: 14px;
  padding: 0;
  min-width: 28px;
  min-height: 28px;
}

.dashboard-board .status-badge {
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.dashboard-board .status-badge[data-status="todo"] {
  background: #475569;
}

.dashboard-board .status-badge[data-status="in_progress"] {
  background: #2563eb;
}

.dashboard-board .status-badge[data-status="in_review"] {
  background: #f59e0b;
  color: #1f2937;
  text-shadow: none;
}

.dashboard-board .status-badge[data-status="blocked"] {
  background: #dc2626;
}

.dashboard-board .status-badge[data-status="done"] {
  background: #059669;
}

.dashboard-board .status-badge[data-status="cancelled"] {
  background: #6b7280;
}

.dashboard-status-quick:focus-visible {
  outline: 2px solid rgba(30, 64, 175, 0.55);
  outline-offset: 1px;
}

.dashboard-card-description {
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #4d5d7a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.card-badge-group.push-right {
  margin-left: auto;
}

.card-badge {
  min-width: 88px;
  height: 30px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  font-size: 10px;
  line-height: 30px;
  text-align: center;
  box-sizing: border-box;
  vertical-align: middle;
}

.icon-only {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
}

[data-theme="light"] .board-shell {
  background: linear-gradient(180deg, #2f343d 0%, #2a2f37 100%);
  border-color: #3f454f;
  box-shadow: 0 20px 40px rgba(16, 18, 24, 0.24);
}

[data-theme="light"] .dashboard-board.board-like {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

[data-theme="light"] .board-shell .board-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .board-shell .board-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d8deeb;
  color: #334155;
}

[data-theme="light"] .board-shell .board-pill.active {
  background: #e7efff;
  color: #1d4ed8;
  border-color: #bfd2ff;
}

[data-theme="light"] .board-shell .column-title,
[data-theme="light"] .board-shell .dashboard-column-header span {
  color: #f8fafc;
}

[data-theme="light"] .board-shell .dashboard-column-header {
  background: linear-gradient(180deg, #353a43 0%, #2f343d 100%);
  border-bottom-color: #4a505a;
  border-radius: 12px 12px 0 0;
}

[data-theme="light"] .board-shell .column-title {
  color: #f8fafc;
}

[data-theme="light"] .board-shell .dashboard-empty {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d8deeb;
}

[data-theme="light"] .board-column {
  background: #f5f7fb;
  border: 2px solid #4a505a;
  box-shadow: 0 10px 20px rgba(16, 18, 24, 0.18);
}

[data-theme="light"] .board-column .dashboard-column-body {
  border-top-color: #d7ddea;
  background: #f5f7fb;
}

[data-theme="light"] .board-column .dashboard-column-header span {
  background: #4a505c;
  border-color: #606876;
  color: #f8fafc;
}

[data-theme="light"] .board-card {
  box-shadow: 0 4px 10px rgba(63, 86, 138, 0.08);
}

[data-theme="light"] .board-card .dashboard-card-title {
  font-size: 12px;
}

[data-theme="light"] .dashboard-card-description {
  color: #5f6b82;
}

[data-theme="light"] .board-card {
  border-width: 1.5px;
  padding: 10px;
}

[data-theme="light"] .board-card .dashboard-card-top {
  margin-bottom: 6px;
  justify-content: space-between;
  align-items: flex-start;
}

[data-theme="light"] .board-card .dashboard-card-top,
[data-theme="light"] .board-card .dashboard-card-actions,
[data-theme="light"] .board-card .card-badge-group {
  align-items: center;
}

[data-theme="light"] .board-card .dashboard-card-actions {
  gap: 6px;
}

[data-theme="light"] .board-card .dashboard-card-actions {
  margin-top: 7px;
  padding-top: 7px;
  justify-content: flex-end;
}

[data-theme="light"] .dashboard-board .status-badge,
[data-theme="light"] .dashboard-board .priority-badge {
  box-shadow: none;
}

[data-theme="light"] .board-shell {
  background: #ffffff;
  border-color: #cfd8e8;
  box-shadow: 0 20px 44px rgba(31, 45, 78, 0.18);
}

[data-theme="light"] .board-pill {
  background: #f5f7fc;
  border-color: #e2e8f3;
  color: #5f6b85;
}

[data-theme="light"] .board-pill.active {
  background: #eef4ff;
  color: #1b2c4d;
}

[data-theme="light"] .board-column {
  background: #f8fafc;
  border-color: #cfd9e9;
  box-shadow: 0 14px 30px rgba(31, 45, 78, 0.12);
}

[data-theme="light"] .board-column .dashboard-column-body {
  border-top-color: #cfd9e9;
}

[data-theme="light"] .board-column .dashboard-column-header.overdue,
[data-theme="light"] .board-column .dashboard-column-header.today,
[data-theme="light"] .board-column .dashboard-column-header.future,
[data-theme="light"] .board-column .dashboard-column-header.planned {
  background: #30343c;
}

[data-theme="light"] .board-column .dashboard-column-header span {
  background: #eff3fb;
  border-color: #c8d4e7;
}

[data-theme="light"] .board-card.urgent-card-overdue,
[data-theme="light"] .board-card.urgent-card-today {
  background: #bfe8ff;
  border-color: #abddf8;
  box-shadow: none;
}

[data-theme="light"] .board-card.urgent-card-overdue .urgency-pill,
[data-theme="light"] .board-card.urgent-card-today .urgency-pill {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 0, 0, 0.08);
  color: #24406c;
}

.deadline-group-title {
  margin: 14px 0 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.deadline-group-title.overdue {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.deadline-group-title.today {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.deadline-group-title.tomorrow {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.deadline-group-title.future {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.deadline-group-title.no-due {
  background: #e5e7eb;
  color: #374151;
  border-color: #d1d5db;
}

.due-pill {
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid transparent;
  font-weight: 700;
}

.due-pill.is-overdue {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.due-pill.is-today {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.due-pill.is-tomorrow {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.due-pill.is-future {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.due-pill.is-none {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4b5563;
}

.task-inline-menu {
  position: relative;
  z-index: 2;
}

.task-inline-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 30;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.task-inline-dropdown button {
  color: var(--text-primary);
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

.task-inline-dropdown button:hover {
  background: var(--bg-hover);
}

.task-card-detailed {
  overflow: visible;
}

.task-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.task-detail-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.task-detail-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-detail-meta {
  display: grid;
  grid-template-columns: 108px 120px 118px 54px 118px 52px 52px;
  align-items: center;
  column-gap: 12px;
  font-size: 14px;
  flex: 0 0 auto;
}

.task-detail-meta-item {
  min-width: 0;
  white-space: nowrap;
}

.task-meta-assignee,
.task-meta-attachments {
  color: var(--text-secondary);
}

.task-meta-assignee {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.task-detail-meta .task-meta-assignee.assignee-pill {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.task-meta-priority,
.task-meta-status {
  justify-self: stretch;
}

.task-meta-priority .priority-badge,
.task-meta-status .status-badge {
  width: 100%;
  justify-content: center;
}

.task-meta-due {
  justify-self: start;
}

.task-meta-action {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--accent-blue);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.task-meta-action:hover {
  transform: translateY(-1px);
  border-color: #7ea0ff;
}

.task-meta-action.delete {
  margin: 0;
}

.task-meta-action.delete,
.task-meta-action.delete button {
  color: var(--accent-red);
}

.task-meta-action.delete button,
.task-meta-action.edit {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-action-icon {
  width: 15px;
  height: 15px;
  display: block;
}

.task-card-detailed:hover {
  border-color: #aebfdc;
}

.dashboard-board-card[data-task-open-url]:hover {
  transform: translateY(-2px);
}

.filters-bar.is-focused {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
  border-radius: 10px;
}

#szczegoly-zadan.hide-deadline-groups .deadline-group-title {
  display: none;
}

.sidebar-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.sidebar-filter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  margin: 0 -4px;
  border-radius: 10px;
  color: #a8a8c8;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-filter-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f7f8ff;
}

.sidebar-filter-link.active {
  background: rgba(92, 110, 248, 0.22);
  color: #ffffff;
}

.filter-dot,
.priority-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.priority-swatch.priority-low {
  background: #6b7280;
}

.priority-swatch.priority-medium {
  background: #f59e0b;
}

.priority-swatch.priority-high {
  background: #f97316;
}

.priority-swatch.priority-urgent {
  background: #ef4444;
}

.priority-swatch.priority-reset {
  background: linear-gradient(135deg, #7c869e, #d7ddea);
}

.dashboard-column-header.today {
  background: rgba(239, 68, 68, 0.38);
}

.dashboard-column-header.future {
  background: rgba(22, 163, 74, 0.38);
}

.dashboard-column-header.planned {
  background: rgba(37, 99, 235, 0.42);
}

.dashboard-column[data-bucket="overdue"] .dashboard-board-card {
  border-left-color: #ef4444;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(27, 28, 37, 0.96));
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.22);
}

.dashboard-column[data-bucket="today"] .dashboard-board-card {
  border-left-color: #ef4444;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.12), rgba(27, 28, 37, 0.96));
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.18);
}

.dashboard-column[data-bucket="future"] .dashboard-board-card {
  border-left-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(27, 28, 37, 0.96));
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(4, 120, 87, 0.16);
}

.dashboard-column[data-bucket="planned"] .dashboard-board-card {
  border-left-color: #3b82f6;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(27, 28, 37, 0.96));
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.18);
}

.urgency-pill-today {
  color: #ffe4e6;
  background: rgba(190, 24, 93, 0.62);
  border: 1px solid rgba(254, 205, 211, 0.28);
}

.calendar-day {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.14);
}

.calendar-day-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 15, 27, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 250;
}

.calendar-day-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(80vh, 820px);
  overflow: auto;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(22, 25, 38, 0.98), rgba(15, 17, 27, 0.98));
  box-shadow: 0 32px 80px rgba(5, 10, 20, 0.45);
}

.calendar-day-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7ff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.calendar-day-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7ea0ff;
}

.calendar-day-modal h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  color: #f7f9ff;
}

.calendar-day-subtitle {
  margin: 10px 0 0;
  color: rgba(233, 239, 255, 0.74);
}

.calendar-day-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.calendar-day-task-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.calendar-day-task-top,
.calendar-day-task-meta,
.calendar-day-task-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-day-task-title {
  display: block;
  margin: 12px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.calendar-day-task-meta {
  color: rgba(229, 235, 252, 0.7);
  font-size: 13px;
}

.calendar-day-task-actions {
  margin-top: 12px;
}

.calendar-day-task-actions a {
  color: #8fb1ff;
  font-weight: 700;
}

.calendar-task-priority {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(229, 235, 252, 0.74);
}

[data-theme="light"] .sidebar-filter-link {
  color: #dbe4f8;
}

[data-theme="light"] .sidebar-filter-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="light"] .sidebar-filter-link.active {
  background: rgba(79, 124, 255, 0.24);
}

[data-theme="light"] .task-detail-title {
  color: #1a2640;
}

[data-theme="light"] .task-meta-attachments {
  color: #52607a;
}

[data-theme="light"] .task-detail-meta .task-meta-assignee.assignee-pill {
  background: #e9f1ff !important;
  border-color: #c9daf8;
  color: #1f3f7a !important;
  box-shadow: none;
}

[data-theme="light"] .task-meta-action {
  background: #f4f7fd;
  border-color: #d7e1f0;
}

[data-theme="light"] .task-meta-action:hover {
  border-color: #9cb4e7;
  background: #edf3ff;
}

[data-theme="light"] .dashboard-column-header.today {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(255, 241, 242, 0.96));
}

[data-theme="light"] .dashboard-column-header.future {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.96), rgba(240, 253, 244, 0.96));
}

[data-theme="light"] .dashboard-column-header.planned {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(239, 246, 255, 0.96));
}

[data-theme="light"] .dashboard-column[data-bucket="overdue"] .dashboard-board-card {
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 72%);
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.12);
}

[data-theme="light"] .dashboard-column[data-bucket="today"] .dashboard-board-card {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 72%);
  border-color: rgba(248, 113, 113, 0.24);
  box-shadow: 0 16px 34px rgba(248, 113, 113, 0.12);
}

[data-theme="light"] .dashboard-column[data-bucket="future"] .dashboard-board-card {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 72%);
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .dashboard-column[data-bucket="planned"] .dashboard-board-card {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 72%);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .urgency-pill-today {
  color: #b42318;
  background: #ffe4e6;
  border-color: #fecdd3;
}

[data-theme="light"] .calendar-day-overlay {
  background: rgba(17, 24, 39, 0.42);
}

[data-theme="light"] .calendar-day-modal {
  border-color: #d7e0ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 32px 80px rgba(26, 42, 76, 0.24);
}

[data-theme="light"] .calendar-day-close {
  background: #eef3fb;
  color: #33415f;
}

[data-theme="light"] .calendar-day-kicker {
  color: #4f7cff;
}

[data-theme="light"] .calendar-day-modal h3 {
  color: #1b2742;
}

[data-theme="light"] .calendar-day-subtitle,
[data-theme="light"] .calendar-day-task-meta,
[data-theme="light"] .calendar-day-empty {
  color: #5a6883;
}

[data-theme="light"] .calendar-day-task-card {
  background: #ffffff;
  border-color: #dbe4f2;
  box-shadow: 0 12px 28px rgba(35, 57, 109, 0.08);
}

[data-theme="light"] .calendar-day-task-title {
  color: #1b2742;
}

[data-theme="light"] .calendar-day-task-actions a {
  color: #3667e8;
}

/* Detailed list report-like theme */
#szczegoly-zadan {
  background: #f2f5fa;
  border-color: #cfd9e8;
  box-shadow: none;
}

#szczegoly-zadan h3 {
  color: #1f3047;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#szczegoly-zadan > .flex > p {
  color: #6d7c95;
}

#szczegoly-zadan .filters-bar {
  background: linear-gradient(180deg, #243448 0%, #1f2f43 100%);
  border: 1px solid #30445f;
  border-radius: 12px;
  padding: 12px;
}

#szczegoly-zadan .filters-bar input,
#szczegoly-zadan .filters-bar select {
  background: #f8fbff;
  border-color: #b8c6da;
  color: #20344d;
  font-size: 13px;
  font-weight: 600;
}

#szczegoly-zadan .view-toggle {
  background: #3b526f;
  border-color: #4b6789;
  color: #edf3ff;
  font-weight: 700;
}

#szczegoly-zadan .view-toggle:last-child {
  background: #1ca37d;
  border-color: #179070;
  color: #ffffff;
}

#szczegoly-zadan .task-card-detailed {
  background: #ffffff;
  border: 1px solid #cfd9e8;
  border-left: 3px solid #b9c7db;
  border-radius: 10px;
  box-shadow: none;
  padding: 12px 14px;
}

#szczegoly-zadan .task-detail-columns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, #26384e 0%, #213247 100%);
  border: 1px solid #30455f;
  border-radius: 10px;
  padding: 10px 14px;
  color: #e6edf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#szczegoly-zadan .task-detail-columns-main {
  min-width: 0;
  flex: 1 1 auto;
}

#szczegoly-zadan .task-detail-columns-meta {
  display: grid;
  grid-template-columns: 108px 120px 118px 54px 118px 52px 52px;
  align-items: center;
  column-gap: 12px;
  flex: 0 0 auto;
}

#szczegoly-zadan .task-detail-columns-meta .is-right {
  text-align: right;
}

#szczegoly-zadan .task-detail-columns-meta .is-center {
  text-align: center;
}

#szczegoly-zadan .task-row-odd {
  background: #ffffff;
}

#szczegoly-zadan .task-row-even {
  background: #f8fbff;
}

#szczegoly-zadan .task-card-detailed:hover {
  border-color: #b7c6db;
  transform: none;
  box-shadow: none;
}

#szczegoly-zadan .task-detail-title {
  font-size: 14px;
  font-weight: 600;
  color: #263a54;
}

#szczegoly-zadan .task-detail-meta {
  font-size: 13px;
}

#szczegoly-zadan .task-meta-due,
#szczegoly-zadan .task-meta-attachments {
  justify-self: end;
  text-align: right;
}

#szczegoly-zadan .task-meta-assignee,
#szczegoly-zadan .task-meta-attachments {
  color: #5e6f8b;
}

#szczegoly-zadan .status-badge,
#szczegoly-zadan .priority-badge,
#szczegoly-zadan .due-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#szczegoly-zadan .deadline-group-title {
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* Board report-like theme */
.board-shell {
  border-color: #30445f;
}

.board-shell .board-column {
  border: 1px solid #c8d4e6;
  border-radius: 10px;
  box-shadow: none;
}

.board-shell .dashboard-column-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%);
  border-bottom-color: #30445f;
  padding: 9px 12px;
}

.board-shell .column-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-shell .dashboard-column-header span {
  background: #eef3fb;
  border-color: #c8d4e7;
  color: #425574;
  font-weight: 700;
}

.board-shell .dashboard-column-body {
  background: #f3f7fc;
  gap: 6px;
  padding: 7px;
}

.board-shell .dashboard-board-card {
  border: 1px solid #cfd9e8;
  border-left-width: 4px;
  border-radius: 8px;
  box-shadow: none;
  padding: 8px 10px;
  background: #ffffff;
}

.board-shell .dashboard-column-body .dashboard-board-card:nth-child(even) {
  background: #f8fbff;
}

.board-shell .dashboard-board-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #b8c9df;
}

.board-shell .dashboard-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #24364e;
  margin-bottom: 4px;
}

.board-shell .dashboard-card-description {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7c97;
}

.board-shell .dashboard-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
}

.board-shell .meta-pill {
  font-size: 10px;
  font-weight: 700;
  background: #edf3fb;
  border-color: #d2dded;
  color: #4f617f;
}

.board-shell .dashboard-card-actions {
  margin-top: 6px;
  padding-top: 6px;
  border-top-color: #d8e2f0;
}

.board-shell .action-btn {
  background: #f4f8ff;
  border-color: #d7e1f0;
}

[data-theme="light"] .board-shell {
  background: #f2f5fa;
  border-color: #cfd9e8;
  box-shadow: none;
}

[data-theme="light"] .board-shell .dashboard-column-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%);
  border-bottom-color: #30445f;
}

[data-theme="light"] .board-shell .column-title {
  color: #f2f6ff;
}

[data-theme="light"] .board-shell .dashboard-card-title {
  color: #233750;
}

[data-theme="light"] .board-shell .dashboard-card-description {
  color: #6a7b97;
}

@media (max-width: 1380px) {
  #szczegoly-zadan .task-detail-columns-header {
    display: none;
  }

  .task-detail-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .task-detail-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 8px;
  }
}

/* Board card polish overrides */
.board-shell .dashboard-column-body {
  gap: 10px;
}

.board-shell .dashboard-board-card {
  border-left-width: 5px;
  border-radius: 14px;
  padding: 12px 12px 10px;
}

.board-shell .dashboard-card-title {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.board-shell .dashboard-card-description {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.board-shell .dashboard-card-meta {
  gap: 8px;
  margin-top: 6px;
}

.board-shell .meta-pill {
  font-size: 11px;
  padding: 3px 9px;
}

.board-shell .dashboard-card-actions {
  margin-top: 9px;
  padding-top: 9px;
}

.board-shell .action-btn {
  min-width: 28px;
  min-height: 28px;
}

[data-theme="light"] .board-shell .dashboard-board-card {
  background: #ffffff;
  border-color: #dbe4f2;
  box-shadow: 0 10px 22px rgba(31, 45, 78, 0.08);
}

[data-theme="light"] .board-shell .dashboard-card-title {
  color: #1a2640;
}

[data-theme="light"] .board-shell .dashboard-card-description {
  color: #64748b;
}

[data-theme="light"] .board-shell .meta-pill {
  background: #f3f7ff;
  border-color: #d8e2f2;
  color: #4a5b7c;
}

.board-shell .dashboard-empty {
  color: #8ea0bc;
  font-weight: 600;
}

[data-theme="light"] .board-shell .dashboard-empty {
  color: #5f6f8b;
  background: #edf3fb;
  border-color: #ccd8ea;
}

#szczegoly-zadan.is-hidden {
  display: none;
}

.page-dashboard .page-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%);
  border-color: #314963;
}

.page-dashboard .page-header h1,
.page-dashboard .page-header p {
  color: #f2f6ff;
}

.page-dashboard .page-header .text-2xl {
  color: #f2f6ff;
}

[data-theme="light"] .page-dashboard .page-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%);
  border-color: #314963;
}

[data-theme="light"] .page-dashboard .page-header .page-header-right .user-menu-trigger,
[data-theme="light"] .page-dashboard .page-header .page-header-right .notification-bell {
  background: #eef3fb;
  border-color: #c8d4e7;
  color: #334a69;
}

/* Final report-style board header strip */
.board-shell .board-column {
  border-radius: 10px;
  overflow: hidden;
}

.board-shell .dashboard-column-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #314963;
  background: linear-gradient(180deg, #27394f 0%, #213247 100%);
}

.board-shell .dashboard-column-header > div {
  min-width: 0;
}

.board-shell .column-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.board-shell .dashboard-column-header span {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.board-shell .dashboard-column-body {
  min-height: 318px;
  border-top: 1px solid #d6e0ee;
}

[data-theme="light"] .board-shell .dashboard-column-header {
  border-bottom-color: #314963;
  background: linear-gradient(180deg, #27394f 0%, #213247 100%);
}

[data-theme="light"] .board-shell .column-title {
  color: #f2f6ff;
}

[data-theme="light"] .board-shell .dashboard-column-header span {
  background: #eef3fb;
  border: 1px solid #c8d4e7;
  color: #425574;
}

/* Auth page layout */
.page-auth .sidebar,
.page-auth .sidebar-toggle {
  display: none !important;
}

.page-auth .main-content {
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  background: url('/static/img/background.jpg') center / cover no-repeat !important;
}

.page-auth .main-content::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.page-auth .page-header {
  display: none;
}

.page-auth .main-content .card {
  width: min(460px, 100%);
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(245, 249, 255, 0.9);
  box-shadow: 0 24px 52px rgba(7, 13, 25, 0.34);
}

.page-auth .main-content > .space-y-2 {
  width: min(460px, 100%);
  margin-bottom: 0;
}

.flash-stack .flash-message {
  border-radius: 12px;
}

.flash-stack .flash-message.flash-error {
  border-color: #f2b7b7;
  background: #fff2f2;
  color: #7a1f1f;
}

.flash-stack .flash-message.flash-success {
  border-color: #bfe9cc;
  background: #f2fff6;
  color: #1f5a34;
}

.page-auth .flash-stack,
.page-auth .flash-stack.is-auth {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  z-index: 40;
  margin: 0;
}

.page-auth .flash-stack .flash-message,
.page-auth .flash-stack.is-auth .flash-message {
  width: 100%;
  padding: 10px 14px;
  box-shadow: 0 12px 26px rgba(15, 24, 39, 0.2);
}

.page-auth .main-content label,
.page-auth .main-content p,
.page-auth .main-content a {
  color: #1f3047;
}

.page-auth .main-content input {
  background: #ffffff !important;
  border-color: #c6d3e7 !important;
  color: #21354d !important;
}

/* Dashboard readability fixes */
.board-shell .dashboard-empty {
  background: transparent !important;
  border-color: #c6d5e9;
  color: #5a6d89 !important;
  font-weight: 700;
}

[data-theme="light"] .page-dashboard .page-header,
.page-dashboard .page-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%) !important;
  border-color: #314963 !important;
}

[data-theme="light"] .page-dashboard .page-header h1,
[data-theme="light"] .page-dashboard .page-header p,
.page-dashboard .page-header h1,
.page-dashboard .page-header p {
  color: #f2f6ff !important;
}

.board-shell .dashboard-card-title {
  font-size: 16px !important;
  line-height: 1.35;
}

/* Cross-page dashboard style alignment */
.page-calendar .page-header,
.page-tasks .page-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%) !important;
  border-color: #314963 !important;
}

.page-calendar .page-header h1,
.page-calendar .page-header p,
.page-tasks .page-header h1,
.page-tasks .page-header p {
  color: #f2f6ff !important;
}

[data-theme="light"] .page-calendar .page-header,
[data-theme="light"] .page-tasks .page-header {
  background: linear-gradient(180deg, #26384e 0%, #223347 100%) !important;
  border-color: #314963 !important;
}

/* Calendar: report-like cards, cleaner hierarchy */
.page-calendar .calendar-hero,
.page-calendar .calendar-month,
.page-calendar .calendar-summary-card {
  border-radius: 14px;
  border-color: #cfd9e8;
  box-shadow: 0 10px 24px rgba(33, 51, 78, 0.09);
}

.page-calendar .calendar-month-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #d8e2f0;
}

.page-calendar .calendar-month-header h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.page-calendar .calendar-day {
  border-radius: 12px;
  border-color: #d8e2f0;
}

.page-calendar .calendar-day:hover {
  border-color: #92a8c8;
  box-shadow: 0 8px 16px rgba(32, 51, 82, 0.11);
}

.page-calendar .status-circle {
  width: auto;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
}

/* Task pages: consistent report card language */
.page-tasks form.card,
.page-tasks #task-detail-page > .card {
  border-radius: 12px;
  border-color: #cfdaea;
  box-shadow: 0 10px 24px rgba(33, 51, 78, 0.09);
}

.page-tasks form.card {
  background: #ffffff;
}

.page-tasks form.card > .grid {
  gap: 16px;
}

.page-tasks form.card label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c6f8e;
}

.page-tasks form.card input,
.page-tasks form.card select,
.page-tasks form.card textarea,
.page-tasks #comment-input {
  border-radius: 10px !important;
  border-color: #cdd9ea !important;
  background: #f7faff !important;
  color: #1f3048 !important;
}

.page-tasks form.card input:focus,
.page-tasks form.card select:focus,
.page-tasks form.card textarea:focus,
.page-tasks #comment-input:focus {
  outline: none;
  border-color: #7d9ac5 !important;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.13);
}

.page-tasks .dropzone {
  border-style: solid;
  border-color: #cfd9e9;
  background: #f6f9ff;
}

.page-tasks #task-detail-page > .card > h3,
.page-tasks #task-detail-page .card .text-lg {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #516581;
}

.page-tasks #task-detail-page .card pre {
  background: #f7faff;
  border: 1px solid #d5dfed;
  border-radius: 10px;
  padding: 14px;
}

.page-tasks #task-detail-page .space-y-3 > div,
.page-tasks #comments-list > div {
  border: 1px solid #d3ddec;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.page-tasks .task-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.page-tasks #task-detail-page {
  max-width: 1540px;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .page-dashboard .board-shell,
  .page-dashboard #szczegoly-zadan {
    width: min(1680px, calc(100vw - var(--sidebar-width) - 56px)) !important;
    max-width: min(1680px, calc(100vw - var(--sidebar-width) - 56px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-calendar .calendar-hero,
  .page-calendar .calendar-summary-grid,
  .page-calendar .calendar-stack {
    width: min(1580px, calc(100vw - var(--sidebar-width) - 72px)) !important;
    max-width: min(1580px, calc(100vw - var(--sidebar-width) - 72px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-tasks .filters-bar,
  .page-tasks form.card,
  .page-tasks [data-view-panel="list"],
  .page-tasks [data-view-panel="board"] {
    width: min(1680px, calc(100vw - var(--sidebar-width) - 56px)) !important;
    max-width: min(1680px, calc(100vw - var(--sidebar-width) - 56px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Dashboard stronger tile fills for key buckets */
[data-theme="light"] .board-shell .dashboard-column[data-bucket="today"] .dashboard-board-card {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

[data-theme="light"] .board-shell .dashboard-column[data-bucket="today"] .dashboard-card-title {
  color: #0f2f63;
}

[data-theme="light"] .board-shell .dashboard-column[data-bucket="today"] .dashboard-card-description {
  color: #23446f;
}

[data-theme="light"] .board-shell .dashboard-column[data-bucket="future"] .dashboard-board-card {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
}

[data-theme="light"] .board-shell .dashboard-column[data-bucket="future"] .dashboard-card-title {
  color: #154c2d;
}

[data-theme="light"] .board-shell .dashboard-column[data-bucket="future"] .dashboard-card-description {
  color: #2b6a44;
}

.page-tasks #task-detail-page .card {
  padding: 20px 22px;
  border: 1px solid #c8d5e8;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(27, 47, 84, 0.07);
}

.page-tasks .task-detail-overview {
  padding: 22px;
}

.page-tasks .task-detail-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.page-tasks .task-detail-overview-top .status-badge,
.page-tasks .task-detail-overview-top .priority-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.page-tasks .task-edit-cta {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
}

.page-tasks .task-detail-section-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f5676;
  margin-bottom: 12px;
}

.page-tasks .task-detail-meta-panel {
  padding: 22px;
  position: sticky;
  top: 18px;
  align-self: start;
}

.page-tasks .task-meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.page-tasks .task-meta-grid p {
  display: grid;
  grid-template-columns: minmax(96px, 120px) 1fr;
  align-items: baseline;
  gap: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f7faff;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.35;
}

.page-tasks .task-meta-grid p span {
  color: #7284a1;
  font-weight: 600;
}

.page-tasks .task-meta-grid p strong {
  color: #1b314f;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
}

.page-tasks #task-detail-page pre {
  min-height: 88px;
  color: #2c4668 !important;
  line-height: 1.55;
}

.page-tasks #task-detail-page .dropzone {
  padding: 20px;
  border-radius: 12px;
}

.page-tasks #task-detail-page .dropzone p,
.page-tasks #task-detail-page .dropzone label {
  font-size: 14px;
  line-height: 1.45;
}

.page-tasks #task-detail-page .space-y-3 > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 14px;
}

.page-tasks #comments-list > div,
.page-tasks #activity-log > div {
  border-radius: 12px;
  background: #f9fbff;
}

@media (max-width: 1100px) {
  .page-tasks .task-detail-layout {
    grid-template-columns: 1fr;
  }

  .page-tasks .task-detail-meta-panel {
    position: static;
  }

  .page-tasks .task-detail-overview-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-tasks #task-detail-page .card {
    padding: 16px;
  }

  .page-tasks .task-meta-grid p {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Auth pages: same typography and cleaner card mood */
.page-auth .main-content .card {
  border-radius: 16px;
}

.page-auth .main-content label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4f6382;
}

.page-auth .main-content .primary-btn {
  border-radius: 10px;
  font-weight: 700;
}