/* ============================================================
   Property Deal Tools — Deal Dashboard styles
   Layers on top of calculator-styles.css. Reuses tokens, deal-col
   DNA, tag chips, modals, premium/coming-soon treatments. Nothing
   here redefines a token — only dashboard-specific composition.
   ============================================================ */

/* ---- Preview-state switcher (design-reference affordance only) ---- */
.state-switcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 400;
  background: var(--secondary); color: white;
  border-radius: 999px; padding: 5px;
  display: flex; gap: 4px; align-items: center;
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.32);
  font-size: 12px;
}
.state-switcher .ss-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 0 8px 0 10px;
}
.state-switcher button {
  border: none; background: transparent; color: rgba(255,255,255,0.72);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.state-switcher button:hover { color: white; }
.state-switcher button.active { background: white; color: var(--secondary); }
@media (max-width: 640px) {
  .state-switcher { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .state-switcher .ss-label { display: none; }
}

/* ---- Dashboard hero count + controls ---- */
.dash-main { padding: 40px 0 120px; }

.dash-controls {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.dash-controls-title h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; color: var(--secondary);
  letter-spacing: -0.01em; margin-bottom: 3px;
}
.dash-controls-title p { color: var(--muted-ink); font-size: 14px; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group > .fg-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-ink);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* reuse .tag-filter look for the chips */

.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6675' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none;
}
.sort-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }

/* ---- Workflow group ---- */
.dash-group { margin-bottom: 40px; }
.dash-group:last-child { margin-bottom: 0; }
.dash-group-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.dash-group-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--primary); background: var(--primary-subtle);
  border: 1px solid #C6DEEE; border-radius: 4px; padding: 3px 8px;
}
.dash-group-head h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--secondary); letter-spacing: -0.01em;
}
.dash-group-count { font-size: 13px; color: var(--muted-ink); font-weight: 500; }

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

/* ---- Deal card (shares deal-col DNA) ---- */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.deal-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.deal-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }

.deal-card-top {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px 12px;
}
.deal-check {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid var(--border-strong); border-radius: 5px;
  background: white; cursor: pointer; position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.deal-check:checked { background: var(--primary); border-color: var(--primary); }
.deal-check:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid white;
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.deal-check:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-subtle); }

.deal-card-headings { flex: 1; min-width: 0; }
.deal-card-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--secondary); line-height: 1.25; letter-spacing: -0.01em;
  word-break: break-word; cursor: text;
  border-radius: 4px; padding: 1px 3px; margin: -1px -3px 4px;
  transition: background 0.12s;
}
.deal-card-name:hover { background: var(--primary-subtle-light); }
.deal-card-name:focus { outline: none; background: white; box-shadow: 0 0 0 2px var(--primary); }
.deal-card-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

/* Workflow + status pills */
.wf-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--primary-subtle); color: var(--primary);
  border: 1px solid #C6DEEE; border-radius: 999px; padding: 2px 9px;
}
.status-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 999px; padding: 2px 10px;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; border: 1px solid transparent;
  transition: filter 0.12s;
}
.status-pill:hover { filter: brightness(0.97); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill .caret { width: 9px; height: 9px; opacity: 0.6; margin-left: 1px; }
.st-considering { background: var(--primary-subtle); color: var(--primary); border-color: #C6DEEE; }
.st-contract    { background: var(--warning-bg); color: #B07900; border-color: #F2E2A8; }
.st-owned       { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.st-passed      { background: #EEF1F5; color: var(--muted-ink); border-color: var(--border); }

.deal-card-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 14px; }

/* Key metrics row */
.deal-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--primary-subtle-light);
}
.deal-metrics.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dm-cell {
  padding: 11px 8px; text-align: center; min-width: 0;
  border-right: 1px solid var(--border);
}
.dm-cell:last-child { border-right: none; }
.dm-cell .dm-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--muted-ink);
  margin-bottom: 4px; line-height: 1.2; text-wrap: balance;
}
.dm-cell .dm-value {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--secondary); line-height: 1; font-variant-numeric: tabular-nums;
}
.dm-cell .dm-value.tone-success { color: var(--success); }
.dm-cell .dm-value.tone-warning { color: var(--warning); }
.dm-cell .dm-value.tone-danger { color: var(--danger); }

/* Input snapshot line */
.deal-snapshot {
  font-size: 12.5px; color: var(--muted-ink);
  display: flex; align-items: center; gap: 7px; line-height: 1.4;
}
.deal-snapshot svg { flex-shrink: 0; opacity: 0.55; }

