/* ============================================================
   Demo Animator — shared styles for animated product walkthroughs
   Used on landing page previews and feature pages.
   ============================================================ */

/* ── Demo container ── */
.da-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    0 12px 32px -8px rgba(15,23,42,0.14),
    0 4px 12px -4px rgba(15,23,42,0.06),
    0 0 0 1px rgba(15,23,42,0.04);
  background: #fff;
  user-select: none;
}
.da-container:hover {
  box-shadow:
    0 24px 60px -12px rgba(15,23,42,0.2),
    0 8px 20px -8px rgba(15,23,42,0.08),
    0 0 0 1px rgba(15,23,42,0.06);
}
.da-container * { user-select: none; }

/* ── macOS browser chrome ── */
.da-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 38px;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef0f3 100%);
  border-bottom: 1px solid #E8DFD0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.da-chrome-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.da-chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
}
.da-chrome-dot.red    { background: #ff5f57; }
.da-chrome-dot.yellow { background: #febc2e; }
.da-chrome-dot.green  { background: #28c840; }
.da-chrome-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #8B6B7A;
  background: rgba(255,255,255,0.7);
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  padding: 4px 10px;
  max-width: 360px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.da-chrome-lock {
  color: #94a3b8;
  display: inline-flex;
  flex-shrink: 0;
}

/* ── App body grid (sidebar + content) ── */
.da-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 0;
  position: relative;
}
.da-body.da-body-wide { grid-template-columns: 220px 1fr; }

/* ── Sidebar ── */
.da-sidebar {
  background: #ffffff;
  border-right: 1px solid #E8DFD0;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.da-sidebar-brand {
  font-size: 16px;
  font-weight: 600;
  color: #4F091D;
  padding: 2px 16px 12px;
  letter-spacing: -0.01em;
}
.da-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.da-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  margin: 1px 0;
  color: #8B6B7A;
  font-size: 12.5px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: color 120ms ease, background 120ms ease;
  cursor: default;
  white-space: nowrap;
}
.da-nav-item.active {
  color: #4F091D;
  font-weight: 600;
  border-left-color: #334155;
  background: #FAF6ED;
}
.da-nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}
.da-nav-item.active svg { opacity: 1; }

/* ── Content area ── */
.da-content {
  background: #FAF6ED;
  padding: 20px 24px 24px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

/* ── Frames (stacked absolutely for crossfade) ── */
.da-frame {
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.16,1,0.3,1);
  position: absolute;
  inset: 0;
  padding: 20px 24px 24px;
  pointer-events: none;
}
.da-frame.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* ── Stagger-in animation for child elements ── */
.da-stagger > * {
  opacity: 0;
  transform: translateY(8px);
  animation: da-stagger-in 350ms cubic-bezier(0.16,1,0.3,1) forwards;
}
.da-stagger > *:nth-child(1) { animation-delay: 0ms; }
.da-stagger > *:nth-child(2) { animation-delay: 50ms; }
.da-stagger > *:nth-child(3) { animation-delay: 100ms; }
.da-stagger > *:nth-child(4) { animation-delay: 150ms; }
.da-stagger > *:nth-child(5) { animation-delay: 200ms; }
.da-stagger > *:nth-child(6) { animation-delay: 250ms; }
.da-stagger > *:nth-child(7) { animation-delay: 300ms; }
.da-stagger > *:nth-child(8) { animation-delay: 350ms; }
.da-stagger > *:nth-child(9) { animation-delay: 400ms; }
.da-stagger > *:nth-child(10) { animation-delay: 450ms; }

@keyframes da-stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cursor ── */
.da-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-2px, -2px);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  will-change: left, top;
  transition: opacity 300ms ease;
}

/* ── Click ripple ── */
.da-click-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #DD4A48;
  pointer-events: none;
  z-index: 49;
  opacity: 0;
}
.da-click-ring.go {
  animation: da-ring 600ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes da-ring {
  0%   { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(2.4); }
}

/* ── Highlight pulse on target elements ── */
.da-highlight {
  animation: da-pulse 1800ms ease infinite;
}
@keyframes da-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%      { box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
}

/* ── Typing cursor blink ── */
.da-typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: #4F091D;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: da-blink 800ms ease infinite;
}
@keyframes da-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Badge transition ── */
.da-badge-transition {
  transition: background 300ms ease, color 300ms ease;
}

/* ── Progress bar animation ── */
.da-progress-animate {
  transition: width 800ms cubic-bezier(0.16,1,0.3,1);
}

