/* ════════════════════════════════════════════════════════════════════════════
   DASHBOARD — redesigned per the UI/UX mockups
   A 12-column Gridstack canvas with draggable, resizable widgets. Everything
   here is scoped under .dash- so it cannot leak into the other 49 pages.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── header ───────────────────────────────────────────────────────────────── */
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 4px 0 22px;
}
.dash-greeting {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.dash-sub {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.dash-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Scoped to this header only: Figma size/font. Colours come from the shared
   .btn-primary (--btn-primary) like every other page. */
.dash-head-actions .btn {
  font-family: 'Geist', system-ui, sans-serif; font-weight: 500; font-size: 13px;
  height: 32px; border-radius: 6px;
}
.dash-head-actions .btn-secondary { border-color: #e1e7e4; }
.dash-head-actions .btn-secondary:hover { background: #fbfcfc; border-color: #e1e7e4; color: #1b211f; }
.dash-head-actions .btn-ghost { color: #55605c; }
.dash-head-actions .btn-ghost:hover { background: #eef2f0; color: #1b211f; }

.dash-select {
  appearance: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 30px 7px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23888' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
}
.dash-select:hover { border-color: var(--border-focus); }
.dash-select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ── edit-mode hint banner ────────────────────────────────────────────────── */
.dash-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Fixed height: if the wording ever changes while the grid is interactive, a
     reflow here would shift the canvas and confuse Gridstack. Colors sampled
     directly from UI-UX-Images/Dashboard/Edit mode.png (the real Figma
     export) — this banner IS meant to be a blue info strip, not neutral;
     an earlier pass wrongly "fixed" this by de-blueing it. */
  min-height: 34px;
  background: #eaf1fe;
  border: 1px solid #e1e7e4;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #2f6fea;
}
.dash-hint .mdi { color: #2f6fea; font-size: 1.05rem; }
.dash-hint a { margin-left: auto; color: var(--primary); white-space: nowrap; }

/* ── alert strip (the "Needs you today" widget) ───────────────────────────── */
  /* Always ONE row of separate cards (the mock is five tiles with a 10px gap,
     not one fused bar). Buttons get appearance:none so the UA chrome cannot
     paint the 2px black border that wrapped the old strip. */
/* Radius sampled from the design: the corner curve spans about 4-6px, not the
   16px of --radius-lg, which made every card read as far more rounded than the
   design intends. */
.dash-alerts {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid rgb(225, 231, 228);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  align-items: stretch;
  min-width: 0;
}
.dash-alert {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: none;
  border-right: 1px solid rgb(225, 231, 228);
  border-radius: 0;
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  height: 100%;
}
.dash-alert:last-child { border-right: none; }
/* --sidebar-hover is hsl(210,20%,16%) — a near-BLACK meant for the dark
   sidebar. Using it here turned the tile almost black on hover, which also
   made its edges read as a heavy dark border. The design shows no hover at
   all, but these tiles navigate on click, so this is the faintest wash that
   still signals "clickable". */
.dash-alert:hover { background: rgb(249, 251, 250); }
.dash-alert:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
/* Values taken from the design file by sampling it, not approximated: the chip
   is a 28px CIRCLE with a very pale tint, and the tone colours the NUMBER as
   well as the glyph. */
.dash-alert-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  background: rgb(238, 242, 240);
  color: rgb(99, 112, 107);
}
.dash-alert.tone-critical .dash-alert-icon,
.dash-alert.tone-critical .dash-alert-num { color: rgb(140, 32, 24); }
.dash-alert.tone-critical .dash-alert-icon { background: rgb(254, 240, 239); }

.dash-alert.tone-warning .dash-alert-icon,
.dash-alert.tone-warning .dash-alert-num { color: rgb(126, 75, 3); }
.dash-alert.tone-warning .dash-alert-icon { background: rgb(254, 246, 231); }

.dash-alert.tone-good .dash-alert-icon,
.dash-alert.tone-good .dash-alert-num { color: rgb(14, 105, 70); }
.dash-alert.tone-good .dash-alert-icon { background: rgb(233, 246, 239); }
.dash-alert-body { min-width: 0; }
.dash-alert-top {
  align-items: baseline; gap: 7px;
  font-size: 1.07rem; line-height: 1.25; color: rgb(27, 33, 31);
}
.dash-alert-num {
  /* 18px -> ~13px cap, matching the design's measured glyph height. */
  font-size: 1.28rem; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums;
  color: rgb(27, 33, 31);
}
.dash-alert-body { display: block; }
.dash-alert-top { display: flex; }
.dash-alert-sub {
  display: block;
  font-size: 0.93rem; line-height: 1.25; color: rgb(99, 112, 107); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── widget shell ─────────────────────────────────────────────────────────── */
.dash-w {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(225, 231, 228);
  border-radius: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* The AI widget is the one highlighted card in the mockup, in a soft indigo
   that reads as "different system" rather than "brand colour". Kept separate
   from the green brand tokens so it does not fight the rest of the page. */
/* Sampled from the design: a LAVENDER border, a tinted band across the title
   and the three stats, then white rows underneath. Tinting the whole card (my
   first attempt) and making it all white (my second) were both wrong. */
.dash-w.accent {
  background: rgb(255, 255, 255);
  border-color: rgb(201, 187, 250);
}
.dash-w.accent .dash-w-head { background: rgb(243, 240, 254); padding-top: 14px; }
.dash-w.accent .dash-ai-stats {
  background: rgb(243, 240, 254);
  margin: -14px -16px 0;
  padding: 12px 16px 14px;
  border-bottom: 1px solid rgb(201, 187, 250);
}
.dash-w.accent .dash-ai-stat-num { color: #5646c4; }
.dash-w.accent .dash-w-title .mdi { color: #6a5ae0 !important; }
/* First list row sits directly under the band, so it needs no top rule. */
.dash-w.accent .dash-ai-row:first-of-type { border-top: none; }
.dash-w-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 0;
}
.dash-w-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-w-sub {
  font-size: 0.78rem; color: var(--text-muted);
  padding: 2px 16px 0; margin: 0;
}
.dash-w-note { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.dash-w-menu {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--text-muted); padding: 2px 4px; border-radius: var(--radius-sm);
  font-size: 1.05rem; line-height: 1;
}
.dash-w-menu:hover { background: var(--bg-input); color: var(--text-primary); }
/* No inner scroll: the design cards are content-height and never scroll. Each
   widget is sized (and its list capped in JS) to fit, and anything a viewport
   quirk pushes over is clipped cleanly rather than growing a scrollbar. */
.dash-w-body { padding: 13px 16px 18px; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.dash-w-foot {
  padding: 8px 16px 12px; text-align: right;
  font-size: 0.8rem;
}
.dash-w-empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--text-muted); font-size: 0.85rem; text-align: center;
}
.dash-w-empty .mdi { font-size: 1.6rem; opacity: 0.55; }

/* ── pipeline bars ────────────────────────────────────────────────────────── */
.dash-stage {
  display: grid;
  grid-template-columns: 130px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  font-size: 0.85rem;
}
.dash-stage-name { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); min-width: 0; }
.dash-stage-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
/* These are <span>s inside a grid cell. Without display:block a percentage
   width resolves against an inline box, which has no definite width, so the
   fill computed to 0px and every bar looked empty. */
.dash-stage-track {
  display: block; width: 100%;
  /* Sampled directly from the real Figma export (Edit mode.png): unlike the
     Goals meters, this bar has no visible groove behind it at all — it's
     literally transparent, not a gray track. An earlier pass guessed a gray
     background here (and green for the fill below) by analogy with other
     pages' progress bars; the export shows blue was actually correct. */
  background: transparent; border-radius: var(--radius-full);
  height: 12px; overflow: hidden;
}
.dash-stage-fill {
  display: block; height: 100%;
  border-radius: var(--radius-full); background: #2B6CE8; min-width: 3px;
}
.dash-stage-amt { font-family: ui-monospace, monospace; font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.dash-stage-cnt { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

/* ── stacked activity chart ───────────────────────────────────────────────── */
/* Three stacked parts per day: the total, a PLOT AREA that owns the height, and
   the label. The plot area is the flex child, so the stack inside it can use a
   percentage height that actually resolves. Putting flex:1 on the stack itself
   made every bar the same height regardless of its value. */
.dash-bars { display: flex; align-items: stretch; gap: 4px; flex: 1; min-height: 0; }
.dash-bar-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.dash-bar-plot {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.dash-bar-total { font-size: 0.75rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.dash-bar-stack {
  width: 100%; max-width: 30px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
}
.dash-bar-seg { display: block; width: 100%; min-height: 3px; }
.dash-bar-stack > .dash-bar-seg:first-child { border-radius: 2px 2px 0 0; }
.dash-bar-stack > .dash-bar-seg:last-child { border-radius: 0 0 2px 2px; }
.dash-bar-none { display: block; width: 100%; max-width: 30px; height: 2px; background: var(--border); border-radius: 2px; }
.dash-bar-label { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.dash-legend { display: flex; flex-wrap: wrap; gap: 10px 12px; padding-top: 7px; font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }
.dash-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dash-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ── AI pipeline widget ───────────────────────────────────────────────────── */
.dash-ai-stats { display: flex; gap: 22px; padding-bottom: 12px; }
.dash-ai-row { border-top-color: rgb(225, 231, 228); }
.dash-ai-stat-num { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.dash-ai-stat-lbl { font-size: 0.75rem; color: var(--text-secondary); }
.dash-ai-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--border);
}
.dash-ai-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-input); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600;
}
.dash-ai-who { min-width: 0; flex: 1; }
.dash-ai-who { display: block; }
.dash-ai-co { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-ai-meta { display: block; font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-chip {
  font-size: 0.72rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-full);
}
.dash-chip.ready      { color: var(--success); background: var(--success-bg); }
.dash-chip.researching{ color: var(--info);    background: var(--info-bg); }
.dash-chip.review     { color: var(--warning); background: var(--warning-bg); }
.dash-chip.queued     { color: var(--text-muted); background: var(--bg-input); }

/* ── goals ────────────────────────────────────────────────────────────────── */
.dash-goal { padding: 7px 0; }
.dash-goal:last-child { padding-bottom: 2px; }
.dash-goal + .dash-goal { border-top: 1px solid var(--border); }
.dash-goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.dash-goal-lbl { color: var(--text-secondary); }
.dash-goal-val { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--text-primary); font-weight: 600; }
.dash-goal-of { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }
.dash-goal-track { background: #eef2f0; border-radius: var(--radius-full); height: 5px; margin: 6px 0 4px; overflow: hidden; }
/* var(--success)/var(--warning) are generic theme hues that don't quite match
   the export — sampled pixels came back #0b7a50 (the brand green, not a
   separate "success" green) and #c77a05 (the same amber used elsewhere). */
.dash-goal-fill { display: block; height: 100%; border-radius: var(--radius-full); background: #0b7a50; min-width: 3px; }
.dash-goal-fill.behind { background: #c77a05; }
.dash-goal-note { font-size: 0.75rem; color: var(--text-muted); }

/* ── recent activity ──────────────────────────────────────────────────────── */
.dash-act { display: flex; gap: 10px; padding: 7px 0; }
.dash-act + .dash-act { border-top: 1px solid var(--border); }
.dash-act-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--info-bg); color: var(--info);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.dash-act-body { min-width: 0; flex: 1; }
.dash-act-title { display: block; font-size: 0.85rem; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-act-detail { display: block; font-size: 0.75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-act-when { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ── edit mode ────────────────────────────────────────────────────────────── */
/* A 1px hairline in the app's default border gray reads as almost invisible
   once it's dashed — thicken and darken it slightly so it's obvious which
   area is a draggable/resizable widget while editing. */
.dash-grid.editing .dash-w { border-style: dashed; border-width: 1.5px; border-color: #c4cdc9; }
.dash-grid.editing .dash-alerts { border-style: dashed; border-width: 1.5px; border-color: #c4cdc9; }
.dash-drag {
  position: absolute; top: -11px; left: 8px; z-index: 6;
  display: none; align-items: center; gap: 6px;
  background: var(--text-primary); color: var(--bg-card);
  border-radius: var(--radius-sm); padding: 3px 9px;
  font-size: 0.72rem; cursor: move; white-space: nowrap;
}
.dash-drag .sz { opacity: 0.65; font-family: ui-monospace, monospace; }
.dash-grid.editing .dash-drag { display: inline-flex; }
/* One bordered pill holding both tools (Figma's "Widget tools" component),
   not two separate floating squares with a gap between them. */
.dash-w-tools {
  position: absolute; top: -11px; right: 8px; z-index: 6;
  display: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); overflow: hidden;
}
.dash-grid.editing .dash-w-tools { display: flex; }
.dash-w-tool {
  width: 26px; height: 26px; border-radius: 0;
  border: none; background: none;
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.dash-w-tool + .dash-w-tool { border-left: 1px solid var(--border); }
.dash-w-tool:hover { color: var(--text-primary); background: var(--bg-input); }
.dash-w-tool.danger:hover { color: var(--danger); background: var(--bg-input); }
/* The alerts strip is a fixed full-width row, not a movable/resizable
   widget like the others (Figma gives it no drag handle or tool overlay). */
.dash-item-alerts .dash-drag, .dash-item-alerts .dash-w-tools { display: none !important; }
/* Leave Gridstack own position:absolute + inset (the margin gap) intact —
   overriding it to relative made the content fill edge to edge and killed
   the 16px gutter. Only relax overflow so the drag handle can sit outside. */
.grid-stack-item-content { overflow: visible !important; }
.dash-item-alerts > .grid-stack-item-content {
  overflow: hidden !important;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ── widget library drawer ────────────────────────────────────────────────── */
.dash-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw;
  background: var(--bg-card); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg); z-index: 1200;
  display: flex; flex-direction: column;
}
.dash-drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 12px;
}
.dash-drawer-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.dash-drawer-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; }
.dash-drawer-search { padding: 0 20px 12px; }
.dash-drawer-body { flex: 1; overflow: auto; padding: 0 20px 24px; }
.dash-lib-group {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; padding: 14px 0 8px;
}
.dash-lib-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--border); }
.dash-lib-thumb {
  width: 54px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--bg-input); display: flex; align-items: flex-end;
  gap: 2px; padding: 5px; overflow: hidden;
}
.dash-lib-thumb i { display: block; background: var(--border-focus); border-radius: 1px; flex: 1; }
.dash-lib-info { min-width: 0; flex: 1; }
.dash-lib-name { font-size: 0.87rem; color: var(--text-primary); }
.dash-lib-meta { font-size: 0.72rem; color: var(--text-muted); font-family: ui-monospace, monospace; }
.dash-lib-item.soon { opacity: 0.55; }
.dash-lib-soon { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* toggle */
.dash-toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer; }
.dash-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.dash-toggle .track {
  position: absolute; inset: 0; border-radius: var(--radius-full);
  background: var(--border); transition: background var(--transition);
}
.dash-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: left var(--transition);
}
.dash-toggle input:checked + .track { background: var(--success); }
.dash-toggle input:checked + .track .knob { left: 19px; }
.dash-toggle input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.dash-toggle input:disabled + .track { opacity: 0.5; cursor: not-allowed; }

/* ── widget settings modal ────────────────────────────────────────────────── */
.dash-modal-back {
  position: fixed; inset: 0; background: rgba(8, 15, 20, 0.45);
  z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.dash-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 340px; max-height: 88vh; overflow: auto;
}
.dash-modal-head { display: flex; align-items: center; padding: 16px 18px 4px; }
.dash-modal-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.dash-modal-body { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 13px; }
.dash-field label {
  display: block; font-size: 0.78rem; color: var(--text-secondary);
  margin-bottom: 5px; font-weight: 500;
}
.dash-field .dash-select, .dash-field input[type="text"] { width: 100%; }
.dash-field input[type="text"] {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 7px 11px;
  font-size: 0.85rem; color: var(--text-primary); font-family: inherit;
}
.dash-field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.dash-seg { display: flex; background: var(--bg-input); border-radius: var(--radius-md); padding: 3px; gap: 3px; }
.dash-seg button {
  flex: 1; border: 0; background: none; cursor: pointer;
  padding: 6px 4px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-family: inherit; color: var(--text-secondary);
}
.dash-seg button.on { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); font-weight: 500; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-modal-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 18px; border-top: 1px solid var(--border); margin-top: 6px;
}
.dash-modal-foot .grow { flex: 1; }

/* ── setup checklist (empty workspace) ────────────────────────────────────── */
.dash-setup-step { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-top: 1px solid rgb(225, 231, 228); }
.dash-setup-num {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
  background: var(--bg-input); color: var(--text-muted);
}
.dash-setup-step.done .dash-setup-num { background: var(--success); color: #fff; }
.dash-setup-body { flex: 1; min-width: 0; }
.dash-setup-label { font-size: 0.9rem; color: var(--text-primary); }
.dash-setup-step.done .dash-setup-label { text-decoration: line-through; color: var(--text-muted); }
.dash-setup-hint { font-size: 0.76rem; color: var(--text-muted); }

/* ── loading skeleton ─────────────────────────────────────────────────────── */
.dash-sk { background: var(--bg-input); border-radius: var(--radius-sm); }
@keyframes dashPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.dash-skeleton .dash-sk { animation: dashPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dash-skeleton .dash-sk { animation: none; } }

@media (max-width: 720px) {
  .dash-stage { grid-template-columns: 96px 1fr auto; }
  .dash-stage-cnt { display: none; }
  .dash-drawer { width: 100%; }
}
