/* ==========================================================================
   CEO Desk - Executive Design System
   Inspired by TurfBox Admin Aesthetics: Plus Jakarta Sans, Slate & Premium Teal
   Mobile-First, Ultra-Responsive, Zero-Clutter Executive UX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Teal Palette (TurfBox heritage) */
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #f0fdfa;
  --primary-glow: rgba(13, 148, 136, 0.15);
  --primary-dark-accent: #14b8a6;

  /* Priority & Status Signals */
  --priority-high: #ef4444;
  --priority-high-bg: #fef2f2;
  --priority-med: #f59e0b;
  --priority-med-bg: #fef3c7;
  --priority-low: #94a3b8;
  --priority-low-bg: #f1f5f9;
  --success: #10b981;
  --success-bg: #ecfdf5;

  /* Light Theme (Executive Canvas) */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 14px 28px rgba(15, 23, 42, 0.12), 0 10px 10px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 180ms;

  /* Layout dimensions */
  --sidebar-w: 240px;
  --header-h: 56px;
  --bottom-nav-h: 62px;
}

/* Dark Theme (Executive Night Desk) */
[data-theme="dark"] {
  --bg-app: #0b1120;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-subtle: #1e293b;
  --border: #1f293d;
  --border-subtle: #192231;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary-light: rgba(13, 148, 136, 0.12);
  --primary-glow: rgba(20, 184, 166, 0.25);
  --priority-high-bg: rgba(239, 68, 68, 0.12);
  --priority-med-bg: rgba(245, 158, 11, 0.12);
  --priority-low-bg: rgba(148, 163, 184, 0.12);
  --success-bg: rgba(16, 185, 129, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* App Shell Container */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Desktop Sidebar */
.desktop-sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 24px 16px;
  transition: background-color var(--duration) var(--ease);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px var(--primary-glow);
}

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

.brand-text span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

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

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

[data-theme="dark"] .nav-item.active {
  color: var(--primary-dark-accent);
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.nav-item.active .nav-badge {
  background-color: var(--primary);
  color: #ffffff;
}

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

.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  width: 100%;
  text-align: left;
}

.sidebar-action-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

/* Main Workspace */
.main-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-app);
}

/* Top Mobile Bar - Native Status Bar & Safe Area Integration */
.mobile-top-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: max(env(safe-area-inset-top, 0px), 16px);
  height: calc(52px + max(env(safe-area-inset-top, 0px), 16px));
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 8px;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 35;
  box-sizing: border-box;
}

[data-theme="dark"] .mobile-top-bar {
  background-color: rgba(11, 17, 32, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.icon-btn:hover, .icon-btn:active {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}

/* Scrollable Desk Canvas */
.desk-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 32px 40px 100px;
  display: flex;
  justify-content: center;
}

.desk-max-width {
  width: 100%;
  max-width: 760px;
}

/* Executive Header */
.executive-header {
  margin-bottom: 24px;
}

.greeting-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.greeting-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.header-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.sub-greeting {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stats-pill-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.stats-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-active { background-color: var(--primary); }
.dot-done { background-color: var(--success); }
.dot-inbox { background-color: var(--text-dim); }

/* Continuous Ultra-Fast Capture Box */
.capture-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--duration) var(--ease);
}

.capture-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.capture-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.capture-icon {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.capture-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.capture-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

.capture-shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.nlp-hints {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nlp-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.nlp-chip:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.capture-hint-text {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 600;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Sections & Task Streams */
.section-container {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.section-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

/* Focus Group (Top 3) Styling */
.focus-group {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.focus-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

[data-theme="dark"] .focus-badge {
  color: var(--primary-dark-accent);
}

/* Task Item Card */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  position: relative;
  user-select: none;
}

.task-item:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border);
}

.focus-group .task-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
}

.focus-group .task-item:last-child {
  border-bottom: none;
}

/* Checkbox (Calm, 1-tap, subtle) */
.task-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.8px solid var(--text-dim);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  padding: 0;
}

.task-check svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--duration) var(--ease);
  stroke-width: 2.5;
  color: #ffffff;
}

.task-check:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.task-item.is-completed .task-check {
  background-color: var(--success);
  border-color: var(--success);
}

.task-item.is-completed .task-check svg {
  opacity: 1;
  transform: scale(1);
}

/* Task Content */
.task-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.task-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
  transition: color var(--duration) var(--ease);
  line-height: 1.4;
}

.focus-group .task-title {
  font-size: 15px;
  font-weight: 600;
}

.task-item.is-completed .task-title {
  color: var(--text-dim);
  text-decoration: line-through;
}

