:root {
  --bg-primary: #0B0D11;
  --surface: #12151B;
  --surface-elevated: #181C24;
  --surface-hover: #1F2430;
  --border: #232834;
  --border-subtle: #1B1F29;
  
  --accent-primary: #FF6B2B;
  --accent-primary-hover: #FF814A;
  --accent-primary-glow: rgba(255, 107, 43, 0.15);
  --accent-secondary: #F59E0B;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-info: #38BDF8;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --sidebar-width: 250px;
  --topbar-height: 54px;
  --bottombar-height: 58px;
}

:root[data-theme="oled"], [data-theme="oled"], .theme-oled {
  --bg-primary: #000000;
  --surface: #07080A;
  --surface-elevated: #0E1014;
  --surface-hover: #151820;
  --border: #181C24;
  --border-subtle: #101318;
  --accent-primary: #FF6B2B;
  --accent-primary-hover: #FF814A;
  --accent-primary-glow: rgba(255, 107, 43, 0.2);
  --accent-secondary: #F59E0B;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-info: #38BDF8;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --theme-name: "oled";
  --theme-display: "OLED Pitch Black";
}

:root[data-theme="light"], [data-theme="light"], .theme-light {
  --bg-primary: #F8FAFC;
  --surface: #FFFFFF;
  --surface-elevated: #F1F5F9;
  --surface-hover: #E2E8F0;
  --border: #CBD5E1;
  --border-subtle: #E2E8F0;
  
  --accent-primary: #EA580C;
  --accent-primary-hover: #C2410C;
  --accent-primary-glow: rgba(234, 88, 12, 0.15);
  --accent-secondary: #D97706;
  --accent-success: #059669;
  --accent-warning: #D97706;
  --accent-error: #DC2626;
  --accent-info: #0284C7;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --theme-name: "light";
  --theme-display: "Daylight Bright";
}

:root[data-theme="webcore"], [data-theme="webcore"], .theme-webcore {
  --bg-primary: #F7F7F8;
  --surface: #FFFFFF;
  --surface-elevated: #F0F2F5;
  --surface-hover: #E8EBF0;
  --border: #DDE1E8;
  --border-subtle: #E8EBEF;
  
  --accent-primary: #2E6FF3;
  --accent-primary-hover: #1F52C0;
  --accent-primary-glow: rgba(46, 111, 243, 0.22);
  --accent-secondary: #3A3D45;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-info: #2E6FF3;

  --text-primary: #2B2E35;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  --theme-name: "webcore";
  --theme-display: "WebCore (Light)";
}

:root[data-theme="webcore-dark"], [data-theme="webcore-dark"], .theme-webcore-dark {
  --bg-primary: #0D1117;
  --surface: #161B22;
  --surface-elevated: #21262D;
  --surface-hover: #30363D;
  --border: #30363D;
  --border-subtle: #21262D;
  
  --accent-primary: #2E6FF3;
  --accent-primary-hover: #4A85F6;
  --accent-primary-glow: rgba(46, 111, 243, 0.28);
  --accent-secondary: #58A6FF;
  --accent-success: #2EA043;
  --accent-warning: #D29922;
  --accent-error: #F85149;
  --accent-info: #58A6FF;

  --text-primary: #F0F6FC;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;

  --theme-name: "webcore-dark";
  --theme-display: "WebCore (Dark)";
}

:root[data-theme="liquid-glass"], [data-theme="liquid-glass"], .theme-liquid-glass {
  --bg-primary: #EDF2F7;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-elevated: rgba(255, 255, 255, 0.72);
  --surface-hover: rgba(255, 255, 255, 0.85);
  --border: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.55);
  
  --accent-primary: #007AFF;
  --accent-primary-hover: #0062D6;
  --accent-primary-glow: rgba(0, 122, 255, 0.28);
  --accent-secondary: #5856D6;
  --accent-success: #34C759;
  --accent-warning: #FF9500;
  --accent-error: #FF3B30;
  --accent-info: #007AFF;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --theme-name: "liquid-glass";
  --theme-display: "Liquid Glass UI";
}

:root[data-theme="liquid-glass-dark"], [data-theme="liquid-glass-dark"], .theme-liquid-glass-dark {
  --bg-primary: #0B0F19;
  --surface: rgba(18, 24, 38, 0.70);
  --surface-elevated: rgba(28, 36, 56, 0.82);
  --surface-hover: rgba(38, 50, 78, 0.90);
  --border: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --accent-primary: #0A84FF;
  --accent-primary-hover: #409CFF;
  --accent-primary-glow: rgba(10, 132, 255, 0.32);
  --accent-secondary: #5E5CE6;
  --accent-success: #30D158;
  --accent-warning: #FF9F0A;
  --accent-error: #FF453A;
  --accent-info: #64D2FF;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --theme-name: "liquid-glass-dark";
  --theme-display: "Liquid Glass Dark";
}

:root[data-theme="sunset"], [data-theme="sunset"], .theme-sunset {
  --bg-primary: #120D18;
  --surface: #1E1528;
  --surface-elevated: #2B1D3A;
  --surface-hover: #39264E;
  --border: #4B2F63;
  --border-subtle: #301E42;
  
  --accent-primary: #FF6B4A;
  --accent-primary-hover: #FF8566;
  --accent-primary-glow: rgba(255, 107, 74, 0.28);
  --accent-secondary: #C084FC;
  --accent-success: #10B981;
  --accent-warning: #FBBF24;
  --accent-error: #F43F5E;
  --accent-info: #38BDF8;

  --text-primary: #FDE8E8;
  --text-secondary: #E0C8E8;
  --text-muted: #8E78A0;

  --theme-name: "sunset";
  --theme-display: "Sunset Horizon";
}

