/* Kingdom feature preview. Site chrome and the lead-facing pages use Kingdom's brand
   (black, red accent, paper, Georgia headings). Agent screens use the RealtyPA CRM look. */
:root {
  --k-primary: #111111;
  --k-red: #ed3237;
  --k-ink: #121517;
  --k-text: #262b25;
  --k-muted: #65715f;
  --k-line: #e1e1de;
  --k-fill: #f4f3f0;
  --k-page: #faf9f6;
  --k-paper: #fbfaf7;
  --k-serif: Georgia, "Times New Roman", serif;
  --k-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-primary: #1081fc;
  --r-primary10: #e6f0ff;
  --r-text: #1e293b;
  --r-muted: #64748b;
  --r-light: #94a3b8;
  --r-stroke: #cbd5e1;
  --r-line: #e2e8f0;
  --r-fill: #f1f5f9;
  --r-bg: #fbfbfb;
  --r-green: #16a34a;
  --r-green-bg: #dcfce7;
  --r-amber: #b45309;
  --r-amber-bg: #fef3c7;
  --r-grey-bg: #f1f5f9;
  --r-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wa-bg: #efeae2;
  --wa-head: #008069;
  --wa-link: #027eb5;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--k-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--k-text);
  background: var(--k-page);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--k-ink); }
p { margin: 0; }
.wrap { width: 90%; max-width: 1320px; margin: 0 auto; }
@media (max-width: 800px) { .wrap { width: auto; margin: 0 16px; } }
.serif { font-family: var(--k-serif); font-weight: 400; letter-spacing: -0.02em; }

/* ---------- Site chrome ---------- */
.top {
  background: #fff;
  border-bottom: 1px solid var(--k-line);
  position: sticky; top: 0; z-index: 10;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; gap: 24px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--k-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--k-ink); }
.top nav a.on { color: var(--k-ink); border-bottom-color: var(--k-red); }
@media (max-width: 800px) {
  .top .wrap { height: auto; padding: 12px 0; flex-wrap: wrap; row-gap: 8px; }
  .top .logo img { height: 26px; }
  .top nav { gap: 18px; font-size: 14px; width: 100%; }
}
.tag-preview {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--k-muted);
}

.hero { padding: 64px 0 40px; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--k-red); font-weight: 600; }
.hero h1 { font-family: var(--k-serif); font-weight: 400; font-size: 54px; letter-spacing: -0.03em; margin-top: 12px; max-width: 900px; }
.hero .lede { font-size: 19px; color: var(--k-muted); margin-top: 16px; max-width: 760px; }
@media (max-width: 800px) {
  .hero { padding: 36px 0 24px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17px; }
}

.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--k-line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .num { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--k-red); font-weight: 600; }
.section-head h2 { font-family: var(--k-serif); font-weight: 400; font-size: 36px; letter-spacing: -0.02em; margin-top: 8px; }
.section-head p { color: var(--k-muted); margin-top: 10px; font-size: 17px; }
@media (max-width: 800px) {
  .section { padding: 28px 0; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }
}

.foot { border-top: 1px solid var(--k-line); padding: 28px 0 40px; margin-top: 24px; }
.foot p { font-size: 13px; color: var(--k-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 6px;
  background: var(--k-primary); color: #fff; border: 1px solid var(--k-primary);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #2b2b2b; }
.btn-outline { background: transparent; color: var(--k-ink); border-color: var(--k-line); }
.btn-outline:hover { background: var(--k-fill); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--k-line); border-radius: 10px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature .k { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--k-red); font-weight: 600; }
.feature h3 { font-family: var(--k-serif); font-weight: 400; font-size: 28px; }
.feature p { color: var(--k-muted); }
.feature .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 800px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 22px; }
  .feature h3 { font-size: 24px; }
}

