/* ============================================================
   DEVFLOW — "Midnight Violet" Design System
   Deep glass panels · Violet gradient · Glow accents
   ============================================================ */

:root {
  /* ── Backgrounds ── */
  --bg-app:      #05050A;
  --bg-sidebar:  rgba(8, 8, 15, 0.97);
  --bg-surface:  rgba(255,255,255,0.028);
  --bg-elevated: rgba(255,255,255,0.045);
  --bg-hover:    rgba(255,255,255,0.055);
  --bg-selected: rgba(124,58,237,0.12);
  --bg-overlay:  rgba(0,0,0,0.72);

  /* ── Borders ── */
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --border-focus: #7C3AED;

  /* ── Text ── */
  --text-primary:   #EEEEFA;
  --text-secondary: #8A8AA8;
  --text-tertiary:  #484860;
  --text-link:      #A78BFA;

  /* ── Accent palette ── */
  --accent:        #7C3AED;
  --accent-hover:  #8B5CF6;
  --accent-dim:    rgba(124,58,237,0.3);
  --accent-subtle: rgba(124,58,237,0.09);
  --gradient:      linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(99,102,241,0.10) 100%);
  --gradient-text: linear-gradient(100deg, #C084FC 0%, #818CF8 60%, #38BDF8 100%);
  --glow-accent:   0 0 22px rgba(124,58,237,0.38);
  --glow-accent-lg:0 0 40px rgba(124,58,237,0.3), 0 0 80px rgba(99,102,241,0.15);

  /* ── Status colors ── */
  --status-backlog:     #5C5C7A;
  --status-todo:        #9898B8;
  --status-in-progress: #7C3AED;
  --status-in-review:   #C084FC;
  --status-done:        #10D9A0;
  --status-cancelled:   #F87171;

  /* ── Priority colors ── */
  --priority-urgent: #F87171;
  --priority-high:   #FB923C;
  --priority-medium: #FBBF24;
  --priority-low:    #818CF8;
  --priority-none:   #5C5C7A;

  /* ── Tokens ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --sidebar-width: 248px;
  --header-height: 54px;
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 90ms ease;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background gradient orbs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124,58,237,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(99,102,241,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
#app { position: relative; z-index: 1; }

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
svg { display: block; flex-shrink: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   APP SHELL
   ============================================================ */
#app { display: flex; height: 100vh; overflow: hidden; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  backdrop-filter: blur(40px) saturate(1.6);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.workspace-selector {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  flex: 1;
  min-width: 0;
  transition: background var(--transition);
}
.workspace-selector:hover { background: var(--bg-hover); }

.workspace-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--glow-accent), 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

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

.chevron-icon { width: 14px; height: 14px; color: var(--text-tertiary); margin-left: auto; }

/* ── Nav ── */
.sidebar-nav { padding: 10px 8px 6px; flex-shrink: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-item svg { width: 15px; height: 15px; opacity: 0.75; transition: opacity var(--transition); }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item:hover svg { opacity: 1; }

.nav-item.active {
  background: var(--bg-selected);
  color: #C084FC;
  box-shadow: inset 3px 0 0 #7C3AED;
}
.nav-item.active svg { opacity: 1; color: #A78BFA; }
.nav-item.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
}

/* ── Sidebar section ── */
.sidebar-section { padding: 14px 8px 8px; flex: 1; overflow-y: auto; }

.sidebar-section-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0 10px 8px;
}

.sidebar-project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.sidebar-project-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-project-item.active { background: var(--bg-selected); color: var(--text-primary); box-shadow: inset 3px 0 0 #7C3AED; }

.project-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sidebar-project-count { margin-left: auto; font-size: 10px; color: var(--text-tertiary); background: var(--bg-elevated); padding: 1px 6px; border-radius: 8px; }

/* ── Sidebar bottom ── */
.sidebar-bottom { padding: 8px; border-top: 1px solid var(--border); flex-shrink: 0; }

.user-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition);
}
.user-profile:hover { background: var(--bg-hover); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: var(--gradient);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(124,58,237,0.3);
}
.user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-name { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-profile { cursor: pointer; }
.user-edit-icon { color: var(--text-tertiary); opacity: 0; flex-shrink: 0; margin-left: auto; transition: opacity var(--transition); }
.user-profile:hover .user-edit-icon { opacity: 1; }

.logout-btn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--text-tertiary);
  font-family: var(--font);
  transition: background var(--transition), color var(--transition);
  margin-top: 2px;
}
.logout-btn:hover { background: rgba(248,113,113,0.08); color: var(--status-cancelled); }

/* ============================================================
   MAIN AREA
   ============================================================ */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* ── Header ── */
#header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  background: rgba(5,5,10,0.85);
  backdrop-filter: blur(20px);
  gap: 16px;
}

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

#page-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Search bar ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 10px;
  height: 32px;
  cursor: pointer;
  transition: all var(--transition);
}
.search-bar:hover { border-color: var(--border-hover); background: var(--bg-hover); }
.search-bar svg { width: 13px; height: 13px; color: var(--text-tertiary); }
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text-secondary); font-size: 13px; width: 150px; cursor: pointer;
}
.search-bar input::placeholder { color: var(--text-tertiary); }
.search-kbd {
  font-size: 10px; color: var(--text-tertiary);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn svg { width: 13px; height: 13px; }

.btn-primary {
  background: var(--gradient);
  color: white;
  border: none;
  box-shadow: var(--glow-accent), 0 1px 3px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(124,58,237,0.5), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border); }