:root[data-theme="nordic"], [data-theme="nordic"], .theme-nordic {
  --bg-primary: #0F172A;
  --surface: #1E293B;
  --surface-elevated: #273549;
  --surface-hover: #334155;
  --border: #3B4B61;
  --border-subtle: #1E2D42;
  
  --accent-primary: #38BDF8;
  --accent-primary-hover: #60A5FA;
  --accent-primary-glow: rgba(56, 189, 248, 0.25);
  --accent-secondary: #818CF8;
  --accent-success: #34D399;
  --accent-warning: #FBBF24;
  --accent-error: #F87171;
  --accent-info: #38BDF8;

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --theme-name: "nordic";
  --theme-display: "Nordic Frost";
}

:root[data-theme="dracula"], [data-theme="dracula"], .theme-dracula {
  --bg-primary: #21222C;
  --surface: #282A36;
  --surface-elevated: #343746;
  --surface-hover: #44475A;
  --border: #4D5166;
  --border-subtle: #383A4A;
  
  --accent-primary: #BD93F9;
  --accent-primary-hover: #D6ACFF;
  --accent-primary-glow: rgba(189, 147, 249, 0.25);
  --accent-secondary: #FF79C6;
  --accent-success: #50FA7B;
  --accent-warning: #FFB86C;
  --accent-error: #FF5555;
  --accent-info: #8BE9FD;

  --text-primary: #F8F8F2;
  --text-secondary: #BDC3C7;
  --text-muted: #6272A4;

  --theme-name: "dracula";
  --theme-display: "Midnight Dracula";
}

:root[data-theme="monokai"], [data-theme="monokai"], .theme-monokai {
  --bg-primary: #221F22;
  --surface: #2D2A2E;
  --surface-elevated: #3A363B;
  --surface-hover: #474349;
  --border: #565158;
  --border-subtle: #363238;
  
  --accent-primary: #FFD866;
  --accent-primary-hover: #FFE28A;
  --accent-primary-glow: rgba(255, 216, 102, 0.25);
  --accent-secondary: #FF6188;
  --accent-success: #A9DC76;
  --accent-warning: #FC9867;
  --accent-error: #FF6188;
  --accent-info: #78DCE8;

  --text-primary: #FCFCFA;
  --text-secondary: #C1C0C0;
  --text-muted: #727072;

  --theme-name: "monokai";
  --theme-display: "Monokai Pro";
}

:root[data-theme="cyber"], [data-theme="cyber"], .theme-cyber {
  --bg-primary: #050814;
  --surface: #091026;
  --surface-elevated: #101B3B;
  --surface-hover: #182855;
  --border: #1E336B;
  --border-subtle: #122046;
  
  --accent-primary: #06B6D4;
  --accent-primary-hover: #22D3EE;
  --accent-primary-glow: rgba(6, 182, 212, 0.25);
  --accent-secondary: #8B5CF6;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #F43F5E;
  --accent-info: #38BDF8;

  --text-primary: #E0F2FE;
  --text-secondary: #7DD3FC;
  --text-muted: #4B6B94;

  --theme-name: "cyber";
  --theme-display: "Cyber Neon";
}

:root[data-theme="forest"], [data-theme="forest"], .theme-forest {
  --bg-primary: #06140D;
  --surface: #0B1F16;
  --surface-elevated: #112D20;
  --surface-hover: #193E2D;
  --border: #1E4D38;
  --border-subtle: #123324;
  
  --accent-primary: #10B981;
  --accent-primary-hover: #34D399;
  --accent-primary-glow: rgba(16, 185, 129, 0.22);
  --accent-secondary: #F59E0B;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-info: #06B6D4;

  --text-primary: #ECFDF5;
  --text-secondary: #A7F3D0;
  --text-muted: #5E8973;

  --theme-name: "forest";
  --theme-display: "Emerald Forest";
}

:root[data-theme="sakura"], [data-theme="sakura"], .theme-sakura {
  --bg-primary: #150F18;
  --surface: #1E1624;
  --surface-elevated: #271E2F;
  --surface-hover: #33273D;
  --border: #3D2D49;
  --border-subtle: #2B1E34;
  
  --accent-primary: #EC4899;
  --accent-primary-hover: #F472B6;
  --accent-primary-glow: rgba(236, 72, 153, 0.22);
  --accent-secondary: #F43F5E;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error: #EF4444;
  --accent-info: #A855F7;

  --text-primary: #FDF2F8;
  --text-secondary: #FBCFE8;
  --text-muted: #9D849B;

  --theme-name: "sakura";
  --theme-display: "Sakura Blossom";
}

