/* Telugu font served from this site (SIL Open Font License, see fonts/OFL-LICENSE.txt); only Telugu letters use it. */
@font-face { font-family: "Radar Telugu"; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-telugu-400.woff2") format("woff2"); unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }
@font-face { font-family: "Radar Telugu"; font-weight: 600 700; font-display: swap; src: url("fonts/noto-sans-telugu-600.woff2") format("woff2"); unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }
:root { --ink:#0F172A; --quiet:#475569; --soft:#64748B; --rule:#E2E8F0; --bg:#F8FAFC; --navy:#0B2B75; --cr:#1D4ED8; --tr:#0F766E; --wa:#0B5C4E; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Segoe UI", "Radar Telugu", "Nirmala UI", system-ui, sans-serif; color: var(--ink); background: #EEF2F7; font-size: 14px; line-height: 1.45; }
a { color: var(--cr); }
.muted { color: var(--soft); }
.small { font-size: 12px; }
.tag { background: #FEF3C7; color: #B45309; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-left: 6px; }
.top { background: #fff; border-bottom: 1px solid var(--rule); padding: 10px 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.top strong { color: var(--navy); }
.sim-grid { display: grid; grid-template-columns: 240px minmax(320px, 420px) 1fr; gap: 18px; padding: 18px; max-width: 1180px; margin: 0 auto; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin: 0 0 10px; }
h3 { font-size: 13px; margin: 16px 0 6px; }
.people { display: flex; flex-direction: column; gap: 6px; }
.person { display: block; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 9px 11px; text-decoration: none; color: var(--ink); }
.person.on { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.pname { display: block; font-weight: 600; }
.pmeta { display: block; font-size: 12px; color: var(--soft); }
.phone { background: #ECE5DD; border: 8px solid #1F2937; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 520px; }
.phone-bar { background: var(--wa); color: #fff; padding: 9px 14px; }
.pb-name { font-weight: 600; }
.pb-sub { font-size: 11px; opacity: .85; }
.chat { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.empty { align-self: center; margin-top: 30px; color: var(--soft); background: #fff; padding: 6px 12px; border-radius: 8px; }
.msg { max-width: 85%; padding: 6px 9px 4px; border-radius: 9px; box-shadow: 0 1px 0 rgba(0,0,0,.08); word-wrap: break-word; }
.msg.bot { align-self: flex-start; background: #fff; }
.msg.me { align-self: flex-end; background: #DCF8C6; }
.msg .meta { font-size: 10px; color: #6B7280; text-align: right; margin-top: 2px; }
.opts { align-self: flex-start; width: 85%; display: flex; flex-direction: column; gap: 3px; margin-top: -2px; }
.opts form { margin: 0; }
.opts button { width: 100%; background: #fff; color: #0B7A68; border: 0; border-radius: 7px; padding: 6px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.opts button:hover { background: #F0FDF4; }
.compose { display: flex; gap: 6px; padding: 8px; background: #F0F2F5; }
.compose input { flex: 1; border: 1px solid #D1D5DB; border-radius: 20px; padding: 8px 12px; font: inherit; }
.compose button, .button { background: var(--wa); color: #fff; border: 0; border-radius: 20px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.phone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.phone-actions form { margin: 0; }
.ghost { background: #fff; border: 1px solid #CBD5E1; color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
.facts { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; align-self: start; }
.facts dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; }
.lead { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: var(--bg); }
.lead-brand { font-weight: 600; margin-bottom: 3px; }
.lead-brand.cr { color: var(--cr); }
.lead-brand.tr { color: var(--tr); }
.alerts { margin: 0; padding-left: 18px; }
.plain { display: grid; place-items: center; min-height: 100vh; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 26px 30px; max-width: 460px; }
.card h1 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
@media (max-width: 900px) {
  .sim-grid { grid-template-columns: 1fr; }
  .phone { height: 70vh; }
}