.btn-focus {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 12px;
}
.btn-focus:hover { background: var(--accent-subtle); border-color: var(--accent-dim); color: #A78BFA; }

.icon-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ============================================================
   CONTENT
   ============================================================ */
#content { flex: 1; overflow: auto; }
.loading { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text-tertiary); font-size: 13px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard { padding: 28px; max-width: 1200px; }

.dashboard-greeting { margin-bottom: 28px; }
.dashboard-greeting h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.dashboard-greeting p { font-size: 14px; color: var(--text-secondary); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover { border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.04); transform: translateY(-1px); }
.stat-card:hover::before { opacity: 1; }

.stat-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 6px; letter-spacing: -1px; }
.stat-change { font-size: 12px; color: var(--status-done); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dashboard-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition);
}
.dashboard-section:hover { border-color: var(--border-hover); }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.section-header h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.2px; }
.section-header a { font-size: 12px; color: var(--text-secondary); transition: color var(--transition); }
.section-header a:hover { color: #A78BFA; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; flex-shrink: 0;
  background: rgba(5,5,10,0.7);
  backdrop-filter: blur(10px);
}

.filter-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; height: 26px;
  border-radius: 20px; font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-subtle); border-color: var(--accent-dim); color: #A78BFA; }
.filter-btn svg { width: 12px; height: 12px; }
.filter-spacer { flex: 1; }

/* ============================================================
   ISSUES VIEW
   ============================================================ */
.issues-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.issues-list { flex: 1; overflow: auto; }

.issue-group { border-bottom: 1px solid var(--border); }

.issue-group-header {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: rgba(5,5,10,0.8);
  cursor: pointer; position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: background var(--transition);
}
.issue-group-header:hover { background: rgba(124,58,237,0.04); }

.group-toggle { width: 14px; height: 14px; color: var(--text-tertiary); transition: transform var(--transition); }
.group-toggle.collapsed { transform: rotate(-90deg); }
.group-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.group-count { font-size: 11px; color: var(--text-tertiary); background: var(--bg-elevated); padding: 1px 7px; border-radius: 10px; margin-left: 4px; }

.issue-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 40px;
  cursor: pointer; transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.035);
  position: relative;
}
.issue-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.issue-row:hover { background: rgba(255,255,255,0.022); }
.issue-row:hover::before { opacity: 1; }
.issue-row:hover .issue-actions { opacity: 1; }

.issue-priority-icon { width: 14px; height: 14px; flex-shrink: 0; }
.issue-status-icon { width: 15px; height: 15px; flex-shrink: 0; }
.issue-id { font-size: 11px; color: var(--text-tertiary); font-family: 'SF Mono', 'Monaco', monospace; min-width: 54px; flex-shrink: 0; }
.issue-title { flex: 1; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.issue-labels { display: flex; gap: 4px; flex-shrink: 0; }

.label-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.07); white-space: nowrap;
}

.issue-project-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-secondary);
  padding: 2px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; flex-shrink: 0;
}
.issue-project-badge .dot { width: 6px; height: 6px; border-radius: 1.5px; flex-shrink: 0; }

.issue-assignee {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
  background: var(--gradient); flex-shrink: 0;
}

.issue-date { font-size: 11px; color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0; min-width: 68px; text-align: right; }
.issue-date.overdue { color: var(--status-cancelled); }

.issue-actions { display: flex; gap: 2px; opacity: 0; transition: opacity var(--transition); flex-shrink: 0; }
.issue-action-btn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-secondary);
  transition: all var(--transition); font-size: 11px;
}
.issue-action-btn svg { width: 13px; height: 13px; }
.issue-action-btn:hover { background: var(--bg-selected); color: var(--text-primary); }

/* ============================================================
   PROJECTS VIEW
   ============================================================ */
.projects-view { padding: 28px; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.project-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,58,237,0.12); }
.project-card:hover::after { opacity: 1; }

.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.project-card-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: white; }

.project-card h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.2px; }
.project-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px; min-height: 36px; }

.project-progress-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.project-progress-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }

.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); }

/* ============================================================
   GANTT CHART
   ============================================================ */
.gantt-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.gantt-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: rgba(5,5,10,0.8);
  backdrop-filter: blur(10px);
}

