/* Cedar Hollow Family Dental: demo by Wellformed AI. Bright, high-contrast, no dark themes. */
:root {
  --ink: #0A2540;
  --text: #13293D;
  --muted: #2C4356;
  --green: #0B6E58;
  --green-d: #065F46;
  --green-bg: #E6F6EF;
  --sky: #EAF5FD;
  --sky-d: #1257A6;
  --line: #D3E3EC;
  --card: #FFFFFF;
  --page: #F7FBFD;
  --warn-bg: #FFF4E5;
  --warn: #7A3E00;
  --red: #A1262D;
  --radius: 18px;
  --head: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 18px 40px -28px rgba(10, 37, 64, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--page); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--sky-d); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #1E6FE0; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Demo strip (shared by all three demo screens) */
.demo-bar { background: #FFFFFF; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); position: relative; z-index: 40; }
.demo-bar-in { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 0; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #FFF4E5; color: #6B3A00; font-weight: 700; font-size: 13px; border: 1px solid #F2D6B0; }
.demo-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-nav a { padding: 5px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.demo-nav a:hover { border-color: var(--line); background: var(--sky); }
.demo-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.demo-get { margin-left: auto; font-weight: 700; color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .demo-get { margin-left: 0; } .demo-bar { font-size: 13px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent; font: 700 16px/1.2 var(--sans); text-decoration: none; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn-main { background: var(--green); color: #fff; box-shadow: 0 12px 24px -14px rgba(11, 110, 88, .8); }
.btn-main:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-line { background: #fff; color: var(--ink); border-color: #B9CFDC; }
.btn-line:hover { background: var(--sky); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--head); font-size: 20px; line-height: 1.1; }
.brand small { display: block; font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green-bg); display: grid; place-items: center; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.site-nav a:hover { background: var(--sky); }
.head-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 980px) { .site-nav { display: none; } .head-phone { margin-left: auto; } }
@media (max-width: 520px) { .head-phone { display: none; } .site-head .btn { margin-left: auto; } .brand small { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #F1FAF6 0%, #EAF4FD 60%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 7vw, 88px) 0; }
.hero-k { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 700 14px/1.2 var(--sans); color: var(--green-d); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); margin: 18px 0 16px; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(17.5px, 1.6vw, 20px); color: var(--text); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 14.5px/1.2 var(--sans); color: var(--ink); }
.chips li svg { color: var(--green); }

/* Hero product visual (UI only, no people) */
.hero-ui { position: relative; min-height: 420px; }
.ui-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.ui-book { left: 0; right: 12%; top: 0; padding: 20px; }
.ui-book h3 { font: 700 15px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ui-book .next { margin-top: 6px; font-family: var(--head); font-size: 26px; color: var(--ink); }
.ui-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ui-slots span { padding: 10px 6px; text-align: center; border-radius: 12px; border: 1px solid var(--line); font: 700 14px/1.2 var(--sans); color: var(--ink); background: #FBFDFE; }
.ui-slots span.on { background: var(--green); border-color: var(--green); color: #fff; }
.ui-chat { right: 0; left: 18%; top: 210px; padding: 16px; }
.ui-chat-h { display: flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--sans); color: var(--ink); margin-bottom: 10px; }
.bub { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; margin-top: 8px; }
.bub-p { margin-left: auto; background: var(--sky-d); color: #fff; border-bottom-right-radius: 4px; }
.bub-a { background: #F0F6F9; color: var(--text); border-bottom-left-radius: 4px; }
.ui-time { position: absolute; right: 6%; top: -16px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px/1 var(--sans); }
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-ui { min-height: 400px; max-width: 520px; } }
@media (max-width: 420px) { .ui-chat { left: 6%; } .ui-book { right: 4%; } }

/* Sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font: 800 13.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-bottom: 10px; }
.sec h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 24ch; }
.sec-lead { margin-top: 12px; font-size: 18.5px; max-width: 46em; color: var(--text); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 34px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 26px -24px rgba(10,37,64,.5); }
.card h3 { font-size: 21px; margin: 14px 0 8px; }
.card p { color: var(--text); font-size: 16.5px; }
.card .price { margin-top: 12px; font: 700 15px/1.3 var(--sans); color: var(--green-d); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-bg); color: var(--green-d); }

/* New patient offer */
.offer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; margin-top: 30px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: linear-gradient(140deg, #E6F6EF, #EAF4FD); border: 1px solid #C9E2D8; }
.offer-price { font-family: var(--head); font-size: clamp(44px, 6vw, 64px); color: var(--ink); line-height: 1; }
.offer-price small { font: 600 16px/1.3 var(--sans); color: var(--text); display: block; margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 820px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* Insurance chips */
.ins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.ins li { padding: 12px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font: 700 16px/1.2 var(--sans); color: var(--ink); }
.note { margin-top: 16px; font-size: 15.5px; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff; font: 800 16px/1 var(--sans); margin-bottom: 12px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 16px; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 32px; }
.hours { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.hours tr.today td { color: var(--green-d); font-weight: 800; }
.open-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px; border-radius: 999px; font: 700 14.5px/1.2 var(--sans); background: var(--green-bg); color: var(--green-d); }
.open-now.closed { background: #FFF4E5; color: #6B3A00; }
.map { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #EEF5F1; }
.map svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font: 700 15px/1.35 var(--sans); color: var(--ink); white-space: nowrap; }
.map-pin small { display: block; font-weight: 600; color: var(--muted); }
@media (max-width: 820px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font: 700 17.5px/1.4 var(--sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--green-d); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 16px; font-size: 16.5px; }

/* CTA band + footer */
.band { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); max-width: 20ch; }
.band p { color: #E6EEF5; margin-top: 8px; }
.band .btn-main { background: #fff; color: var(--ink); box-shadow: none; }
.band .btn-main:hover { background: #E6F6EF; }
.foot { padding: 40px 0 120px; font-size: 15px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.foot b { color: var(--ink); }

/* ===== AI receptionist widget ===== */
.rx-launch { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font: 700 16px/1.2 var(--sans); box-shadow: 0 16px 32px -14px rgba(6, 95, 70, .8); transition: transform .2s ease; }
.rx-launch:hover { transform: translateY(-2px); background: var(--green-d); }
.rx-launch .dot { background: #A7F3D0; box-shadow: 0 0 0 4px rgba(167, 243, 208, .3); }
.rx-launch[hidden] { display: none; }
.rx { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 36px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(10, 37, 64, .5); overflow: hidden; }
.rx[hidden] { display: none; }
.rx-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: linear-gradient(140deg, #E6F6EF, #EAF4FD); border-bottom: 1px solid var(--line); }
.rx-av { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--green); display: grid; place-items: center; color: #fff; }
.rx-title { flex: 1; min-width: 0; }
.rx-title b { display: block; font: 800 16px/1.25 var(--sans); color: var(--ink); }
.rx-title span { display: flex; align-items: center; gap: 6px; font: 600 13.5px/1.3 var(--sans); color: var(--green-d); }
.rx-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; }
.rx-status { padding: 8px 16px; font: 600 13.5px/1.4 var(--sans); background: #FFF8EC; color: #5E3200; border-bottom: 1px solid #F2E1C6; }
.rx-status.open { background: #F1FAF6; color: var(--green-d); border-bottom-color: #D2EDE1; }
.rx-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg-ai { align-self: flex-start; background: #F0F6F9; color: var(--text); border-bottom-left-radius: 5px; }
.msg-staff { align-self: flex-start; background: #EAF4FD; color: var(--ink); border: 1px solid #C9DDF0; border-bottom-left-radius: 5px; }
.msg-staff::before { content: attr(data-who); display: block; font: 800 12.5px/1.3 var(--sans); color: var(--sky-d); margin-bottom: 3px; }
.msg-me { align-self: flex-end; background: var(--sky-d); color: #fff; border-bottom-right-radius: 5px; }
.msg-sys { align-self: center; max-width: 94%; background: transparent; color: var(--muted); font: 600 13px/1.4 var(--sans); text-align: center; padding: 4px 8px; }
.msg-card { align-self: stretch; max-width: 100%; border: 1px solid #C9E2D8; background: #F3FBF7; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.msg-card b { color: var(--ink); }
.msg-card dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.msg-card dt { color: var(--muted); font-weight: 600; }
.msg-card dd { margin: 0; color: var(--ink); font-weight: 700; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #F0F6F9; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #4B6577; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.rx-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px 8px; }
.rx-chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid #A9C9DB; background: #fff; color: var(--sky-d); font: 700 14px/1.2 var(--sans); }
.rx-chips button:hover { background: var(--sky); }
.rx-form { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid var(--line); }
.rx-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid #A9C0CF; font: 500 16px/1.3 var(--sans); color: var(--ink); background: #fff; }
.rx-form input::placeholder { color: #4D6475; }
.rx-form button { flex: none; width: 48px; height: 46px; border-radius: 14px; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; }
.rx-legal { padding: 0 14px 10px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
@media (max-width: 520px) { .rx { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; } .rx-launch { right: 12px; bottom: 12px; } }

/* ===== Staff inbox + owner dashboard (app screens) ===== */
.app { min-height: 100vh; background: #F4F8FB; }
.app-head { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.app-head h1 { font-size: clamp(24px, 3vw, 30px); }
.app-head p { color: var(--muted); font-size: 15.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 13px/1.3 var(--sans); background: var(--sky); color: var(--sky-d); border: 1px solid #C9DDF0; }
.pill-g { background: var(--green-bg); color: var(--green-d); border-color: #C9E2D8; }
.pill-w { background: #FFF4E5; color: #6B3A00; border-color: #F2D6B0; }
.pill-r { background: #FDECEC; color: var(--red); border-color: #F3C7CA; }

.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 14px; padding-bottom: 28px; height: calc(100vh - 150px); min-height: 560px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.panel-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.panel-h b { font: 800 16px/1.3 var(--sans); color: var(--ink); }
.tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 700 14px/1.2 var(--sans); color: var(--ink); }
.tabs button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.list { overflow-y: auto; flex: 1; }
.conv { display: block; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--text); }
.conv:hover { background: #F6FAFC; }
.conv[aria-current='true'] { background: var(--sky); box-shadow: inset 4px 0 0 var(--sky-d); }
.conv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.conv-top b { font: 800 15.5px/1.3 var(--sans); color: var(--ink); }
.conv-top time { font: 600 13px/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.conv p { font-size: 14.5px; line-height: 1.45; margin-top: 3px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conv-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.conv .new-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sky-d); margin-right: 6px; }
.thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FBFDFE; }
.thread .msg-me { align-self: flex-start; background: #F0F6F9; color: var(--text); border-bottom-left-radius: 5px; border-bottom-right-radius: 16px; }
.thread .msg-ai, .thread .msg-staff { align-self: flex-end; }
.thread .msg-ai { background: #E9F6F0; color: var(--ink); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.thread .msg-ai::before { content: 'AI receptionist'; display: block; font: 800 12.5px/1.3 var(--sans); color: var(--green-d); margin-bottom: 3px; }
.thread .msg-staff { background: var(--sky-d); color: #fff; border: 0; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.thread .msg-staff::before { color: #DCEBFA; }
.reply { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; }
.reply-row { display: flex; gap: 8px; }
.reply textarea { flex: 1; min-height: 52px; max-height: 140px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid #A9C0CF; font: 500 15.5px/1.4 var(--sans); color: var(--ink); }
.reply { min-width: 0; }
.reply select { width: 100%; min-width: 0; text-overflow: ellipsis; padding: 8px 10px; border-radius: 10px; border: 1px solid #A9C0CF; font: 600 14.5px/1.2 var(--sans); color: var(--ink); background: #fff; max-width: 100%; }
.reply-note { font: 600 13px/1.4 var(--sans); color: var(--muted); }
.side { padding: 16px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.side h3 { font: 800 15px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.side .btn { width: 100%; }
.empty { margin: auto; text-align: center; color: var(--muted); padding: 30px; font-size: 16px; }
.back { display: none; }
@media (max-width: 1100px) { .inbox { grid-template-columns: 300px minmax(0, 1fr); } .inbox .side-panel { grid-column: 1 / -1; } .inbox { height: auto; } .inbox .panel { max-height: 640px; } }
@media (max-width: 760px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-sel .list-panel { display: none; }
  .inbox:not(.has-sel) .thread-panel, .inbox:not(.has-sel) .side-panel { display: none; }
  .back { display: inline-flex; }
  .inbox .panel { max-height: none; }
  .inbox .thread-panel { height: 70vh; }
}

/* Owner dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.kpi span { font: 700 14px/1.3 var(--sans); color: var(--muted); }
.kpi b { display: block; margin-top: 6px; font: 800 32px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 6px; font: 600 13.5px/1.35 var(--sans); color: var(--green-d); }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.box h2 { font-size: 20px; }
.box-sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; margin-top: 18px; padding-bottom: 22px; position: relative; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars i { display: block; border-radius: 6px 6px 0 0; background: #8FC9E9; }
.bars i.ah { background: var(--green); border-radius: 0; }
.bars i:first-child { border-radius: 6px 6px 0 0; }
.bars em { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font: 600 11.5px/1 var(--sans); color: var(--muted); font-style: normal; }
.legend { display: flex; gap: 16px; margin-top: 30px; font: 600 14px/1.3 var(--sans); color: var(--text); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.funnel { display: grid; gap: 10px; margin-top: 16px; }
.funnel div { display: grid; gap: 4px; }
.funnel label { display: flex; justify-content: space-between; font: 700 15px/1.3 var(--sans); color: var(--ink); }
.funnel .track { height: 12px; border-radius: 999px; background: #EAF1F5; overflow: hidden; }
.funnel .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), #1E8FC9); }
.rows { list-style: none; padding: 0; margin: 12px 0 0; }
.rows li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.rows li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.report { display: grid; gap: 10px; margin-top: 12px; font-size: 15.5px; }
.report p { padding: 12px 14px; border-radius: 12px; background: #F6FAFC; border: 1px solid var(--line); }
.dash3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding-bottom: 40px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash, .dash3 { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Small-screen polish */
.btn, .back { white-space: nowrap; }
@media (max-width: 520px) {
  .brand b { font-size: 18px; white-space: nowrap; }
  .site-head-in { gap: 10px; min-height: 62px; }
  .site-head .btn-sm { padding: 8px 12px; font-size: 14.5px; }
  .demo-bar-in { gap: 6px 10px; }
  .panel-h { flex-wrap: wrap; }
}
