/* ==========================================================================
   LogiTrack — Warm Charcoal & Amber Minimalist Theme
   Notion-Style Structural Layout with Portfolio Palette Synchronization
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core Charcoal & Amber Palette */
  --color-canvas-bg: #161514;          /* Deep matte charcoal canvas */
  --color-column-bg: #1f1e1d;          /* Distinct column & header charcoal block */
  --color-card-bg: #242321;            /* Flat solid card block */
  --color-card-hover: #2a2926;         /* Subtle card hover state */
  --color-input-bg: #242321;           /* Input field background */
  --color-modal-bg: #1f1e1d;           /* Dialog backdrop */
  --color-subtle-bg: #292825;          /* Neutral pill & tag background */
  --color-hover-bg: #2e2c29;           /* General item hover state */

  /* Borders: Sharp Paper-Thin Amber / Rust Tints */
  --color-border-subtle: rgba(245, 158, 11, 0.08);
  --color-border-card: rgba(245, 158, 11, 0.08);
  --color-border-hover: rgba(245, 158, 11, 0.22);
  --color-border-focus: #f59e0b;

  /* Typography: Warm Cream & Muted Amber-Gray */
  --text-title-cream: #f5f0e8;         /* Clean warm cream for main titles */
  --text-desc-muted: #a89f91;          /* Soft muted amber-gray for descriptions */
  --text-caption-dim: #787168;         /* Deep muted labels and captions */
  --text-dark-contrast: #161514;       /* Text on bright amber accents */

  /* Sprint Progress Bar: Flat Amber Track */
  --progress-track-bg: #2c2a27;        /* Dark brown/charcoal container track */
  --progress-fill-amber: #f59e0b;      /* Flat solid premium amber-orange */

  /* Priority Tags & Status Tints */
  --tag-high-bg: #422123;
  --tag-high-text: #fca5a5;
  --tag-medium-bg: #443419;
  --tag-medium-text: #fcd34d;
  --tag-low-bg: #35322d;
  --tag-low-text: #d6cfc5;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  background-color: var(--color-canvas-bg);
  color: var(--text-title-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--color-canvas-bg);
  color: var(--text-title-cream);
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Canvas Background (Flat Minimalist)
   -------------------------------------------------------------------------- */
.ambient-mesh-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--color-canvas-bg);
}

.ambient-orb,
.ambient-grid-overlay,
.ambient-noise {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Flat Panel Base Class
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--color-column-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.glass-panel::before {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. App Container & Layout
   -------------------------------------------------------------------------- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   6. Flat Charcoal & Amber Header
   -------------------------------------------------------------------------- */
.liquid-header {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 8px;
  background: var(--color-column-bg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: none;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Brand Identity */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
}

.liquid-logo-orb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-svg {
  width: 18px;
  height: 18px;
}

.brand-pulse-ring {
  display: none;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-title-cream);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  text-shadow: none;
}

.badge-version {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-desc-muted);
  font-weight: 400;
}

/* Header Controls & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 0 10px;
  width: 240px;
  transition: border-color 0.15s ease, width 0.15s ease;
  box-shadow: none;
}

.search-box:focus-within {
  border-color: var(--color-border-focus);
  box-shadow: none;
  width: 270px;
  background: var(--color-card-bg);
}

.icon-search {
  width: 14px;
  height: 14px;
  color: var(--text-caption-dim);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  padding: 6px 6px;
  background: transparent;
  font-size: 0.84rem;
  color: var(--text-title-cream);
}

.search-box input::placeholder {
  color: var(--text-caption-dim);
}

.btn-icon-clear {
  background: transparent;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-caption-dim);
}

.btn-icon-clear:hover {
  color: var(--text-title-cream);
}

.btn-icon-clear svg {
  width: 13px;
  height: 13px;
}

/* Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  position: relative;
  user-select: none;
  box-shadow: none;
}

.icon-btn {
  padding: 6px 8px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  color: var(--text-desc-muted);
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

.icon-btn:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
  border-color: var(--color-border-hover);
}

.reset-btn {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  color: var(--text-desc-muted);
}

.reset-btn svg {
  width: 13px;
  height: 13px;
}

.reset-btn:hover {
  background: #382424;
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  box-shadow: none;
}

.primary-btn {
  background: #f59e0b;
  color: #161514;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: none;
}

.primary-btn svg {
  width: 14px;
  height: 14px;
  stroke: #161514;
}

.primary-btn:hover {
  background: #e57c23;
  box-shadow: none;
  transform: none;
}

.primary-btn:active {
  transform: none;
}

/* --------------------------------------------------------------------------
   7. Sprint Analytics & Flat Amber Progress Bar
   -------------------------------------------------------------------------- */
.sprint-analytics-strip {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.06);
}