/* WCAG 2.2 AA Focus Visibility & Reduced Motion */
:focus-visible {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 2px !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-to-content {
  position: fixed;
  top: 16px;
  left: 16px;
  transform: translateY(-200%);
  background: var(--accent-primary, #FF6B2B);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-md, 8px);
  z-index: 9999999;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

/* Hide native Edge / Chromium password reveal icon so custom toggle is not duplicated */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Markdown List Spacing Fix */
.tasky-markdown-view ul,
.tasky-markdown-view ol {
  margin: 4px 0 6px 0 !important;
  padding-left: 20px !important;
}

.tasky-markdown-view li {
  margin: 2px 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
}

.tasky-markdown-view li + li {
  margin-top: 2px !important;
}

.tasky-markdown-view .tasky-md-chk {
  margin: 2px 0 !important;
  line-height: 1.4 !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-hover);
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}
a:hover {
  color: var(--accent-primary-hover);
}

.mono {
  font-family: var(--font-mono);
}

/* Utility Containers */
.fox-app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.fox-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--bg-primary);
  position: relative;
}

.fox-content-area {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar Styles */
.fox-sidebar {
  width: var(--sidebar-width);
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

@media (min-width: 769px) {
  .fox-app-container.sidebar-collapsed .fox-sidebar {
    display: none !important;
  }
}

.fox-sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.fox-sidebar-header .brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.fox-sidebar-header .brand-accent {
  color: var(--accent-primary);
}

.fox-nav-list {
  list-style: none;
  padding: 12px 8px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fox-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.fox-nav-item a:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

.fox-nav-item a.active {
  background-color: var(--surface-elevated);
  color: var(--accent-primary);
  font-weight: 600;
  border-left: 2px solid var(--accent-primary);
}

.fox-nav-badge {
  margin-left: auto;
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
}

.fox-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
}

/* Shortcut Pills */
.shortcut-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s;
}
.shortcut-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Card Component */
.tasky-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tasky-card:hover {
  border-color: #2F3647;
}
.tasky-card.elevated {
  background-color: var(--surface-elevated);
}

/* Buttons */
.tasky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  background: none;
}
.tasky-btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}
.tasky-btn-primary:hover {
  background-color: var(--accent-primary-hover);
}
.tasky-btn-secondary {
  background-color: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}
.tasky-btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: #384154;
}
.tasky-btn-ghost {
  color: var(--text-secondary);
}
.tasky-btn-ghost:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}
.tasky-btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: var(--accent-error);
  color: var(--accent-error);
}
.tasky-btn-danger:hover {
  background-color: var(--accent-error);
  color: #FFF;
}
.tasky-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inputs */
.tasky-input {
  width: 100%;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tasky-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}
.tasky-input::placeholder {
  color: var(--text-muted);
}

/* Badges */
.tasky-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Kanban Board Styling */
.kanban-board-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  height: calc(100vh - 160px);
}
.kanban-column {
  width: 320px;
  min-width: 320px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.kanban-column-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.kanban-tasks-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-task-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: grab;
  transition: border-color 0.15s, transform 0.15s;
}
.kanban-task-card:hover {
  border-color: var(--accent-primary);
}
.kanban-task-card.compact {
  padding: 6px 10px;
}
.kanban-task-card.tasky-card-file-drag-over {
  border: 2px dashed var(--accent-primary) !important;
  background-color: rgba(255, 107, 43, 0.14) !important;
  transform: scale(1.02) !important;
}

/* Command Palette Overlay */
.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  z-index: 9999;
}
.cmd-palette-box {
  width: 580px;
  max-width: 90vw;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: cmdIn 0.15s ease-out;
}
@keyframes cmdIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobile & Desktop visibility helpers */
.mobile-only {
  display: none !important;
}
.desktop-only {
  display: inline-flex !important;
}

