/* Property systems demo — "Calvermoor Lettings" (fictional). Scoped under .pd- */
:root {
  --pd-brand: #0e5e63;        /* fictional agency's own brand colour */
  --pd-brand-dark: #0a4649;
  --pd-brand-soft: #e6f1f1;
  --pd-ink: #141414;
  --pd-muted: #5b5b5b;
  --pd-line: rgba(20, 20, 20, 0.1);
  --pd-surface: #fcfcfb;
  --pd-panel: #ffffff;
  --pd-good: #1f8a4c;
  --pd-warn: #a87400;
  --pd-bad: #c0392b;
  --pd-radius: 14px;
}

/* ---------- Page intro (Amber Multi branding) ---------- */
.pd-intro { padding: 150px 0 40px; background: linear-gradient(180deg, #f8f6f0 0%, #ffffff 100%); }
.pd-intro .container { max-width: 1100px; }
.pd-intro .eyebrow { display: inline-block; margin-bottom: 14px; }
.pd-intro h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; max-width: 780px; }
.pd-intro p.lead { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: 760px; margin: 0 0 22px; }
.pd-note {
  display: flex; gap: 10px; align-items: flex-start; max-width: 760px;
  background: #fff8e1; border: 1px solid rgba(217, 154, 0, 0.35); border-radius: 12px;
  padding: 12px 16px; font-size: 0.92rem; line-height: 1.55; color: #4b4b4b;
}
.pd-note strong { color: var(--pd-ink); }

/* ---------- Section switcher ---------- */
.pd-stage { padding: 10px 0 80px; background: #ffffff; }
.pd-stage .container { width: min(1240px, 94vw); max-width: none; }
.pd-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.pd-tab {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink);
  padding: 11px 18px; border-radius: 999px; font: 600 0.95rem/1 'Manrope', sans-serif;
  transition: border-color .2s, background .2s;
}
.pd-tab .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1efe9; font-size: 0.78rem; }
.pd-tab:hover { border-color: var(--gold); }
.pd-tab[aria-selected="true"] { background: var(--pd-ink); color: #fff; border-color: var(--pd-ink); }
.pd-tab[aria-selected="true"] .n { background: var(--gold); color: var(--pd-ink); }

/* ---------- Browser-style frame ---------- */
.pd-frame {
  border: 1px solid var(--pd-line); border-radius: 18px; overflow: hidden; background: var(--pd-surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12); position: relative;
}
.pd-chrome {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #f1efe9; border-bottom: 1px solid var(--pd-line);
}
.pd-dots { display: flex; gap: 7px; }
.pd-dots span { width: 11px; height: 11px; border-radius: 50%; background: #d9d6ce; }
.pd-url {
  flex: 1; max-width: 520px; background: #fff; border-radius: 8px; padding: 7px 12px;
  font: 500 0.82rem/1 'Manrope', sans-serif; color: var(--pd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-demo-flag {
  margin-left: auto; background: var(--pd-ink); color: #fff; border-radius: 999px; padding: 6px 12px;
  font: 700 0.72rem/1 'Manrope', sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.pd-demo-flag b { color: var(--gold); }
.pd-view { display: none; min-height: 640px; font-family: 'Manrope', sans-serif; color: var(--pd-ink); }
.pd-view.is-active { display: block; }

/* ---------- 1. Agency website ---------- */
.ag-nav { display: flex; align-items: center; gap: 28px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--pd-line); }
.ag-logo { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1 'Playfair Display', serif; color: var(--pd-brand-dark); }
.ag-logo svg { width: 30px; height: 30px; }
.ag-links { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 600; color: var(--pd-muted); }
.ag-links span:first-child { color: var(--pd-brand); }
.ag-call { margin-left: auto; background: var(--pd-brand); color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 0.85rem; font-weight: 700; }
.ag-hero {
  padding: 46px 28px 34px; color: #fff;
  background: linear-gradient(120deg, rgba(10, 70, 73, 0.92), rgba(14, 94, 99, 0.78)), url('../graphics/demo/living-2.jpg') center/cover;
}
.ag-hero h2 { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.2 'Playfair Display', serif; margin: 0 0 8px; color: #fff; }
.ag-hero p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.85); }
.ag-search { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; padding: 10px; border-radius: 14px; max-width: 760px; }
.ag-search label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pd-muted); padding: 2px 8px; flex: 1; min-width: 130px; }
.ag-search select { border: 1px solid var(--pd-line); border-radius: 8px; padding: 8px; font: 600 0.92rem 'Manrope', sans-serif; color: var(--pd-ink); background: #fff; }
.ag-search button { background: var(--pd-brand); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font: 700 0.95rem 'Manrope', sans-serif; cursor: pointer; min-height: 44px; }
.ag-results { padding: 26px 28px 34px; }
.ag-results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.ag-results-head h3 { margin: 0; font-size: 1.15rem; }
.ag-results-head span { color: var(--pd-muted); font-size: 0.88rem; }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-card {
  background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s; text-align: left; padding: 0; font: inherit; color: inherit;
}
.ag-card:hover, .ag-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); }
.ag-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ag-card-body { padding: 14px 16px 16px; }
.ag-price { font-size: 1.15rem; font-weight: 800; color: var(--pd-brand-dark); }
.ag-price small { font-size: 0.8rem; font-weight: 600; color: var(--pd-muted); }
.ag-title { font-weight: 700; margin: 4px 0 8px; }
.ag-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--pd-muted); }
.ag-tag { display: inline-block; margin-top: 10px; font-size: 0.72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--pd-brand-soft); color: var(--pd-brand-dark); }
.ag-empty { padding: 30px; text-align: center; color: var(--pd-muted); border: 1px dashed var(--pd-line); border-radius: var(--pd-radius); }

