:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f1726;
  --bg-tertiary: #172235;
  --bg-elevated: #1f2e46;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-surface: rgba(59, 130, 246, 0.12);
  --success: #10b981;
  --success-surface: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-surface: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-surface: rgba(239, 68, 68, 0.12);
  --purple: #8b5cf6;
  --purple-surface: rgba(139, 92, 246, 0.12);
  --q1-border: #ef4444;
  --q2-border: #3b82f6;
  --q3-border: #f59e0b;
  --q4-border: #64748b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #e2e8f0;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-surface: rgba(37, 99, 235, 0.08);
  --success: #059669;
  --success-surface: rgba(5, 150, 105, 0.08);
  --warning: #d97706;
  --warning-surface: rgba(217, 119, 6, 0.08);
  --danger: #dc2626;
  --danger-surface: rgba(220, 38, 38, 0.08);
  --purple: #7c3aed;
  --purple-surface: rgba(124, 58, 237, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

button:active {
  transform: scale(0.98);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.app-layout {
  display: flex;
  width: 100%;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  min-width: 250px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-title-group h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.is-active {
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tertiary);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-meta-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.app-topbar {
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-trigger {
  display: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.search-command-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--text-muted);
  width: 280px;
  text-align: left;
}

.search-command-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.kbd-shortcut {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.clock-time {
  font-weight: 700;
  color: var(--text-primary);
}

.clock-date {
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.badge-amber {
  background-color: var(--warning-surface);
  color: var(--warning);
}

.badge-rose {
  background-color: var(--danger-surface);
  color: var(--danger);
}

.quick-add-wrapper {
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 180px;
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 100;
}

.dropdown-menu.is-open {
  display: flex;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-align: left;
  font-size: 13px;
}

.dropdown-menu-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.content-viewport {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

.app-view {
  display: none;
  height: 100%;
}

.app-view.is-active {
  display: flex;
  flex-direction: column;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-title-group h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.view-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.view-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented-control {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.segmented-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.segmented-btn.is-active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.filter-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.filter-select:focus {
  border-color: var(--accent-primary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-subtext {
  font-size: 12px;
  color: var(--text-secondary);
}

.kpi-progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.kpi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #60a5fa);
  transition: width 0.4s ease;
}

.charts-row-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.canvas-container {
  width: 100%;
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  max-width: 100%;
  display: block;
}

.donut-legend-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-name {
  color: var(--text-secondary);
  flex: 1;
}

.legend-value {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.bottom-analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.heatmap-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  padding: 8px 0;
}

.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  transition: transform 0.1s;
}

.heatmap-cell:hover {
  transform: scale(1.2);
}

.heatmap-cell.level-0 {
  background-color: var(--bg-tertiary);
}

.heatmap-cell.level-1 {
  background-color: rgba(16, 185, 129, 0.25);
}

.heatmap-cell.level-2 {
  background-color: rgba(16, 185, 129, 0.5);
}

.heatmap-cell.level-3 {
  background-color: rgba(16, 185, 129, 0.75);
}

.heatmap-cell.level-4 {
  background-color: #10b981;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
}

.insight-card.insight-warning {
  border-color: rgba(245, 158, 11, 0.3);
  background-color: var(--warning-surface);
}

.insight-card.insight-success {
  border-color: rgba(16, 185, 129, 0.3);
  background-color: var(--success-surface);
}

.insight-card.insight-info {
  border-color: rgba(59, 130, 246, 0.3);
  background-color: var(--accent-surface);
}

.insight-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.insight-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.eisenhower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 600px;
}

.eisenhower-quadrant {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.eisenhower-quadrant.drag-over {
  border-color: var(--accent-primary);
  background-color: var(--accent-surface);
}

.quadrant-q1 {
  border-top: 3px solid var(--q1-border);
}

.quadrant-q2 {
  border-top: 3px solid var(--q2-border);
}

.quadrant-q3 {
  border-top: 3px solid var(--q3-border);
}

.quadrant-q4 {
  border-top: 3px solid var(--q4-border);
}

.quadrant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quadrant-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quadrant-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.quadrant-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.quadrant-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -6px;
}

.quadrant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quadrant-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 9999px;
}

.btn-subtle-add {
  padding: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.btn-subtle-add:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.quadrant-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
}

.quadrant-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.task-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: grab;
}

.task-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.task-card.is-dragging {
  opacity: 0.4;
}

.task-card.is-completed {
  opacity: 0.65;
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.task-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-top: 2px;
}

.task-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: transparent;
}

.task-checkbox:checked + .custom-checkbox {
  background-color: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.task-card-title-group {
  flex: 1;
}

.task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.task-title.line-through {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.6;
}

.task-card:hover .task-card-actions {
  opacity: 1;
}

.icon-btn-subtle {
  padding: 4px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.icon-btn-subtle:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.icon-btn-subtle.danger-hover:hover {
  color: var(--danger);
}

.task-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.task-card-subtasks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtasks-progress-bar {
  flex: 1;
  height: 4px;
  background-color: var(--bg-elevated);
  border-radius: 9999px;
  overflow: hidden;
}

.subtasks-progress-fill {
  height: 100%;
  background-color: var(--success);
}

.subtasks-summary-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.task-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-danger {
  background-color: var(--danger-surface);
  color: var(--danger);
}

.badge-warning {
  background-color: var(--warning-surface);
  color: var(--warning);
}

.badge-neutral {
  background-color: var(--bg-elevated);
  color: var(--text-secondary);
}

.badge-completed {
  background-color: var(--success-surface);
  color: var(--success);
}

.badge-muted {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
}

.task-pomo-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.task-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 10px;
  color: var(--accent-primary);
  background-color: var(--accent-surface);
  padding: 1px 6px;
  border-radius: 4px;
}

.tasks-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-layout {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 600px;
  overflow: hidden;
}

.notes-sidebar {
  width: 320px;
  min-width: 320px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.notes-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: var(--text-muted);
}

.notes-search-input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  width: 100%;
  font-size: 12px;
}

.tag-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tag-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 9999px;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
}

.tag-chip.is-active {
  background-color: var(--accent-surface);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.tag-count {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.7;
}

.notes-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.note-list-item {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.note-list-item:hover {
  border-color: var(--border-strong);
}

.note-list-item.is-active {
  border-color: var(--accent-primary);
  background-color: var(--accent-surface);
}

.note-list-item.is-pinned {
  border-left: 3px solid var(--warning);
}

.note-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-item-preview {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.note-date-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.notes-editor-panel {
  flex: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.note-title-input {
  font-size: 18px;
  font-weight: 700;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
}

.editor-meta-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-meta-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
  overflow-x: auto;
}

.toolbar-btn {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.toolbar-btn:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.toolbar-separator {
  width: 1px;
  height: 16px;
  background-color: var(--border-subtle);
  margin: 0 4px;
}

.editor-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.editor-workspace.mode-split .editor-left-pane,
.editor-workspace.mode-split .editor-right-pane {
  flex: 1;
  display: flex;
}

.editor-workspace.mode-edit .editor-left-pane {
  flex: 1;
  display: flex;
}

.editor-workspace.mode-edit .editor-right-pane {
  display: none;
}

.editor-workspace.mode-preview .editor-left-pane {
  display: none;
}

.editor-workspace.mode-preview .editor-right-pane {
  flex: 1;
  display: flex;
}

.editor-left-pane {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.note-textarea {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 20px;
  resize: none;
}

.editor-right-pane {
  padding: 20px;
  overflow-y: auto;
}

.markdown-preview {
  width: 100%;
  line-height: 1.7;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin: 16px 0 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.markdown-preview h1 {
  font-size: 22px;
}

.markdown-preview h2 {
  font-size: 18px;
}

.markdown-preview h3 {
  font-size: 15px;
}

.markdown-preview p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.markdown-preview ul,
.markdown-preview ol {
  margin: 8px 0 16px 24px;
  color: var(--text-secondary);
}

.markdown-preview li {
  margin-bottom: 4px;
}

.markdown-checklist {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.checklist-item.completed span {
  text-decoration: line-through;
  opacity: 0.6;
}

.markdown-blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 8px 16px;
  margin: 12px 0;
  background-color: var(--bg-tertiary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.inline-code {
  font-family: var(--font-mono);
  background-color: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-primary);
}

.code-block {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  margin: 12px 0;
}

.markdown-hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 20px 0;
}

.table-container {
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-table th,
.markdown-table td {
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  text-align: left;
}

.markdown-table th {
  background-color: var(--bg-tertiary);
  font-weight: 600;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  flex: 1;
}

.calendar-main-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-month-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  flex: 1;
}

.cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  text-transform: uppercase;
}

.cal-day-cell {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-height: 80px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-day-cell:hover {
  border-color: var(--accent-primary);
}

.cal-day-cell.is-other-month {
  opacity: 0.35;
}

.cal-day-cell.is-selected {
  border-color: var(--accent-primary);
  background-color: var(--accent-surface);
}

.cal-day-cell.is-today {
  border-color: var(--warning);
}

.cal-day-header-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.today-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--warning);
}

.cal-cell-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.cal-badge-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.cal-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cal-task-dot.q1-dot {
  background-color: var(--danger);
}

.cal-task-dot.q2-dot {
  background-color: var(--accent-primary);
}

.cal-task-dot.q3-dot {
  background-color: var(--warning);
}

.cal-task-dot.q4-dot {
  background-color: var(--text-muted);
}

.cal-task-dot.is-done {
  opacity: 0.4;
  box-shadow: inset 0 0 0 1px #fff;
}

.cal-more-dot {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cal-note-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--purple);
}

.cal-habit-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background-color: var(--success);
  display: inline-block;
}

.calendar-agenda-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.agenda-date-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.agenda-actions-top {
  display: flex;
  gap: 6px;
}

.btn-subtle-sm {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-subtle-sm:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.agenda-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.agenda-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.agenda-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.agenda-title {
  font-size: 12px;
  font-weight: 600;
}

.agenda-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.quadrant-pill {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
}

.q1-pill {
  background-color: var(--danger-surface);
  color: var(--danger);
}

.q2-pill {
  background-color: var(--accent-surface);
  color: var(--accent-primary);
}

.q3-pill {
  background-color: var(--warning-surface);
  color: var(--warning);
}

.q4-pill {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
}

.agenda-note-card {
  display: flex;
  gap: 10px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
}

.agenda-note-card:hover {
  border-color: var(--purple);
}

.agenda-note-icon {
  color: var(--purple);
  padding-top: 2px;
}

.agenda-note-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.agenda-note-snippet {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-habits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agenda-habit-chip {
  background-color: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.pomodoro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.pomo-mode-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 36px;
  gap: 4px;
}

.pomo-mode-tab {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pomo-mode-tab.is-active {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.timer-circle-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-ring-bg {
  stroke: var(--bg-secondary);
}

.timer-ring-progress {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s linear, stroke var(--transition-normal);
}

.timer-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timer-digits {
  font-size: 54px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cycle-badge {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.pomo-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.pomo-btn-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.pomo-btn-main:hover {
  background-color: var(--accent-hover);
}

.pomo-btn-secondary {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomo-btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.pomo-active-task-box {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.pomo-active-task-box:hover {
  border-color: var(--border-strong);
}

.active-task-meta {
  display: flex;
  flex-direction: column;
}

.active-task-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.active-task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.active-task-title.is-empty {
  color: var(--text-muted);
  font-style: italic;
}

.pomo-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
}

.pomo-stat-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.pomo-stat-num {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.pomo-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.habits-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.habit-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.habit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.habit-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.habit-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.habit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.habit-category-badge {
  font-size: 10px;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.habit-streaks-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-primary);
}

.streak-pill.record {
  color: var(--warning);
}

.streak-value {
  font-weight: 700;
  font-family: var(--font-mono);
}

.streak-label {
  font-size: 10px;
  color: var(--text-muted);
}

.habit-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.habit-week-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.habit-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.habit-day-col.is-today .habit-day-name {
  color: var(--warning);
  font-weight: 700;
}

.habit-day-name {
  font-size: 11px;
  color: var(--text-muted);
}

.habit-check-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.habit-check-btn.is-checked {
  color: #ffffff;
}

.habit-num-subtle {
  font-size: 11px;
  font-family: var(--font-mono);
}

.habit-month-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.habit-month-track-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.habit-dots-grid {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.habit-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background-color: var(--bg-tertiary);
}

.settings-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-label {
  font-weight: 600;
  color: var(--text-primary);
}

.settings-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.subtask-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-tertiary);
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  font-weight: 500;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.command-palette-card {
  max-width: 600px;
}

.command-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.command-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: var(--text-primary);
  flex: 1;
}

.palette-results-list {
  padding: 12px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 6px 8px 2px;
}

.palette-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.palette-result-item:hover {
  background-color: var(--bg-tertiary);
}

.palette-item-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.palette-subtle-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.palette-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.palette-empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  flex: 1;
  padding: 6px 0;
}

.mobile-nav-btn.is-active {
  color: var(--accent-primary);
}

@media (max-width: 1024px) {
  .charts-row-grid,
  .bottom-analytics-grid,
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .mobile-menu-trigger {
    display: flex;
  }
  .search-command-btn {
    width: 180px;
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .content-viewport {
    padding: 16px;
    padding-bottom: 80px;
  }
  .eisenhower-grid {
    grid-template-columns: 1fr;
  }
  .notes-layout {
    flex-direction: column;
  }
  .notes-sidebar {
    width: 100%;
    min-width: unset;
  }
}