.sprint-progress-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-card-bg);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: none;
}

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

.sprint-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--progress-fill-amber);
  box-shadow: none;
  animation: none;
}

.sprint-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-desc-muted);
}

.sprint-ratio-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sprint-task-ratio {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-caption-dim);
}

.sprint-percentage {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fcd34d;
  text-shadow: none;
}

/* Static Flat Progress Track: #2c2a27 container, #f59e0b fill */
.progress-track-outer {
  width: 100%;
  height: 6px;
  background: var(--progress-track-bg);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--progress-fill-amber);
  position: relative;
  transition: width 0.3s ease;
  box-shadow: none;
}

.progress-shimmer,
.progress-glow-head {
  display: none !important;
}

/* Metric Cluster */
.metric-stats-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-pill {
  flex: 1;
  min-width: 80px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
  transition: background 0.15s ease;
}

.metric-pill:hover {
  transform: none;
  background: var(--color-hover-bg);
}

.metric-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: none !important;
}

.bullet-blue { background: #6b8299; }
.bullet-amber { background: #f59e0b; }
.bullet-emerald { background: #5a8f72; }
.bullet-violet { background: #927c9e; }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-caption-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-title-cream);
}

/* Priority Filter Bar */
.priority-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-card-bg);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
}

.filter-caption {
  font-size: 0.72rem;
  color: var(--text-caption-dim);
  font-weight: 500;
  padding: 0 4px;
}

.filter-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-desc-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  color: var(--text-title-cream);
  background: var(--color-hover-bg);
}

.filter-pill.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  box-shadow: none;
}

.filter-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: none !important;
}

.dot-high { background: #f87171; }
.dot-medium { background: #f59e0b; }
.dot-low { background: #a89f91; }

/* --------------------------------------------------------------------------
   8. Kanban Board & Charcoal Column Panels (#1f1e1d)
   -------------------------------------------------------------------------- */
.kanban-workspace {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
  align-items: flex-start;
}

.liquid-column {
  border-radius: 8px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 500px;
  background: var(--color-column-bg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: none;
  backdrop-filter: none;
}

/* Column Header */
.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.06);
}

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

.column-glow-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: none !important;
}

.indicator-todo { background: #6b8299; }
.indicator-in-progress { background: #f59e0b; }
.indicator-completed { background: #5a8f72; }

.column-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-title-cream);
}

.column-count-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--color-subtle-bg);
  border: 1px solid rgba(245, 158, 11, 0.06);
  color: var(--text-desc-muted);
}

.btn-column-add {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-caption-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-column-add svg {
  width: 13px;
  height: 13px;
}

.btn-column-add:hover {
  background: var(--color-hover-bg);
  border-color: var(--color-border-subtle);
  color: var(--text-title-cream);
  box-shadow: none;
  transform: none;
}

/* --------------------------------------------------------------------------
   9. Drop Zone & Task List
   -------------------------------------------------------------------------- */
.task-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding-bottom: 12px;
}

.task-cards-list.drag-over {
  background: var(--color-card-bg);
  border-radius: 6px;
}

.liquid-column.drag-target-highlight {
  border-color: var(--color-border-hover);
  box-shadow: none;
}

.drop-placeholder {
  height: 60px;
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  background: #1a1917;
  box-shadow: none;
  margin: 2px 0;
  animation: none;
  pointer-events: none;
}