.gantt-container { flex: 1; display: flex; overflow: hidden; }
.gantt-left { width: 280px; min-width: 280px; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.gantt-left-header { height: 68px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; padding: 0 12px 8px; flex-shrink: 0; background: rgba(5,5,10,0.8); }
.gantt-left-header span { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.07em; }
.gantt-task-list { flex: 1; overflow-y: auto; overflow-x: hidden; }

.gantt-task-row {
  height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition); flex-shrink: 0;
}
.gantt-task-row:hover { background: var(--bg-hover); }
.gantt-task-title { flex: 1; font-size: 12px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.gantt-right { flex: 1; overflow: auto; position: relative; }

.gantt-header { position: sticky; top: 0; z-index: 5; background: rgba(5,5,10,0.9); border-bottom: 1px solid var(--border); flex-shrink: 0; backdrop-filter: blur(10px); }
.gantt-months-row { display: flex; height: 34px; border-bottom: 1px solid var(--border); }
.gantt-month-cell { border-right: 1px solid var(--border); display: flex; align-items: center; padding: 0 12px; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.gantt-days-row { display: flex; height: 34px; }
.gantt-day-cell { border-right: 1px solid rgba(255,255,255,0.035); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-tertiary); flex-shrink: 0; }
.gantt-day-cell.weekend { background: rgba(255,255,255,0.01); }
.gantt-day-cell.today { background: rgba(124,58,237,0.12); color: #A78BFA; font-weight: 600; }

.gantt-body { position: relative; }
.gantt-body-row { height: 44px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.03); flex-shrink: 0; }
.gantt-body-row:hover { background: rgba(255,255,255,0.012); }

.gantt-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.03); pointer-events: none; }
.gantt-grid-line.weekend { background: rgba(255,255,255,0.02); width: 100%; }
.gantt-grid-line.today-line { background: rgba(124,58,237,0.5); width: 2px; z-index: 3; }

.gantt-bar {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 26px; border-radius: 5px;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; color: white; font-weight: 500;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  z-index: 2; min-width: 4px;
  transition: opacity var(--transition), filter var(--transition), box-shadow var(--transition);
}
.gantt-bar:hover { opacity: 0.9; filter: brightness(1.15); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.gantt-bar.status-done { opacity: 0.5; }
.gantt-bar.status-cancelled { opacity: 0.3; text-decoration: line-through; }

.gantt-today-marker { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gradient); opacity: 0.7; z-index: 4; pointer-events: none; }
.gantt-today-marker::before { content: 'Today'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #A78BFA; font-weight: 600; white-space: nowrap; }

/* ============================================================
   ANALYTICS VIEW
   ============================================================ */
.analytics-view { padding: 28px; overflow-y: auto; height: 100%; }

.analytics-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient);
  opacity: 0.35;
}
.kpi-card:hover { border-color: rgba(124,58,237,0.3); }

.kpi-label { font-size: 10px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.kpi-value { font-size: 32px; font-weight: 800; line-height: 1; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -1px; }
.kpi-sub { font-size: 12px; color: var(--text-tertiary); }
.kpi-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.kpi-bar > div { height: 100%; border-radius: 2px; transition: width 0.7s ease; }

.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.chart-card:hover { border-color: rgba(124,58,237,0.25); }
.chart-card.chart-full { grid-column: 1 / -1; }

.chart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.chart-header h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.2px; }
.chart-sub { font-size: 11px; color: var(--text-tertiary); }
.chart-body { padding: 16px 18px 14px; overflow: hidden; }

.donut-layout { display: flex; align-items: center; gap: 20px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--text-secondary); }
.legend-val { font-weight: 600; color: var(--text-primary); min-width: 24px; text-align: right; }

/* ============================================================
   KANBAN BOARD
   ============================================================ */
.board-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.board-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; flex-wrap: wrap;
  background: rgba(5,5,10,0.8); backdrop-filter: blur(10px);
}

.board-columns { flex: 1; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 16px; }

.board-column {
  width: 264px; min-width: 264px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  overflow: hidden; max-height: 100%;
  transition: border-color var(--transition);
}
.board-column.drag-over {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 20px rgba(124,58,237,0.15);
}

.board-col-header {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 13px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.col-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); flex: 1; }
.col-count { font-size: 10px; color: var(--text-tertiary); background: var(--bg-elevated); padding: 1px 6px; border-radius: 8px; }
.col-add-btn { opacity: 0; width: 22px; height: 22px; transition: opacity var(--transition); }
.col-add-btn svg { width: 12px; height: 12px; }
.board-col-header:hover .col-add-btn { opacity: 1; }

.board-cards { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }

.board-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 11px 13px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.board-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(124,58,237,0.1);
}

.board-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.board-card-id { font-size: 10px; color: var(--text-tertiary); font-family: 'SF Mono', monospace; }
.board-card-title { font-size: 13px; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; font-weight: 500; }
.board-card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.board-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-card-project { font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.board-card-date { font-size: 10px; color: var(--text-tertiary); }
.board-card-date.overdue { color: var(--status-cancelled); }

/* ============================================================
   MODAL
   ============================================================ */
#modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(8px);
}
#modal-overlay.hidden { display: none; }

#modal {
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  width: 640px; max-width: 95vw; max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), var(--glow-accent-lg);
  animation: modal-in 150ms cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(40px);
}

@keyframes modal-in {
  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: 18px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, transparent 100%);
}
.modal-header h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }

.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px; border-top: 1px solid var(--border); flex-shrink: 0;
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 13px; padding: 9px 12px;
  outline: none; transition: border-color var(--transition); width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-tertiary); }