/* Completion indicator */
.deal-completion { display: flex; align-items: center; gap: 10px; }
.completion-dots { display: flex; gap: 5px; }
.cdot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: white;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.cdot.done { background: var(--success); border-color: var(--success); }
.cdot svg { display: none; }
.cdot.done svg { display: block; }
.completion-label { font-size: 11.5px; color: var(--muted-ink); font-weight: 600; white-space: nowrap; }

/* Tags */
.deal-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.deal-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--page); border: 1px solid var(--border);
  color: var(--muted-ink); font-size: 11.5px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px;
}
.deal-tag .tag-x {
  cursor: pointer; color: var(--light-ink); font-size: 13px;
  line-height: 1; margin-right: -2px;
}
.deal-tag .tag-x:hover { color: var(--danger); }
.deal-tag-add {
  background: none; border: 1px dashed var(--border-strong);
  color: var(--muted-ink); font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 3px 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.deal-tag-add:hover { border-color: var(--primary); color: var(--primary); }

/* Notes preview */
.deal-notes {
  font-size: 13px; color: var(--muted-ink); line-height: 1.5;
  background: var(--page); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  cursor: pointer; position: relative;
}
.deal-notes:hover { border-color: var(--border-strong); }
.deal-notes .dn-text { display: block; }
.deal-notes.clamped .dn-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-notes .dn-toggle {
  font-size: 11.5px; font-weight: 700; color: var(--primary);
  margin-top: 5px; display: inline-block;
}
.deal-notes-empty {
  font-size: 12.5px; color: var(--light-ink); font-style: italic;
  cursor: pointer; padding: 4px 0;
}
.deal-notes-empty:hover { color: var(--primary); }

/* Footer / actions */
.deal-card-foot {
  margin-top: auto; padding: 13px 18px;
  border-top: 1px solid var(--border); background: var(--page);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.deal-timestamp { font-size: 11.5px; color: var(--light-ink); font-weight: 500; min-width: 0; }
.deal-actions { display: flex; align-items: center; gap: 8px; }
.btn-open-deal {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--primary); color: white; border: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: background 0.15s;
}
.btn-open-deal:hover { background: var(--primary-hover); color: white; }

/* "More" menu trigger */
.more-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: white; color: var(--muted-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.more-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Popover menu (more actions + status picker) ---- */
.dash-popover {
  position: fixed; z-index: 350;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg, 0 12px 32px rgba(14,42,71,0.18));
  padding: 6px; min-width: 210px;
  animation: pdtFadeIn 0.12s ease;
}
.popover-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: none; background: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--ink); cursor: pointer; border-radius: var(--radius-sm);
  text-align: left; text-decoration: none;
}
.popover-item:hover { background: var(--primary-subtle-light); }
.popover-item svg { flex-shrink: 0; color: var(--muted-ink); }
.popover-item.danger { color: var(--danger); }
.popover-item.danger svg { color: var(--danger); }
.popover-item.danger:hover { background: var(--danger-bg); }
.popover-item .pi-badge { margin-left: auto; }
.popover-item.is-disabled { color: var(--light-ink); cursor: not-allowed; }
.popover-item.is-disabled:hover { background: none; }
.popover-item.is-disabled svg { color: var(--light-ink); }
.popover-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.popover-heading {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light-ink); padding: 7px 11px 4px;
}
.coming-soon-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: #EEF1F5; color: var(--muted-ink);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}

/* Status popover swatches */
.status-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: none; background: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); text-align: left;
}
.status-option:hover { background: var(--primary-subtle-light); }
.status-option .so-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-option .so-check { margin-left: auto; color: var(--primary); }
.so-dot.dot-considering { background: var(--primary); }
.so-dot.dot-contract { background: var(--warning); }
.so-dot.dot-owned { background: var(--success); }
.so-dot.dot-passed { background: var(--light-ink); }

/* ---- Compare bar (sticky bottom) ---- */
.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 360;
  background: var(--secondary); color: white;
  box-shadow: 0 -6px 24px rgba(14, 42, 71, 0.25);
  transform: translateY(120%); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.compare-bar.show { transform: translateY(0); }
