:root {
  /* Material Design 3 Typography */
  --md-sys-font-sans: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --md-sys-font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Material Design 3 Vibrant Palette */
  --md-sys-color-primary: #0b57d0;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dbeafe;
  --md-sys-color-on-primary-container: #1e3a8a;
  
  --md-sys-color-secondary: #0284c7;
  --md-sys-color-secondary-container: #e0f2fe;
  --md-sys-color-on-secondary-container: #0369a1;

  --md-sys-color-background: #f8fafc;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-container-low: #f8fafd;
  --md-sys-color-surface-container: #f1f5f9;
  --md-sys-color-surface-container-high: #e2e8f0;
  --md-sys-color-surface-container-highest: #cbd5e1;

  --md-sys-color-on-surface: #0f172a;
  --md-sys-color-on-surface-variant: #475569;
  --md-sys-color-outline: #64748b;
  --md-sys-color-outline-variant: #cbd5e1;

  --md-sys-color-success: #16a34a;
  --md-sys-color-success-container: #dcfce7;
  --md-sys-color-on-success-container: #14532d;

  --md-sys-color-warning: #d97706;
  --md-sys-color-warning-container: #fef3c7;
  --md-sys-color-on-warning-container: #78350f;

  --md-sys-color-error: #dc2626;
  --md-sys-color-error-container: #fee2e2;

  /* M3 Shapes */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 24px;
  --md-sys-shape-corner-full: 9999px;

  /* M3 Elevations */
  --md-sys-elevation-level-0: none;
  --md-sys-elevation-level-1: 0px 2px 4px rgba(15, 23, 42, 0.06), 0px 1px 2px rgba(15, 23, 42, 0.04);
  --md-sys-elevation-level-2: 0px 4px 12px rgba(15, 23, 42, 0.08), 0px 2px 4px rgba(15, 23, 42, 0.04);
  --md-sys-elevation-level-3: 0px 8px 24px rgba(15, 23, 42, 0.12), 0px 3px 6px rgba(15, 23, 42, 0.06);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.progress-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--md-sys-font-sans);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-surface);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Keyframe Animations */
@keyframes m3Pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
  }
}

@keyframes m3LiveDotPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@keyframes m3CardFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes m3RingGlow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.65));
  }
}

@keyframes m3Shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Shell */
.progress-shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .progress-shell {
    padding: 0 16px;
  }
}

/* Material Top App Bar */
.progress-topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.progress-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}

.progress-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.progress-brand:hover {
  text-decoration: none;
}

.progress-brand img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(11, 87, 208, 0.15);
  display: block;
}

.progress-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  color: #14532d;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  animation: m3LiveDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Material Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-family: var(--md-sys-font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.action-btn:hover {
  background-color: #f1f5f9;
  color: #0b57d0;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(11, 87, 208, 0.12);
}

.action-btn:active {
  transform: translateY(0);
}

/* Project Hero Card (Vibrant Gradient Canvas) */
.project-hero {
  margin-top: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--md-sys-shape-corner-extra-large);
  padding: 36px;
  box-shadow: 0 8px 30px -4px rgba(11, 87, 208, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  animation: m3CardFadeUp 0.4s cubic-bezier(0, 0, 0.2, 1) both;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  margin-bottom: 12px;
}

.project-title {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 10px;
  word-break: break-word;
  line-height: 1.2;
}

.project-description {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #475569;
  line-height: 1.6;
  margin: 0 0 22px;
  word-break: break-word;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Material Circular Progress Indicator with Multi-stop Gradient */
.completion-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completion-ring {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}

.completion-ring-track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 10;
}

.completion-ring-value {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: m3RingGlow 3s ease-in-out infinite;
}