.form-input-lg { font-size: 16px; padding: 11px 14px; font-weight: 600; }
.form-textarea { resize: vertical; min-height: 64px; }
.form-select { cursor: pointer; }
.form-select option { background: #0D0D16; }

/* ============================================================
   CONTEXT MENU
   ============================================================ */
.context-menu {
  position: fixed;
  background: rgba(12,12,20,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 5px;
  min-width: 190px;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), var(--glow-accent);
  animation: ctx-in 100ms cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(40px);
}
.context-menu.hidden { display: none; }

@keyframes ctx-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.ctx-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.ctx-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.ctx-item.danger:hover { background: rgba(248,113,113,0.12); color: var(--status-cancelled); }
.ctx-item svg { width: 13px; height: 13px; }
.ctx-separator { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 26px; right: 26px;
  background: rgba(12,12,20,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  font-size: 13px; color: var(--text-primary);
  z-index: 300; backdrop-filter: blur(40px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), var(--glow-accent);
  animation: toast-in 200ms cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center; gap: 9px;
}
.toast.hidden { display: none; }
.toast.success::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--status-done); flex-shrink: 0; box-shadow: 0 0 8px var(--status-done); }
.toast.error::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--status-cancelled); flex-shrink: 0; box-shadow: 0 0 8px var(--status-cancelled); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; color: var(--text-tertiary); text-align: center; }
.empty-state svg { width: 40px; height: 40px; opacity: 0.2; margin-bottom: 16px; }
.empty-state h3 { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; }

/* ============================================================
   MINI ISSUE ROWS (dashboard)
   ============================================================ */