.compare-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.compare-bar-left { display: flex; align-items: center; gap: 14px; }
.compare-count-badge {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  background: var(--accent); color: var(--secondary);
  border-radius: 999px; min-width: 32px; height: 32px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.compare-bar-text { font-size: 14.5px; font-weight: 500; }
.compare-bar-text strong { font-weight: 700; }
.compare-bar-note { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 1px; }
.compare-bar-right { display: flex; align-items: center; gap: 10px; }
.compare-bar .btn-clear {
  background: none; border: 1px solid rgba(255,255,255,0.3); color: white;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
}
.compare-bar .btn-clear:hover { border-color: rgba(255,255,255,0.6); }
.compare-bar .btn-compare {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--secondary); border: none;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: background 0.15s;
}
.compare-bar .btn-compare:hover { background: var(--accent-hover); }
.compare-bar .btn-compare:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Empty state ---- */
.dash-empty {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 56px 32px 48px; text-align: center; margin-bottom: 36px;
}
.dash-empty-icon {
  width: 86px; height: 86px; margin: 0 auto 22px; border-radius: 22px;
  background: var(--primary-subtle); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.dash-empty h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--secondary); margin-bottom: 10px; letter-spacing: -0.01em;
}
.dash-empty p {
  color: var(--muted-ink); font-size: 15.5px; line-height: 1.6;
  max-width: 520px; margin: 0 auto 26px;
}
.dash-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.demo-section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-ink); margin-bottom: 14px;
}
.demo-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Demo card distinct treatment */
.deal-card.is-demo {
  border: 2px dashed var(--border-strong);
  background: linear-gradient(180deg, #FCFDFE 0%, var(--surface) 100%);
  box-shadow: none;
}
.deal-card.is-demo:hover { border-color: var(--primary); }
.demo-banner {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-subtle); color: var(--primary);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px dashed var(--border-strong);
}
.demo-banner svg { flex-shrink: 0; }

/* ---- Free-tier upsell ---- */
.upsell-hero { text-align: center; max-width: 720px; margin: 0 auto 12px; }
.upsell-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--primary); background: var(--primary-subtle);
  border: 1px solid #C6DEEE; border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.upsell-hero h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600; color: var(--secondary); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance;
}
.upsell-hero p {
  font-size: 17px; color: var(--muted-ink); line-height: 1.55;
  max-width: 600px; margin: 0 auto 26px;
}
.upsell-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-upgrade {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #F5A623 0%, #E0892F 100%);
  color: var(--secondary); border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius-md); cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 14px rgba(245, 166, 35, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-upgrade:hover { color: var(--secondary); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 166, 35, 0.42); }

/* Feature showcase */
.upsell-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 56px 0;
}
.upsell-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.uf-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-subtle); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.upsell-feature h4 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--secondary); margin-bottom: 7px;
}
.upsell-feature p { font-size: 13.5px; color: var(--muted-ink); line-height: 1.55; }

/* Frosted mockup preview */
.upsell-preview {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  margin-top: 8px;
}
.upsell-preview-glass {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(247, 249, 252, 0.55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 32px;
}
.upsell-preview-lock {
  width: 64px; height: 64px; border-radius: 50%;
  background: white; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent-hover);
}
.upsell-preview-glass h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--secondary);
}
.upsell-preview-glass p { font-size: 14px; color: var(--muted-ink); max-width: 360px; }
.upsell-preview-img {
  filter: saturate(0.95); pointer-events: none; user-select: none;
  padding: 24px; background: var(--page);
}

/* ---- Modal additions (notes textarea, tag editor, dup) ---- */
.pdt-modal-textarea {
  width: 100%; min-height: 130px; resize: vertical;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 14px; line-height: 1.55; color: var(--ink);
}
.pdt-modal-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }
.tag-editor { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag-editor:empty { display: none; }
.tag-input-row { display: flex; gap: 8px; }
.tag-input-row input { flex: 1; }
.tag-add-btn {
  background: var(--primary); color: white; border: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 0 16px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
}
.tag-add-btn:hover { background: var(--primary-hover); }
.modal-deal-name { font-weight: 700; color: var(--secondary); }
.dup-preview {
  background: var(--page); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13px; color: var(--muted-ink); margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
}
.dup-preview svg { color: var(--primary); flex-shrink: 0; }

/* Modal footer buttons */
.btn-modal {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border);
}
.btn-modal.ghost { background: white; color: var(--muted-ink); }
.btn-modal.ghost:hover { border-color: var(--border-strong); color: var(--ink); }
.btn-modal.primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-modal.primary:hover { background: var(--primary-hover); }
.btn-modal.danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-modal.danger:hover { filter: brightness(0.93); }
.pdt-modal-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .deal-grid { grid-template-columns: 1fr; }
  .upsell-features { grid-template-columns: 1fr 1fr; }
  .dash-controls { flex-direction: column; align-items: stretch; gap: 18px; }
  .filter-bar { gap: 14px; }
}
@media (max-width: 640px) {
  .dash-main { padding: 28px 0 130px; }
  .deal-metrics { grid-template-columns: repeat(2, 1fr); }
  .deal-metrics.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .dm-cell:nth-child(2) { border-right: none; }
  .dm-cell:nth-child(1), .dm-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .upsell-features { grid-template-columns: 1fr; }
  .compare-bar-inner { gap: 10px; }
  .compare-bar-text { font-size: 13px; }
  .compare-bar .btn-compare { padding: 9px 14px; font-size: 13.5px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-chips { gap: 5px; }
}