/* ---------- Step diagram ---------- */
.flow { margin-top: 8px; }
.flow + .flow { margin-top: 36px; }
.flow h3 { font-size: 18px; font-family: var(--k-sans); font-weight: 700; margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 12px 0 0; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--k-primary); color: #fff; font-weight: 700; font-size: 16px;
  position: relative; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; left: 40px; right: 0; top: 19px; height: 2px; background: var(--k-line);
}
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--k-red); }
.steps b { display: block; margin-top: 12px; font-size: 16px; color: var(--k-ink); }
.steps span { display: block; margin-top: 4px; font-size: 14px; color: var(--k-muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 18px 56px; min-height: 58px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { left: 19px; top: 40px; bottom: 0; right: auto; width: 2px; height: auto; }
  .steps b { margin-top: 8px; }
}

/* ---------- Timeline ---------- */
.tl-compare { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .tl-compare { grid-template-columns: 1fr; } }
.tl-card { background: #fff; border: 1px solid var(--k-line); border-radius: 10px; padding: 24px; }
@media (max-width: 800px) { .tl-card { padding: 16px; } }
.tl-card h3 { font-size: 18px; font-family: var(--k-sans); font-weight: 700; }
.tl-card .sub { font-size: 14px; color: var(--k-muted); margin-top: 4px; }
.miles { list-style: none; margin: 18px 0 0; padding: 0; }
.miles li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--k-line); align-items: baseline; }
.miles li:first-child { border-top: 0; }
.miles .d { font-weight: 700; color: var(--k-ink); white-space: nowrap; }
.miles .was { display: block; font-size: 13px; color: var(--k-muted); margin-top: 2px; }
.miles .was s { color: var(--k-muted); }
.miles .gain { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; background: var(--k-red); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.miles .same { display: inline-block; font-size: 12px; font-weight: 600; color: var(--k-muted); background: var(--k-fill); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
@media (max-width: 800px) { .miles li { grid-template-columns: 96px 1fr; font-size: 15px; } }

.gantt { margin-top: 18px; }
.g-days, .g-lane { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.g-days span { font-size: 11px; color: var(--k-muted); text-align: center; line-height: 1.2; }
.g-days span b { display: block; color: var(--k-ink); font-size: 12px; }
.g-label { font-size: 13px; font-weight: 700; color: var(--k-ink); margin: 14px 0 6px; }
.g-bar {
  height: 40px; border-radius: 6px; display: flex; align-items: center; padding: 0 10px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: var(--k-primary);
  overflow: hidden; white-space: nowrap;
}
.g-bar.red { background: var(--k-red); }
.g-bar.ghost { background: var(--k-fill); color: var(--k-text); border: 1px dashed var(--k-muted); }
.g-pre { margin-top: 10px; font-size: 13px; color: var(--k-muted); }
.g-week { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 2px; margin-bottom: 4px; }
.g-week span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-muted); border-bottom: 1px solid var(--k-line); padding-bottom: 2px; }
@media (max-width: 800px) {
  .g-days span { font-size: 9.5px; }
  .g-days span b { font-size: 11px; }
  .g-bar { font-size: 11px; padding: 0 6px; height: 36px; }
}
.assume { margin: 18px 0 0; padding: 0 0 0 18px; font-size: 14px; color: var(--k-muted); }
.assume li { margin: 4px 0; }

/* ---------- Screen gallery ---------- */
.screens { display: flex; flex-wrap: wrap; gap: 36px 28px; align-items: flex-start; }
.screen { width: 300px; flex: none; }
.screen .cap { margin-top: 14px; }
.screen .cap b { display: block; font-size: 15px; color: var(--k-ink); }
.screen .cap .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--k-primary); color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }
.screen .cap p { font-size: 14px; color: var(--k-muted); margin-top: 4px; }
@media (max-width: 800px) {
  .screens { justify-content: center; gap: 32px; }
}
.wide { width: 100%; }
.wide .cap { margin-top: 14px; max-width: 760px; }
.wide .cap b { display: block; font-size: 15px; color: var(--k-ink); }
.wide .cap p { font-size: 14px; color: var(--k-muted); margin-top: 4px; }
.wide .cap .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--k-primary); color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }

.next-link { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 300px; border-radius: 40px; padding: 10px;
  background: #121212;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18), inset 0 0 0 1px #2a2a2a;
}
.phone .scr {
  position: relative;
  border-radius: 31px; overflow: hidden; background: #fff;
  min-height: 560px; display: flex; flex-direction: column;
}
.phone .bar {
  height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 26px; font-size: 13px; font-weight: 600; color: #111; background: #fff;
}
.phone .bar.dark { background: var(--wa-head); color: #fff; }
.phone .bar i { display: inline-flex; gap: 4px; align-items: center; font-style: normal; }
.phone .bar i::before { content: ""; width: 16px; height: 9px; border-radius: 2px; border: 1.5px solid currentColor; opacity: .9; }
.phone .bar i::after { content: ""; width: 3px; height: 9px; border-radius: 1px; background: currentColor; opacity: .5; }
.sample {
  position: absolute; top: -10px; right: 14px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: #fff; color: var(--k-red); border: 1px solid var(--k-red); border-radius: 999px; padding: 1px 8px;
}

/* ---------- WhatsApp ---------- */
.wa-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 10px; background: var(--wa-head); color: #fff;
}
.wa-head .back { font-size: 20px; line-height: 1; opacity: .9; }
.wa-head img { width: 34px; height: 34px; border-radius: 50%; }
.wa-head b { display: block; font-size: 14.5px; line-height: 1.2; }
.wa-head small { display: block; font-size: 11.5px; opacity: .85; }
.wa-body {
  flex: 1; background: var(--wa-bg); padding: 12px 10px 16px;
  background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 14px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa-day { text-align: center; margin: 4px 0 10px; }
.wa-day span { display: inline-block; font-size: 11.5px; color: #54656f; background: #fff; border-radius: 8px; padding: 3px 10px; box-shadow: 0 1px 0.5px rgba(11,20,26,.13); }
.wa-note { text-align: center; margin: 0 8px 10px; }
.wa-note span { display: inline-block; font-size: 11px; color: #54656f; background: #fdf4c5; border-radius: 8px; padding: 4px 10px; line-height: 1.35; }
.wa-msg {
  max-width: 90%; background: #fff; border-radius: 0 8px 8px 8px; padding: 7px 9px 6px;
  font-size: 14px; line-height: 1.4; color: #111b21; box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
  position: relative;
}
.wa-msg.out { margin-left: auto; background: #d9fdd3; border-radius: 8px 0 8px 8px; }
.wa-msg .t { display: block; text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.wa-msg .bold { font-weight: 700; }
.wa-msg .img { margin: -4px -6px 8px; border-radius: 6px; overflow: hidden; }
.wa-msg .img img { width: 100%; height: 110px; object-fit: cover; }
.wa-btns { max-width: 90%; margin-top: 2px; display: flex; flex-direction: column; gap: 2px; }
.wa-btns span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border-radius: 8px; padding: 9px; font-size: 14px; color: var(--wa-link); font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
}
.wa-btns svg { width: 15px; height: 15px; fill: currentColor; }
.wa-gap { height: 14px; }
.wa-input {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: var(--wa-bg);
}
.wa-input span { flex: 1; background: #fff; border-radius: 20px; height: 36px; display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #8696a0; }
.wa-input i { width: 36px; height: 36px; border-radius: 50%; background: #00a884; flex: none; }

/* ---------- Kingdom lead-facing page (inside phone) ---------- */
.kp { flex: 1; display: flex; flex-direction: column; background: var(--k-paper); font-size: 14px; color: var(--k-text); }
.kp-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--k-line); }
.kp-top img { height: 18px; width: auto; }
.kp-top small { font-size: 11px; color: var(--k-muted); }
.kp-prog { display: flex; gap: 4px; padding: 10px 16px 0; }
.kp-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--k-line); }
.kp-prog i.on { background: var(--k-primary); }
.kp-step { padding: 6px 16px 0; font-size: 11.5px; color: var(--k-muted); }
.kp-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kp h4 { font-family: var(--k-serif); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.kp .muted { color: var(--k-muted); font-size: 13px; }
.kp-listing { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--k-line); border-radius: 8px; padding: 8px; }
.kp-listing img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.kp-listing b { display: block; font-size: 12.5px; color: var(--k-ink); line-height: 1.3; }
.kp-listing span { display: block; font-size: 12px; color: var(--k-muted); }
.kp-box { background: #fff; border: 1px solid var(--k-line); border-radius: 8px; padding: 10px 12px; }
.kp-box dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--k-red); font-weight: 700; margin-top: 8px; }
.kp-box dt:first-child { margin-top: 0; }
.kp-box dd { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }
.kp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.kp-check i { width: 18px; height: 18px; border-radius: 4px; background: var(--k-primary); flex: none; margin-top: 1px; position: relative; }
.kp-check i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kp-btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 6px; background: var(--k-primary); color: #fff; font-weight: 600; font-size: 15px; margin-top: auto; }
.kp-btn.ghost { background: #fff; color: var(--k-ink); border: 1px solid var(--k-line); margin-top: 0; }
.kp-q { display: flex; flex-direction: column; gap: 6px; }
.kp-q b { font-size: 13.5px; color: var(--k-ink); }
.kp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-opts span { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--k-line); background: #fff; color: var(--k-text); }
.kp-opts span.on { background: var(--k-primary); border-color: var(--k-primary); color: #fff; }
.kp-hint { font-size: 12px; color: var(--k-muted); background: var(--k-fill); border-radius: 6px; padding: 8px 10px; line-height: 1.4; }
.kp-code { display: flex; gap: 6px; justify-content: center; }
.kp-code span { width: 36px; height: 46px; border-radius: 6px; background: #fff; border: 1px solid var(--k-line); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--k-ink); }
.kp-code span.cur { border-color: var(--k-primary); box-shadow: 0 0 0 1px var(--k-primary) inset; }
.kp-drop { border: 1.5px dashed #b9bdb4; border-radius: 8px; padding: 16px 12px; text-align: center; background: #fff; }
.kp-drop b { display: block; font-size: 14px; color: var(--k-ink); }
.kp-drop span { display: block; font-size: 12px; color: var(--k-muted); margin-top: 4px; }
.kp-file { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--k-line); border-radius: 8px; padding: 8px 10px; }
.kp-file .ic { width: 34px; height: 34px; border-radius: 6px; background: var(--k-fill); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--k-muted); flex: none; }
.kp-file b { display: block; font-size: 13px; color: var(--k-ink); }
.kp-file span { display: block; font-size: 11.5px; color: var(--k-muted); }
.kp-file .ok { margin-left: auto; color: #2f7d32; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kp-done { text-align: center; padding-top: 10px; }
.kp-done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--k-primary); margin: 0 auto 12px; position: relative; }
.kp-done .tick::after { content: ""; position: absolute; left: 24px; top: 14px; width: 14px; height: 28px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.kp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kp-slots span { text-align: center; font-size: 12.5px; padding: 8px 4px; border: 1px solid var(--k-line); border-radius: 6px; background: #fff; }
.kp-slots span.on { border-color: var(--k-primary); box-shadow: 0 0 0 1px var(--k-primary) inset; font-weight: 600; }
.kp-hero img { width: 100%; height: 130px; object-fit: cover; }
.kp-hero { position: relative; }
.kp-hero .price { position: absolute; left: 12px; bottom: 10px; background: var(--k-primary); color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; padding: 4px 8px; }
.kp-hero .st { position: absolute; right: 12px; bottom: 10px; background: var(--k-red); color: #fff; font-weight: 700; font-size: 11px; border-radius: 4px; padding: 4px 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.kp-sec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--k-red); font-weight: 700; margin-top: 4px; }
.kp-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.kp-stats div { background: #fff; border: 1px solid var(--k-line); border-radius: 8px; padding: 8px 6px; text-align: center; }
.kp-stats b { display: block; font-family: var(--k-serif); font-size: 22px; font-weight: 400; color: var(--k-ink); line-height: 1.1; }
.kp-stats span { display: block; font-size: 11px; color: var(--k-muted); line-height: 1.25; margin-top: 2px; }
.kp-rows { background: #fff; border: 1px solid var(--k-line); border-radius: 8px; }
.kp-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--k-line); font-size: 13px; }
.kp-rows div:first-child { border-top: 0; }
.kp-rows span { color: var(--k-muted); }
.kp-rows b { color: var(--k-ink); font-weight: 600; text-align: right; }
.kp-live { color: #2f7d32 !important; }
.kp-quote { background: #fff; border-left: 3px solid var(--k-red); border-radius: 4px; padding: 8px 10px; font-size: 12.5px; font-style: italic; color: var(--k-text); }
.ms { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--k-line); border-radius: 8px; }
.ms li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--k-line); }
.ms li:first-child { border-top: 0; }
.ms i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--k-line); flex: none; position: relative; }
.ms li.done i { background: var(--k-primary); border-color: var(--k-primary); }
.ms li.done i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms li.now i { border-color: var(--k-red); box-shadow: 0 0 0 3px rgba(237,50,55,.15); }
.ms li.now b { color: var(--k-red); }
.ms b { font-weight: 600; color: var(--k-ink); }
.ms small { margin-left: auto; font-size: 11.5px; color: var(--k-muted); white-space: nowrap; }
.kp-agent { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--k-line); border-radius: 8px; padding: 10px 12px; }
.kp-agent img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.kp-agent b { display: block; font-size: 13px; color: var(--k-ink); }
.kp-agent span { display: block; font-size: 12px; color: var(--k-muted); }
.kp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kp-two .kp-btn { height: 38px; font-size: 13px; margin: 0; }
.kp-pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.kp-pill.ok { background: #e6f2e6; color: #2f7d32; }
.kp-pill.wait { background: #fdf0d5; color: #8a5a00; }
.kp-foot { padding: 10px 16px 14px; font-size: 10.5px; color: var(--k-muted); text-align: center; border-top: 1px solid var(--k-line); background: #fff; }

/* ---------- Desktop frame + RealtyPA CRM ---------- */
.desk {
  position: relative;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid #d6d6d2; box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
}
.desk .sample { top: 8px; right: 12px; }
.desk-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 96px 0 14px; background: #ecebe8; border-bottom: 1px solid #d6d6d2; }
.desk-bar .dots { display: flex; gap: 6px; flex: none; }
.desk-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d0cfcb; }
.desk-bar .url { flex: 1; max-width: 460px; height: 24px; border-radius: 6px; background: #fff; font-size: 12px; color: #6b6b6b; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; font-family: var(--r-sans); }
.crm { font-family: var(--r-sans); color: var(--r-text); font-size: 14px; display: flex; min-height: 520px; background: var(--r-bg); }
.crm-nav { width: 64px; flex: none; background: #fff; border-right: 1px solid var(--r-line); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.crm-nav .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--r-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.crm-nav i { width: 36px; height: 36px; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: center; }
.crm-nav i.on { background: var(--r-primary10); }
.crm-nav svg { width: 20px; height: 20px; fill: var(--r-muted); }
.crm-nav i.on svg { fill: var(--r-primary); }
.crm-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: stretch; }
.crm-list { flex: 1 1 420px; min-width: 0; background: #fff; border-right: 1px solid var(--r-line); }
.crm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 10px; }
.crm-list-head h5 { margin: 0; font-size: 20px; font-weight: 700; color: var(--r-text); }
.crm-search { display: flex; align-items: center; gap: 8px; height: 36px; border-radius: 8px; background: var(--r-fill); color: var(--r-light); font-size: 13px; padding: 0 12px; margin: 0 20px 10px; }
.crm-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 12px; border-bottom: 1px solid var(--r-line); }
.crm-filters span { font-size: 12.5px; border: 1px solid var(--r-stroke); border-radius: 999px; padding: 3px 10px; color: var(--r-muted); background: #fff; white-space: nowrap; }
.crm-filters span.on { background: var(--r-primary10); border-color: var(--r-primary10); color: var(--r-primary); font-weight: 600; }
.lead { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--r-line); }
.lead.sel { background: var(--r-primary10); box-shadow: inset 3px 0 0 var(--r-primary); }
.lead .av { width: 40px; height: 40px; border-radius: 50%; background: var(--r-fill); flex: none; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--r-muted); letter-spacing: 0.02em; }
.lead .tx { flex: 1; min-width: 0; }
.lead .tx b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .tx > span { display: block; font-size: 12px; color: var(--r-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .tx .stg { color: var(--r-primary); }
.chip { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.done { background: var(--r-green-bg); color: var(--r-green); }
.chip.part { background: var(--r-amber-bg); color: var(--r-amber); }
.chip.none { background: var(--r-grey-bg); color: var(--r-muted); }
.chip.blue { background: var(--r-primary10); color: var(--r-primary); }
.chip.nodot::before { display: none; }
.smp { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--r-muted); border: 1px solid var(--r-stroke); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.drawer { flex: 1 1 380px; min-width: 0; background: #fff; display: flex; flex-direction: column; }
.dr-head { padding: 16px 20px 12px; border-bottom: 1px solid var(--r-line); }
.dr-head h5 { margin: 0; font-size: 18px; font-weight: 700; }
.dr-head p { font-size: 12.5px; color: var(--r-muted); margin-top: 2px; }
.dr-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.dr-actions .q { width: 34px; height: 34px; border-radius: 50%; background: var(--r-fill); display: flex; align-items: center; justify-content: center; }
.dr-actions .q svg { width: 17px; height: 17px; fill: var(--r-muted); }
.tabs { display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--r-line); overflow: hidden; }
.tabs span { font-size: 13px; padding: 10px 0; color: var(--r-muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs span.on { color: var(--r-primary); border-bottom-color: var(--r-primary); font-weight: 600; }
.dr-body { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.divl { display: flex; align-items: center; gap: 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--r-light); font-weight: 600; }
.divl::after { content: ""; flex: 1; height: 1px; background: var(--r-line); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 13px; }
.kv span { color: var(--r-muted); }
.kv b { font-weight: 600; }
.steps-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.steps-mini span { font-size: 11.5px; color: var(--r-text); background: var(--r-fill); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.steps-mini span::before { content: "\2713  "; color: var(--r-green); font-weight: 700; }
.steps-mini span.no { color: var(--r-muted); }
.steps-mini span.no::before { content: "\25CB  "; color: var(--r-light); }
.idrow { display: flex; align-items: center; gap: 10px; border: 1px solid var(--r-line); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.idrow .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--r-fill); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--r-muted); flex: none; }
.idrow .tx { flex: 1; min-width: 140px; }
.idrow .tx b { display: block; font-size: 13px; }
.idrow .tx span { display: block; font-size: 12px; color: var(--r-muted); }
.rbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 8px; padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--r-primary); color: #fff; border: 1px solid var(--r-primary); }
.rbtn.out { background: #fff; color: var(--r-text); border-color: var(--r-stroke); }
.rbtn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.rbtn svg { width: 15px; height: 15px; fill: currentColor; }
.after { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--r-muted); }
.rtl { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.rtl li { display: flex; gap: 10px; padding: 6px 0; align-items: baseline; }
.rtl li span { color: var(--r-muted); width: 120px; flex: none; }
.rtl li.todo { color: var(--r-muted); }
.note-r { font-size: 12px; color: var(--r-muted); background: var(--r-fill); border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--r-line); }
.toggle:first-child { border-top: 0; }
.toggle i { width: 34px; height: 20px; border-radius: 999px; background: var(--r-primary); position: relative; flex: none; }
.toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.parties { width: 100%; border-collapse: collapse; font-size: 13px; }
.parties th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-bottom: 1px solid var(--r-line); white-space: nowrap; }
.parties td { padding: 10px; border-bottom: 1px solid var(--r-line); vertical-align: middle; }
.parties td.acts { white-space: nowrap; text-align: right; }
.parties td.acts .rbtn { margin-left: 4px; vertical-align: middle; }
.parties .who b { display: block; font-weight: 600; }
.parties .who > span { display: block; font-size: 12px; color: var(--r-muted); }
.lst-head { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--r-line); flex-wrap: wrap; }
.lst-head img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.lst-head .tx { flex: 1; min-width: 200px; }
.lst-head b { display: block; font-size: 16px; font-weight: 700; }
.lst-head span { display: block; font-size: 12.5px; color: var(--r-muted); }

@media (max-width: 800px) {
  .crm { min-height: 0; }
  .crm-nav { display: none; }
  .crm-list { border-right: 0; border-bottom: 1px solid var(--r-line); flex-basis: 100%; }
  .drawer { flex-basis: 100%; }
  .lead { padding: 10px 14px; gap: 10px; }
  .crm-list-head, .dr-head, .dr-body, .lst-head { padding-left: 14px; padding-right: 14px; }
  .crm-search { margin-left: 14px; margin-right: 14px; }
  .crm-filters { padding-left: 14px; padding-right: 14px; }
  .tabs { padding: 0 14px; gap: 14px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv b { margin-bottom: 6px; }
  .desk-bar .url { font-size: 11px; }
  .lead .av { width: 34px; height: 34px; }
  .lead .tx b { white-space: normal; }
  .parties thead { display: none; }
  .parties tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 14px; border-bottom: 1px solid var(--r-line); }
  .parties td { border: 0; padding: 0; }
  .parties td.acts { grid-column: 1 / -1; text-align: left; }
  .parties td.acts .rbtn { margin: 4px 4px 0 0; }
  .parties td.role, .parties td.seen { font-size: 12px; color: var(--r-muted); }
}

/* ---------- Two-up (bubble beside a frame) ---------- */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .pair { grid-template-columns: minmax(0, 1fr); } .pair > .screen { margin: 0 auto !important; } }