.mini-issue-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: all var(--transition); font-size: 12px;
}
.mini-issue-row:last-child { border-bottom: none; }
.mini-issue-row:hover { background: var(--bg-hover); }
.mini-issue-row .title { flex: 1; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-issue-row .meta { color: var(--text-tertiary); flex-shrink: 0; }

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.project-detail-header { display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.project-detail-icon { width: 42px; height: 42px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: white; }
.project-detail-info h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.project-detail-info p { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

/* ============================================================
   PRO BADGE
   ============================================================ */
.nav-pro-badge {
  margin-left: auto; font-size: 9px; font-weight: 700;
  letter-spacing: 0.07em;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  border: 1px solid var(--accent-dim);
  border-radius: 4px; padding: 1px 5px;
}

/* ============================================================
   FOCUS CTA (sidebar)
   ============================================================ */
.sidebar-focus-cta {
  margin: 6px 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 10px;
  flex-shrink: 0;
}
.focus-cta-inner { display: flex; align-items: center; gap: 8px; }
.focus-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.focus-cta-title { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.focus-cta-sub { font-size: 10px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.focus-cta-btn {
  margin-left: auto; width: 28px; height: 28px;
  border-radius: var(--radius-md);
  background: var(--gradient); border: none;
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition); flex-shrink: 0;
  box-shadow: var(--glow-accent);
}
.focus-cta-btn:hover { opacity: 0.85; }

/* ============================================================
   HEALTH INDICATOR
   ============================================================ */
.health-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; cursor: help;
  transition: transform var(--transition); box-shadow: 0 0 4px currentColor;
}
.issue-row:hover .health-dot { transform: scale(1.5); }

/* ============================================================
   STANDUP WIDGET
   ============================================================ */
.standup-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.standup-section { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.standup-section:last-child { border-bottom: none; }
.standup-emoji { font-size: 14px; line-height: 1.5; flex-shrink: 0; }
.standup-heading { font-size: 10px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.standup-item { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }

/* ============================================================
   DEPENDENCY GRAPH VIEW
   ============================================================ */
.dep-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.dep-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: rgba(5,5,10,0.8); backdrop-filter: blur(10px);
}
.dep-canvas-wrap { flex: 1; overflow: hidden; position: relative; }
#dep-canvas { display: block; }

.dep-legend {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(10,10,18,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.dep-legend-row { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--text-secondary); }

/* ============================================================
   FOCUS MODE OVERLAY
   ============================================================ */
.focus-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 30%, #0D0819 0%, #050508 60%, #050509 100%);
  z-index: 500;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.focus-overlay.hidden { display: none; }
.focus-overlay:not(.hidden) { animation: focus-in 300ms cubic-bezier(0.4,0,0.2,1); }
@keyframes focus-in { from { opacity:0; transform:scale(0.98); } to { opacity:1; transform:scale(1); } }

.focus-topbar {
  position: absolute; top: 22px; left: 26px; right: 26px;
  display: flex; align-items: center; justify-content: space-between;
}
.focus-topbar-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); color: var(--text-tertiary);
  font-size: 12px; padding: 6px 13px; cursor: pointer; font-family: var(--font);
  transition: all var(--transition);
}
.focus-topbar-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text-secondary); }
.focus-topbar-end:hover { border-color: rgba(248,113,113,0.4); color: #F87171; }

.focus-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.focus-task-info { text-align: center; }
.focus-task-label { font-size: 11px; color: rgba(255,255,255,0.18); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.focus-task-title { font-size: 22px; font-weight: 700; color: #EEEEFA; max-width: 440px; line-height: 1.35; letter-spacing: -0.5px; }
.focus-task-proj { font-size: 13px; color: rgba(255,255,255,0.28); margin-top: 8px; }

.focus-duration-row {
  display: flex; align-items: center; gap: 10px;
  transition: opacity 0.3s ease;
}
.focus-dur-step {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 15px; cursor: pointer;
  font-family: var(--font); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.focus-dur-step:hover { background: rgba(255,255,255,0.12); color: #EEEEFA; }
.focus-dur-display { display: flex; align-items: baseline; gap: 5px; }
.focus-dur-input {
  width: 52px; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #EEEEFA; font-size: 22px; font-weight: 700; font-family: var(--font);
  text-align: center; outline: none; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.focus-dur-input::-webkit-outer-spin-button,
.focus-dur-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.focus-dur-input:focus { border-bottom-color: var(--accent); }
.focus-dur-unit { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 500; }

.focus-ring-wrap { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
.focus-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 28px rgba(124,58,237,0.4)); }
.focus-ring-center { position: relative; text-align: center; z-index: 1; }

.focus-time { font-size: 46px; font-weight: 800; color: #EEEEFA; letter-spacing: -2.5px; font-variant-numeric: tabular-nums; line-height: 1; }

.focus-controls { display: flex; align-items: center; gap: 10px; }
.focus-btn { display: flex; align-items: center; gap: 8px; padding: 0 30px; height: 48px; border-radius: 24px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all var(--transition); }
.focus-btn-main { background: var(--gradient); color: white; border: none; box-shadow: var(--glow-accent-lg); }
.focus-btn-main:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(124,58,237,0.6); }

.focus-sound-row {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px; padding: 6px 10px;
}
.sound-btn {
  min-width: 40px; height: auto; padding: 5px 7px;
  border-radius: 8px; border: 1px solid transparent;
  background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all var(--transition); opacity: 0.7;
}
.sound-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.sound-btn.active { opacity: 1; background: rgba(124,58,237,0.25); border-color: rgba(124,58,237,0.5); box-shadow: 0 0 12px rgba(124,58,237,0.35); }
.sound-emoji { font-size: 17px; line-height: 1; }
.sound-label { font-size: 8px; color: rgba(255,255,255,0.45); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.sound-btn.active .sound-label { color: #C084FC; }
.sound-vol-wrap {
  display: flex; align-items: center; gap: 7px;
  margin-left: 4px; padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.sound-vol {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 3px; border-radius: 2px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #7C3AED 0%, #7C3AED 45%, rgba(255,255,255,0.15) 45%);
}
.sound-vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: #EEEEFA; cursor: pointer; box-shadow: 0 0 6px rgba(124,58,237,0.6);
}

.focus-tip { font-size: 11px; color: rgba(255,255,255,0.15); }
.focus-tip kbd { font-size: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 1px 5px; color: rgba(255,255,255,0.22); }

/* ---- Mini widget ---- */
.focus-mini {
  position: fixed; bottom: 22px; right: 22px; z-index: 600;
  display: flex; align-items: center; gap: 8px;
  background: rgba(13,8,25,0.92); border: 1px solid rgba(124,58,237,0.35);
  border-radius: 28px; padding: 7px 12px 7px 10px;
  backdrop-filter: blur(16px); box-shadow: 0 4px 28px rgba(0,0,0,0.6), 0 0 20px rgba(124,58,237,0.15);
  font-family: var(--font);
}
.focus-mini.hidden { display: none; }
.mini-icon { background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.mini-time { font-size: 15px; font-weight: 700; color: #EEEEFA; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; min-width: 44px; text-align: center; }
.mini-play {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--accent); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.mini-play:hover { transform: scale(1.1); background: #6D28D9; }
.mini-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.1); margin: 0 2px; }
.mini-end {
  background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer;
  font-size: 13px; padding: 2px 3px; transition: color var(--transition);
}
.mini-end:hover { color: #F87171; }

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
}
.cmd-overlay.hidden { display: none; }
.cmd-overlay:not(.hidden) { animation: cmd-in 130ms cubic-bezier(0.4,0,0.2,1); }
@keyframes cmd-in { from { opacity:0; transform:translateY(-14px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }

.cmd-modal {
  background: rgba(10,10,18,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  width: 560px; max-width: 94vw; max-height: 62vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), var(--glow-accent-lg);
  backdrop-filter: blur(40px);
}

.cmd-search-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
  background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, transparent 100%);
}
.cmd-input { flex: 1; background: none; border: none; outline: none; font-size: 15px; color: var(--text-primary); font-family: var(--font); font-weight: 500; }
.cmd-input::placeholder { color: rgba(255,255,255,0.2); }
.cmd-esc { font-size: 10px; color: var(--text-tertiary); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 2px 6px; flex-shrink: 0; }

.cmd-list { flex: 1; overflow-y: auto; padding: 6px; }
.cmd-section-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 0.09em; padding: 8px 10px 4px; }
.cmd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition); }
.cmd-item:hover, .cmd-item.selected { background: rgba(124,58,237,0.1); }
.cmd-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-secondary); }
.cmd-label { flex: 1; font-size: 13px; color: var(--text-primary); }
.cmd-hint { font-size: 10px; color: var(--text-tertiary); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 3px; padding: 1px 5px; flex-shrink: 0; }
.cmd-empty { padding: 28px; text-align: center; font-size: 13px; color: var(--text-tertiary); }

.cmd-footer {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 16px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: rgba(255,255,255,0.2); flex-shrink: 0;
}
.cmd-footer kbd { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); border-radius: 3px; padding: 1px 4px; font-size: 10px; margin-right: 3px; }

/* ============================================================
   PROJECT MODAL
   ============================================================ */
.proj-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.proj-modal-overlay.hidden { display: none; }
.proj-modal-box {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), var(--glow-accent-lg);
  font-family: var(--font);
}

/* Modal multi-assignee pills */
.modal-assignees-wrap {
  display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px;
}
.modal-assignee-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 5px; border-radius: 20px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.35);
  font-size: 12px; color: var(--text-primary); font-family: var(--font);
}
.modal-assignee-pill-av {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white;
}
.modal-assignee-pill-rm {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; padding: 0; line-height: 1; font-size: 12px;
  transition: color var(--transition);
}
.modal-assignee-pill-rm:hover { color: var(--status-cancelled); }

