/*  styles/crm-phone.css — CRM: phone par, dhoop me padhne layak akshar
    ===========================================================================
    Maalik (11 Oct 2026): "fonts kae colors, size and style aesa hoa ki mobile
    mode mein choti screen par bhi visibility clear hoa mobile app ki feeling
    aaye aesa na lage ki web portal khola hai ... sunlight mein visibility
    clear hoa fonts easily pade ja sake" -- aur poochhne par: "broker CRM app
    bhi".

    Yeh file SIRF phone par chadhti hai: index.html ka <link> `media="(max-width:
    640px)"` ke saath hai. Desktop par CRM ka ek pixel nahi badalta.

    NAAPA PEHLE (Chromium, 375px, CRM ka home, nakli test login): 71 me se
    **37** matn 12px se chhote the -- 9px, 9.375px, 9.75px -- aur **sab ke sab
    INLINE style** se (crm-core me ~700 jagah 11px se chhota naap). Sabse
    halka matn #748099 card par 4.63:1 tha.

    ⚠️ YEH FILE index.html ke <head> me <style> NAHI hai, aur yeh jaan-boojh kar
       hai. `scripts/build-property-form.js` ka `crmScopedCss` head ke HAR
       <style> ko generated form (property-form.js, client-form.js) me pakata
       hai -- aur un dono ki hash-locked copy 99Yard, 99Lease aur 99CP-Panel me
       hain. Yeh niyam CRM ke SHELL ka hai; form jab portal par chalta hai to
       us portal ka apna "CHHOTE INLINE AKSHAR KA FARSH" (yard.css / lease.css)
       wahi kaam karta hai. Ek alag file, ek alag kaam.

    ⚠️ `!important` har jagah majboori hai: naap aur rang INLINE style me hain,
       aur inline style har author rule se jeetta hai.
=========================================================================== */

/* ── 1. Phone ka apna font (iPhone: San Francisco, Android: Roboto) ───── */
/*  CRM `body` ko Inter / Plus Jakarta deta hai (crm-core ka `const CSS` aur
    index.html). Phone par dono ki jagah phone ka font -- wahi jo phone ke har
    app me hai. Monospace (GSTIN, code) chhua nahi: wo apna font khud likhta
    hai aur yahan sirf `body`, `#root` aur Inter-wale button badalte hain. */
html body, html #root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif !important;
}
html .bt, html .rb-btn, [style*="font-family: Inter"] { font-family: inherit !important; }

/* ── 2. Chhote inline naap ka farsh -- 12px ───────────────────────────── */
/*  Browser inline `fontSize: 9.5` ko `font-size: 9.5px` likhta hai, aur
    `"clamp(9px,2.6vw,10px)"` ko `font-size: clamp(9px, 2.6vw, 10px)` --
    comma ke baad EK space (Chromium me naapa). Selector usi shakl par hain.
    `tests/crm-phone-type.test.mjs` crm-core ka HAR chhota inline naap file se
    nikaal kar yahan uska selector maangta hai. */
[style*="font-size: 8px"], [style*="font-size: 8.5px"],
[style*="font-size: 9px"], [style*="font-size: 9.5px"],
[style*="font-size: 10px"], [style*="font-size: 10.5px"],
[style*="font-size: 11px"], [style*="font-size: 11.5px"],
[style*="font-size: clamp(8.5px, 2.4vw, 9.5px)"],
[style*="font-size: clamp(8.5px, 2.5vw, 9.5px)"],
[style*="font-size: clamp(9px, 2.5vw, 11px)"],
[style*="font-size: clamp(9px, 2.6vw, 10px)"],
[style*="font-size: clamp(9px, 2.7vw, 10.5px)"],
[style*="font-size: clamp(9.5px, 2.8vw, 11px)"],
[style*="font-size: clamp(9.5px, 2.9vw, 11px)"],
[style*="font-size: clamp(10px, 2.9vw, 12px)"] { font-size: 12px !important; }

/*  Jinka sabse chhota roop 12px se neeche par sabse bada 13px hai: badhna
    rehne do, sirf neeche ka farsh uthao. */
[style*="font-size: clamp(10.5px, 3.2vw, 13px)"],
[style*="font-size: clamp(11px, 3.2vw, 13px)"],
[style*="font-size: clamp(11px, 3.4vw, 13px)"] { font-size: clamp(12px, 3.3vw, 13px) !important; }