.column-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 12px;
  border: 1px dashed rgba(245, 158, 11, 0.08);
  border-radius: 6px;
  background: transparent;
  color: var(--text-caption-dim);
  gap: 8px;
  margin-top: 4px;
}

.empty-icon {
  width: 24px;
  height: 24px;
  opacity: 0.35;
  stroke: var(--text-caption-dim);
}

.column-empty-state p {
  font-size: 0.8rem;
  color: var(--text-caption-dim);
}

.btn-empty-add {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-desc-muted);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-empty-add:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
  border-color: var(--color-border-hover);
}

.column-empty-state.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   10. Task Cards (#242321) & Warm Typography
   -------------------------------------------------------------------------- */
.task-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-card);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: none !important;
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.task-card::after {
  display: none !important;
}

.task-card:hover {
  background: var(--color-card-hover);
  border-color: rgba(245, 158, 11, 0.18);
  transform: none !important;
  box-shadow: none !important;
}

.task-card:active {
  cursor: grabbing;
}

.task-card.is-dragging {
  opacity: 0.5;
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--color-border-hover);
  background: #1c1b19;
}

.task-card.is-filtered-out {
  display: none !important;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-badges-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Priority Tags */
.priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
}

.priority-pill.priority-high {
  background: var(--tag-high-bg);
  border: 1px solid transparent;
  color: var(--tag-high-text);
}

.priority-pill.priority-high .pill-dot {
  background: var(--tag-high-text);
  box-shadow: none;
}

.priority-pill.priority-medium {
  background: var(--tag-medium-bg);
  border: 1px solid transparent;
  color: var(--tag-medium-text);
}

.priority-pill.priority-medium .pill-dot {
  background: var(--tag-medium-text);
  box-shadow: none;
}

.priority-pill.priority-low {
  background: var(--tag-low-bg);
  border: 1px solid transparent;
  color: var(--tag-low-text);
}

.priority-pill.priority-low .pill-dot {
  background: var(--tag-low-text);
  box-shadow: none;
}

.pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: none !important;
}

.glow-crimson, .glow-amber, .glow-violet {
  box-shadow: none !important;
}

.tag-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--color-subtle-bg);
  border: 1px solid rgba(245, 158, 11, 0.04);
  color: var(--text-desc-muted);
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

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

.btn-card-action {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-caption-dim);
  transition: all 0.15s ease;
}

.btn-card-action svg {
  width: 12px;
  height: 12px;
}

.btn-card-action:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
}

.btn-card-delete:hover {
  background: #422123;
  color: #fca5a5;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-title-cream);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-desc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 158, 11, 0.05);
  margin-top: 2px;
}

.card-due-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-caption-dim);
}

.card-due-badge svg {
  width: 11px;
  height: 11px;
}

.card-due-badge.is-urgent {
  color: #f87171;
}

.assignee-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-subtle-bg);
  border: 1px solid rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-desc-muted);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   11. Modals & Dialog System (#1f1e1d)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 17, 16, 0.75);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--color-modal-bg);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
  transform: none !important;
  transition: none;
}

.modal-overlay.hidden .modal-card {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.modal-icon-bubble svg {
  width: 16px;
  height: 16px;
}

.modal-icon-bubble.warning-bubble {
  background: #422123;
  border-color: #5c2e33;
  color: #fca5a5;
  box-shadow: none;
}

.modal-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-title-cream);
  letter-spacing: -0.01em;
}

.modal-desc {
  font-size: 0.78rem;
  color: var(--text-desc-muted);
}

.btn-close-modal {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-caption-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-modal svg {
  width: 14px;
  height: 14px;
}

.btn-close-modal:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
  transform: none;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-desc-muted);
}

.required-star {
  color: #f87171;
}

.field-error {
  font-size: 0.72rem;
  color: #fca5a5;
  min-height: 12px;
}

.glass-input, .glass-select, .glass-textarea {
  width: 100%;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--text-title-cream);
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.glass-input:focus, .glass-select:focus, .glass-textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: none;
  background: var(--color-input-bg);
}