/* Modal section separators and titles */
.modal-sep { height: 1px; background: var(--border); margin: 4px 0; }
.modal-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em;
}
.modal-section-badge {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: rgba(124,58,237,0.12); border-radius: 10px;
  padding: 1px 7px;
}

/* Checklist */
.checklist-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-cb {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent; cursor: pointer; flex-shrink: 0; appearance: none;
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: all var(--transition);
}
.checklist-cb:checked { background: var(--accent); border-color: var(--accent); }
.checklist-cb:checked::after { content:'✓'; position:absolute; color:white; font-size:10px; font-weight:700; }
.checklist-text { flex: 1; font-size: 13px; color: var(--text-primary); }
.checklist-text.done { text-decoration: line-through; color: var(--text-tertiary); }
.checklist-del {
  background: none; border: none; color: rgba(255,255,255,0.15);
  cursor: pointer; padding: 2px 4px; font-size: 13px; transition: color var(--transition);
}
.checklist-del:hover { color: var(--status-cancelled); }
.checklist-add-row { display: flex; gap: 6px; margin-top: 6px; }

/* Comments */
.comment-item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-item:last-child { border-bottom: none; }
.comment-av {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-author { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.comment-date { font-size: 11px; color: var(--text-tertiary); }
.comment-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; }
.comment-del {
  background: none; border: none; color: rgba(255,255,255,0.1);
  cursor: pointer; padding: 2px 4px; font-size: 12px; transition: color var(--transition); align-self: flex-start;
}
.comment-del:hover { color: var(--status-cancelled); }
.comment-add-row { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* Small button variant */
.btn-sm { padding: 0 12px; height: 30px; font-size: 12px; }

/* Date picker icon — make the calendar icon white */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.7);
  cursor: pointer;
  opacity: 0.6;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Project card actions (edit/delete on hover) */
.project-card-actions {
  position: absolute; top: 14px; right: 12px;
  display: none; gap: 4px; align-items: center;
}
.project-card:hover .project-card-actions { display: flex; }

/* ── Workspace Overlay ── */
.ws-overlay {
  position: fixed; inset: 0;
  background: var(--bg-app);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
}
.ws-overlay.hidden { display: none; }

/* Workspace picker list */
.ws-picker-list { display: flex; flex-direction: column; gap: 8px; }
.ws-picker-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; text-align: left;
  transition: border-color var(--transition), background var(--transition);
  color: var(--text-primary);
}
.ws-picker-item:hover { border-color: var(--accent); background: var(--bg-hover); }
.ws-picker-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ws-picker-info { flex: 1; }
.ws-picker-name { font-size: 14px; font-weight: 500; }
.ws-picker-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ── Admin Panel ── */
.admin-view { padding: 0 0 40px; }
.admin-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.admin-heading { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.admin-workspaces { display: flex; flex-direction: column; gap: 16px; }

.admin-ws-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.admin-ws-card--active { border-color: var(--accent); }
.admin-ws-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.admin-ws-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.admin-ws-info { flex: 1; min-width: 0; }
.admin-ws-name { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.admin-ws-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.admin-ws-badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px;
  background: rgba(124,58,237,0.15); color: var(--accent); border: 1px solid rgba(124,58,237,0.3);
}
.admin-ws-actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-ws-members { margin-bottom: 14px; min-height: 20px; }

.admin-members-list { display: flex; flex-direction: column; gap: 6px; }
.admin-member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
}
.admin-member-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent);
}
.admin-member-info { flex: 1; min-width: 0; }
.admin-member-name { font-size: 13px; font-weight: 500; color: var(--text-primary); display: block; }
.admin-member-email { font-size: 11px; color: var(--text-tertiary); display: block; }
.admin-role-select { width: 100px !important; height: 28px !important; font-size: 11px !important; padding: 0 6px !important; }
.admin-remove-btn { color: var(--text-tertiary) !important; padding: 2px 6px !important; }
.admin-remove-btn:hover { color: var(--status-cancelled) !important; }
.admin-badge-pending {
  display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 8px; background: rgba(251,191,36,0.12); color: #FBBF24;
  border: 1px solid rgba(251,191,36,0.3); margin-left: 6px;
}
.admin-invite-row {
  display: flex; gap: 8px; align-items: center; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.proj-action-btn {
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 11px;
}
.proj-action-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.proj-action-btn.danger:hover { color: var(--status-cancelled); border-color: var(--status-cancelled); }

/* Assignee filter pills */
.assignee-filter-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.assignee-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 6px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-surface);
  font-size: 12px; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); font-family: var(--font);
}
.assignee-pill:hover { border-color: var(--accent); color: var(--text-primary); }
.assignee-pill.active { background: rgba(124,58,237,0.15); border-color: var(--accent); color: var(--accent); }
.assignee-pill-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white; flex-shrink: 0;
}

/* Member card avatar */
.member-card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white;
  object-fit: cover; flex-shrink: 0;
}