/*  ⚠️ NAAP BADHNE SE `nowrap` WALI LAKEER BAHAR NA NIKLE. Naapa gaya: 320px
    par home ki "Good Morning · 📅 Sunday, 11 October 2026" (11px, nowrap)
    12px hote hi apne 217px ke dabbe se 25px bahar gayi aur poora panna 2px
    side me khiskne laga. ("Wednesday, 30 September" jaisi lambi taareekh
    11px par bhi bahar jaati -- yaani yeh pehle se chhupi kharabi thi.) Har
    us `nowrap` lakeer par jise upar wala farsh bada karta hai, ab "…" --
    panna side me nahi khisakta. Sirf block-jaise dabbe par asar (inline
    span par text-overflow lagta hi nahi). */
[style*="white-space: nowrap"]:is(
  [style*="font-size: 8px"], [style*="font-size: 8.5px"],
  [style*="font-size: 9px"], [style*="font-size: 9.5px"],
  [style*="font-size: 10px"], [style*="font-size: 10.5px"],
  [style*="font-size: 11px"], [style*="font-size: 11.5px"],
  [style*="font-size: clamp(8.5px, 2.4vw, 9.5px)"],
  [style*="font-size: clamp(8.5px, 2.5vw, 9.5px)"],
  [style*="font-size: clamp(9px, 2.5vw, 11px)"],
  [style*="font-size: clamp(9px, 2.6vw, 10px)"],
  [style*="font-size: clamp(9px, 2.7vw, 10.5px)"],
  [style*="font-size: clamp(9.5px, 2.8vw, 11px)"],
  [style*="font-size: clamp(9.5px, 2.9vw, 11px)"],
  [style*="font-size: clamp(10px, 2.9vw, 12px)"]
) { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/*  ⚠️ JAAN-BOOJH KAR NAHI: `clamp(9px, 2.7vw, 11px)` -- form ke chaar
    category button (Residential / Commercial / Industrial / Agricultural) ek
    qataar me, aur kiraye ke Monthly / Yearly. 375px par 12px me "Residential"
    apne dabbe se 4px bahar jaata hai (99yard.com par naapa) -- wo naap chaar
    button ek qataar me bithane ke liye chuna gaya hai. Portal bhi ise chhodte
    hain. */

/*  crm-core ke `const CSS` ka EK hi chhota class-naap: `.bdg` (9px, bade
    akshar ka chip). */
html .bdg { font-size: 12px !important; }

/*  AI console (`app/lead-capture.js`, saajhi file -- apna CSS <style> me
    daalti hai, inline nahi): "⚡ AI", "🎤 Add by voice",
    "✨ AI Details", "or type it" -- 9.4 se 10.1px. 12px par 375 aur 320px
    dono par koi button nahi kata (naapa: har ek ka scrollWidth = clientWidth). */
html .rudra-lc .lc-chip, html .rudra-lc .lc-voice,
html .rudra-lc .lc-ai--row, html .rudra-lc .lc-or { font-size: 12px !important; }
/*  Property form ka console (31 Oct 2026): maalik ka niyam "wrap na kare, chahe
    font chota karna pade" yahan 12px ke farsh se upar hai. */
html .rudra-lc.lc-fit .lc-mode-btn { font-size: clamp(9.5px, 3.1vw, 12.5px) !important; }

/*  Form ke khaane (30 Oct 2026): 12-13px aur 35px oonche the. CRM ka viewport
    pinch-zoom band rakhta hai, to chhota akshar badhaane ka koi raasta hi nahi
    tha. Yeh file sirf 640px tak chadhti hai, to `any-pointer` ki zaroorat
    nahi. Hint tap karte hi 55% par aa jaata tha -- ab poora. */
html input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]),
html select, html textarea {
  font-size: 16px !important;
  min-height: 44px;
}
/*  Teen select 12px par atke the: form ki apni `!important` lakeer zyada bhaari hai. */
html body select:not(#_) { font-size: 16px !important; }
/*  📇 Contact book ke icon wala NUMBER khaana (5 Nov 2026). Maalik: "ek hi
    row mein font chotta kar loa agar ade". Naam aur number ek row me, aur
    number ke daaye 26px ka icon -- 320px par 16px me 10 ank kat jaate the
    ("98160123..."; naapa). Sirf yahi khaana chhota hota hai, aur utna hi
    jitna chaudai maange: 320px par 12.5px, 390px par ~15px, 410px se 16px. */
html [data-contact-pick] input:not(#_) { font-size: clamp(12.5px, 3.9vw, 16px) !important; letter-spacing: -.01em; }
html select { padding-left: 4px !important; padding-right: 0 !important; letter-spacing: -.02em; }
html input { text-overflow: ellipsis; }
/*  "Add by voice" aur "AI Details": phone par aadhe-aadhe. */
.rudra-lc .lc-vrow--tri { flex-wrap: wrap; }
.rudra-lc .lc-vrow--tri .lc-voice, .rudra-lc .lc-vrow--tri .lc-ai--row { flex: 1 1 calc(50% - 3px); min-height: 44px; }
html input:focus::placeholder, html textarea:focus::placeholder { opacity: 1 !important; }

/*  `clamp(9px, 2.7vw, 11px)` wale category button: ek qataar me 12px par
    nahi aate (upar), isliye 2 + 2 aur 13px. `:has` ke bina purana roop. */
@supports selector(:has(*)) {
  html div:has(> button[style*="clamp(9px, 2.7vw, 11px)"]):has(> button:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html button[style*="clamp(9px, 2.7vw, 11px)"] { font-size: 13px !important; min-height: 44px; }
  html .ag3:has(> div > select) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rudra-lc *, .rudra-lc *::before, .rudra-lc *::after { animation: none !important; }
}

/* ── 3. Dhoop: gehre roop ke halke grey ───────────────────────────────── */
/*  CRM ka card #11141d hai (CRM_UI.card). Inline likhe in grey ka contrast
    uspar 3.87 se 6.97 tha -- AA ke aas-paas, dhoop me dhul jaane wala. Har
    ek ko USI rang ka halka roop (ek hi factor se) diya gaya hai jo card par
    7:1 (AAA) paar karta hai. Sirf `html.dark` -- halke roop me yeh rang
    safed par pehle se gehre hain.
    ⚠️ Selector `; color:` ya shuruaat ka `color:` -- `[style*="color: rgb"]`
       likhne par "background-color" aur "border-color" bhi fans jaate. */
html.dark [style^="color: rgb(129, 149, 171)"], html.dark [style*="; color: rgb(129, 149, 171)"] { color: #8fa5bd !important; } /* #8195ab CRM_UI.mut 6.27 -> 7.26 */
html.dark [style^="color: rgb(138, 160, 180)"], html.dark [style*="; color: rgb(138, 160, 180)"] { color: #8ea5b9 !important; } /* #8aa0b4 6.80 */
html.dark [style^="color: rgb(142, 160, 194)"], html.dark [style*="; color: rgb(142, 160, 194)"] { color: #91a3c6 !important; } /* #8ea0c2 6.97 */
html.dark [style^="color: rgb(121, 128, 142)"], html.dark [style*="; color: rgb(121, 128, 142)"] { color: #9aa3b4 !important; } /* #79808e 4.63 */
html.dark [style^="color: rgb(116, 128, 153)"], html.dark [style*="; color: rgb(116, 128, 153)"] { color: #93a3c2 !important; } /* #748099 4.63 */
html.dark [style^="color: rgb(139, 147, 165)"], html.dark [style*="; color: rgb(139, 147, 165)"] { color: #9aa3b7 !important; } /* #8b93a5 5.97 */
html.dark [style^="color: rgb(127, 142, 168)"], html.dark [style*="; color: rgb(127, 142, 168)"] { color: #92a3c1 !important; } /* #7f8ea8 5.55 */
html.dark [style^="color: rgb(100, 116, 139)"], html.dark [style*="; color: rgb(100, 116, 139)"] { color: #8da4c4 !important; } /* #64748b 3.87 */
html.dark [style^="color: rgb(113, 128, 155)"], html.dark [style*="; color: rgb(113, 128, 155)"] { color: #90a3c5 !important; } /* #71809b 4.61 */
html.dark [style^="color: rgb(113, 129, 152)"], html.dark [style*="; color: rgb(113, 129, 152)"] { color: #90a4c1 !important; } /* #718198 4.64 */
html.dark [style^="color: rgb(124, 133, 152)"], html.dark [style*="; color: rgb(124, 133, 152)"] { color: #98a3ba !important; } /* #7c8598 4.96 */
html.dark [style^="color: rgb(123, 132, 148)"], html.dark [style*="; color: rgb(123, 132, 148)"] { color: #98a3b7 !important; } /* #7b8494 4.88 */
