/* LeadRevive demo — mobile-first (designed at 390px), distinctive real-estate theme */
:root {
  --navy-900: #081729;
  --navy-800: #0b1f3a;
  --navy-700: #112a4d;
  --navy-600: #1b3b66;
  --ink: #0a1626;
  --paper: #f4f1ea;       /* warm off-white */
  --card: #ffffff;
  --line: #e4ddcf;
  --gold: #c9a227;        /* brass accent */
  --gold-soft: #f0e2b6;
  --emerald: #0f7a5a;
  --emerald-soft: #d8efe6;
  --rust: #b4541f;
  --muted: #5d6a7a;
  --muted-2: #8a96a4;
  --shadow: 0 10px 30px rgba(8, 23, 41, 0.12);
  --shadow-sm: 0 3px 10px rgba(8, 23, 41, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(201,162,39,0.10), transparent 60%),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* belt-and-suspenders against horizontal scroll */
  line-height: 1.45;
}

h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.01em; margin: 0; }

/* ---- Demo banner ---- */
.demo-banner {
  position: sticky; top: 0; z-index: 50;
  background: repeating-linear-gradient(45deg, #1a1408 0 14px, #241b0a 14px 28px);
  color: var(--gold-soft);
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  /* Pad the top by the safe-area inset so the mobile address bar / notch
     never overlaps the text. Solid color fills the inset area. */
  padding: calc(7px + env(safe-area-inset-top, 0px)) 12px 7px;
  border-bottom: 1px solid rgba(201,162,39,0.35);
  text-transform: uppercase;
}

/* ---- Brand header ---- */
.brand {
  background:
    radial-gradient(700px 240px at -10% 0%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  padding: 18px 16px 20px;
  border-bottom: 3px solid var(--gold);
}
.brand-row { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 50px; height: 50px; flex: 0 0 50px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--gold), #9c7c14);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
}
.brand-glyph { font-family: "Fraunces", serif; font-weight: 700; font-size: 22px; color: #1a1206; }
.brand-product { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.brand-dot { color: var(--gold); margin: 0 2px; }
.brand-persona { color: var(--gold-soft); font-weight: 600; }
.brand-agent { font-size: 13px; color: #c4d2e4; margin-top: 2px; }
.brand-tagline { font-size: 11.5px; color: var(--gold-soft); margin-top: 4px; line-height: 1.3; }
.brand-market {
  margin-top: 13px;
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-soft);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 5px 11px; border-radius: 999px;
}

/* ---- Layout ---- */
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 14px 40px; }
.block { margin-top: 24px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.block-head h2 { font-size: 21px; }
.block-sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }
.block-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-700); background: #fff; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.block-tag.live { color: var(--emerald); border-color: var(--emerald-soft); background: var(--emerald-soft); }
.block-tag.live::before { content: "● "; font-size: 9px; vertical-align: 2px; }

/* ---- Stat tiles ---- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -18px; top: -18px;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.16), transparent 70%);
}
.stat-num { font-family: "Fraunces", serif; font-size: 26px; font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ---- Lead list ---- */
.lead-list { display: flex; flex-direction: column; gap: 10px; }
.lead {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
  font: inherit; color: inherit;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.lead:active { transform: scale(0.992); }
.lead:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.lead-name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.lead-loc { font-size: 13px; color: var(--muted); margin-top: 1px; }
.lead-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.lead-price { font-family: "Fraunces", serif; font-weight: 700; font-size: 16px; color: var(--emerald); text-align: right; white-space: nowrap; }
.lead-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: #f3f0e8; color: var(--navy-700); border: 1px solid var(--line);
}
.chip.src { background: #eef3fb; color: var(--navy-600); border-color: #dbe6f5; }
.chip.stale { background: #fbeee6; color: var(--rust); border-color: #f2d8c6; }
.chip.stale.hot { background: var(--emerald-soft); color: var(--emerald); border-color: #bfe6d6; }
.lead-cta { grid-column: 1 / -1; margin-top: 10px; }
.lead-cta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.02em;
}

/* ---- Campaign grid (cards are tappable buttons) ---- */
.campaign-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.campaign {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: flex-start;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.campaign:active { transform: scale(0.992); }
.campaign:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.campaign-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  display: grid; place-items: center; font-size: 19px;
}
.campaign-name { font-weight: 700; font-size: 14.5px; }
.campaign-blurb { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.campaign-go { font-size: 12px; font-weight: 700; color: var(--gold); margin-top: 7px; letter-spacing: 0.02em; }
.campaign-count { margin-left: auto; align-self: center; font-size: 12px; font-weight: 700; color: var(--navy-700); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* ---- Power modules ---- */
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-title { font-family: "Fraunces", serif; font-weight: 700; font-size: 17px; }
.panel-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.pill-sample, .pill-setup {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.pill-sample { color: #1b5e46; background: var(--emerald-soft); border: 1px solid #bfe6d6; }
.pill-sample::before { content: "● "; font-size: 8px; vertical-align: 1px; }
.pill-setup { color: #8a6d09; background: var(--gold-soft); border: 1px solid #e6d28f; }
.pill-data {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  color: #0b4a6b; background: #d6ecf7; border: 1px solid #b3dbef;
}
.panel-desc { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }

/* --- CMA (RentCast) — a market-DATA panel, visually distinct from the gold workflow panels --- */
.data-panel { border: 1.5px solid #1b6c93; border-top: 4px solid #1b6c93; box-shadow: 0 8px 26px rgba(27,108,147,0.14), var(--shadow-sm); }
.cma-compliance { font-size: 11px; line-height: 1.4; color: #6a5410; background: var(--gold-soft); border: 1px solid #e6d28f; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.cma-form { display: flex; flex-direction: column; gap: 8px; }
.cma-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.cma-input { width: 100%; box-sizing: border-box; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); padding: 0 13px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.cma-input:focus { outline: 2px solid #1b6c93; outline-offset: 1px; border-color: #1b6c93; }
.btn-data { width: 100%; min-height: 50px; border-radius: 13px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; color: #fff; background: linear-gradient(150deg, #1b6c93, #134e6b); box-shadow: var(--shadow-sm); transition: transform .08s ease, filter .15s ease; }
.btn-data:active { transform: scale(0.985); }
.btn-data:disabled { filter: saturate(0.5) opacity(0.85); cursor: default; }

.cma-out:empty { display: none; }
.cma-out { margin-top: 14px; }
.cma-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.cma-badge.live { color: #0b4a6b; background: #d6ecf7; border: 1px solid #b3dbef; }
.cma-badge.cached { color: var(--navy-700); background: #eef1f5; border: 1px solid #dbe1ea; }
.cma-badge.sample { color: #1b5e46; background: var(--emerald-soft); border: 1px solid #bfe6d6; }
.cma-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.4; }
.cma-subject { font-size: 13.5px; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.cma-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cma-metric { background: #f4f8fb; border: 1px solid #dbe8f0; border-radius: 13px; padding: 12px; }
.cma-metric-n { font-family: "Fraunces", serif; font-weight: 700; font-size: 19px; color: #134e6b; line-height: 1.1; }
.cma-metric-l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cma-table-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); margin: 16px 0 6px; }
.cma-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.cma-table { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 340px; }
.cma-table th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-2); background: #f4f8fb; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cma-table td { padding: 9px 8px; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.cma-table tr:last-child td { border-bottom: none; }
.cma-table .cma-addr { white-space: normal; min-width: 130px; font-weight: 600; color: var(--ink); }

/* --- CMA Smart Adjustment Engine --- */
.cma-hero { background: linear-gradient(150deg, #134e6b, #0c3850); color: #fff; border-radius: 14px; padding: 14px; margin: 4px 0 12px; }
.cma-hero-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #bfe0f0; }
.cma-hero-n { font-family: "Fraunces", serif; font-weight: 700; font-size: 26px; line-height: 1.1; margin-top: 3px; }
.cma-hero-sub { font-size: 12px; color: #d6ecf7; margin-top: 6px; }
.cma-hero-sub strong { color: #fff; }
.cma-hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; margin: 2px 0 10px; }
.cma-rates { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cma-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cma-rate.blanket { background: #eef6fb; border: 1.5px solid #1b6c93; border-radius: 11px; padding: 9px 11px; }
.cma-rate-l { font-size: 12.5px; font-weight: 600; color: var(--navy-700); flex: 1; }
.cma-rate.blanket .cma-rate-l { font-weight: 700; }
.cma-rate-in { display: flex; align-items: center; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0 8px; }
.cma-rate-in:focus-within { outline: 2px solid #1b6c93; }
.cma-rate-pre { color: var(--muted-2); font-size: 13px; }
.cma-rate-suf { color: var(--muted-2); font-size: 11px; }
.cma-num { width: 64px; min-height: 40px; border: none; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; -webkit-appearance: none; }
.cma-num:focus { outline: none; }
.cma-reset { align-self: flex-start; background: none; border: none; color: #1b6c93; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 4px 0; }

.cma-comps { display: flex; flex-direction: column; gap: 9px; }
.cma-comp { border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; transition: opacity .15s ease; }
.cma-comp.excluded { opacity: 0.45; }
.cma-comp-top { display: flex; align-items: flex-start; gap: 10px; }
.cma-chk { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: transparent; font-size: 15px; font-weight: 800; cursor: pointer; line-height: 1; }
.cma-chk.on { background: #1b6c93; border-color: #1b6c93; color: #fff; }
.cma-comp-id { flex: 1; min-width: 0; }
.cma-comp-addr { font-size: 13px; font-weight: 700; color: var(--ink); }
.cma-comp-base { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cma-comp-val { flex: 0 0 auto; font-family: "Fraunces", serif; font-weight: 700; font-size: 16px; color: #134e6b; text-align: right; }
.cma-comp-brk { font-size: 11px; color: var(--emerald); margin: 7px 0 0; line-height: 1.5; }
.cma-cond { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cma-cond-l { font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* --- CMA → workflow actions (Feature 2) --- */
.cma-workflow:empty { display: none; }
.cma-workflow { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cma-wf-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.cma-wf-btn { width: 100%; min-height: 46px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--navy-700); text-align: left; padding: 0 13px; display: flex; align-items: center; gap: 9px; }
.cma-wf-btn:active { transform: scale(0.99); }
.cma-wf-btn .cma-wf-ico { font-size: 16px; }
.cma-wf-done { font-size: 12px; color: var(--emerald); font-weight: 600; padding: 2px 0; }

/* Shared "simulate / generate" button — big tap target */
.btn-sim {
  width: 100%; min-height: 50px; border-radius: 13px; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; margin: 4px 0 6px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800)); color: #fff;
  box-shadow: var(--shadow-sm); transition: transform .08s ease, filter .15s ease;
}
.btn-sim:active { transform: scale(0.985); }
.btn-sim:disabled { filter: saturate(0.5) opacity(0.8); cursor: default; }

/* --- Headline panel emphasis (Speed-to-Lead, Watchdog) --- */
.panel.headline { border: 1.5px solid var(--gold); box-shadow: 0 8px 26px rgba(201,162,39,0.16), var(--shadow-sm); border-top: 4px solid var(--gold); }
.panel-flag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1206; background: linear-gradient(150deg, var(--gold), #a9851a); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* --- Supporting-tools subsection headings --- */
.support-intro { margin-top: 30px; }
.sub-h { font-family: "Fraunces", serif; font-weight: 700; font-size: 18px; }

/* --- Speed-to-Lead --- */
/* "Why seconds matter" comparison */
.s2l-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
.s2l-cmp { border-radius: 13px; padding: 12px; border: 1px solid var(--line); }
.s2l-cmp.fast { background: var(--emerald-soft); border-color: #bfe6d6; }
.s2l-cmp.slow { background: #fbeee6; border-color: #f2d8c6; }
.s2l-cmp-time { font-family: "Fraunces", serif; font-weight: 700; font-size: 27px; line-height: 1; }
.s2l-cmp.fast .s2l-cmp-time { color: var(--emerald); }
.s2l-cmp.slow .s2l-cmp-time { color: var(--rust); }
.s2l-cmp-label { font-size: 11.5px; font-weight: 700; color: var(--navy-700); margin-top: 5px; }
.s2l-cmp-out { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.s2l-why { font-size: 12px; color: var(--muted-2); font-style: italic; margin-bottom: 12px; }
/* editable first-response draft */
.s2l-edit { display: block; width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; -webkit-appearance: none;
  background: #fff; border: 1.5px solid var(--gold); border-radius: 13px; padding: 12px; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.s2l-edit:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.s2l-assist { font-size: 11.5px; line-height: 1.4; color: var(--muted); margin: 8px 0 10px; }
.s2l-acts { display: flex; gap: 10px; }
.s2l-act { flex: 1; min-height: 44px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(150deg, var(--gold), #a9851a); color: #1a1206; }
.s2l-act.ghost { background: #fff; border-color: var(--line); color: var(--navy-700); }
.s2l-act:disabled { filter: saturate(0.5) opacity(0.85); cursor: default; }
.s2l-stage { margin-bottom: 4px; }
.s2l-hint { font-size: 12.5px; color: var(--muted-2); background: #f6f3ec; border: 1px dashed var(--line); border-radius: 11px; padding: 11px 12px; }
.s2l-inbound { background: #eef3fb; border: 1px solid #dbe6f5; border-radius: 13px; padding: 12px; margin-bottom: 10px; animation: pop .25s ease; }
.s2l-src { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy-600); }
.s2l-who { font-size: 13.5px; font-weight: 700; margin: 3px 0 8px; }
.s2l-bubble { font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 13px; }
.s2l-bubble.in { background: #fff; border: 1px solid #dbe6f5; color: var(--ink); border-bottom-left-radius: 4px; }
.s2l-outlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--emerald); margin: 2px 0 6px; }
.s2l-bubble.out { background: var(--emerald-soft); border: 1px solid #bfe6d6; color: #0d3b2c; border-bottom-right-radius: 4px; min-height: 24px; white-space: pre-wrap; }
.s2l-timer { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--rust); margin: 10px 0; }
.s2l-timer .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rust); animation: blink 1s step-end infinite; }
.s2l-timer .val { font-family: "Fraunces", serif; font-weight: 700; margin-left: auto; }
.s2l-timer.done { color: var(--emerald); }
.s2l-timer.done .dot { background: var(--emerald); animation: none; }
.s2l-hlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); margin: 12px 0 4px; }
.s2l-history { }
.s2l-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line); }
.s2l-row:first-of-type { border-top: none; }
.s2l-lead { font-size: 13px; font-weight: 600; }
.s2l-time { font-family: "Fraunces", serif; font-weight: 700; font-size: 14px; }
.s2l-time.fast { color: var(--emerald); }
.s2l-time.slow { color: var(--rust); }

/* --- Transaction Watchdog --- */
.wd-deal { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: 13px; padding: 12px 13px; margin-bottom: 12px; }
.wd-deal-prop { font-family: "Fraunces", serif; font-weight: 700; font-size: 16px; }
.wd-deal-meta { font-size: 12.5px; color: #c4d2e4; margin-top: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wd-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #0c2; background: rgba(15,122,90,0.25); border: 1px solid rgba(20,200,140,0.4); color: #7ff0c8; padding: 2px 7px; border-radius: 999px; }
.wd-item { border-top: 1px dashed var(--line); }
.wd-item:first-of-type { border-top: none; }
.wd-card2 { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: none; border: none; display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.wd-days { width: 52px; flex: 0 0 52px; text-align: center; border-radius: 11px; padding: 7px 0; }
.wd-days .n { font-family: "Fraunces", serif; font-weight: 700; font-size: 20px; line-height: 1; display: block; }
.wd-days .l { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.wd-days.urgent { background: #fbe3da; color: var(--rust); }
.wd-days.soon { background: var(--gold-soft); color: #8a6d09; }
.wd-days.ok { background: var(--emerald-soft); color: var(--emerald); }
.wd-body { flex: 1; min-width: 0; }
.wd-prop { font-size: 13.5px; font-weight: 700; }
.wd-step { font-size: 12px; color: var(--muted); margin-top: 1px; }
.wd-chev { flex: 0 0 auto; color: var(--muted-2); font-size: 13px; transition: transform .18s ease; }
.wd-item.open .wd-chev { transform: rotate(90deg); }
.wd-detail { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.wd-item.open .wd-detail { max-height: 260px; }
.wd-detail-txt { font-size: 12.5px; line-height: 1.55; color: var(--muted); padding: 2px 0 12px; }

/* --- Listing Video Factory --- */
.vf-stage { min-height: 60px; }
.vf-form { display: flex; flex-direction: column; gap: 8px; }
.vf-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); }
.vf-input {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 13px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.vf-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.vf-foot { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.45; }

.vf-progress { display: flex; align-items: center; gap: 14px; padding: 14px 0 6px; }
.vf-ring { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) 0deg, #e7e0d0 0); }
.vf-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: "Fraunces", serif; font-weight: 700; font-size: 15px; color: var(--navy-800); }
.vf-pstep { font-size: 13.5px; font-weight: 600; color: var(--navy-700); }

/* The reel — real rendered MP4 (Ken Burns + captions + Rachel narration), plays inline */
.vf-player { position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); display: flex; justify-content: center; }
.vf-video { display: block; width: auto; max-width: 100%; max-height: 70vh; height: auto; background: #000; }
.vf-watermark { position: absolute; top: 11px; left: 12px; z-index: 3; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(8,16,28,0.55); border: 1px solid rgba(255,255,255,0.18); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(2px); pointer-events: none; }
.vf-controls { display: flex; gap: 10px; margin-top: 10px; }
.vf-ctl { flex: 1; min-height: 46px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid transparent; background: linear-gradient(150deg, var(--gold), #a9851a); color: #1a1206; transition: transform .08s ease; }
.vf-ctl:active { transform: scale(0.985); }
.vf-ctl.ghost { background: #fff; border-color: var(--line); color: var(--navy-700); flex: 0 0 140px; }

@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- Footer ---- */
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.foot-brand { font-family: "Fraunces", serif; font-weight: 700; color: var(--navy-800); font-size: 16px; }
.foot-note { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

/* ---- Modal ---- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,16,28,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-scrim[hidden] { display: none; }
.modal {
  background: var(--paper); width: 100%; max-width: 560px;
  border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(8,16,28,0.35);
  max-height: 92dvh; overflow-y: auto;
  border-top: 3px solid var(--gold);
  animation: sheet .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.modal-top h3 { font-size: 19px; margin-top: 3px; color: var(--navy-800); }
.modal-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal-close {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 15px; cursor: pointer;
}
.approval {
  margin: 14px 0 12px; font-size: 12px; color: #6a5410; line-height: 1.4;
  background: var(--gold-soft); border: 1px solid #e6d28f; border-radius: 11px;
  padding: 10px 12px;
}
.approval::before { content: "✓ "; font-weight: 700; }
.draft-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--navy-700); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 7px; }
.draft-status { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted-2); font-size: 12px; }
.draft-status.done { color: var(--emerald); }
.draft-box {
  display: block; width: 100%; box-sizing: border-box;
  background: #fff; border: 1.5px solid var(--gold); border-radius: 13px;
  padding: 15px; font: inherit; font-size: 14.5px; line-height: 1.6; color: var(--ink);
  min-height: 170px; resize: vertical; -webkit-appearance: none;
  box-shadow: inset 0 1px 3px rgba(8,23,41,0.04);
}
.draft-box:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.draft-editable { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8a6d09; background: var(--gold-soft); border: 1px solid #e6d28f; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.draft-note { font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.caret { display: inline-block; width: 7px; background: var(--gold); margin-left: 1px; animation: blink 1s step-end infinite; }
.caret::before { content: "\00a0"; }
@keyframes blink { 50% { opacity: 0; } }

.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn {
  flex: 1; min-height: 50px; border-radius: 13px; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(0.985); }
.btn-copy { background: linear-gradient(150deg, var(--gold), #a9851a); color: #1a1206; box-shadow: var(--shadow-sm); }
.btn-copy.copied { background: var(--emerald); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy-700); flex: 0 0 130px; }

/* ---- Desktop refinements (mobile-first base above) ---- */
@media (min-width: 680px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .panel:last-child { grid-column: 1 / -1; }
  .modal-scrim { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; max-height: 86dvh; }
  @keyframes sheet { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