.completion-ring-dot {
  fill: #06b6d4;
  filter: drop-shadow(0 0 4px #06b6d4);
}

.completion-copy {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.completion-copy strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #0b57d0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.completion-copy span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 4px;
}

/* Smart Grid (Delivery Intelligence with Distinct Vibrant Cards) */
.smart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.smart-card {
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: m3CardFadeUp 0.4s cubic-bezier(0, 0, 0.2, 1) both;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.smart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* 1. Health Card (Emerald Green) */
.smart-card.health-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

.health-card .smart-icon {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.health-card .card-kicker {
  color: #15803d;
}

.health-card h2 {
  color: #14532d;
}

.health-card p {
  color: #166534;
}

/* 2. Next Card (Royal Sapphire Blue) */
.smart-card.next-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
}

.next-card .smart-icon {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.next-card .card-kicker {
  color: #1d4ed8;
}

.next-card h2 {
  color: #1e3a8a;
}

.next-card p {
  color: #1e40af;
}

.next-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* 3. Milestone Moving Card (Warm Amber) */
.smart-card.moving-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
}

.moving-card .smart-icon {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.moving-card .card-kicker {
  color: #b45309;
}

.moving-card h2 {
  color: #78350f;
}

.moving-card p {
  color: #92400e;
}

.smart-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.smart-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--md-sys-shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.smart-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px;
  word-break: break-word;
}

.smart-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.moving-counts {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.moving-counts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-small);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: #78350f;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.moving-counts strong {
  color: #d97706;
  font-weight: 800;
}

/* Project Dashboard Cards (Update & Timeline) */
.project-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--md-sys-shape-corner-large);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  animation: m3CardFadeUp 0.4s cubic-bezier(0, 0, 0.2, 1) both;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dashboard-card.update-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border-color: #e9d5ff;
}

.update-card .dashboard-icon {
  background: #9333ea;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.dashboard-card.timeline-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-color: #99f6e4;
}

.timeline-card .dashboard-icon {
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.dashboard-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--md-sys-shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-card-heading h2 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #0f172a;
}

.dashboard-card-heading p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.update-copy {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.update-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7e22ce;
  background: #f3e8ff;
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  align-self: flex-start;
}

/* Shared Timeline */
.shared-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.shared-timeline li {
  position: relative;
  padding-left: 22px;
  padding-bottom: 16px;
  border-left: 2px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shared-timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.shared-timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0b57d0;
  box-shadow: 0 0 0 2px #ffffff;
}

.shared-timeline li.timeline-completed::before {
  background-color: #16a34a;
  box-shadow: 0 0 0 2px #ffffff, 0 0 6px rgba(22, 163, 74, 0.4);
}

.shared-timeline li.timeline-pending::before {
  background-color: #94a3b8;
}

.shared-timeline time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0d9488;
}

.shared-timeline span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.timeline-empty {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* Project Facts Bar */
.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}

.project-fact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 14px 18px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

.fact-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 3px;
}

.fact-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Milestones Roadmap Section */
.tasks-section {
  margin-top: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 2px;
  color: #0f172a;
}

.section-heading p {
  color: #475569;
  font-size: 0.92rem;
  margin: 0;
}

.task-count {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1d4ed8;
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-corner-full);
}

/* Vibrant Material Filter Tabs */
.milestone-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filter-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-small);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-family: var(--md-sys-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filter-tab-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Tab Colors */
.filter-tab-btn.active {
  background-color: #0b57d0;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.3);
}

.filter-tab-btn.active .tab-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.tab-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: #e2e8f0;
  color: #334155;
}

/* Milestone Cards */
.milestone-group {
  margin-bottom: 22px;
  animation: m3ItemFadeIn 0.3s cubic-bezier(0, 0, 0.2, 1) both;
}

.milestone-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}

.milestone-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 9px;
  border-radius: var(--md-sys-shape-corner-full);
}

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

.task-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--md-sys-shape-corner-medium);
  padding: 16px 20px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* Status-specific card accents */
.task-card.is-complete {
  background-color: #ffffff;
}

.task-card.is-active {
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.08);
}

.task-card.is-not-started {
  background-color: #ffffff;
}

.task-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.task-card.is-complete .task-marker {
  background-color: #dcfce7;
  color: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.3);
}

.task-card.is-active .task-marker {
  background-color: #fef3c7;
  color: #d97706;
  animation: m3Pulse 2.5s infinite;
}