/* Delete project issue options */
.del-issue-options { display: flex; flex-direction: column; gap: 8px; }
.del-issue-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.del-issue-option:hover { border-color: var(--accent); background: rgba(124,58,237,0.06); }
.del-issue-option input[type="radio"] { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.del-issue-option span { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; }
.del-issue-option small { font-size: 12px; color: var(--text-secondary); margin-top: 3px; display: block; line-height: 1.4; }

/* ============================================================
   AUTH OVERLAY — split layout
   ============================================================ */
#auth-overlay {
  position: fixed; inset: 0;
  display: flex;
  z-index: 9999;
  overflow: hidden;
  background: #06060F;
}
#auth-overlay.auth-hidden { display: none; }
.auth-hidden { display: none !important; }

/* ── Left hero panel ──────────────────────────────────────── */
.auth-left {
  flex: 0 0 58%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0D0820 0%, #0A0618 45%, #060414 100%);
}

/* Radial glow blobs */
.auth-left::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 72% 28%, rgba(124,58,237,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(99,102,241,0.22) 0%, transparent 68%),
    radial-gradient(ellipse 32% 28% at 85% 88%, rgba(16,217,160,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 8% 15%, rgba(192,132,252,0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: auth-ambient-pulse 9s ease-in-out infinite;
}

/* Dot grid */
.auth-left::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Graph covers full left panel */
.auth-graph-bg {
  position: absolute;
  inset: -5%;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.auth-graph-svg { width: 100%; height: 100%; }

/* Gradient fade so graph doesn't compete with text */
.auth-graph-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom left, transparent 30%, rgba(8,8,20,0.85) 80%);
}

.auth-left-inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%;
  padding: 48px 52px;
  gap: 0;
}

.auth-left-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 40px;
}
.auth-left-logo-name {
  font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.9);
  letter-spacing: -0.02em;
}

.auth-left-copy {
  display: flex; flex-direction: column; gap: 18px;
  animation: auth-fade-up 0.9s ease-out 0.2s both;
}

.auth-hero-title {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 900; letter-spacing: -0.05em;
  line-height: 1.05;
  background: linear-gradient(130deg, #ffffff 0%, #e9d5ff 20%, #c084fc 45%, #818cf8 70%, #10D9A0 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: auth-gradient-move 6s ease infinite;
}

.auth-hero-sub {
  font-size: 14px; color: rgba(255,255,255,0.52);
  line-height: 1.75; max-width: 360px;
}

.auth-features {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.auth-feature-pill {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,0.58);
  letter-spacing: -0.01em;
}

/* 2-column feature grid */
.auth-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 22px;
  margin-top: 4px;
}
.auth-feat-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em; line-height: 1.3;
}

/* Floating particle field */
.auth-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
  will-change: transform;
}
.auth-particles i {
  position: absolute; border-radius: 50%; display: block;
  animation: auth-float var(--d, 12s) var(--del, 0s) ease-in-out infinite;
  will-change: transform;
}

/* Bottom + edge gradient fade */
.auth-left-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(9,4,22,0.96) 0%, rgba(9,4,22,0.6) 25%, transparent 55%),
    linear-gradient(to right, rgba(9,4,22,0.4) 0%, transparent 38%);
}

/* ── Auth keyframes ─────────────────────────────────────────── */
@keyframes auth-float {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  33%       { transform: translateY(-30px) translateX(11px) scale(1.08); }
  66%       { transform: translateY(-16px) translateX(-9px) scale(0.93); }
}

@keyframes auth-gradient-move {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-ambient-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.68; }
}

/* ── Right sign-in panel ──────────────────────────────────── */
.auth-right {
  flex: 0 0 42%;
  display: flex; align-items: center; justify-content: center;
  background: #08080F;
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 40px 36px;
}

.auth-panel {
  width: 100%; max-width: 340px;
  display: flex; flex-direction: column; gap: 22px;
}