.calendar-day-cell {
  min-height: 86px;
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Master-Detail Responsive Two-Pane Layouts (Notes, Chat, Learning) */
.two-pane-container {
  display: flex;
  gap: 20px;
  height: calc(100vh - 120px);
  width: 100%;
}
.two-pane-master {
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.two-pane-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

/* Topbar Styling */
.fox-topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  flex-shrink: 0;
}

/* Mobile Responsive (< 768px) */
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  button.mobile-only, a.mobile-only, span.mobile-only {
    display: inline-flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-hidden {
    display: none !important;
  }

  .fox-sidebar {
    display: none !important;
  }

  .fox-topbar {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
    padding-left: 12px;
    padding-right: 12px;
  }

  .fox-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottombar-height) + env(safe-area-inset-bottom, 0px));
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 4px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
  }
  .fox-bottom-nav a, .fox-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    touch-action: manipulation;
  }
  .fox-bottom-nav a.active {
    color: var(--accent-primary) !important;
    font-weight: 700;
  }
  .fox-main-viewport {
    padding-bottom: calc(var(--bottombar-height) + env(safe-area-inset-bottom, 16px) + 12px);
  }
  .fox-content-area {
    padding: 12px;
  }

  .calendar-day-cell {
    min-height: 56px !important;
    padding: 3px !important;
  }

  /* Responsive Kanban Columns */
  .kanban-board-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    gap: 12px;
  }
  .kanban-column {
    width: calc(100vw - 36px) !important;
    min-width: calc(100vw - 36px) !important;
    max-width: 380px !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Two-Pane Mobile Master-Detail */
  .two-pane-container,
  .chat-pane-container {
    height: calc(100vh - 140px) !important;
    min-height: calc(100vh - 140px) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .two-pane-master,
  .chat-pane-master {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    flex: 1 1 100% !important;
    border-right: none !important;
  }
  .two-pane-detail,
  .chat-pane-detail {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    flex: 1 1 100% !important;
  }
  .two-pane-master.mobile-hidden,
  .two-pane-detail.mobile-hidden,
  .chat-pane-master.mobile-hidden,
  .chat-pane-detail.mobile-hidden {
    display: none !important;
  }

  /* Hero Banner on Desktop & Base */
  .hero-banner-mobile {
    background: linear-gradient(135deg, rgba(255,107,43,0.12) 0%, var(--surface-elevated) 100%);
    border: 1px solid rgba(255,107,43,0.30);
    transition: all 0.3s ease;
  }

  /* Hero Banner on Mobile */
  .hero-banner-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 16px !important;
  }
  .hero-actions-mobile {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-actions-mobile > * {
    width: 100% !important;
    justify-content: center !important;
  }
  /* Prevent auto-zoom on mobile inputs */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* Better touch button feedback */
  button, .tasky-btn, a {
    touch-action: manipulation;
  }
  .tasky-btn:active, button:active {
    transform: scale(0.97);
  }

  /* Mobile scroll containers */
  .scroll-x-touch {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .scroll-x-touch::-webkit-scrollbar {
    display: none;
  }

  /* Mobile Modals & Command Palette */
  .cmd-palette-backdrop {
    padding-top: 0 !important;
    padding: env(safe-area-inset-top, 12px) 12px max(12px, env(safe-area-inset-bottom, 12px)) 12px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }
  .cmd-palette-box {
    max-height: 90vh !important;
    max-height: 90dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (min-width: 769px) {
  .fox-bottom-nav {
    display: none !important;
  }
}

/* ================= TASKY MODAL SYSTEM ================= */
.tasky-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 10000;
  animation: fadeIn 0.15s ease-out;
  overflow-y: auto;
}

.tasky-modal {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  padding: 24px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10001;
  animation: cmdIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tasky-modal-lg {
  max-width: 800px;
}

.tasky-modal-xl {
  max-width: 1000px;
}

@media (max-width: 768px) {
  .tasky-modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .tasky-modal {
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 16px)) 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    animation: taskyBottomSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

@keyframes taskyBottomSheet {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseRed {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chat-bubble-container {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.chat-context-menu {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Shimmer Skeleton Loader (Teams/WhatsApp Style) --- */
@keyframes taskyShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.tasky-skeleton {
  background: linear-gradient(90deg, var(--surface-elevated) 25%, var(--surface-hover) 50%, var(--surface-elevated) 75%);
  background-size: 200% 100%;
  animation: taskyShimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.tasky-skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes taskySlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Markdown Tables & Separators */
.tasky-md-table th:last-child,
.tasky-md-table td:last-child {
  border-right: none !important;
}
.tasky-md-table tbody tr:last-child {
  border-bottom: none !important;
}
.tasky-md-table tbody tr:hover {
  background-color: var(--surface-hover) !important;
}
.tasky-md-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

/* Touch & PC Drag and Drop for Personalized Widgets */
.widget-touch-dragging {
  opacity: 0.85 !important;
  transform: scale(1.04) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 2px var(--accent-primary) !important;
  z-index: 9999 !important;
  pointer-events: none !important;
}

.widget-touch-hover {
  border-color: var(--accent-primary, #FF6B2B) !important;
  background: rgba(255, 107, 43, 0.08) !important;
  transform: scale(0.97) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease !important;
}

/* ==========================================================================
   FoxTasky Modern Live-Chat Design System
   ========================================================================== */

.chat-pane-container {
  display: flex;
  height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 0 !important;
}

.chat-pane-master {
  width: 320px;
  min-width: 280px;
  max-width: 360px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0 !important;
}

.chat-pane-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  height: 100%;
  position: relative;
}

/* Channel List Items */
.chat-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.chat-channel-item:hover {
  background: var(--surface-hover);
}

.chat-channel-item.is-selected {
  background: rgba(255, 107, 43, 0.12) !important;
  border-color: rgba(255, 107, 43, 0.35) !important;
}

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

.chat-channel-item.is-selected .chat-channel-name {
  color: var(--accent-primary) !important;
  font-weight: 700;
}

.chat-channel-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex-shrink: 0;
}

.chat-channel-preview {
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.chat-unread-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-primary, #FF6B2B);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 107, 43, 0.4);
  flex-shrink: 0;
}

/* User & Channel Avatars (Defines explicit dimensions so they never stretch!) */
.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  text-align: center;
  line-height: 1;
}

.chat-avatar[style*="display: none"],
.chat-avatar[style*="display:none"],
.chat-avatar.hidden {
  display: none !important;
}

.chat-avatar.is-round {
  border-radius: 50% !important;
}

.chat-avatar-sm {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  font-size: 12px !important;
}

.chat-avatar-md {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  font-size: 14px !important;
  border-radius: var(--radius-md) !important;
}

.chat-avatar-spacer {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  flex-shrink: 0 !important;
}

/* Messages Stream & Day Separator */
.chat-day-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 12px 0;
  position: relative;
  width: 100%;
}

.chat-day-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}

.chat-day-separator span {
  position: relative;
  z-index: 1;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.2px;
}

.chat-system-message {
  align-self: center;
  max-width: 85%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 6px 0;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.chat-message-row {
  display: flex !important;
  width: 100% !important;
  position: relative !important;
  margin-bottom: 6px !important;
}

.chat-message-row.is-me {
  justify-content: flex-end !important;
}

.chat-message-row.is-other {
  justify-content: flex-start !important;
}

.chat-message-row.is-grouped {
  margin-top: -3px !important;
  margin-bottom: 2px !important;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.chat-sender-name {
  font-size: 12px;
  font-weight: 600;
}

.chat-role-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Chat Bubble Container & Bubbles */
.chat-bubble-container {
  position: relative;
  max-width: 100%;
}

.chat-bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  word-break: break-word;
  min-width: 130px;
  max-width: 620px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-bubble.is-me {
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.18) 0%, rgba(28, 22, 18, 0.98) 100%);
  border: 1px solid rgba(255, 107, 43, 0.38);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 1px rgba(255, 107, 43, 0.3);
}

[data-theme="light"] .chat-bubble.is-me {
  background: #FFF4ED;
  border-color: #FFCABA;
}

.chat-bubble.is-grouped {
  border-top-left-radius: 4px;
}

.chat-bubble.is-me.is-grouped {
  border-top-right-radius: 4px;
}

/* Floating Quick Actions on Hover */
.chat-bubble-actions {
  position: absolute;
  top: -14px;
  right: 10px;
  display: none;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 6px;
  gap: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 10;
}

.chat-message-row.is-me .chat-bubble-actions {
  right: auto;
  left: 10px;
}

.chat-bubble-container:hover .chat-bubble-actions {
  display: flex;
  align-items: center;
}

.chat-bubble-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  border-radius: 4px;
  transition: transform 0.1s ease, background 0.1s ease;
  line-height: 1;
}

.chat-bubble-actions button:hover {
  background: var(--surface-hover);
  transform: scale(1.2);
}

.chat-bubble-highlight {
  animation: chatBubbleFlash 1.6s ease-out;
}

@keyframes chatBubbleFlash {
  0% { box-shadow: 0 0 0 3px var(--accent-primary); transform: scale(1.02); }
  50% { box-shadow: 0 0 0 3px var(--accent-primary); }
  100% { box-shadow: none; transform: scale(1); }
}

/* ==========================================================================
   ✨ FLUID MICRO-INTERACTIONS & TACTILE UX ANIMATIONS
   ========================================================================== */

/* 1. Tactile Button & Element Press Physics */
.tasky-btn {
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
  will-change: transform;
}

.tasky-btn:active:not(:disabled) {
  transform: scale(0.96) translateY(1px) !important;
}

.tasky-btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 14px var(--accent-primary-glow, rgba(46, 111, 243, 0.35));
  transform: translateY(-1px);
}

.tasky-btn-primary:active:not(:disabled) {
  box-shadow: 0 2px 6px var(--accent-primary-glow, rgba(46, 111, 243, 0.2));
}

/* 2. Modal & Dialog Spring-In Physics */
.tasky-modal {
  animation: taskyModalSpringIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

@keyframes taskyModalSpringIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tasky-modal-backdrop {
  animation: taskyBackdropFadeIn 0.22s ease-out forwards;
}

@keyframes taskyBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 3. Interactive Card Hover Lift & Glow */
.tasky-card, .kanban-task-card, .chat-channel-item {
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.chat-channel-item:hover {
  transform: translateX(2px);
}

.chat-channel-item:active {
  transform: scale(0.985);
}

/* 4. Form Field Focus Expansion Ring */
.tasky-input {
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease;
}

.tasky-input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px var(--accent-primary-glow, rgba(46, 111, 243, 0.22)) !important;
}

/* 5. Chat Bubble Incoming/Sent Pop-In */
.chat-message-row {
  animation: chatMsgArrival 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chatMsgArrival {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 6. Success / Action Toast Feedback Pill */
.tasky-toast-pill {
  animation: taskyToastSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes taskyToastSpring {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 7. Toggle Switch Spring Physics */
input[type="checkbox"] {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

input[type="checkbox"]:active {
  transform: scale(0.85);
}

/* ==========================================================================
   Apple iOS 18 & VisionOS Liquid Glass System Materials (Photorealistic Depth Optics)
   ========================================================================== */
/* ==========================================================================
   Apple iOS 18 & VisionOS Liquid Glass System Materials (Photorealistic Depth Optics)
   ========================================================================== */
html[data-theme="liquid-glass"] body,
body[data-theme="liquid-glass"],
[data-theme="liquid-glass"] .fox-main-viewport,
[data-theme="liquid-glass"] .fox-app-container,
.theme-liquid-glass body,
.theme-liquid-glass .fox-main-viewport,
.theme-liquid-glass .fox-app-container {
  background-color: #EDF2F7 !important;
  background-image: 
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(199, 230, 255, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(225, 215, 255, 0.75) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(204, 251, 241, 0.70) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(254, 243, 199, 0.55) 0%, transparent 60%),
    linear-gradient(145deg, #F0F4F9 0%, #E2E8F0 50%, #EDF2F7 100%) !important;
  background-attachment: fixed !important;
  color: #0F172A !important;
}

[data-theme="liquid-glass"] .fox-topbar,
[data-theme="liquid-glass"] .fox-sidebar,
[data-theme="liquid-glass"] .fox-bottom-nav,
.theme-liquid-glass .fox-topbar,
.theme-liquid-glass .fox-sidebar,
.theme-liquid-glass .fox-bottom-nav {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04), inset 0 1px 1px #ffffff !important;
  color: #0F172A !important;
}

[data-theme="liquid-glass"] .fox-nav-item,
.theme-liquid-glass .fox-nav-item {
  color: #334155 !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass"] .fox-nav-item:hover,
.theme-liquid-glass .fox-nav-item:hover {
  background: rgba(255, 255, 255, 0.60) !important;
  color: #007AFF !important;
}

[data-theme="liquid-glass"] .fox-nav-item.active,
.theme-liquid-glass .fox-nav-item.active {
  background: rgba(0, 122, 255, 0.12) !important;
  border: 1px solid rgba(0, 122, 255, 0.28) !important;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.10), inset 0 1px 1px #ffffff !important;
  color: #007AFF !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
}

/* Hero Banner on Dashboard */
[data-theme="liquid-glass"] .hero-banner-mobile,
.theme-liquid-glass .hero-banner-mobile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 246, 255, 0.60) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.08), inset 0 2px 2px #ffffff !important;
  border-radius: 26px !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
}

[data-theme="liquid-glass"] .hero-banner-mobile h1,
[data-theme="liquid-glass"] .hero-banner-mobile span,
[data-theme="liquid-glass"] .hero-banner-mobile strong,
.theme-liquid-glass .hero-banner-mobile h1,
.theme-liquid-glass .hero-banner-mobile span,
.theme-liquid-glass .hero-banner-mobile strong {
  color: #0F172A !important;
}

/* Glass Cards, Panels, Modals and Smartphone Widgets (Apple VisionOS / iOS 18 Depth) */
[data-theme="liquid-glass"] .smartphone-widget-card,
[data-theme="liquid-glass"] .tasky-card,
[data-theme="liquid-glass"] .tasky-panel,
[data-theme="liquid-glass"] .tasky-modal,
[data-theme="liquid-glass"] .widget-card,
[data-theme="liquid-glass"] .kanban-column,
[data-theme="liquid-glass"] .kanban-card,
.theme-liquid-glass .smartphone-widget-card,
.theme-liquid-glass .tasky-card,
.theme-liquid-glass .tasky-panel,
.theme-liquid-glass .tasky-modal,
.theme-liquid-glass .widget-card,
.theme-liquid-glass .kanban-column,
.theme-liquid-glass .kanban-card {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 16px 40px -10px rgba(15, 23, 42, 0.07),
    inset 0 2px 2px #ffffff,
    inset 0 -1px 2px rgba(0, 0, 0, 0.02) !important;
  border-radius: 24px !important;
  color: #0F172A !important;
}

[data-theme="liquid-glass"] .smartphone-widget-card:hover,
[data-theme="liquid-glass"] .tasky-card:hover,
[data-theme="liquid-glass"] .kanban-card:hover,
.theme-liquid-glass .smartphone-widget-card:hover,
.theme-liquid-glass .tasky-card:hover,
.theme-liquid-glass .kanban-card:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: #ffffff !important;
  box-shadow: 
    0 22px 50px -10px rgba(15, 23, 42, 0.12),
    inset 0 2.5px 3px #ffffff,
    inset 0 -1px 2px rgba(0, 0, 0, 0.03) !important;
  transform: translateY(-2px) !important;
}

/* Dashboard Mode Switcher & Segmented Controls */
[data-theme="liquid-glass"] div[style*="background: var(--surface-elevated)"],
.theme-liquid-glass div[style*="background: var(--surface-elevated)"] {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 1px #ffffff !important;
}

[data-theme="liquid-glass"] div[style*="background: var(--surface)"],
.theme-liquid-glass div[style*="background: var(--surface)"] {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 16px !important;
}

/* Quick Action Glass Buttons (VisionOS/iOS App Tiles) */
[data-theme="liquid-glass"] .quick-action-btn,
.theme-liquid-glass .quick-action-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 20px !important;
  color: #0F172A !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04), inset 0 1.5px 2px #ffffff !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="liquid-glass"] .quick-action-btn:hover,
.theme-liquid-glass .quick-action-btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.16), inset 0 1px 2px #ffffff !important;
  color: #007AFF !important;
}

/* Nested Widget Sub-elements (Cleaning up muddy solid containers) */
[data-theme="liquid-glass"] .smartphone-widget-card div[style*="background: var(--surface)"],
[data-theme="liquid-glass"] .smartphone-widget-card div[style*="background: rgba(255,255,255,0.03)"],
[data-theme="liquid-glass"] .smartphone-widget-card div[style*="background: rgba(255,255,255,0.04)"],
[data-theme="liquid-glass"] .smartphone-widget-card div[style*="linear-gradient"],
.theme-liquid-glass .smartphone-widget-card div[style*="background: var(--surface)"],
.theme-liquid-glass .smartphone-widget-card div[style*="background: rgba(255,255,255,0.03)"],
.theme-liquid-glass .smartphone-widget-card div[style*="background: rgba(255,255,255,0.04)"],
.theme-liquid-glass .smartphone-widget-card div[style*="linear-gradient"] {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), inset 0 1px 1px #ffffff !important;
  border-radius: 16px !important;
  color: #0F172A !important;
}

[data-theme="liquid-glass"] .tasky-input,
[data-theme="liquid-glass"] input[type="text"],
[data-theme="liquid-glass"] input[type="search"],
[data-theme="liquid-glass"] textarea.tasky-input,
.theme-liquid-glass .tasky-input,
.theme-liquid-glass input[type="text"],
.theme-liquid-glass input[type="search"],
.theme-liquid-glass textarea.tasky-input {
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    inset 0 1.5px 3px rgba(0, 0, 0, 0.03),
    0 2px 8px rgba(0, 0, 0, 0.02) !important;
  color: #0F172A !important;
  border-radius: 999px !important;
}

[data-theme="liquid-glass"] textarea.tasky-input,
.theme-liquid-glass textarea.tasky-input {
  border-radius: 18px !important;
}

[data-theme="liquid-glass"] .tasky-input::placeholder,
.theme-liquid-glass .tasky-input::placeholder {
  color: #94A3B8 !important;
}

/* Primary Glass Button */
[data-theme="liquid-glass"] .tasky-btn-primary,
.theme-liquid-glass .tasky-btn-primary {
  background: linear-gradient(135deg, #007AFF 0%, #0056D2 100%) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35) !important;
  border-radius: 999px !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="liquid-glass"] .tasky-btn-primary:hover,
.theme-liquid-glass .tasky-btn-primary:hover {
  background: linear-gradient(135deg, #0A84FF 0%, #0066E6 100%) !important;
  box-shadow: 0 6px 22px rgba(0, 122, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Secondary & Ghost Glass Buttons */
[data-theme="liquid-glass"] .tasky-btn-secondary,
[data-theme="liquid-glass"] .tasky-btn-ghost,
.theme-liquid-glass .tasky-btn-secondary,
.theme-liquid-glass .tasky-btn-ghost {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03), inset 0 1px 1px #ffffff !important;
  border-radius: 999px !important;
  color: #0F172A !important;
  transition: all 0.2s ease !important;
}

[data-theme="liquid-glass"] .tasky-btn-secondary:hover,
[data-theme="liquid-glass"] .tasky-btn-ghost:hover,
.theme-liquid-glass .tasky-btn-secondary:hover,
.theme-liquid-glass .tasky-btn-ghost:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #007AFF !important;
  transform: translateY(-1px) !important;
}

[data-theme="liquid-glass"] .chat-pane-detail,
[data-theme="liquid-glass"] #chat-pane-detail-container,
.theme-liquid-glass .chat-pane-detail,
.theme-liquid-glass #chat-pane-detail-container {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.85) !important;
}

[data-theme="liquid-glass"] .chat-bubble.is-other,
.theme-liquid-glass .chat-bubble.is-other {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), inset 0 1px 1px #ffffff !important;
  border-radius: 20px !important;
  color: #0F172A !important;
}

[data-theme="liquid-glass"] .chat-bubble.is-me,
.theme-liquid-glass .chat-bubble.is-me {
  background: linear-gradient(135deg, #007AFF 0%, #0056D2 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35) !important;
  border-radius: 20px !important;
  color: #FFFFFF !important;
}

[data-theme="liquid-glass"] .tasky-badge,
.theme-liquid-glass .tasky-badge {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.90) !important;
  box-shadow: inset 0 1px 1px #ffffff !important;
  color: #0F172A !important;
  border-radius: 999px !important;
}

/* ==========================================================================
   Apple VisionOS & iOS 18 Liquid Glass DARK System Materials
   ========================================================================== */
html[data-theme="liquid-glass-dark"] body,
body[data-theme="liquid-glass-dark"],
[data-theme="liquid-glass-dark"] .fox-main-viewport,
[data-theme="liquid-glass-dark"] .fox-app-container,
.theme-liquid-glass-dark body,
.theme-liquid-glass-dark .fox-main-viewport,
.theme-liquid-glass-dark .fox-app-container {
  background-color: #070A11 !important;
  background-image: 
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(10, 132, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(94, 92, 230, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(48, 209, 88, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(255, 159, 10, 0.09) 0%, transparent 60%),
    linear-gradient(145deg, #05070D 0%, #0B0F19 50%, #080C14 100%) !important;
  background-attachment: fixed !important;
  color: #F8FAFC !important;
}

[data-theme="liquid-glass-dark"] .fox-topbar,
[data-theme="liquid-glass-dark"] .fox-sidebar,
[data-theme="liquid-glass-dark"] .fox-bottom-nav,
.theme-liquid-glass-dark .fox-topbar,
.theme-liquid-glass-dark .fox-sidebar,
.theme-liquid-glass-dark .fox-bottom-nav {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(14, 19, 31, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
}

[data-theme="liquid-glass-dark"] .fox-nav-item,
.theme-liquid-glass-dark .fox-nav-item {
  color: #94A3B8 !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass-dark"] .fox-nav-item:hover,
.theme-liquid-glass-dark .fox-nav-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #38BDF8 !important;
}

[data-theme="liquid-glass-dark"] .fox-nav-item.active,
.theme-liquid-glass-dark .fox-nav-item.active {
  background: rgba(10, 132, 255, 0.18) !important;
  border: 1px solid rgba(10, 132, 255, 0.38) !important;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  color: #64D2FF !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass-dark"] .hero-banner-mobile,
.theme-liquid-glass-dark .hero-banner-mobile {
  background: linear-gradient(135deg, rgba(24, 32, 52, 0.75) 0%, rgba(14, 19, 31, 0.85) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5), inset 0 1.5px 2px rgba(255, 255, 255, 0.15) !important;
  border-radius: 26px !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
}

[data-theme="liquid-glass-dark"] .hero-banner-mobile h1,
[data-theme="liquid-glass-dark"] .hero-banner-mobile span,
[data-theme="liquid-glass-dark"] .hero-banner-mobile strong,
.theme-liquid-glass-dark .hero-banner-mobile h1,
.theme-liquid-glass-dark .hero-banner-mobile span,
.theme-liquid-glass-dark .hero-banner-mobile strong {
  color: #F8FAFC !important;
}

[data-theme="liquid-glass-dark"] .smartphone-widget-card,
[data-theme="liquid-glass-dark"] .tasky-card,
[data-theme="liquid-glass-dark"] .tasky-panel,
[data-theme="liquid-glass-dark"] .tasky-modal,
[data-theme="liquid-glass-dark"] .widget-card,
[data-theme="liquid-glass-dark"] .kanban-column,
[data-theme="liquid-glass-dark"] .kanban-card,
.theme-liquid-glass-dark .smartphone-widget-card,
.theme-liquid-glass-dark .tasky-card,
.theme-liquid-glass-dark .tasky-panel,
.theme-liquid-glass-dark .tasky-modal,
.theme-liquid-glass-dark .widget-card,
.theme-liquid-glass-dark .kanban-column,
.theme-liquid-glass-dark .kanban-card {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(18, 24, 38, 0.70) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 
    0 16px 40px -10px rgba(0, 0, 0, 0.45),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
  border-radius: 24px !important;
  color: #F8FAFC !important;
}

[data-theme="liquid-glass-dark"] .smartphone-widget-card:hover,
[data-theme="liquid-glass-dark"] .tasky-card:hover,
[data-theme="liquid-glass-dark"] .kanban-card:hover,
.theme-liquid-glass-dark .smartphone-widget-card:hover,
.theme-liquid-glass-dark .tasky-card:hover,
.theme-liquid-glass-dark .kanban-card:hover {
  background: rgba(26, 35, 56, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 22px 50px -10px rgba(0, 0, 0, 0.6),
    inset 0 2px 3px rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px) !important;
}

[data-theme="liquid-glass-dark"] .tasky-input,
[data-theme="liquid-glass-dark"] input[type="text"],
[data-theme="liquid-glass-dark"] input[type="search"],
[data-theme="liquid-glass-dark"] textarea.tasky-input,
.theme-liquid-glass-dark .tasky-input,
.theme-liquid-dark .tasky-input {
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  background: rgba(14, 19, 31, 0.65) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  color: #F8FAFC !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass-dark"] .tasky-input:focus,
[data-theme="liquid-glass-dark"] input[type="text"]:focus,
[data-theme="liquid-glass-dark"] input[type="search"]:focus,
[data-theme="liquid-glass-dark"] textarea.tasky-input:focus,
.theme-liquid-glass-dark .tasky-input:focus {
  background: rgba(20, 27, 44, 0.8) !important;
  border-color: #0A84FF !important;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25) !important;
}

[data-theme="liquid-glass-dark"] .tasky-btn-primary,
.theme-liquid-glass-dark .tasky-btn-primary {
  background: linear-gradient(135deg, #0A84FF 0%, #0056D2 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass-dark"] .tasky-btn-secondary,
[data-theme="liquid-glass-dark"] .tasky-btn-ghost,
.theme-liquid-glass-dark .tasky-btn-secondary,
.theme-liquid-glass-dark .tasky-btn-ghost {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  border-radius: 14px !important;
}

[data-theme="liquid-glass-dark"] .tasky-btn-secondary:hover,
[data-theme="liquid-glass-dark"] .tasky-btn-ghost:hover,
.theme-liquid-glass-dark .tasky-btn-secondary:hover,
.theme-liquid-glass-dark .tasky-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #64D2FF !important;
  transform: translateY(-1px) !important;
}

[data-theme="liquid-glass-dark"] .chat-pane-detail,
[data-theme="liquid-glass-dark"] #chat-pane-detail-container,
.theme-liquid-glass-dark .chat-pane-detail,
.theme-liquid-glass-dark #chat-pane-detail-container {
  backdrop-filter: blur(35px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(190%) !important;
  background: rgba(14, 19, 31, 0.75) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="liquid-glass-dark"] .chat-bubble.is-other,
.theme-liquid-glass-dark .chat-bubble.is-other {
  background: rgba(28, 36, 56, 0.8) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  color: #F8FAFC !important;
}

[data-theme="liquid-glass-dark"] .chat-bubble.is-me,
.theme-liquid-glass-dark .chat-bubble.is-me {
  background: linear-gradient(135deg, #0A84FF 0%, #0056D2 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35) !important;
  border-radius: 20px !important;
  color: #FFFFFF !important;
}

[data-theme="liquid-glass-dark"] .tasky-badge,
.theme-liquid-glass-dark .tasky-badge {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  color: #F8FAFC !important;
  border-radius: 999px !important;
}