.task-metadata {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

.task-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Priority Indicators (🔴 High, 🟡 Med, ⚪ Low) */
.priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-high { background-color: var(--priority-high); box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
.priority-medium { background-color: var(--priority-med); }
.priority-low { background-color: var(--priority-low); }

/* Task Quick Actions (Desktop Hover & Mobile Swipe) */
.task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.action-chip-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.action-chip-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.empty-state-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* Mobile Bottom Navigation - Native iOS Tab Bar Design */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + max(env(safe-area-inset-bottom, 0px), 14px));
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 6px 12px max(env(safe-area-inset-bottom, 0px), 14px);
  z-index: 40;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mobile-bottom-nav {
  background-color: rgba(11, 17, 32, 0.90);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  flex: 1;
  height: 100%;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.nav-icon-wrap {
  width: 44px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.nav-icon-wrap svg {
  transition: transform var(--duration) var(--ease);
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

.bottom-nav-item.active .nav-icon-wrap {
  background-color: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .bottom-nav-item.active .nav-icon-wrap {
  background-color: rgba(13, 148, 136, 0.22);
  color: var(--primary-dark-accent);
}

.bottom-nav-item.active .nav-icon-wrap svg {
  transform: scale(1.06);
}

.bottom-nav-item.active .nav-label {
  color: var(--primary);
  font-weight: 700;
}

[data-theme="dark"] .bottom-nav-item.active .nav-label {
  color: var(--primary-dark-accent);
}

.bottom-nav-badge {
  position: absolute;
  top: -3px;
  right: 2px;
  font-size: 10px;
  font-weight: 800;
  background-color: var(--primary);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Floating Mobile "+" Capture Button */
.floating-capture-btn {
  display: none;
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: var(--shadow-float);
  align-items: center;
  justify-content: center;
  z-index: 45;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.floating-capture-btn:active {
  transform: scale(0.92);
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay.active,
.modal-overlay.sheet-active {
  opacity: 1;
  pointer-events: auto;
}

/* Search Memory Modal (Ctrl+K) */
.search-modal-box {
  width: 90%;
  max-width: 600px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  transform: translateY(-10px) scale(0.98);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay.active .search-modal-box {
  transform: translateY(0) scale(1);
}

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

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
}

.search-results-list {
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-category-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding-left: 4px;
}

/* Task Detail Slide-over Panel */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.task-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 111;
  transform: translateX(100%);
  transition: transform 220ms var(--ease);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .task-detail-drawer {
  transform: translateX(0);
}

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

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

.detail-title-input {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-main);
  outline: none;
  line-height: 1.4;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-notes-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--bg-subtle);
  color: var(--text-main);
  resize: vertical;
  outline: none;
  font-size: 14px;
}

.detail-notes-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
}

.field-pill-selector {
  display: flex;
  gap: 8px;
}

.pill-option {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.pill-option.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Bottom Sheet Capture */
.bottom-sheet-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  z-index: 120;
  padding: 16px 20px;
  padding-bottom: calc(env(safe-area-inset-bottom, 16px) + 20px);
  transform: translateY(100%);
  transition: transform 240ms var(--ease);
  display: flex;
  flex-direction: column;
}

.modal-overlay.sheet-active .bottom-sheet-modal {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 12px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sheet-close-btn {
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.mobile-capture-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: border-color var(--duration) var(--ease);
}

.mobile-capture-field-wrap:focus-within {
  border-color: var(--primary);
  background-color: var(--bg-surface);
}

.mobile-capture-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  min-width: 0;
}

.mobile-capture-input::placeholder {
  color: var(--text-dim);
}

.mobile-capture-submit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background-color var(--duration) var(--ease);
}

.mobile-capture-submit-btn:active {
  background-color: var(--primary-hover);
}

.mobile-hints {
  margin-top: 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sheet-hint-sub {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* Executive Daily Review Cards */
.review-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.review-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  word-break: break-word;
  width: 100%;
}

.review-card-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.review-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--duration) var(--ease);
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.review-btn:hover, .review-btn:active {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

.review-btn-tomorrow {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.review-btn-tomorrow:hover, .review-btn-tomorrow:active {
  background-color: var(--primary);
  color: #ffffff;
}

.review-btn-delete {
  color: var(--priority-high);
}

.review-btn-delete:hover, .review-btn-delete:active {
  background-color: var(--priority-high);
  border-color: var(--priority-high);
  color: #ffffff;
}

/* Subtle Toast */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--text-main);
  color: var(--bg-app);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration) var(--ease);
  z-index: 200;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .desktop-sidebar {
    display: none;
  }

  .mobile-top-bar {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .floating-capture-btn {
    display: flex;
    bottom: calc(56px + max(env(safe-area-inset-bottom, 0px), 14px) + 16px);
    right: 20px;
  }

  /* Safe Area paddings: content scrolls cleanly between fixed header and tab bar */
  .desk-scroll-area {
    padding-top: calc(52px + max(env(safe-area-inset-top, 0px), 16px) + 16px);
    padding-bottom: calc(56px + max(env(safe-area-inset-bottom, 0px), 14px) + 90px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .greeting-title {
    font-size: 22px;
  }

  .capture-box {
    display: none; /* Mobile uses floating button & bottom sheet for speed */
  }

  .task-actions {
    opacity: 1; /* Always visible on mobile */
  }

  .task-detail-drawer {
    max-width: 100%;
  }

  /* Modal responsive on mobile */
  .search-modal-box {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
  }

  /* 2x2 grid for executive review buttons on mobile phones */
  .review-card-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