.auth-panel-logo {
  display: flex; align-items: center; gap: 10px;
}
.auth-panel-logo-name {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-panel-sub {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.025em; line-height: 1.2;
  margin-top: -6px;
}

/* OAuth buttons */
.auth-providers { display: flex; flex-direction: column; gap: 10px; }

.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; width: 100%;
  background: #ffffff; color: #1a1a1a;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 14px; font-weight: 500; font-family: var(--font);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14);
}
.auth-oauth-btn:hover {
  background: #f6f6f6;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.auth-oauth-btn:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,0,0,0.14); }

/* Privacy */
.auth-privacy {
  font-size: 11px; color: var(--text-tertiary);
  text-align: center; line-height: 1.75;
  margin-top: -6px;
}

/* Profile form */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.auth-input, .auth-select {
  height: 40px; padding: 0 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; font-family: var(--font); outline: none; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-input:focus, .auth-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.auth-select option { background: #13131f; color: #EEEEFA; }

.auth-btn {
  height: 44px; background: var(--gradient); color: white;
  border: none; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: opacity var(--transition), transform 120ms ease;
  margin-top: 4px;
}
.auth-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-btn-outline {
  height: 40px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  font-family: var(--font); cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.auth-btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* Blocked state */
.auth-blocked-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 8px 0;
}
.auth-blocked-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.auth-blocked-title {
  font-size: 18px; font-weight: 700; color: var(--status-cancelled); letter-spacing: -0.02em;
}
.auth-blocked-msg  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.auth-blocked-reason { font-size: 12px; color: var(--text-tertiary); font-style: italic; line-height: 1.5; }
.auth-blocked-contact { font-size: 12px; color: var(--text-tertiary); line-height: 1.6; }

/* Mobile — hide left panel */
@media (max-width: 768px) {
  #auth-overlay { align-items: center; justify-content: center; background: #06060F; }
  .auth-left { display: none; }
  .auth-right {
    flex: none; width: 100%; max-width: 400px; border: none;
    background: transparent; padding: 32px 24px;
  }
}

/* Legacy compat */
.auth-card { display: none; } /* old panels replaced by auth-panel */
.auth-skip-link {
  font-size: 11px; color: var(--text-tertiary); text-align: center;
  text-decoration: underline; cursor: pointer;
  background: none; border: none; font-family: var(--font);
  width: 100%; padding: 2px 0; transition: color var(--transition);
}
.auth-skip-link:hover { color: var(--text-secondary); }

/* ============================================================
   SECURITY LOGS (admin panel)
   ============================================================ */
.admin-security-tabs {
  display: flex; gap: 2px;
  background: var(--bg-surface); border-radius: var(--radius-md);
  padding: 3px; margin-bottom: 14px; width: fit-content;
}
.admin-sec-tab {
  padding: 5px 14px; border: none; border-radius: 5px;
  font-size: 12px; font-weight: 500; font-family: var(--font);
  color: var(--text-secondary); background: transparent; cursor: pointer;
  transition: all var(--transition);
}
.admin-sec-tab--active {
  background: var(--bg-elevated); color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sec-log-table {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 460px; overflow-y: auto; padding-right: 4px;
}
.sec-log-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--bg-surface); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12px;
}
.sec-log-main {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap;
}
.sec-log-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  color: var(--text-tertiary); font-size: 11px; flex-shrink: 0;
}
.sec-log-email {
  font-weight: 600; color: var(--text-primary); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.sec-log-ua {
  color: var(--text-tertiary); font-size: 11px;
}
.sec-provider {
  font-size: 11px; color: var(--text-secondary);
  background: var(--bg-elevated); border-radius: 4px;
  padding: 1px 6px; white-space: nowrap;
}
.sec-badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 2px 7px; border-radius: 4px;
  white-space: nowrap;
}
.sec-badge--ok {
  background: rgba(16,217,160,0.12); color: #10D9A0;
  border: 1px solid rgba(16,217,160,0.25);
}
.sec-badge--blocked {
  background: rgba(248,113,113,0.12); color: #F87171;
  border: 1px solid rgba(248,113,113,0.25);
}
.sec-block-btn { margin-left: auto; flex-shrink: 0; }

/* ============================================================
   VIEWER MODE — hide all write actions
   ============================================================ */
.viewer-mode #new-issue-btn,
.viewer-mode #create-btn,
.viewer-mode .proj-add-btn,
.viewer-mode .member-add-btn,
.viewer-mode .issue-delete-btn,
.viewer-mode .issue-edit-btn,
.viewer-mode .ctx-edit,
.viewer-mode .ctx-delete,
.viewer-mode .ctx-status,
.viewer-mode #modal-save,
.viewer-mode #add-member-btn,
.viewer-mode .proj-action-btn,
.viewer-mode .col-add-btn,
.viewer-mode #modal .checklist-add-row,
.viewer-mode #modal .comment-add-row,
.viewer-mode #modal .checklist-del,
.viewer-mode #modal .comment-del { display: none !important; }

/* Issue modal — read-only fields for viewers */
.viewer-mode #modal .modal-body input:not([type="hidden"]):not([type="checkbox"]),
.viewer-mode #modal .modal-body textarea,
.viewer-mode #modal .modal-body select,
.viewer-mode #modal .modal-assignee-pill-rm,
.viewer-mode #modal #issue-assignee-add { pointer-events: none; }
.viewer-mode #modal .checklist-cb { pointer-events: none; }

.viewer-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(251,191,36,0.12); color: #FBBF24;
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 4px; padding: 1px 5px;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   WORKSPACE DROPDOWN
   ============================================================ */
.ws-dropdown {
  position: fixed; z-index: 9999;
  background: var(--bg-sidebar); border: 1px solid var(--border-hover);
  border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 4px; min-width: 200px;
}
.ws-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: var(--text-primary);
  transition: background var(--transition);
}
.ws-dropdown-item:hover { background: var(--bg-hover); }
.ws-dropdown-item--active { color: var(--accent); }
.ws-dropdown-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.ws-dropdown-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   ADMIN PANEL — PENDING USERS + STATS
   ============================================================ */
.admin-pending-section {
  background: rgba(234,179,8,0.06); border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 4px;
}
.admin-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.admin-badge-count {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; padding: 1px 7px; font-size: 11px;
  color: var(--text-tertiary); font-weight: 500;
}
.admin-pending-list { display: flex; flex-direction: column; gap: 8px; }
.admin-pending-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border-radius: 8px; padding: 8px 10px;
}
.admin-ws-stats {
  display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap;
}
.admin-ws-stat {
  font-size: 11px; color: var(--text-tertiary);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px;
}
.admin-ws-stat--open { color: #60A5FA; border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.08); }
.admin-ws-stat--done { color: var(--status-done); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.06); }

@media (max-width: 900px) {
  #sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .analytics-kpis { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid { grid-template-columns: 1fr; }
}