.task-card.is-not-started .task-marker {
  background-color: #f1f5f9;
  color: #94a3b8;
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #0f172a;
  word-break: break-word;
}

.task-description {
  font-size: 0.86rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.task-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.task-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--md-sys-shape-corner-full);
  white-space: nowrap;
}

.task-status.complete {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.task-status.active {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  animation: m3Pulse 3s infinite;
}

.task-status.not-started {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.task-date {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.tasks-empty {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--md-sys-shape-corner-large);
}

/* Contact / Concierge Card (Vibrant WhatsApp Oasis) */
.contact-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: var(--md-sys-shape-corner-large);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.12);
  animation: m3CardFadeUp 0.4s cubic-bezier(0, 0, 0.2, 1) both;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.contact-info strong {
  font-size: 1.12rem;
  color: #14532d;
}

.contact-info span {
  font-size: 0.92rem;
  color: #166534;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 180ms ease;
  white-space: nowrap;
}

.contact-button:hover {
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  transform: translateY(-2px);
}

.contact-button:active {
  transform: translateY(0);
}

/* Material Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--md-sys-shape-corner-small);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transition: all 250ms cubic-bezier(0.2, 0, 0, 1);
  z-index: 1000;
  max-width: 90vw;
}

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

/* Material Progress Footer */
.progress-footer {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
  font-size: 0.86rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
}

.progress-footer p { margin: 0 0 4px; }

/* ==========================================================================
   PIN Verification Screen (Material Design 3 Elevated Card)
   ========================================================================== */
.progress-pin-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--md-sys-color-background);
}

.progress-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.pin-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--md-sys-shape-corner-large);
  padding: 40px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  margin: auto;
  animation: m3CardFadeUp 0.4s cubic-bezier(0, 0, 0.2, 1) both;
}

.pin-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
  animation: m3Pulse 3s infinite;
}

.page-title {
  font-size: clamp(1.4rem, 3.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #0f172a;
}

.page-lead {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 22px;
}

.pin-error {
  background-color: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--md-sys-shape-corner-small);
  margin: 0 0 18px;
  animation: m3Shake 0.4s ease-in-out;
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.pin-form label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.pin-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-small);
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  font-size: 1.4rem;
  font-family: var(--md-sys-font-mono);
  letter-spacing: 0.35em;
  text-align: center;
  transition: all 180ms ease;
}

.pin-form input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #0b57d0;
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.15);
}

.pin-submit {
  margin-top: 6px;
  height: 48px;
  border-radius: var(--md-sys-shape-corner-full);
  background: linear-gradient(135deg, #0b57d0 0%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--md-sys-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 87, 208, 0.35);
  transition: all 180ms ease;
  width: 100%;
}

.pin-submit:hover {
  background: linear-gradient(135deg, #0842a0 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(11, 87, 208, 0.45);
  transform: translateY(-1px);
}

.pin-submit:active {
  transform: translateY(0);
}

/* ==========================================================================
   Mobile Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .hero-meta {
    justify-content: center;
  }
  .project-hero {
    padding: 28px 20px;
  }
  .task-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .task-details {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
  }
  .contact-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 22px;
  }
  .contact-info {
    text-align: center;
  }
  .contact-button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .progress-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .progress-brand {
    justify-content: center;
  }
  .progress-topbar-actions {
    justify-content: center;
    width: 100%;
  }
  .action-btn {
    flex: 1;
    justify-content: center;
  }
  .pin-card {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   Print Stylesheet (Pristine PDF Export)
   ========================================================================== */
@media print {
  .progress-topbar-actions,
  .progress-topbar-note,
  .milestone-filter-tabs,
  .contact-card,
  .toast-notice {
    display: none !important;
  }

  body.progress-body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .progress-topbar-wrap {
    position: static !important;
    box-shadow: none !important;
    border-bottom: 2px solid #000000 !important;
  }

  .progress-shell {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .project-hero,
  .smart-card,
  .dashboard-card,
  .task-card,
  .project-fact {
    box-shadow: none !important;
    border: 1px solid #c4c7c5 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .completion-ring-value {
    animation: none !important;
  }
}