/* Property detail (modal inside frame) */
.ag-modal { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 5; }
.ag-modal.is-open { display: flex; }
.ag-detail { background: #fff; border-radius: 18px; max-width: 920px; width: 100%; max-height: 100%; overflow: auto; display: grid; grid-template-columns: 1.15fr 1fr; }
.ag-gallery img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.ag-detail-body { padding: 24px 26px; position: relative; }
.ag-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--pd-line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.ag-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; font-size: 0.86rem; }
.ag-facts dt { color: var(--pd-muted); }
.ag-facts dd { margin: 0; font-weight: 700; }
.ag-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pd-line); }
.ag-form h4 { margin: 0; font-size: 1rem; }
.ag-form input { border: 1px solid rgba(20, 20, 20, 0.18); border-radius: 9px; padding: 10px 12px; font: 500 0.92rem 'Manrope', sans-serif; }
.ag-form button { background: var(--pd-brand); color: #fff; border: 0; border-radius: 10px; padding: 12px; font: 700 0.95rem 'Manrope', sans-serif; cursor: pointer; }

/* ---------- 2. Dashboard ---------- */
.db { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; }
.db-side { background: var(--pd-brand-dark); color: #fff; padding: 18px 12px; }
.db-side .ag-logo { color: #fff; padding: 4px 10px 18px; font-size: 0.98rem; }
.db-nav { display: grid; gap: 4px; }
.db-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; color: rgba(255, 255, 255, 0.78); padding: 10px 12px; border-radius: 10px;
  font: 600 0.9rem 'Manrope', sans-serif;
}
.db-nav button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.db-nav button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.db-nav button[aria-current="page"] { background: #fff; color: var(--pd-brand-dark); }
.db-nav .count { margin-left: auto; background: var(--gold); color: var(--pd-ink); border-radius: 999px; font-size: 0.72rem; padding: 2px 7px; }
.db-main { padding: 22px 26px 28px; min-width: 0; }
.db-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.db-top h3 { margin: 0; font-size: 1.3rem; }
.db-top p { margin: 2px 0 0; color: var(--pd-muted); font-size: 0.88rem; }
.db-user { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; }
.db-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pd-brand-soft); color: var(--pd-brand-dark); display: grid; place-items: center; font-weight: 800; }
.db-panel { display: none; }
.db-panel.is-active { display: block; }
.db-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.db-kpi { background: var(--pd-panel); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 16px; }
.db-kpi .label { font-size: 0.78rem; font-weight: 700; color: var(--pd-muted); text-transform: uppercase; letter-spacing: .04em; }
.db-kpi .value { font-size: 1.9rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.db-kpi .sub { font-size: 0.8rem; color: var(--pd-muted); margin-top: 2px; }
.db-card { background: var(--pd-panel); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 18px; }
.db-card h4 { margin: 0 0 12px; font-size: 1rem; }
.db-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.db-list { list-style: none; margin: 0; padding: 0; }
.db-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--pd-line); font-size: 0.88rem; }
.db-list li:first-child { border-top: 0; }
.db-list .grow { flex: 1; min-width: 0; }
.db-list .muted { color: var(--pd-muted); font-size: 0.8rem; }