/* ── Slide-in from bottom ── */
.da-slide-up {
  animation: da-slide-up 350ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes da-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Slide-in from right ── */
.da-slide-right {
  animation: da-slide-right 350ms cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes da-slide-right {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Fade out ── */
.da-fade-out {
  animation: da-fade-out 300ms ease forwards;
}
@keyframes da-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Number counter animation ── */
.da-counter {
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease;
}

/* ── Strikethrough animation ── */
.da-strikethrough {
  text-decoration: line-through;
  color: #94a3b8 !important;
  transition: color 300ms ease;
}

/* ── Notification toast (slides in from top-right) ── */
.da-toast {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #4F091D;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: da-toast-in 400ms cubic-bezier(0.16,1,0.3,1) forwards;
  max-width: 280px;
}
.da-toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FDE8E8;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}
@keyframes da-toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Demo label + link below demo ── */
.da-label {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #4F091D;
}
.da-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #DD4A48;
  text-decoration: none;
  margin-top: 6px;
  transition: color 150ms ease;
}
.da-link:hover { color: #C43A38; text-decoration: none; }

/* ── Responsive — hide animations on mobile ── */
@media (max-width: 768px) {
  .da-body { grid-template-columns: 1fr; }
  .da-sidebar { display: none; }
  .da-cursor, .da-click-ring { display: none; }
  .da-content { padding: 16px; }
  .da-frame { padding: 16px; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .da-cursor,
  .da-click-ring { display: none !important; }
  .da-frame {
    transition: none !important;
    animation: none !important;
  }
  .da-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .da-highlight { animation: none !important; box-shadow: none !important; }
  .da-toast { animation: none !important; opacity: 1 !important; transform: none !important; }
  .da-slide-up,
  .da-slide-right,
  .da-fade-out { animation: none !important; opacity: 1 !important; transform: none !important; }
  .da-progress-animate { transition: none !important; }
  .da-badge-transition { transition: none !important; }
  .da-typing-cursor { animation: none !important; opacity: 1 !important; }
}

/* ── Reusable mini-UI elements inside demos ── */

/* Page header */
.da-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.da-page-h {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #4F091D;
}
.da-page-sub {
  font-size: 12px;
  color: #8B6B7A;
  line-height: 1.5;
}
.da-crumb {
  font-size: 11px;
  color: #8B6B7A;
  margin-bottom: 6px;
}
.da-crumb b { color: #4F091D; font-weight: 500; }
.da-crumb span { color: #94a3b8; padding: 0 3px; }

/* KPI tiles */
.da-tiles {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.da-tiles-4 { grid-template-columns: repeat(4, 1fr); }
.da-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.da-tile {
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  padding: 12px;
}
.da-tile-v {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: #4F091D;
  font-variant-numeric: tabular-nums;
}
.da-tile-l {
  margin-top: 3px;
  font-size: 11px;
  color: #8B6B7A;
}
.da-tile.alert .da-tile-v { color: #dc2626; }
.da-tile.warn  .da-tile-v { color: #b45309; }
.da-tile.ok    .da-tile-v { color: #047857; }

/* Compact table */
.da-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  overflow: hidden;
}
.da-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: #6b7280;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #E8DFD0;
  background: transparent;
  white-space: nowrap;
}
.da-table th.num { text-align: right; }
.da-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f3;
  color: #4F091D;
  vertical-align: middle;
}
.da-table tr:last-child td { border-bottom: 0; }
.da-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.da-part {
  font-weight: 600;
  color: #4F091D;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.da-desc {
  margin-top: 2px;
  color: #8B6B7A;
  font-size: 10.5px;
}

/* Badge */
.da-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
}
.da-badge.ok       { background: #FDE8E8; color: #047857; }
.da-badge.warn     { background: #fef3c7; color: #b45309; }
.da-badge.danger   { background: #fef2f2; color: #dc2626; }
.da-badge.info     { background: #F5EEDC; color: #5C3D4A; }
.da-badge.neutral  { background: #F5EEDC; color: #8B6B7A; }
.da-badge.released { background: #FDE8E8; color: #047857; }
.da-badge.draft    { background: #F5EEDC; color: #8B6B7A; }
.da-badge.progress { background: #F5EEDC; color: #5C3D4A; }

/* Avatar */
.da-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F5EEDC;
  color: #4F091D;
  font-size: 9px;
  font-weight: 600;
  margin-right: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Button */
.da-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #334155;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: default;
  white-space: nowrap;
}
.da-btn-ghost {
  background: #ffffff;
  color: #4F091D;
  border: 1px solid #E8DFD0;
}

/* Tabs */
.da-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E8DFD0;
  margin-bottom: 14px;
}
.da-tab {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #8B6B7A;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.da-tab.active {
  color: #4F091D;
  border-bottom-color: #334155;
}

/* Folder cards */
.da-folders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.da-folder {
  position: relative;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 7px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: border-color 140ms ease;
}
.da-folder::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--fc, #8B6B7A);
  border-radius: 7px 7px 0 0;
}
.da-folder-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.da-folder-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #4F091D;
}
.da-folder-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #FAF6ED;
  border: 1px solid #E8DFD0;
  font-size: 10px;
  font-weight: 600;
  color: #8B6B7A;
}
.da-folder-meta {
  font-size: 10.5px;
  color: #8B6B7A;
  display: flex;
  gap: 6px;
  align-items: center;
}
.da-folder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.da-folder-dot.ok   { background: #16a34a; }
.da-folder-dot.low  { background: #d97706; }
.da-folder-dot.crit { background: #dc2626; }

/* Stepper */
.da-stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 6px 0;
}
.da-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.da-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: #E8DFD0;
  z-index: 0;
}
.da-step.done:not(:last-child)::after { background: #DD4A48; }
.da-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #E8DFD0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}
.da-step.done .da-step-circle {
  background: #DD4A48;
  border-color: #DD4A48;
  color: #fff;
}
.da-step.current .da-step-circle {
  border-color: #DD4A48;
  color: #DD4A48;
}
.da-step-label {
  margin-top: 5px;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}
.da-step.done .da-step-label,
.da-step.current .da-step-label {
  color: #4F091D;
  font-weight: 600;
}

/* Board columns */
.da-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.da-board-4 { grid-template-columns: repeat(4, 1fr); }
.da-col {
  background: #FAF6ED;
  border: 1px solid #E8DFD0;
  border-radius: 7px;
  padding: 8px;
  min-height: 180px;
}
.da-col-h {
  font-size: 10px;
  font-weight: 600;
  color: #8B6B7A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.da-col-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.da-col-h em {
  font-style: normal;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  padding: 0 6px;
  border-radius: 9px;
  font-size: 10px;
  color: #4F091D;
  font-weight: 600;
}
.da-tcard {
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.da-tcard.done { opacity: 0.55; }
.da-tcard.done .da-tcard-title { text-decoration: line-through; color: #94a3b8; }
.da-tcard-title {
  font-size: 11.5px;
  color: #4F091D;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.35;
}
.da-tcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.da-tcard-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--tg, #8B6B7A) 12%, transparent);
  color: var(--tg, #8B6B7A);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.da-tcard-date {
  font-size: 10px;
  color: #8B6B7A;
}

/* Checkbox */
.da-cb {
  width: 14px;
  height: 14px;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease;
}
.da-cb.checked {
  background: #DD4A48;
  border-color: #DD4A48;
}
.da-cb.checked::after {
  content: '';
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-0.5px, -0.5px);
}

/* Task row */
.da-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #F5EEDC;
  font-size: 12px;
}
.da-task-row:last-child { border-bottom: 0; }
.da-task-name {
  flex: 1;
  font-weight: 500;
  color: #4F091D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.da-task-project {
  font-size: 11px;
  color: #8B6B7A;
  margin-left: auto;
  margin-right: 8px;
  white-space: nowrap;
}
.da-task-date {
  font-size: 11px;
  color: #8B6B7A;
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}
.da-task-date.overdue { color: #dc2626; font-weight: 600; }

/* Calendar mini */
.da-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #E8DFD0;
  gap: 1px;
  border: 1px solid #E8DFD0;
  border-radius: 7px;
  overflow: hidden;
}
.da-cal-hd {
  background: #FAF6ED;
  padding: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #8B6B7A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}
.da-cal-day {
  background: #ffffff;
  padding: 4px 5px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
}
.da-cal-day.out { background: #FAF6ED; }
.da-cal-day.out .da-cal-num { color: #94a3b8; }
.da-cal-day.today { background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }
.da-cal-num {
  font-size: 10px;
  font-weight: 600;
  color: #4F091D;
  font-variant-numeric: tabular-nums;
}
.da-cal-day.today .da-cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #DD4A48;
  color: #fff;
}
.da-cal-evt {
  display: block;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--ec, #94a3b8);
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Progress bar */
.da-progress {
  height: 5px;
  background: #F5EEDC;
  border-radius: 3px;
  overflow: hidden;
}
.da-progress-fill {
  height: 100%;
  background: #DD4A48;
  border-radius: 3px;
}

/* Card (generic) */
.da-card {
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
}
.da-card-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4F091D;
}

/* Operation row */
.da-op-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #F5EEDC;
}
.da-op-row:last-child { border-bottom: 0; }
.da-op-num {
  width: 28px;
  height: 28px;
  background: #FAF6ED;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #4F091D;
  flex-shrink: 0;
}
.da-op-body { flex: 1; }
.da-op-title { font-size: 12px; font-weight: 500; color: #4F091D; }
.da-op-meta { font-size: 10.5px; color: #8B6B7A; margin-top: 1px; }

/* Toolbar / filter bar */
.da-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #FAF6ED;
  border: 1px solid #E8DFD0;
  border-radius: 5px;
  margin-bottom: 12px;
}
.da-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 5px;
  font-size: 11.5px;
  color: #94a3b8;
  flex: 1;
  min-width: 160px;
}
.da-search svg { color: #94a3b8; flex-shrink: 0; }
.da-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #8B6B7A;
}
.da-filter.active { background: #334155; color: #ffffff; border-color: #334155; }
.da-filter em { font-style: normal; font-size: 10px; color: inherit; opacity: 0.7; }

/* Section heading inside content */
.da-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.da-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #4F091D;
}

/* Bucket (agenda grouping) */
.da-bucket { margin-top: 4px; }
.da-bucket + .da-bucket { margin-top: 12px; }
.da-bucket-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 0 3px;
  border-bottom: 1px solid #E8DFD0;
  margin-bottom: 2px;
}
.da-bucket-label {
  font-size: 11px;
  font-weight: 600;
  color: #4F091D;
}
.da-bucket-label.overdue { color: #dc2626; }
.da-bucket-count {
  font-size: 11px;
  color: #8B6B7A;
  font-weight: 500;
}

/* Stock number styling */
.da-stock-qoh   { color: #4F091D; font-weight: 600; }
.da-stock-alloc { color: #b45309; font-weight: 500; }
.da-stock-avail { font-weight: 600; }
.da-stock-avail.ok  { color: #047857; }
.da-stock-avail.low { color: #b45309; }

/* IHMR stepper (4-stage horizontal) */
.da-ihmr-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 10px 0;
}
.da-ihmr-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.da-ihmr-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #E8DFD0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}
.da-ihmr-step.done .da-ihmr-dot { background: #DD4A48; border-color: #DD4A48; color: #fff; }
.da-ihmr-step.current .da-ihmr-dot { border-color: #DD4A48; color: #DD4A48; }
.da-ihmr-lbl { font-size: 10.5px; font-weight: 600; color: #4F091D; }
.da-ihmr-step:not(.done):not(.current) .da-ihmr-lbl { color: #94a3b8; }
.da-ihmr-meta { font-size: 9.5px; color: #94a3b8; }

/* Team member row */
.da-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #F5EEDC;
  font-size: 12px;
}
.da-member-row:last-child { border-bottom: 0; }
.da-member-name { font-weight: 500; color: #4F091D; flex: 1; }
.da-member-email { font-size: 11px; color: #8B6B7A; }
.da-member-role { font-size: 11px; color: #8B6B7A; }

/* Split view (connected operations demo) */
.da-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.da-split-pane {
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 6px;
  padding: 14px;
}
.da-split-pane-h {
  font-size: 11px;
  font-weight: 600;
  color: #8B6B7A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Popover / form overlay */
.da-popover {
  position: absolute;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  z-index: 55;
  min-width: 240px;
}
.da-form-row {
  margin-bottom: 10px;
}
.da-form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8B6B7A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.da-form-input {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #E8DFD0;
  border-radius: 5px;
  font-size: 12px;
  color: #4F091D;
  font-family: inherit;
}
.da-form-input:focus {
  outline: none;
  border-color: #DD4A48;
  box-shadow: 0 0 0 2px #eff6ff;
}

/* Stock gauge */
.da-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.da-gauge-bar {
  flex: 1;
  height: 8px;
  background: #F5EEDC;
  border-radius: 4px;
  overflow: hidden;
}
.da-gauge-fill {
  height: 100%;
  background: #047857;
  border-radius: 4px;
  transition: width 600ms cubic-bezier(0.16,1,0.3,1);
}
.da-gauge-fill.warn { background: #d97706; }
.da-gauge-fill.danger { background: #dc2626; }
.da-gauge-label {
  font-size: 11px;
  font-weight: 600;
  color: #4F091D;
  min-width: 50px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Records / inspection row */
.da-record-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #F5EEDC;
  font-size: 12px;
}
.da-record-row:last-child { border-bottom: 0; }