.glass-input::placeholder, .glass-textarea::placeholder {
  color: var(--text-caption-dim);
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.glass-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}

.glass-select option {
  background: #242321;
  color: #f5f0e8;
}

.select-arrow {
  position: absolute;
  right: 10px;
  width: 13px;
  height: 13px;
  color: var(--text-caption-dim);
  pointer-events: none;
}

.glass-textarea {
  resize: vertical;
  min-height: 65px;
}

.glass-date::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(0.3);
  cursor: pointer;
}

.priority-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.priority-option {
  cursor: pointer;
}

.priority-option input[type="radio"] {
  display: none;
}

.priority-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-desc-muted);
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}

.priority-option:hover .priority-pill-btn {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
}

.option-high input[type="radio"]:checked + .priority-pill-btn {
  background: var(--tag-high-bg);
  border-color: #5c2e33;
  color: var(--tag-high-text);
  box-shadow: none;
}

.option-medium input[type="radio"]:checked + .priority-pill-btn {
  background: var(--tag-medium-bg);
  border-color: #5c4323;
  color: var(--tag-medium-text);
  box-shadow: none;
}

.option-low input[type="radio"]:checked + .priority-pill-btn {
  background: var(--tag-low-bg);
  border-color: #4a453f;
  color: var(--tag-low-text);
  box-shadow: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.modal-actions.space-between {
  justify-content: space-between;
}

.btn-secondary {
  padding: 7px 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  color: var(--text-desc-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
}

.btn-danger-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #422123;
  border: 1px solid #5c2e33;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-danger-icon svg {
  width: 13px;
  height: 13px;
}

.btn-danger-icon:hover {
  background: #5c2e33;
  color: #ffffff;
}

.reset-card {
  max-width: 440px;
}

.reset-prompt-text {
  font-size: 0.82rem;
  color: var(--text-desc-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.reset-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.reset-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  text-align: left;
  transition: all 0.15s ease;
}

.choice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.choice-content strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-title-cream);
  margin-bottom: 2px;
}

.choice-content p {
  font-size: 0.74rem;
  color: var(--text-caption-dim);
}

.restore-choice:hover {
  background: var(--color-hover-bg);
  border-color: var(--color-border-hover);
}

.wipe-choice:hover {
  background: #422123;
  border-color: #5c2e33;
}

.view-card {
  max-width: 480px;
}

.view-header-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.column-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--color-subtle-bg);
  border: 1px solid transparent;
  color: var(--text-desc-muted);
}

.view-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.view-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-title-cream);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.view-desc {
  font-size: 0.84rem;
  color: var(--text-desc-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.view-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  padding: 10px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.68rem;
  color: var(--text-caption-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.meta-value {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-title-cream);
}

.quick-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-status-buttons {
  display: flex;
  gap: 6px;
}

.quick-move-btn {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 500;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-subtle);
  color: var(--text-desc-muted);
  transition: all 0.15s ease;
}

.quick-move-btn:hover {
  background: var(--color-hover-bg);
  color: var(--text-title-cream);
}

.quick-move-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.view-action-group {
  display: flex;
  gap: 8px;
}

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

.toast-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #242321;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: var(--text-title-cream);
  font-size: 0.8rem;
  font-weight: 500;
  transform: translateY(10px);
  opacity: 0;
  animation: slideToastIn 0.2s ease forwards;
}

.toast-pill.toast-hide {
  animation: slideToastOut 0.15s ease forwards;
}

@keyframes slideToastIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideToastOut {
  to { transform: translateY(10px); opacity: 0; }
}

.toast-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 0.74rem;
  color: var(--text-caption-dim);
  border-top: 1px solid rgba(245, 158, 11, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-hint kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--color-subtle-bg);
  border: 1px solid rgba(245, 158, 11, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text-desc-muted);
}

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

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

::-webkit-scrollbar-thumb {
  background: #2f2d29;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d3b36;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .sprint-analytics-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-stats-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .app-container {
    padding: 14px;
  }

  .kanban-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .liquid-column {
    min-height: auto;
  }

  .metric-stats-cluster {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-box {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
  }
}