/* Status chips — always icon + text, never colour alone */
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.chip::before { font-weight: 900; }
.chip.good { background: #e7f4ec; color: var(--pd-good); }
.chip.good::before { content: "✓"; }
.chip.warn { background: #fbf1dc; color: var(--pd-warn); }
.chip.warn::before { content: "!"; }
.chip.bad { background: #f9e6e3; color: var(--pd-bad); }
.chip.bad::before { content: "✕"; }
.chip.neutral { background: #f1efe9; color: var(--pd-muted); }

.db-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.db-filters button { border: 1px solid var(--pd-line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 0.84rem 'Manrope', sans-serif; cursor: pointer; }
.db-filters button[aria-pressed="true"] { background: var(--pd-brand); border-color: var(--pd-brand); color: #fff; }
.db-table-wrap { overflow-x: auto; background: var(--pd-panel); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); }
.db-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.db-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--pd-muted); padding: 12px 14px; border-bottom: 1px solid var(--pd-line); white-space: nowrap; }
.db-table td { padding: 11px 14px; border-bottom: 1px solid var(--pd-line); vertical-align: middle; }
.db-table tr:last-child td { border-bottom: 0; }
.db-table .date { display: block; font-size: 0.74rem; color: var(--pd-muted); margin-top: 3px; }
.db-btn { border: 1px solid var(--pd-line); background: #fff; border-radius: 8px; padding: 7px 11px; font: 700 0.8rem 'Manrope', sans-serif; cursor: pointer; white-space: nowrap; }
.db-btn:hover { border-color: var(--pd-brand); color: var(--pd-brand); }
.db-btn.primary { background: var(--pd-brand); border-color: var(--pd-brand); color: #fff; }

/* Kanban */
.kb { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; }
.kb-col { background: #f4f3ef; border-radius: var(--pd-radius); padding: 12px; min-height: 360px; }
.kb-col h5 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 0.85rem; }
.kb-col h5 span { color: var(--pd-muted); }
.kb-card { background: #fff; border: 1px solid var(--pd-line); border-radius: 11px; padding: 11px; margin-bottom: 9px; font-size: 0.84rem; }
.kb-card.is-new { animation: pd-pop 1.2s ease; box-shadow: 0 0 0 2px var(--gold); }
.kb-card strong { display: block; }
.kb-card .muted { color: var(--pd-muted); font-size: 0.78rem; margin-top: 3px; }
.kb-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
@keyframes pd-pop { 0% { transform: scale(0.94); opacity: 0; } 40% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); } }

/* Documents */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--pd-line); border-radius: 12px; padding: 12px; font-size: 0.84rem; }
.doc-ico { width: 38px; height: 46px; border-radius: 6px; background: var(--pd-brand-soft); color: var(--pd-brand-dark); display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; flex: none; }
.doc .muted { color: var(--pd-muted); font-size: 0.76rem; }
.doc-drop { margin-top: 14px; border: 2px dashed rgba(14, 94, 99, 0.35); border-radius: 12px; padding: 18px; text-align: center; color: var(--pd-muted); font-size: 0.88rem; cursor: pointer; background: #fff; }

/* Charts */
.ch-wrap { position: relative; }
.ch-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-svg .bar { fill: var(--pd-brand); }
.ch-svg .bar:hover, .ch-svg .hit:hover + .bar { fill: var(--pd-brand-dark); }
.ch-svg text { font: 600 12px 'Manrope', sans-serif; fill: var(--pd-muted); }
.ch-svg .val { fill: var(--pd-ink); font-weight: 700; }
.ch-svg .grid { stroke: rgba(20, 20, 20, 0.08); }
.ch-tip { position: absolute; pointer-events: none; background: var(--pd-ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 0.78rem; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; }
.ch-tip.show { opacity: 1; }
.stack { display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: hidden; margin: 6px 0 12px; }
.stack span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
details.tbl { margin-top: 12px; font-size: 0.82rem; }
details.tbl summary { cursor: pointer; color: var(--pd-brand); font-weight: 700; }
details.tbl table { margin-top: 8px; border-collapse: collapse; }
details.tbl td, details.tbl th { padding: 4px 12px 4px 0; text-align: left; }

/* ---------- 3. Supplies ---------- */
.sp { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 24px 28px 30px; }
.sp-head h3 { margin: 0 0 4px; font-size: 1.25rem; }
.sp-head p { margin: 0 0 16px; color: var(--pd-muted); font-size: 0.9rem; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sp-item { background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 16px; display: flex; flex-direction: column; }
.sp-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--pd-brand-soft); display: grid; place-items: center; margin-bottom: 10px; }
.sp-ico svg { width: 22px; height: 22px; stroke: var(--pd-brand-dark); fill: none; stroke-width: 2; }
.sp-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.sp-item p { margin: 0 0 12px; color: var(--pd-muted); font-size: 0.82rem; line-height: 1.5; flex: 1; }
.sp-qty { display: flex; align-items: center; gap: 8px; }
.sp-qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--pd-line); background: #fff; cursor: pointer; font-size: 1rem; font-weight: 700; }
.sp-qty output { min-width: 22px; text-align: center; font-weight: 800; }
.sp-qty button.db-btn { margin-left: auto; width: auto; height: 32px; padding: 0 14px; font-size: 0.82rem; }
.sp-basket { background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 18px; align-self: start; position: sticky; top: 12px; }
.sp-basket h4 { margin: 0 0 12px; }
.sp-basket ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.86rem; }
.sp-basket li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--pd-line); }
.sp-basket li:first-child { border-top: 0; }
.sp-basket .empty { color: var(--pd-muted); }
.sp-basket label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--pd-muted); margin: 10px 0 4px; }
.sp-basket select { width: 100%; border: 1px solid var(--pd-line); border-radius: 8px; padding: 8px; font: 600 0.88rem 'Manrope', sans-serif; }
.sp-basket .db-btn.primary { width: 100%; margin-top: 14px; padding: 12px; font-size: 0.92rem; }

/* Toast */
.pd-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 9;
  background: var(--pd-ink); color: #fff; border-radius: 12px; padding: 12px 16px; font: 600 0.88rem/1.45 'Manrope', sans-serif;
  max-width: min(560px, 90%); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); transition: opacity .25s, transform .25s; pointer-events: none;
}
.pd-toast b { color: var(--gold); }
.pd-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Explainer below the demo ---------- */
.pd-explain { padding: 70px 0 100px; background: #f8f6f0; }
.pd-explain .container { max-width: 1100px; }
.pd-explain h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.pd-explain > .container > p { color: var(--muted); max-width: 860px; line-height: 1.7; margin: 0 0 28px; }
.pd-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.pd-col { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid rgba(20, 20, 20, 0.06); }
.pd-col h3 { font-size: 1.1rem; margin: 0 0 8px; }
.pd-col p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.pd-price { background: #141414; color: #fff; border-radius: 16px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.pd-price strong { color: var(--gold); }
.pd-price .btn { margin-left: auto; }
.pd-explain > .container > p.pd-small { margin: 24px 0 0; max-width: none; font-size: 0.85rem; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ag-grid, .sp-grid, .doc-grid, .pd-cols { grid-template-columns: repeat(2, 1fr); }
  .db { grid-template-columns: minmax(0, 1fr); }
  .db-side { padding: 12px; min-width: 0; }
  .db-side .ag-logo { padding-bottom: 10px; }
  .db-nav { grid-auto-flow: column; overflow-x: auto; }
  .db-nav button { white-space: nowrap; }
  .db-kpis { grid-template-columns: repeat(2, 1fr); }
  .sp { grid-template-columns: 1fr; }
  .ag-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-intro { padding: 120px 0 30px; }
  .ag-grid, .sp-grid, .doc-grid, .pd-cols, .db-two { grid-template-columns: 1fr; }
  .ag-links, .ag-call, .pd-url { display: none; }
  .ag-nav, .ag-hero, .ag-results, .db-main, .sp { padding-left: 16px; padding-right: 16px; }
  .pd-tab { padding: 10px 14px; font-size: 0.88rem; }
  .pd-price .btn { margin-left: 0; }
  .ag-modal { padding: 10px; }
}

/* ---------- Recording mode (?record=1) — used to film the walkthrough ---------- */
body.pd-record { background: #fff; }
body.pd-record #am-appbar, body.pd-record .site-header, body.pd-record .mobile-nav, body.pd-record .mobile-backdrop,
body.pd-record .site-footer, body.pd-record .whatsapp-float, body.pd-record .cookie-banner, body.pd-record .pd-intro,
body.pd-record .pd-explain, body.pd-record .skip-link { display: none !important; }
body.pd-record .pd-stage { padding: 10px 0 0; zoom: 1.5; }
body.pd-record .pd-stage .container { width: 1216px; max-width: none; }
body.pd-record .pd-tabs { margin-bottom: 10px; }
body.pd-record .pd-view.is-active { height: 600px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
body.pd-record .db { min-height: 600px; }
#pd-caption {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 50; display: none;
  background: rgba(20, 20, 20, 0.92); color: #fff; padding: 16px 30px; border-radius: 16px; max-width: 1500px;
  font: 600 28px/1.35 'Manrope', sans-serif; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
#pd-caption b { color: var(--gold); }
#pd-cursor {
  position: fixed; z-index: 60; width: 38px; height: 38px; left: 0; top: 0; display: none; pointer-events: none;
  transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1);
}
#pd-cursor.click::after {
  content: ""; position: absolute; left: -10px; top: -10px; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--gold); animation: pd-ripple .5s ease-out;
}
@keyframes pd-ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
body.pd-record #pd-caption, body.pd-record #pd-cursor { display: block; }
body.pd-record .pd-toast { bottom: auto; top: 62px; left: auto; right: 18px; transform: translateY(-12px); font-size: 0.9rem; max-width: 470px; }
body.pd-record .pd-toast.show { transform: translateY(0); }
#pd-endcard {
  position: fixed; inset: 0; z-index: 70; display: none; place-items: center; text-align: center;
  background: radial-gradient(circle at 70% 20%, rgba(245, 185, 0, 0.18), transparent 55%), #0d0d0d; color: #fff;
}
#pd-endcard.show { display: grid; animation: pd-fade .6s ease; }
#pd-endcard img { width: 100px; height: 100px; border-radius: 20px; margin-bottom: 26px; }
#pd-endcard h2 { font: 700 60px/1.15 'Playfair Display', serif; margin: 0 0 18px; color: #fff; }
#pd-endcard p { font: 600 27px/1.5 'Manrope', sans-serif; margin: 0; color: rgba(255, 255, 255, 0.82); }
#pd-endcard p b { color: var(--gold); }
#pd-endcard .url { margin-top: 32px; font-size: 34px; color: var(--gold); font-weight: 800; }
#pd-endcard .fine { margin-top: 30px; font-size: 19px; color: rgba(255, 255, 255, 0.55); }
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
.pd-small a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 3px; }
