/* Bharat Kisan — UI styles. Brand: green C81 M7 Y61 K4 (#049F7E), orange C0 M75 Y94 K1 (#E95E2B). */
@font-face { font-family: Poppins; font-weight: 400; src: url(fonts/Poppins-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 500; src: url(fonts/Poppins-Medium.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 600; src: url(fonts/Poppins-SemiBold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 700; src: url(fonts/Poppins-Bold.woff2) format("woff2"); font-display: swap; }

:root {
  --g-900: #066765;
  --g-800: #09817F;   /* brand dark green C86 M22 Y48 K18 */
  --g-600: #049F7E;   /* brand green C81 M7 Y61 K4 */
  --g-400: #2DBA8C;
  --g-100: #DFF3EC;
  --blue: #4CABDF;    /* brand blue C67 M17 Y1 K0 */
  --blue-700: #2F8FC6;
  --blue-100: #E4F2FB;
  --g-50:  #F2F9F6;
  --saffron: #E95E2B;   /* brand orange C0 M75 Y94 K1 */
  --saffron-100: #FCE5DB;
  --orange-btn: #ED6833; /* brand orange C0 M71 Y89 K0 — buttons */
  --amber: #F18F2A;   /* brand amber C0 M52 Y93 K1 */
  --gold: #FCC92C;    /* brand gold C0 M22 Y90 K1 — harvest, highlights (dark text on it) */
  --ink: #15291C;
  --ink-2: #4A5D50;
  --ink-3: #7C8C81;
  --line: #DDE8E0;
  --card: #FFFFFF;
  --danger: #D94626;  /* brand red-orange C2 M86 Y98 K7 */
  --danger-100: #FBE3DD;
  --berry: #D52357;      /* brand raspberry C3 M98 Y45 K8 — video play, "new" tags */
  --alert: #E64334;      /* brand red C0 M87 Y86 K1 — alert icons, borders, badges */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(3, 74, 59, .06), 0 4px 14px rgba(3, 74, 59, .07);
  --nav-h: 66px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Poppins, "Noto Sans Devanagari", system-ui, sans-serif;
  background: var(--g-50);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue-700); }
img, svg { display: block; }
.hidden { display: none !important; }

/* ---------- Welcome ---------- */
.welcome {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px 28px;
  color: #fff;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(45,186,140,.35), transparent 60%),
    linear-gradient(180deg, var(--g-800) 0%, var(--g-900) 100%);
}
.welcome .logo { width: min(260px, 72vw); margin-top: 6vh; animation: rise .7s ease-out both; }
.welcome .tagline { margin: 22px 0 0; text-align: center; font-size: 17px; color: #D7EBDD; max-width: 300px; animation: fade .7s .2s both; }
.welcome .spacer { flex: 1; }
.welcome .step { width: 100%; max-width: 380px; animation: fade .5s both; }
.welcome .label { font-size: 14px; color: #B9D8C3; margin: 0 0 10px; text-align: center; }
.lang-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.lang-btn {
  padding: 14px 10px; border-radius: 14px; border: 2px solid rgba(255,255,255,.25);
  font-size: 18px; font-weight: 600; color: #fff; background: rgba(255,255,255,.06);
}
.lang-btn[aria-pressed="true"] { border-color: var(--saffron); background: rgba(233,94,43,.16); }
.btn-primary {
  width: 100%; padding: 16px; border-radius: 14px; font-size: 18px; font-weight: 600;
  background: var(--orange-btn); color: #fff; box-shadow: 0 6px 18px rgba(237,104,51,.35);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { width: 100%; padding: 14px; margin-top: 10px; border-radius: 14px; color: #D7EBDD; font-weight: 500; }
.welcome .why { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px; margin-bottom: 16px; font-size: 14px; color: #DCEEE1; }
.welcome .why svg { flex: none; width: 26px; height: 26px; color: var(--saffron); }
.by-ryolite { height: 34px; margin-top: 20px; }
.state-select { width: 100%; padding: 14px; border-radius: 14px; border: 0; margin-bottom: 12px; color: var(--ink); background: #fff; font-size: 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 14px;
  background: var(--g-800); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.topbar .brand img { width: 34px; height: 34px; flex: none; }
.topbar .brand-text { min-width: 0; }
.topbar .brand-name { font-weight: 700; font-size: 17px; line-height: 1.1; }
.topbar .brand-name .b { color: var(--saffron); }
.loc-chip { display: flex; align-items: center; gap: 3px; font-size: 12.5px; color: #FFFFFF; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.loc-chip svg { width: 13px; height: 13px; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; position: relative; }
.icon-btn:active { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 24px; height: 24px; }
.subbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--g-800); color: #fff; position: sticky; top: 0; z-index: 20; }
.subbar h1 { font-size: 18px; margin: 0; font-weight: 600; flex: 1; }

main { padding: 14px 14px calc(var(--nav-h) + 24px); max-width: 680px; margin: 0 auto; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 12px; }
.banner.demo { background: var(--saffron-100); color: #7A3F06; }
.banner.offline { background: var(--blue-100); color: #1D5A80; }
.banner button { margin-left: auto; font-weight: 600; text-decoration: underline; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(3,74,59,.06);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 500;
}
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a .pill { width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
.bottomnav a[aria-current="page"] { color: var(--g-800); font-weight: 600; }
.bottomnav a[aria-current="page"] .pill { background: var(--g-100); }

/* ---------- Building blocks ---------- */
.section { margin: 20px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section h2 { font-size: 17px; margin: 0; font-weight: 600; }
.section a, .section button { font-size: 13.5px; font-weight: 600; color: var(--g-600); text-decoration: none; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.card + .card { margin-top: 10px; }
.muted { color: var(--ink-3); font-size: 13px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--g-800); color: #fff; border-color: var(--g-800); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--g-100); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { padding: 10px; border-radius: 9px; font-weight: 600; color: var(--g-800); }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin-bottom: 12px; }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { border: 0; outline: 0; padding: 13px 0; flex: 1; background: transparent; font-size: 16px; min-width: 0; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--g-400); }
.err { background: var(--danger-100); color: var(--danger); border-radius: 12px; padding: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.err button { margin-left: auto; font-weight: 600; text-decoration: underline; color: var(--danger); }
.skel { background: linear-gradient(90deg, #e9f0eb 25%, #f5f9f6 50%, #e9f0eb 75%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); height: 90px; }
.skel + .skel { margin-top: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.fresh { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.fresh.stale { color: #9A5B0C; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--g-100); color: var(--g-800); }
.badge.saffron { background: var(--saffron-100); color: #9A4A05; }
.badge.warn { background: var(--danger-100); color: var(--danger); }

/* ---------- Weather ---------- */
.weather { color: #fff; background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue) 45%, var(--g-800) 100%); position: relative; overflow: hidden; }
.weather::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(252,201,44,.55), rgba(241,143,42,0) 70%); }
.weather .now { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.weather .temp { font-size: 46px; font-weight: 600; line-height: 1; }
.weather .cond { font-size: 15px; color: #E0F1E5; }
.weather .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 14px; position: relative; z-index: 1; }
.weather .day { text-align: center; font-size: 12px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 6px 2px; }
.weather .day b { display: block; font-size: 14px; }
.weather .wx-icon { width: 44px; height: 44px; }
.advisory { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fff; border-left: 4px solid var(--g-600); box-shadow: var(--shadow); font-size: 14.5px; }
.advisory + .advisory { margin-top: 8px; }
.advisory.warning { border-left-color: var(--saffron); }
.advisory.alert { border-left-color: var(--alert); background: #FFF6F4; }
.advisory svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.advisory.info svg { color: var(--blue-700); } .advisory.warning svg { color: var(--saffron); } .advisory.alert svg { color: var(--alert); }
.speak { margin-left: auto; color: var(--g-600); flex: none; }

/* ---------- Prices ---------- */
.price { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card.price + .trend .card { margin: -4px 0 10px; }
.price .crop-dot { width: 42px; height: 42px; border-radius: 12px; background: var(--g-100); display: grid; place-items: center; flex: none; font-size: 20px; }
.price .info { flex: 1; min-width: 0; }
.price .name { font-weight: 600; font-size: 16px; }
.price .mkt { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price .val { text-align: right; flex: none; }
.price .modal { font-size: 19px; font-weight: 700; color: var(--g-800); }
.price .range { font-size: 12px; color: var(--ink-3); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll > .card { margin-top: 0; }
.mini-price { width: 150px; }
.mini-price .modal { font-size: 20px; font-weight: 700; color: var(--g-800); margin-top: 4px; }
.trend svg { width: 100%; height: 120px; }

/* ---------- Lists ---------- */
.news-item { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.news-item .tag-col { flex: none; width: 6px; border-radius: 3px; background: var(--g-400); }
.news-item.district .tag-col { background: var(--saffron); }
.news-item h3 { font-size: 15px; margin: 0 0 4px; font-weight: 600; line-height: 1.35; }
.news-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crop-tile { text-align: center; padding: 16px 10px; }
.crop-tile .emoji { font-size: 34px; line-height: 1; }
.crop-tile .n { font-weight: 600; margin-top: 8px; }
.crop-tile .s { font-size: 12px; color: var(--ink-3); }

.cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 10px 0 4px; }
.cal div { height: 28px; border-radius: 5px; background: #EEF3EF; font-size: 9.5px; letter-spacing: -.2px; display: grid; place-items: center; color: var(--ink-3); }
.cal .sow { background: var(--saffron); color: #fff; }
.cal .grow { background: var(--g-400); color: #fff; }
.cal .harvest { background: var(--gold); color: #5A4300; }
.cal .now { outline: 2px solid var(--ink); outline-offset: 1px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.stage-hero { background: linear-gradient(135deg, var(--g-600), var(--g-800)); color: #fff; }
.stage-hero .big { font-size: 22px; font-weight: 700; }

.tech-card .top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.tech-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--g-100); color: var(--g-800); display: grid; place-items: center; flex: none; }
.tech-card .ic svg { width: 22px; height: 22px; }
.tech-card h3 { font-size: 15.5px; margin: 0; font-weight: 600; }
.tech-card p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.flags { font-size: 12px; color: var(--ink-3); }

.scheme-card .lvl { font-size: 11.5px; font-weight: 600; }
.scheme-card h3 { margin: 6px 0 4px; font-size: 16px; }
.scheme-card .benefit { font-size: 14px; color: var(--g-800); font-weight: 500; }
.detail h1 { font-size: 21px; margin: 4px 0 6px; }
.detail ul { padding-left: 20px; margin: 6px 0; }
.detail li { margin: 4px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 12px; font-weight: 600; background: var(--g-800); color: #fff; text-decoration: none; width: 100%; }
.btn.secondary { background: var(--g-100); color: var(--g-800); }

.video { width: 230px; text-decoration: none; color: inherit; }
.video .thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #cfe0d4; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .thumb .play span { width: 42px; height: 42px; border-radius: 50%; background: var(--berry); display: grid; place-items: center; }
.video .thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.video .t { font-size: 13.5px; font-weight: 600; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video .c { font-size: 12px; color: var(--ink-3); }

.chat-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF6EC, #FFFFFF); border: 1px solid #F7DEC3; }
.chat-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--saffron); color: #fff; display: grid; place-items: center; flex: none; }
.chat-card .ic svg { width: 24px; height: 24px; }
.chat-card b { display: block; }

/* ---------- Chat ---------- */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 62px); }
.chat-groups { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); align-self: flex-start; font-size: 15px; }
.msg.me { align-self: flex-end; background: var(--g-100); }
.msg .who { font-size: 12px; font-weight: 600; color: var(--g-800); }
.msg .time { font-size: 11px; color: var(--ink-3); text-align: right; margin-top: 2px; }
.msg .pending { opacity: .6; }
.composer { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 22px; padding: 11px 16px; outline: 0; font-size: 16px; min-width: 0; }
.composer button { width: 46px; height: 46px; border-radius: 50%; background: var(--g-800); color: #fff; display: grid; place-items: center; flex: none; }
.composer button svg { width: 22px; height: 22px; }
.rules { font-size: 12.5px; color: var(--ink-2); background: var(--g-100); border-radius: 12px; padding: 10px 12px; margin: 0 0 4px; }

.form label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
.form input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: 0; font-size: 16px; }
.form input:focus { border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(4,159,126,.15); }
.form .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--alert); border: 2px solid var(--g-800); }
.badge.new { background: var(--berry); color: #fff; }

/* ---- Farmer tools: Hisab, Mera Fasal, Sawal-Jawab, in-app news ---- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; text-decoration: none; color: var(--ink); font-size: 13px; }
.card.tool + .card.tool { margin-top: 0; }
.tool .ti { width: 40px; height: 40px; border-radius: 12px; background: var(--g-100); color: var(--g-800); display: grid; place-items: center; }
.tool .ti svg { width: 22px; height: 22px; }
.pos { color: var(--g-600); } .neg { color: var(--danger); }
.hero-hisab { background: linear-gradient(160deg, var(--g-800), var(--g-900)); color: #fff; }
.hero-hisab .muted { color: #CBE9DE; }
.hero-hisab .big { font-size: 32px; font-weight: 700; margin-top: 4px; }
.hero-hisab .big.neg { color: #FFD2C4; }
.kpi { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.kpi b { font-size: 17px; color: #fff; } .kpi b.pos { color: #B8F0D9; } .kpi b.neg { color: #FFD2C4; }
.qa-tile { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.grid2 .card + .card { margin-top: 0; }
.qi { width: 36px; height: 36px; border-radius: 10px; background: var(--g-100); display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; color: var(--g-800); }
.qi svg { width: 20px; height: 20px; }
.hrow { display: flex; align-items: center; gap: 12px; }
.hrow .info { flex: 1; min-width: 0; } .hrow .name { font-weight: 600; } .hrow .mkt { font-size: 13px; color: var(--ink-3); }
.hrow .val { text-align: end; font-weight: 700; }
.hic { width: 40px; height: 40px; border-radius: 12px; background: var(--g-100); display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 700; }
.hic.in { color: var(--g-600); } .hic.out { color: var(--danger); background: var(--danger-100); }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.att { display: flex; gap: 6px; }
.att button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); }
.att button[data-m="P"][aria-pressed="true"] { background: var(--g-600); color: #fff; border-color: var(--g-600); }
.att button[data-m="H"][aria-pressed="true"] { background: var(--amber); color: #fff; border-color: var(--amber); }
.att button[data-m="A"][aria-pressed="true"] { background: var(--danger); color: #fff; border-color: var(--danger); }
.bar-row + .bar-row { margin-top: 10px; }
.bl { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.bt { height: 8px; background: var(--g-50); border-radius: 6px; margin-top: 4px; overflow: hidden; }
.bt i { display: block; height: 100%; border-radius: 6px; background: var(--g-600); } .bt i.neg { background: var(--saffron); }
.tico { font-size: 20px; flex: none; }
.faq summary { cursor: pointer; list-style: none; } .faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 6px; line-height: 1.6; } .faq .meta { display: flex; align-items: center; justify-content: space-between; }
.article h1 { font-size: 21px; line-height: 1.4; margin: 12px 0 8px; }
.article p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.article .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 4px; }
.lang-grid .chip { text-align: center; font-size: 16px; }
.lang-row { grid-template-columns: 1fr 1fr; }
[dir="rtl"] .advisory { border-left: 0; border-right: 4px solid var(--g-600); }

/* ---- Bhav, saved crops, dairy calendar, dashboard ---- */
.sumrow { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 12px; }
.sumrow .main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.sumrow .info { flex: 1; min-width: 0; } .sumrow .name { font-weight: 600; }
.sumrow .mkt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sumrow .val { text-align: end; } .sumrow .modal { font-weight: 700; font-size: 17px; } .sumrow .range { font-size: 12px; color: var(--ink-3); }
.sumrow .crop-dot, .best .crop-dot { width: 40px; height: 40px; border-radius: 12px; background: var(--g-100); display: grid; place-items: center; flex: none; font-size: 20px; }
.star { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; color: var(--line); flex: none; }
.star[aria-pressed="true"] { color: var(--gold); }
.chg { font-weight: 600; font-size: 12.5px; } .chg.up { color: var(--g-600); } .chg.down { color: var(--danger); }
.best { display: block; text-decoration: none; color: inherit; }
.best .bh { display: flex; align-items: center; gap: 10px; } .best .bh b { flex: 1; font-size: 16px; } .best .bh .muted { font-size: 12.5px; }
.best .bb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.best .bb > div { background: var(--g-50); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.best .bb b { font-size: 14px; color: var(--ink); } .best .bb b.pos { color: var(--g-600); }
.hrow.mine { outline: 2px solid var(--saffron); }
.fstat { display: block; text-decoration: none; color: inherit; }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calhead .icon-btn { font-size: 26px; text-decoration: none; color: var(--g-800); width: 40px; text-align: center; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal .wd { text-align: center; font-size: 11px; color: var(--ink-3); padding-bottom: 2px; }
.mcal .cd { aspect-ratio: 1; border-radius: 10px; background: var(--g-50); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.1; }
.mcal .cd span { font-size: 10.5px; color: var(--g-800); font-weight: 600; min-height: 12px; }
.mcal .cd.has { background: var(--g-100); } .mcal .cd.today { outline: 2px solid var(--saffron); }
.mcal .cd.sel { background: var(--g-800); color: #fff; } .mcal .cd.sel span { color: #fff; }
.mcal .cd.future { opacity: .35; pointer-events: none; }
.dash { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; }
.dash .dh { display: flex; justify-content: space-between; align-items: baseline; }
.dash .dk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.dash .dk > div { background: var(--g-50); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--ink-3); }
.dash .dk b { font-size: 15px; color: var(--ink); } .dash .dk b.pos { color: var(--g-600); } .dash .dk b.neg { color: var(--danger); }
.live-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.live-card .lv { width: 44px; height: 44px; border-radius: 12px; background: var(--berry); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.tools { grid-template-columns: repeat(4, 1fr); }
.tool { font-size: 12px; padding: 10px 4px; }
.tool .ti { font-size: 20px; }
.satimg { width: 100%; margin-top: 8px; border-radius: 10px; image-rendering: pixelated; background: var(--g-50); }
.ndvi-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.ndvi-legend span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-inline-end: -6px; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-card { position: relative; }
.live-dot { position: absolute; top: 10px; inset-inline-end: 12px; font-size: 11px; font-weight: 700; color: var(--berry); }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adv-grid .advisory { flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; padding: 10px; margin: 0; }
.adv-grid .advisory + .advisory { margin-top: 0; }
.adv-grid .advisory .speak { align-self: flex-end; margin-top: auto; }
.dash-cta { margin-top: 10px; text-align: center; font-weight: 600; color: var(--g-800); background: var(--g-100); border-radius: 10px; padding: 8px; }
.saved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skpi { display: block; text-decoration: none; color: inherit; padding: 12px; }
.card.skpi + .card.skpi { margin-top: 0; }
.skpi .sh { display: flex; align-items: center; gap: 6px; font-size: 14px; } .skpi .sh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skpi .sh span { font-size: 18px; } .skpi .sh i { font-style: normal; font-size: 13px; }
.skpi .sv { font-size: 20px; font-weight: 700; margin-top: 6px; } .skpi > .muted { font-size: 11.5px; }
.skpi .sl { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: var(--ink-3); } .skpi .sl b { color: var(--ink); font-size: 13px; } .skpi .sl b.pos { color: var(--g-600); }
.skpi .sm { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Weather card follows the real sky: day / dawn / dusk / night, clear / cloud / rain ---- */
.weather.sky-dawn { background: linear-gradient(170deg, #F6A96B 0%, #F48E7E 40%, #7FA8D6 100%); }
.weather.sky-dusk { background: linear-gradient(170deg, #2F4C82 0%, #C0628A 55%, #F2994A 100%); }
.weather.sky-night { background: linear-gradient(170deg, #0A1633 0%, #13285A 55%, #1C3F66 100%); }
.weather.sky-night::after, .weather.wx-cloud::after, .weather.wx-rain::after, .weather.wx-storm::after, .weather.wx-fog::after { display: none; }
.weather.sky-day.wx-cloud, .weather.sky-day.wx-fog { background: linear-gradient(170deg, #7D93A8 0%, #98AEC1 50%, #5E7F8F 100%); }
.weather.sky-day.wx-rain, .weather.sky-day.wx-storm { background: linear-gradient(170deg, #3F5366 0%, #566E82 55%, #3E6470 100%); }
.weather.sky-night.wx-cloud, .weather.sky-night.wx-rain, .weather.sky-night.wx-storm, .weather.sky-night.wx-fog { background: linear-gradient(170deg, #121A2B 0%, #23324A 60%, #2B4152 100%); }
.weather .sky-moon { position: absolute; top: 14px; inset-inline-end: 18px; width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(244,241,222,.55)); }
.weather.wx-cloud .sky-moon, .weather.wx-rain .sky-moon, .weather.wx-storm .sky-moon, .weather.wx-fog .sky-moon { opacity: .35; }
.weather .stars { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 58%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 80%, #fff 50%, transparent 51%);
  opacity: .8; }
.weather.wx-cloud .stars, .weather.wx-rain .stars, .weather.wx-storm .stars, .weather.wx-fog .stars { opacity: .15; }

/* Google sign-in button mark */
.g-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 700; font-size: 16px; }

/* =====================================================================================
   Design v2 (Nov 2026) — one system for the whole app: calm surfaces, layered shadows,
   one brand gradient, 8 px spacing grid, tabular numbers, 48 px touch targets.
   ===================================================================================== */
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --brand-grad: linear-gradient(135deg, #0B8A72 0%, #08786F 55%, #066765 100%);
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .05), 0 8px 24px -6px rgba(16, 40, 34, .10);
  --shadow-lift: 0 2px 4px rgba(16, 40, 34, .06), 0 16px 32px -8px rgba(16, 40, 34, .18);
  --hair: rgba(16, 40, 34, .07);
  --ink: #12231E; --ink-2: #44564F; --ink-3: #7A8A84;
  --nav-h: 68px;
}
body { background: var(--bg); font-size: 15px; letter-spacing: .1px; font-variant-numeric: tabular-nums; }
h1, h2, h3, b, strong { letter-spacing: 0; }

/* App bars */
.topbar, .subbar { background: #08786F; padding-top: 12px; padding-bottom: 12px; }
.topbar .brand img { width: 36px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.topbar .brand-name { font-size: 18px; }
.topbar .brand-name .b { color: #FFB38A; }
.loc-chip { margin-top: 2px; padding: 2px 8px 2px 4px; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 12px; }
.icon-btn { border-radius: 14px; }
.topbar .icon-btn { background: rgba(255,255,255,.12); width: 40px; height: 40px; }
.topbar .icon-btn svg { width: 22px; height: 22px; }
.subbar h1 { font-size: 18px; font-weight: 600; }
.subbar + main { padding-top: 16px; }

/* Home hero: the brand colour flows from the app bar behind the first card */
main { position: relative; padding: 16px 16px calc(var(--nav-h) + 24px); }
main > * { position: relative; z-index: 1; }
.hero-band { position: absolute !important; z-index: 0 !important; left: 0; right: 0; top: 0; height: 176px;
  background: linear-gradient(180deg, #08786F 0%, #0B8A72 100%); border-radius: 0 0 28px 28px; }
.hero-band::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 90% at 90% 0%, rgba(255,255,255,.16), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(255,179,138,.18), transparent 70%); }
.greet { display: flex; flex-direction: column; color: #fff; margin: 0 4px 16px; }
.greet b { font-size: 22px; font-weight: 700; line-height: 1.25; }
.greet span { font-size: 13px; opacity: .85; }

/* Surfaces */
.card { background-color: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--hair); }
.card + .card { margin-top: 12px; }
a.card, button.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:active, button.card:active { transform: scale(.985); box-shadow: var(--shadow-lift); }
.section { margin: 24px 4px 12px; }
.section h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
.section a, .section button { font-size: 13px; padding: 4px 10px; border-radius: 12px; background: var(--g-100); color: var(--g-800); }
.muted { color: var(--ink-3); font-size: 12.5px; }
.skel { border-radius: var(--radius); height: 96px; }

/* Buttons & inputs */
.btn { min-height: 48px; border-radius: var(--radius-s); background: var(--brand-grad); box-shadow: 0 6px 16px -6px rgba(6,103,101,.55); font-size: 15.5px; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--g-100); color: var(--g-800); box-shadow: none; }
.btn[disabled] { opacity: .55; }
.form input, .search, .composer input, .state-select { border-radius: var(--radius-s); border-color: #D5E1DC; }
.chip { border-color: #D5E1DC; padding: 8px 16px; }
.chip[aria-pressed="true"] { background: var(--g-800); box-shadow: 0 4px 12px -4px rgba(6,103,101,.5); }
.seg { border-radius: var(--radius-s); background: #E6EFEC; }
.seg button { border-radius: 10px; }

/* Home: month dashboard */
.dash { margin-bottom: 16px; padding: 16px; box-shadow: var(--shadow-lift); }
.dash .dh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.dash .dh .dl { color: var(--g-800); font-weight: 600; background: var(--g-100); padding: 4px 10px; border-radius: 12px; }
.dash .dbig { display: flex; flex-direction: column; margin-top: 8px; }
.dash .dbig span { font-size: 13px; color: var(--ink-2); }
.dash .dbig b { font-size: 30px; font-weight: 700; line-height: 1.15; }
.dash .dbig b.pos { color: #07866A; } .dash .dbig b.neg { color: var(--danger); }
.dash .dk { grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.dash .dk > div { grid-column: span 2; } .dash .dk > div:nth-child(n+4) { grid-column: span 3; flex-direction: row; justify-content: space-between; align-items: center; }
.dash .dk > div { background: #F4F8F6; border-radius: 12px; padding: 8px 10px; font-size: 11.5px; }
.dash .dk b { font-size: 15px; }
.dash-cta { border-radius: 12px; padding: 10px; }

/* Home: quick tools */
.tools { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.tool { padding: 8px 2px; gap: 8px; font-size: 12px; line-height: 1.3; color: var(--ink); background: none; border: 0; box-shadow: none; }
.tool b { font-weight: 600; }
.tool .ti { width: 56px; height: 56px; border-radius: 18px; box-shadow: var(--shadow); }
.tool .ti svg { width: 26px; height: 26px; }
.tool:active .ti { transform: scale(.94); }
.tool .ti.t-green, .t-green { background: linear-gradient(145deg, #E2F5EE, #C7EBDD); color: #07735F; }
.tool .ti.t-amber, .t-amber { background: linear-gradient(145deg, #FFF0DC, #FFDDB3); color: #B45A07; }
.tool .ti.t-blue, .t-blue { background: linear-gradient(145deg, #E3F0FB, #C8E1F6); color: #1F6FA8; }
.tool .ti.t-violet, .t-violet { background: linear-gradient(145deg, #EEEAFB, #DCD3F6); color: #5B45B0; }

/* Weather */
.weather { border: 0; padding: 18px; box-shadow: var(--shadow-lift); }
.weather .temp { font-size: 48px; font-weight: 600; letter-spacing: -1px; }
.weather .day { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 2px; backdrop-filter: blur(4px); }

/* Advisories: icon chip, no heavy side border */
.advisory { border-left: 0; border: 1px solid var(--hair); border-radius: var(--radius-s); padding: 12px; box-shadow: var(--shadow); }
[dir="rtl"] .advisory { border-right: 0; }
.advisory svg { width: 32px; height: 32px; padding: 6px; border-radius: 10px; }
.advisory.info svg { background: var(--blue-100); } .advisory.warning svg { background: var(--saffron-100); }
.advisory.alert { background: #FFF7F5; } .advisory.alert svg { background: var(--danger-100); }
.adv-grid .advisory { padding: 12px; gap: 8px; font-size: 13px; color: var(--ink-2); }
.speak { width: 36px; height: 36px; border-radius: 12px; background: var(--g-100); display: grid; place-items: center; }
.speak svg { width: 20px !important; height: 20px !important; padding: 0 !important; background: none !important; }

/* Mandi cards */
.hscroll { gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; }
.mini-price { width: 148px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.mini-price .cd { width: 40px; height: 40px; border-radius: 12px; background: var(--g-100); display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }
.mini-price .mn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-price .modal { font-size: 20px; color: #07735F; margin-top: 2px; }
.fresh { margin: 0 4px; }

/* Promo row: group chat + DD Kisan */
.promo-row { display: grid; gap: 12px; margin-top: 24px; }
.promo-row .card + .card { margin-top: 0; }
.promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; text-decoration: none; color: inherit; }
.promo .pt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo .pt b { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.promo .go { color: var(--ink-3); flex: none; } .promo .go svg { width: 20px; height: 20px; }
.chat-card { background: linear-gradient(120deg, #FFF4EA, #FFFFFF 70%); border-color: #F6DEC6; }
.chat-card .ic { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(145deg, #F27A3F, #E05A22); box-shadow: 0 6px 14px -6px rgba(224,90,34,.7); }
.live-card { background: linear-gradient(120deg, #FDEDF2, #FFFFFF 70%); border-color: #F5D2DE; }
.live-card .lv { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(145deg, #E2366B, #B81B4C); box-shadow: 0 6px 14px -6px rgba(184,27,76,.7); }
.live-card .lv svg { width: 22px; height: 22px; }
.live-dot { position: static; font-style: normal; font-size: 10.5px; color: #fff; background: var(--berry); padding: 1px 6px; border-radius: 8px; }

/* Saved crops, news, lists */
.skpi { padding: 14px; }
.news-item .tag-col { width: 4px; }
.news-item h3 { font-size: 15px; }
.sumrow { padding: 12px 8px 12px 12px; }
.sumrow .crop-dot, .best .crop-dot, .price .crop-dot, .hic, .qi { border-radius: 12px; }

/* Bottom navigation */
.bottomnav { height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--hair); box-shadow: 0 -6px 24px -12px rgba(16,40,34,.18); }
.bottomnav a { font-size: 11.5px; gap: 4px; }
.bottomnav a .pill { width: 56px; height: 32px; border-radius: 16px; }
.bottomnav a[aria-current="page"] { color: var(--g-800); }
.bottomnav a[aria-current="page"] .pill { background: linear-gradient(145deg, #DDF2EA, #C9EADF); }
.bottomnav a[aria-current="page"] svg { stroke-width: 2.2; }

#toast { border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lift); }
/* Cards laid out in rows/grids never take the stacked-card top margin */
.hscroll > .card, .promo-row > .card, .saved-grid > .card, .grid2 > .card, .tools > *, .adv-grid > * { margin-top: 0 !important; }
.weather .wx-icon, .weather .now > svg:first-child { width: 60px; height: 60px; flex: none; }
.sumrow + .sumrow, .card.sumrow + .card.sumrow { margin-top: 8px; }
.sumrow .crop-dot, .best .crop-dot, .price .crop-dot { width: 44px; height: 44px; font-size: 24px; background: linear-gradient(145deg, #EEF6F2, #DDEFE7); }
.sumrow .modal { color: var(--ink); }

/* Saved crops 2×2: identical card anatomy, equal heights, aligned rows */
.saved-grid { grid-auto-rows: 1fr; gap: 12px; }
.skpi { display: flex; flex-direction: column; padding: 12px; min-width: 0; }
.skpi .sh { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.skpi .sh .ce { width: 32px; height: 32px; border-radius: 10px; background: var(--g-100); display: grid; place-items: center; font-size: 18px; flex: none; }
.skpi .sh b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skpi .sh i { font-style: normal; font-size: 13px; flex: none; }
.skpi .sv { font-size: 22px; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.skpi .sa { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.skpi .sr { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--ink-3); }
.skpi .sr b { font-size: 14px; color: var(--ink); } .skpi .sr b.pos { color: #07866A; }
.skpi .sr small { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }

/* Crops & prices tab: three sub-views */
.seg3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.seg3 a { padding: 10px 4px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--g-800); text-align: center; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg3 a[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow); }

/* Home news: 2×2 cards per level */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.news-grid > * { margin-top: 0 !important; }
.news-grid > .skel { height: 132px; }
.ncard { display: flex; flex-direction: column; gap: 6px; padding: 12px; text-decoration: none; color: inherit; min-width: 0; }
.ncard .src { align-self: flex-start; max-width: 100%; font-size: 10.5px; font-weight: 600; color: var(--g-800); background: var(--g-100); padding: 2px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .when { margin-top: auto; font-size: 11px; color: var(--ink-3); }
/* Sub-view switcher reads as tabs (underline), distinct from the district/state segment below it */
.seg3.hub { background: none; padding: 0; gap: 0; border-radius: 0; border-bottom: 1px solid #D5E1DC; margin: -4px -16px 16px; padding: 0 8px; }
.seg3.hub a { border-radius: 0; padding: 12px 4px; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.seg3.hub a[aria-pressed="true"] { background: none; box-shadow: none; color: var(--g-800); border-bottom-color: var(--g-600); }

/* Payment received */
.party { width: 100%; text-align: start; }
.card.party + .card.party { margin-top: 8px; }
.party.on { border-color: var(--g-600); box-shadow: 0 0 0 2px rgba(4,159,126,.25), var(--shadow); }
.pay-sum .ps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pay-sum .ps > div { background: #F4F8F6; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--ink-3); }
.pay-sum .ps b { font-size: 15px; color: var(--ink); } .pay-sum .ps b.pos { color: #07866A; } .pay-sum .ps b.neg { color: var(--danger); }

/* Customer / dairy address */
.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); }
.addr-head .chip { padding: 6px 12px; font-size: 13px; }
.form select.sel { width: 100%; padding: 13px 12px; border-radius: var(--radius-s); border: 1px solid #D5E1DC; background: #fff; font-size: 16px; color: var(--ink); }

/* Home 2×2 KPI cards: account, fields, crops, group */
.hk-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; margin-bottom: 16px; }
.hk-grid > .card { margin-top: 0 !important; }
.hk { display: flex; flex-direction: column; gap: 2px; padding: 12px; text-decoration: none; color: inherit; min-width: 0; }
.hk:first-child { box-shadow: var(--shadow-lift); }
.hk-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.hk-h b { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; }
.hk-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hk-i svg { width: 18px; height: 18px; }
.t-orange { background: linear-gradient(145deg, #FFE9DD, #FFD3BC); color: #C2481A; }
.hk-go { color: var(--ink-3); font-size: 18px; line-height: 1; }
.hk-big { font-size: 22px; font-weight: 700; line-height: 1.15; } .hk-big small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hk-big.pos { color: #07866A; } .hk-big.neg { color: var(--danger); }
.hk-sub { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-l { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--ink-3); padding-top: 4px; }
.hk-l span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-l b { font-size: 12.5px; color: var(--ink); flex: none; } .hk-l b.pos { color: #07866A; } .hk-l b.neg { color: var(--danger); }
.hk-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.hk-ok { font-size: 12px; color: #07866A; font-weight: 600; margin-top: 4px; }
.hk-empty { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.hk-cta { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--g-800); }
.qa-card { background: linear-gradient(120deg, #F1EEFC, #FFFFFF 70%); border-color: #E1DAF7; }
.qa-card .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #7B63D6, #5B45B0); box-shadow: 0 6px 14px -6px rgba(91,69,176,.7); }
.qa-card .ic svg { width: 24px; height: 24px; }
.hk-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Crop guide list */
.gcrop { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: inherit; }
.card.gcrop + .card.gcrop { margin-top: 8px; }
.gcrop .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gcrop .name { font-weight: 600; } .gcrop .name .badge { font-style: normal; font-size: 10.5px; vertical-align: 2px; }
.gcrop .mkt { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcrop .val { text-align: end; display: flex; flex-direction: column; flex: none; } .gcrop .val b { font-size: 16px; } .gcrop .val span { font-size: 11px; color: var(--ink-3); }
.gcrop .crop-dot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; flex: none; background: linear-gradient(145deg, #EEF6F2, #DDEFE7); }
.chip.small { padding: 6px 12px; font-size: 13px; }
.g-tile { width: 128px; text-decoration: none; color: inherit; }

/* =====================================================================================
   Material 3 (Material You) — Nov 2026. Colour roles from the brand green seed, Roboto
   type scale, M3 shapes (12 px cards, 20 px buttons, 8 px chips, 4 px fields), state
   layers + ripple, light top app bar, navigation bar with a pill indicator.
   Older tokens are mapped onto the M3 roles so every screen follows.
   ===================================================================================== */
:root {
  --md-primary: #006B5B; --md-on-primary: #FFFFFF; --md-primary-container: #9DF2DC; --md-on-primary-container: #00201A;
  --md-secondary: #4A635C; --md-on-secondary: #FFFFFF; --md-secondary-container: #CCE8DF; --md-on-secondary-container: #06201A;
  --md-tertiary: #426278; --md-tertiary-container: #C8E6FF; --md-on-tertiary-container: #001E2E;
  --md-error: #BA1A1A; --md-error-container: #FFDAD6; --md-on-error-container: #410002;
  --md-surface: #F5FBF8; --md-surface-dim: #D5DBD8;
  --md-surface-container-lowest: #FFFFFF; --md-surface-container-low: #EFF5F2; --md-surface-container: #E9EFEC;
  --md-surface-container-high: #E3EAE6; --md-surface-container-highest: #DEE4E1;
  --md-on-surface: #171D1B; --md-on-surface-variant: #3F4945; --md-outline: #6F7975; --md-outline-variant: #BFC9C4;
  --md-elev-1: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-elev-2: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px 2px rgba(0,0,0,.15);
  --md-elev-3: 0 1px 3px rgba(0,0,0,.3), 0 4px 8px 3px rgba(0,0,0,.15);
  --md-font: Roboto, "Google Sans", "Noto Sans", "Noto Sans Devanagari", system-ui, sans-serif;

  /* legacy tokens → M3 roles */
  --g-900: #00382F; --g-800: var(--md-primary); --g-600: var(--md-primary); --g-400: #4FD8BB;
  --g-100: var(--md-secondary-container); --g-50: var(--md-surface-container-low);
  --ink: var(--md-on-surface); --ink-2: var(--md-on-surface-variant); --ink-3: #5F6A66;
  --line: var(--md-outline-variant); --hair: transparent; --card: var(--md-surface-container-lowest);
  --danger: var(--md-error); --danger-100: var(--md-error-container);
  --bg: var(--md-surface); --surface: var(--md-surface-container-lowest);
  --brand-grad: var(--md-primary);
  --radius: 12px; --radius-s: 12px;
  --shadow: none; --shadow-lift: var(--md-elev-1);
  --nav-h: 80px;
}
body { font-family: var(--md-font); background: var(--md-surface); color: var(--md-on-surface); font-size: 14px; letter-spacing: .25px; }
b, strong, h1, h2, h3 { font-weight: 500; letter-spacing: 0; }

/* Top app bars: surface, on-surface text, standard icon buttons */
.topbar, .subbar { background: var(--md-surface); color: var(--md-on-surface); box-shadow: none; padding: 8px 8px 8px 16px; min-height: 64px; }
.subbar { padding-left: 4px; }
.topbar .brand-name { font-size: 22px; font-weight: 500; color: var(--md-on-surface); }
.topbar .brand-name .b { color: #C2481A; }
.loc-chip { background: none; color: var(--md-on-surface-variant); padding: 0; font-size: 12px; }
.topbar .icon-btn, .subbar .icon-btn, .icon-btn { background: none; color: var(--md-on-surface-variant); width: 48px; height: 48px; border-radius: 50%; }
.icon-btn:active { background: rgba(23,29,27,.1); }
.subbar h1 { font-size: 22px; font-weight: 400; }
.hero-band { display: none; }
.greet { color: var(--md-on-surface); margin: 8px 4px 16px; }
.greet b { font-size: 28px; font-weight: 400; line-height: 36px; }
.greet span { opacity: 1; color: var(--md-on-surface-variant); font-size: 14px; }
main { padding: 8px 16px calc(var(--nav-h) + 24px); }

/* Cards: elevated (white + elevation 1) by default, filled where they sit inside cards */
.card { background-color: var(--md-surface-container-low); border: 0; border-radius: 12px; box-shadow: none; padding: 16px; }
a.card, button.card { position: relative; overflow: hidden; }
a.card:active, button.card:active { transform: none; box-shadow: none; }
.hk, .dash, .card.gcrop, .card.sumrow, .card.hrow, .card.ncard, .card.mini-price, .card.skpi, .card.party, .card.promo, .card.qa-tile, .card.crop-tile, .card.news-item, .card.fstat, .card.tech-card, .card.scheme-card {
  background-color: var(--md-surface-container-lowest); box-shadow: var(--md-elev-1); }
.hk:first-child, .dash { box-shadow: var(--md-elev-1); }
.hero-hisab, .stage-hero { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.hero-hisab .muted, .stage-hero .muted { color: var(--md-on-primary-container) !important; opacity: .8; }
.hero-hisab .big.neg { color: var(--md-error); }
.kpi { background: rgba(255,255,255,.55); color: var(--md-on-primary-container); }
.kpi b { color: var(--md-on-primary-container); } .kpi b.pos { color: var(--md-primary); } .kpi b.neg { color: var(--md-error); }
.chat-card, .live-card, .qa-card { background: var(--md-surface-container-lowest); border: 0; }
.dash .dk > div, .pay-sum .ps > div, .best .bb > div { background: var(--md-surface-container); }
.dash .dh .dl, .section a, .section button { background: none; color: var(--md-primary); font-weight: 500; padding: 8px 12px; border-radius: 20px; }

/* Section headers: title-medium */
.section { margin: 24px 4px 8px; }
.section h2 { font-size: 16px; font-weight: 500; letter-spacing: .15px; }

/* Buttons: filled / tonal, 40 px, full pill */
.btn { min-height: 40px; padding: 10px 24px; border-radius: 20px; background: var(--md-primary); color: var(--md-on-primary); box-shadow: none; font-size: 14px; font-weight: 500; letter-spacing: .1px; position: relative; overflow: hidden; }
.btn.secondary { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.btn:active { transform: none; }
.btn-primary { border-radius: 20px; box-shadow: none; background: var(--md-primary); }

/* Chips: 8 px, outlined; selected = secondary container */
.chip { border-radius: 8px; border: 1px solid var(--md-outline); background: transparent; color: var(--md-on-surface-variant); padding: 6px 16px; font-size: 14px; font-weight: 500; min-height: 32px; position: relative; overflow: hidden; }
.chip[aria-pressed="true"] { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; box-shadow: none; }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip.small { padding: 4px 12px; font-size: 13px; }

/* Segmented buttons */
.seg { background: none; border: 1px solid var(--md-outline); border-radius: 20px; padding: 0; gap: 0; overflow: hidden; }
.seg button { border-radius: 0; color: var(--md-on-surface); font-weight: 500; padding: 10px 8px; }
.seg button + button { border-left: 1px solid var(--md-outline); }
.seg button[aria-pressed="true"] { background: var(--md-secondary-container); color: var(--md-on-secondary-container); box-shadow: none; }
.seg button[aria-pressed="true"]::before { content: "✓ "; }
/* Primary tabs (Crops & prices sub-views) */
.seg3.hub { border: 0; border-bottom: 1px solid var(--md-surface-container-highest); border-radius: 0; }
.seg3.hub a { color: var(--md-on-surface-variant); font-weight: 500; }
.seg3.hub a[aria-pressed="true"] { color: var(--md-primary); border-bottom-color: var(--md-primary); }
.seg3.hub a[aria-pressed="true"]::before { content: none; }

/* Text fields: outlined, 4 px */
.form input, .form select.sel, .state-select, .search { border: 1px solid var(--md-outline); border-radius: 4px; background: transparent; }
.form input:focus, .form select.sel:focus { border: 2px solid var(--md-primary); box-shadow: none; outline: 0; padding: 12px 13px; }
.search { border-radius: 28px; background: var(--md-surface-container-high); border: 0; min-height: 56px; padding: 0 16px; }
.form label { font-size: 12px; color: var(--md-on-surface-variant); font-weight: 500; letter-spacing: .4px; }

/* Navigation bar */
.bottomnav { height: var(--nav-h); background: var(--md-surface-container); border-top: 0; box-shadow: none; backdrop-filter: none; }
.bottomnav a { color: var(--md-on-surface-variant); font-size: 12px; font-weight: 500; gap: 4px; }
.bottomnav a .pill { width: 64px; height: 32px; border-radius: 16px; }
.bottomnav a[aria-current="page"] { color: var(--md-on-surface); font-weight: 700; }
.bottomnav a[aria-current="page"] .pill { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }

/* KPI + tool tints use M3 containers */
.tool .ti.t-green, .t-green, .hk-i.t-green { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.tool .ti.t-blue, .t-blue, .hk-i.t-blue { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }
.tool .ti.t-amber, .t-amber, .hk-i.t-amber { background: #FFDDB7; color: #2A1700; }
.t-orange, .hk-i.t-orange { background: #FFDBCF; color: #380D00; }
.tool .ti.t-violet, .t-violet { background: #E8DDFF; color: #21005E; }
.chat-card .ic, .live-card .lv, .qa-card .ic { box-shadow: none; border-radius: 12px; }
.chat-card .ic { background: #FFDBCF; color: #380D00; } .live-card .lv { background: #FFD9E2; color: #3E001D; } .qa-card .ic { background: #E8DDFF; color: #21005E; }
.live-card .lv svg { fill: currentColor; }
.hk-big.pos, .dash .dbig b.pos, .pos { color: var(--md-primary); }
.crop-dot, .mini-price .cd, .skpi .sh .ce, .gcrop .crop-dot, .sumrow .crop-dot, .best .crop-dot, .price .crop-dot, .hic, .qi { background: var(--md-surface-container-high) !important; }
.badge { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-radius: 4px; }
.ncard .src { border-radius: 4px; }
.advisory { background: var(--md-surface-container-lowest); box-shadow: var(--md-elev-1); border: 0; }
.speak { background: none; color: var(--md-primary); }
.skel { background: linear-gradient(90deg, var(--md-surface-container) 25%, var(--md-surface-container-low) 50%, var(--md-surface-container) 75%); background-size: 200% 100%; border-radius: 12px; }
#toast { background: #2C3230; color: #ECF2EE; border-radius: 4px; box-shadow: var(--md-elev-3); font-size: 14px; }

/* Ripple (added by app.js on press) */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .12; transform: scale(0); animation: ripple .45s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* =====================================================================================
   Frosted glass + motion (Nov 2026). Soft colour field fixed behind the app; bars, nav
   and cards are translucent with backdrop blur so the colour shows through.
   M3 motion: emphasized-decelerate enter, staggered cards, count-up numbers.
   ===================================================================================== */
:root {
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-blur: saturate(1.6) blur(18px);
  --ease-emph: cubic-bezier(.05, .7, .1, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
}
body { background: #EEF6F2; }
body::before {
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 8%, rgba(77, 216, 187, .55), transparent 60%),
    radial-gradient(34vmax 34vmax at 92% 22%, rgba(120, 190, 255, .45), transparent 62%),
    radial-gradient(40vmax 40vmax at 78% 88%, rgba(255, 196, 150, .45), transparent 60%),
    radial-gradient(30vmax 30vmax at 8% 72%, rgba(190, 170, 255, .35), transparent 60%);
  filter: blur(10px);
  animation: aurora 28s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3vw, -2vh, 0) scale(1.06); } 100% { transform: translate3d(-3vw, 2vh, 0) scale(1.02); } }

/* Glass bars */
.topbar, .subbar { background: rgba(245, 251, 248, .55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(255,255,255,.5); }
.bottomnav { background: rgba(233, 239, 236, .62); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-top: 1px solid rgba(255,255,255,.6); }

/* Glass cards (elevated ones) */
.hk, .dash, .card.gcrop, .card.sumrow, .card.hrow, .card.ncard, .card.mini-price, .card.skpi, .card.party, .card.promo, .card.qa-tile,
.card.crop-tile, .card.news-item, .card.fstat, .card.tech-card, .card.scheme-card, .advisory, .card.form, .card.pay-sum, .card {
  background-color: var(--glass);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 1px rgba(16, 40, 34, .04), 0 8px 24px -10px rgba(16, 40, 34, .18), inset 0 1px 0 rgba(255,255,255,.8);
}
.hk:first-child, .dash { background-color: var(--glass-strong); }
.hero-hisab, .stage-hero { background: linear-gradient(140deg, rgba(157, 242, 220, .85), rgba(120, 214, 196, .75)); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid rgba(255,255,255,.7); }
.kpi, .dash .dk > div, .pay-sum .ps > div, .best .bb > div { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.6); }
.weather .day { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.search { background: rgba(255,255,255,.6); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge); }
.chip { background: rgba(255,255,255,.45); }
.seg { background: rgba(255,255,255,.4); }
#toast { background: rgba(32, 38, 36, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---- Motion ---- */
@keyframes m3-enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes m3-fade { from { opacity: 0; } to { opacity: 1; } }
main > *, .hk-grid > *, .news-grid > *, .saved-grid > *, .hscroll > * { animation: m3-enter .5s var(--ease-emph) both; }
main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; } main > *:nth-child(4) { animation-delay: .12s; }
main > *:nth-child(5) { animation-delay: .16s; } main > *:nth-child(6) { animation-delay: .2s; } main > *:nth-child(n+7) { animation-delay: .24s; }
.hk-grid > :nth-child(1) { animation-delay: .06s; } .hk-grid > :nth-child(2) { animation-delay: .12s; }
.hk-grid > :nth-child(3) { animation-delay: .18s; } .hk-grid > :nth-child(4) { animation-delay: .24s; }
.news-grid > :nth-child(2), .saved-grid > :nth-child(2), .hscroll > :nth-child(2) { animation-delay: .05s; }
.news-grid > :nth-child(3), .saved-grid > :nth-child(3), .hscroll > :nth-child(3) { animation-delay: .1s; }
.news-grid > :nth-child(4), .saved-grid > :nth-child(4), .hscroll > :nth-child(n+4) { animation-delay: .15s; }
.card.gcrop, .card.sumrow { animation: m3-enter .4s var(--ease-emph) both; }
.topbar, .subbar { animation: m3-fade .3s var(--ease-std) both; }

/* Press feedback */
a.card, button.card, .btn, .chip, .tool { transition: transform .18s var(--ease-std), box-shadow .18s var(--ease-std), background-color .2s; }
a.card:active, button.card:active { transform: scale(.98); }
.btn:active, .chip:active { transform: scale(.96); }

/* Navigation pill grows in from the centre */
.bottomnav a .pill { transition: background-color .25s var(--ease-std); position: relative; }
.bottomnav a[aria-current="page"] .pill { animation: pill-in .35s var(--ease-emph); }
@keyframes pill-in { from { transform: scaleX(.4); opacity: .4; } to { transform: none; opacity: 1; } }
.bottomnav a svg { transition: transform .25s var(--ease-emph); }
.bottomnav a[aria-current="page"] svg { transform: translateY(-1px); }

/* Progress bars fill */
.bt i { animation: bar-fill .9s var(--ease-emph) both; transform-origin: left; }
@keyframes bar-fill { from { transform: scaleX(0); } }

/* Weather: sun breathes, moon glows, stars twinkle */
.weather .now > svg:first-child { animation: sun 6s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.08) rotate(8deg); } }
.weather .sky-moon { animation: moon 5s ease-in-out infinite; }
@keyframes moon { 50% { filter: drop-shadow(0 0 22px rgba(244, 241, 222, .8)); } }
.weather .stars { animation: twinkle 3.5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.live-dot { animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
/* Long lists: keep the glass tint but skip per-card blur so scrolling stays at 60 fps */
.card.gcrop, .card.sumrow, .card.hrow, .card.news-item, .card.party { backdrop-filter: none; -webkit-backdrop-filter: none; background-color: rgba(255,255,255,.72); }
#h-weather { margin-bottom: 16px; }

/* Weather: rain outlook */
.weather .rain { position: relative; z-index: 1; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.weather .rain .rh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.weather .rain .rh b { font-size: 12px; padding: 2px 10px; border-radius: 10px; background: rgba(255,255,255,.22); }
.weather .rain .rh b.mid { background: #FFD27A; color: #3A2600; } .weather .rain .rh b.hi { background: #8EC9FF; color: #00264A; }
.weather .rain .rg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.weather .rain .rg > div { display: flex; flex-direction: column; font-size: 11.5px; opacity: .95; }
.weather .rain .rg b { font-size: 18px; line-height: 1.2; } .weather .rain .rg small { font-size: 11px; opacity: .8; }
.weather .day .rp { font-size: 11px; margin-top: 2px; opacity: .85; } .weather .day .rp.mid { color: #FFE2A6; opacity: 1; } .weather .day .rp.hi { color: #CFE8FF; font-weight: 600; opacity: 1; }

/* =====================================================================================
   Borderless frosted glass on every card + smoother motion (final layer)
   ===================================================================================== */
.card, .hk, .dash, .advisory, .card.gcrop, .card.sumrow, .card.hrow, .card.news-item, .card.party, .card.ncard, .card.mini-price, .card.skpi,
.card.promo, .card.qa-tile, .card.crop-tile, .card.fstat, .card.form, .card.pay-sum, .chat-card, .live-card, .qa-card, .hero-hisab, .stage-hero {
  border: 0 !important;
  background-color: rgba(255, 255, 255, .55);
  backdrop-filter: saturate(1.8) blur(22px); -webkit-backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: 0 10px 30px -14px rgba(16, 40, 34, .28), 0 2px 6px -2px rgba(16, 40, 34, .08);
}
.hk:first-child, .dash { background-color: rgba(255, 255, 255, .68); }
.kpi, .dash .dk > div, .pay-sum .ps > div, .best .bb > div, .weather .day, .weather .rain, .search, .seg, .topbar, .subbar, .bottomnav { border: 0 !important; }
.chip { border-color: transparent; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 8px -4px rgba(16,40,34,.2); }
.chip[aria-pressed="true"] { background: var(--md-secondary-container); }
.seg { background: rgba(255,255,255,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 2px 10px -6px rgba(16,40,34,.25); }
.seg button + button { border-left: 0; }
.topbar, .subbar { box-shadow: 0 6px 20px -16px rgba(16, 40, 34, .35); }
.bottomnav { box-shadow: 0 -8px 24px -18px rgba(16, 40, 34, .35); }

/* Smoother motion: longer, softer enter; gentle hover-free press */
:root { --ease-smooth: cubic-bezier(.22, 1, .36, 1); }
@keyframes glass-enter { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
main > *, .hk-grid > *, .news-grid > *, .saved-grid > *, .hscroll > *, .card.gcrop, .card.sumrow { animation: glass-enter .7s var(--ease-smooth) both; }
a.card, button.card, .btn, .chip, .tool { transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth), background-color .35s var(--ease-smooth); }
a.card:active, button.card:active { transform: scale(.975); box-shadow: 0 4px 14px -10px rgba(16, 40, 34, .3); }
.bottomnav a .pill { transition: background-color .4s var(--ease-smooth), transform .4s var(--ease-smooth); }
.bottomnav a[aria-current="page"] .pill { animation: pill-in .55s var(--ease-smooth); }
.ripple { animation-duration: .6s; animation-timing-function: var(--ease-smooth); opacity: .1; }
html { scroll-behavior: smooth; }

/* Farm account dashboard (Hisab + Dairy hero): frosted glass with a faint mint tint */
.card.hero-hisab, .card.stage-hero {
  background: linear-gradient(140deg, rgba(157, 242, 220, .38), rgba(255, 255, 255, .42) 55%, rgba(200, 230, 255, .32)) !important;
  backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px);
  color: var(--md-on-surface);
  box-shadow: 0 14px 34px -16px rgba(16, 40, 34, .32), 0 2px 6px -2px rgba(16, 40, 34, .08);
}
.hero-hisab .muted, .stage-hero .muted { color: var(--md-on-surface-variant) !important; opacity: 1; }
.hero-hisab .big { color: var(--md-primary); font-weight: 600; }
.hero-hisab .big.neg { color: var(--md-error); }
.hero-hisab .kpi { background: rgba(255, 255, 255, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--md-on-surface-variant); border: 0; box-shadow: 0 4px 12px -8px rgba(16, 40, 34, .25); }
.hero-hisab .kpi b { color: var(--md-on-surface); } .hero-hisab .kpi b.pos { color: var(--md-primary); } .hero-hisab .kpi b.neg { color: var(--md-error); }
.stage-hero .big { color: var(--md-on-surface); }
.stage-hero .speak { color: var(--md-primary) !important; }
/* Home's first KPI card and the dashboard used the M3 elevation (a hard 1 px shadow that read as a border) — same soft glass shadow as the rest */
.hk:first-child, .hk-grid > .hk:first-child, .dash, .card.dash { box-shadow: 0 10px 30px -14px rgba(16, 40, 34, .28), 0 2px 6px -2px rgba(16, 40, 34, .08) !important; border: 0 !important; outline: 0; }

/* =====================================================================================
   Performance pass (60 fps). The animated colour field forced every blurred card to be
   re-blurred each frame. Now: the background is static, real backdrop blur is kept only
   on the two bars, and cards get the frosted look from a translucent white + sheen
   (identical over a static background, no per-frame GPU cost). Enter motion uses only
   opacity/transform (compositor-only), shorter, and long lists animate just their first rows.
   ===================================================================================== */
body::before { animation: none !important; filter: none; }
.card, .hk, .dash, .advisory, .card.gcrop, .card.sumrow, .card.hrow, .card.news-item, .card.party, .card.ncard, .card.mini-price, .card.skpi,
.card.promo, .card.qa-tile, .card.crop-tile, .card.fstat, .card.form, .card.pay-sum, .chat-card, .live-card, .qa-card, .chip, .seg, .search,
.kpi, .hero-hisab .kpi, .weather .day, .weather .rain, .card.hero-hisab, .card.stage-hero, #toast {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.card:not(.weather), .hk, .dash, .advisory, .card.gcrop, .card.sumrow, .card.hrow, .card.news-item, .card.party, .card.ncard, .card.mini-price, .card.skpi,
.card.promo, .card.qa-tile, .card.crop-tile, .card.fstat, .card.form, .card.pay-sum, .chat-card, .live-card, .qa-card {
  background-color: rgba(255, 255, 255, .66);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
}
.hk:first-child, .dash { background-color: rgba(255, 255, 255, .76); }
.search { background: rgba(255, 255, 255, .7); } .chip { background: rgba(255, 255, 255, .6); } .seg { background: rgba(255, 255, 255, .55); }
.weather .day, .weather .rain { background: rgba(255, 255, 255, .17); }
#toast { background: rgba(32, 38, 36, .92); }
.topbar, .subbar, .bottomnav { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }

/* Motion: transform + opacity only */
@keyframes glass-enter { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
main > *, .hk-grid > *, .news-grid > *, .saved-grid > *, .hscroll > * { animation: glass-enter .38s var(--ease-smooth) both; }
.card.gcrop, .card.sumrow, .card.hrow { animation: none; }
.card.gcrop:nth-of-type(-n+6), .card.sumrow:nth-of-type(-n+6) { animation: glass-enter .32s var(--ease-smooth) both; }
main > *:nth-child(n+7) { animation-delay: .12s; }
a.card, button.card, .btn, .chip, .tool { transition: transform .2s var(--ease-smooth); }
.weather .now > svg:first-child, .weather .sky-moon, .weather .stars { animation-duration: 8s; }

/* Sign in with Google (Google's light button style) */
.gbtn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 26px; background: #fff; color: #1F1F1F;
  font: 500 16px/1 Roboto, "Noto Sans Devanagari", sans-serif; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); margin-top: 8px; }
.gbtn:active { transform: scale(.98); } .gbtn[disabled] { opacity: .6; }
.welcome .why > span:first-child { font-size: 20px; flex: none; }

/* Welcome splash + "by ryolite digital" lockup */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(45,186,140,.35), transparent 60%), linear-gradient(180deg, #08786F 0%, #04514A 100%);
  transition: opacity .5s cubic-bezier(.22,1,.36,1); }
.splash.out { opacity: 0; pointer-events: none; }
.splash .sp-logo { width: min(240px, 64vw); animation: sp-rise .8s cubic-bezier(.22,1,.36,1) both; }
.splash .sp-by { animation: sp-fade .7s .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes sp-rise { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sp-fade { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.by-rd { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; color: rgba(255,255,255,.75); font: 400 13px/1 Roboto, sans-serif; letter-spacing: 1px; }
.by-rd img { height: 44px; width: auto; }
.splash .by-rd { margin-top: 0; }
.by-rd img { height: 56px; }

/* The weather card keeps its sky gradient (never the white glass) */
.card.weather { background-color: transparent; }

/* Splash v2: mark + name; on exit the background and text fade while the mark flies into the header */
.splash { background: none; gap: 0; }
.splash .sp-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 0%, rgba(45,186,140,.35), transparent 60%), linear-gradient(180deg, #08786F 0%, #04514A 100%); transition: opacity .55s cubic-bezier(.22,1,.36,1); }
.splash.out { opacity: 1; pointer-events: none; }
.splash.out .sp-bg, .splash.out .sp-name, .splash.out .sp-by { opacity: 0; transition: opacity .35s ease; }
.splash .sp-mark { width: 132px; height: auto; animation: sp-rise .8s cubic-bezier(.22,1,.36,1) both; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
  transition: transform .75s cubic-bezier(.65,0,.35,1), filter .75s; will-change: transform; }
.splash.out .sp-mark { filter: none; }
.splash .sp-name { display: flex; flex-direction: column; align-items: center; margin-top: 16px; color: #fff; animation: sp-fade .7s .25s cubic-bezier(.22,1,.36,1) both; }
.splash .sp-name b { font: 700 34px/1.2 Poppins, "Noto Sans Devanagari", sans-serif; } .splash .sp-name b span { color: #FF8A4C; }
.splash .sp-name i { font: 600 13px/1 Poppins, sans-serif; letter-spacing: 4px; font-style: normal; opacity: .8; margin-top: 4px; }
.splash .sp-by { margin-top: 48px; }
body.sp-landing .topbar .brand img { visibility: hidden; }

/* Splash v3: the name flies with the mark and lands on the header name */
.splash .sp-mark { transition: transform .9s cubic-bezier(.65,0,.35,1), filter .9s; }
.splash .sp-name b { display: inline-block; transform-origin: left top; transition: transform .9s cubic-bezier(.65,0,.35,1), color .9s; will-change: transform; }
.splash .sp-name b span { transition: color .9s; }
.splash.out .sp-name { opacity: 1; transition: none; }
.splash.out .sp-name i, .splash.out .sp-by { opacity: 0; transition: opacity .3s ease; }
.splash.out .sp-bg { transition: opacity .7s ease .1s; }
body.sp-landing .topbar .brand-name { visibility: hidden; }

/* Content runs under the system navigation bar; the app's bottom bar fills that strip (glass) */
:root { --sysnav: 0px; }
.bottomnav { height: calc(var(--nav-h) + var(--sysnav)); padding-bottom: var(--sysnav); }
main { padding-bottom: calc(var(--nav-h) + var(--sysnav) + 24px); }
.subbar + main { padding-bottom: calc(28px + var(--sysnav)) !important; }
.composer { padding-bottom: calc(10px + var(--sysnav)); }
.chat-wrap { height: calc(100vh - 62px); }
#toast { bottom: calc(var(--nav-h) + var(--sysnav) + 16px); }
.welcome { padding-bottom: calc(28px + var(--sysnav)); }

/* Splash v4 choreography: Ryolite Digital first (centre, big) → shrinks into the "by" line;
   Bharat Kisan grows slowly; then flies into the header (JS, at 3.2 s) */
.splash .sp-bk { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(.35); }
.splash .sp-mark, .splash .sp-name { animation: none; }
.splash .sp-by { margin-top: 56px; animation: none; }
.splash .sp-by span { opacity: 0; }
.splash .sp-by img { opacity: 0; }
.splash.go .sp-by img { animation: rd-intro 2.2s cubic-bezier(.22,1,.36,1) both; }
.splash.go .sp-by span { animation: sp-fade .5s 1.5s ease both; }
.splash.go .sp-bk { animation: bk-grow 1.6s 1.1s cubic-bezier(.22,1,.36,1) both; }
@keyframes rd-intro {
  0%   { opacity: 0; transform: translate3d(0, var(--rdY, -200px), 0) scale(1.6); }
  18%  { opacity: 1; transform: translate3d(0, var(--rdY, -200px), 0) scale(2.4); }
  45%  { opacity: 1; transform: translate3d(0, var(--rdY, -200px), 0) scale(2.4); }
  100% { opacity: 1; transform: none; }
}
@keyframes bk-grow { from { opacity: 0; transform: scale(.35); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Brand wordmark = the welcome logo's own lettering (outlined from logo-stacked), header + splash */
.topbar .brand-name { line-height: 0; }
.topbar .brand-name img { height: 24px; width: auto; display: block; margin-bottom: 4px; }
.topbar .brand > img { width: 40px; height: 40px; }
.splash .sp-name { gap: 10px; margin-top: 18px; }
.splash .sp-word { position: relative; display: block; width: 236px; aspect-ratio: 276 / 60; transform-origin: center; transition: transform .9s cubic-bezier(.65,0,.35,1); will-change: transform; }
.splash .sp-word img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s ease; }
.splash .sp-word .w-dark { opacity: 0; } .splash .sp-word.to-dark .w-dark { opacity: 1; } .splash .sp-word.to-dark .w-light { opacity: 0; }
.splash .sp-sub { width: 200px; height: auto; display: block; }
.splash.out .sp-sub { opacity: 0; transition: opacity .3s ease; }
.topbar .brand-name img { filter: none; }

.np-status { margin-top: 12px; font-size: 13px; color: var(--md-primary); min-height: 18px; }
.np-status:not(:empty)::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* News reader */
.reader h1 { font-size: 22px; line-height: 1.4; }
.reader p { font-size: 16.5px; line-height: 1.75; color: var(--md-on-surface); margin: 0 0 14px; }
.reader h2 { font-size: 18px; margin: 20px 0 8px; }
.reader .rd-img { width: calc(100% + 32px); margin: 12px -16px 12px; max-height: 260px; object-fit: cover; display: block; background: var(--md-surface-container); }
.reader .rd-listen { width: auto; min-height: 36px; padding: 6px 16px; margin: 4px 0 16px; }
.src-link { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--md-outline-variant); text-align: start; font-size: 14px; color: var(--md-on-surface-variant); }
.src-link b { color: var(--md-on-surface); } .src-link span { margin-inline-start: auto; color: var(--md-primary); font-weight: 600; }

/* Hisab: businesses grid + reminders */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.biz-grid > .card { margin-top: 0 !important; }
.biz { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-decoration: none; color: inherit; text-align: center; }
.biz span { font-size: 28px; line-height: 1; } .biz b { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.biz.add span { color: var(--md-primary); font-weight: 700; } .biz.add b { color: var(--md-primary); }
.rem-strip { margin-top: 12px; text-decoration: none; color: inherit; }
.rem.late { box-shadow: inset 4px 0 0 var(--md-error), 0 10px 30px -14px rgba(16,40,34,.28) !important; }
.rem.soon { box-shadow: inset 4px 0 0 #E0A100, 0 10px 30px -14px rgba(16,40,34,.28) !important; }
.rem .chip { flex: none; }
.card.rem + .card.rem { margin-top: 8px; }
.chip.add-acct { border: 1px dashed var(--md-primary) !important; color: var(--md-primary); background: transparent; }

/* Doctor tab */
.mvu { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #C62828, #E53935) !important; box-shadow: 0 12px 28px -14px rgba(198,40,40,.7) !important; }
.mvu-i { font-size: 34px; flex: none; } .mvu-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .mvu-t b { font-size: 18px; } .mvu-t span { font-size: 12.5px; opacity: .92; line-height: 1.4; }
.mvu-c { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.vet .vh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .vet .vh b { font-size: 16px; } .vet .vd { font-size: 12px; color: var(--md-on-surface-variant); flex: none; }
.vet .vb { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .vet .badge.home { background: #FFE9C6; color: #5A3A00; }
.vet .va { font-size: 13px; color: var(--md-on-surface-variant); margin-top: 2px; }
.vet .vact { display: flex; gap: 8px; margin-top: 12px; } .vet .vact .btn { width: auto; flex: 1; text-decoration: none; } .vet .vnp { align-self: center; flex: 1; }
.vet .vfoot { display: flex; justify-content: flex-end; gap: 16px; margin-top: 8px; font-size: 12.5px; } .vet .vfoot a, .vet .vfoot button { color: var(--md-on-surface-variant); text-decoration: none; }
.card.vet + .card.vet { margin-top: 10px; }

/* Reports */
.rnav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.rnav b { font-size: 16px; } .rnav .icon-btn { font-size: 26px; color: var(--md-primary); } .rnav .icon-btn[disabled] { opacity: .3; }
.rchart { display: flex; align-items: flex-end; gap: 3px; height: 140px; overflow-x: auto; padding-bottom: 2px; }
.rc { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.rcb { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 1px; }
.rcb i { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; } .rcb i.in { background: var(--md-primary); } .rcb i.out { background: var(--md-error); }
.rc span { font-size: 9.5px; color: var(--md-on-surface-variant); white-space: nowrap; }
.rtab { display: flex; flex-direction: column; font-size: 13px; }
.rth, .rtr { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 6px; padding: 8px 2px; border-bottom: 1px solid var(--md-outline-variant); text-decoration: none; color: inherit; }
.rth { font-weight: 600; color: var(--md-on-surface-variant); font-size: 12px; } .rtr > *:not(:first-child), .rth > *:not(:first-child) { text-align: end; }

/* Satellite scan loader */
.satload { text-align: center; }
.sat-svg { width: 100%; max-width: 280px; height: auto; margin: 0 auto; display: block; }
.sat-body { animation: sat-bob 3s ease-in-out infinite; transform-origin: 120px 33px; }
@keyframes sat-bob { 50% { transform: translateY(5px) rotate(-3deg); } }
.panel { fill: #2F6DB5; stroke: #1B3F6B; stroke-width: 1.5; animation: panel 2.4s ease-in-out infinite; }
@keyframes panel { 50% { fill: #5AA0E8; } }
.waves .w { opacity: 0; animation: wave 1.8s ease-out infinite; }
.waves .w2 { animation-delay: .3s; } .waves .w3 { animation-delay: .6s; }
@keyframes wave { 0% { opacity: 0; transform: translateY(-6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
.scan { animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(42px); } }
.sat-step { font-weight: 600; color: var(--md-primary); margin-top: 8px; min-height: 22px; }
.sat-bar { height: 6px; border-radius: 3px; background: var(--md-surface-container-high); overflow: hidden; margin: 10px 8px 0; }
.sat-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--md-primary), #4FD8BB); border-radius: 3px; animation: satbar 40s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes satbar { to { width: 95%; } }

/* App PIN */
.pinwrap { justify-content: center; gap: 4px; padding-top: 6vh; }
.pin-logo { width: 72px; margin-bottom: 8px; } .pin-who { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.pin-dots { display: flex; gap: 18px; margin: 18px 0 8px; } .pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; transition: background .15s; }
.pin-dots i.on { background: #fff; } .pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-msg { color: #FFE2A6; font-size: 13px; min-height: 20px; text-align: center; max-width: 280px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; margin-top: 18px; }
.pin-pad button { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 600 26px Roboto, sans-serif; }
.pin-pad button:active { background: rgba(255,255,255,.3); }

/* New Bharat Kisan app icon + logo */
.topbar .brand > img { width: 40px; height: 40px; border-radius: 10px; filter: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.splash .sp-mark { width: 168px; border-radius: 38px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.35)); }
.splash.out .sp-mark { filter: none; }
.splash .sp-tag { color: #FFE08A; font: 500 15px/1.4 "Noto Sans Devanagari", Roboto, sans-serif; margin-top: 2px; }
.splash.out .sp-tag { opacity: 0; transition: opacity .3s ease; }
.welcome .logo.bk-app-icon { width: min(200px, 56vw); border-radius: 44px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.pin-logo { width: 84px !important; border-radius: 20px; }

/* =====================================================================================
   Brand tokens from the Bharat Kisan product brief (Nov 2026): primary #168447, dark #0E6135,
   pale #EAF5ED, accent #F2B84B, text #202B24, muted #6B7C70; Inter for Latin, Noto Sans for
   Indian scripts. Mapped onto the Material 3 roles so every screen follows.
   ===================================================================================== */
@font-face { font-family: Inter; font-weight: 400 700; font-style: normal; font-display: swap; src: url(fonts/Inter-Variable-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bk-primary: #168447; --bk-dark: #0E6135; --bk-pale: #EAF5ED; --bk-accent: #F2B84B; --bk-text: #202B24; --bk-muted: #6B7C70;
  --md-primary: var(--bk-primary); --md-on-primary: #FFFFFF;
  --md-primary-container: #BFEBCB; --md-on-primary-container: var(--bk-dark);
  --md-secondary-container: #D5EEDC; --md-on-secondary-container: #0B3D22;
  --md-surface: #F4FAF5; --md-surface-container-low: var(--bk-pale); --md-surface-container: #E2F0E6; --md-surface-container-high: #DAEBDF;
  --md-on-surface: var(--bk-text); --md-on-surface-variant: #4E5F54; --ink-3: var(--bk-muted);
  --g-800: var(--bk-primary); --g-900: var(--bk-dark); --g-100: #D5EEDC;
  --md-font: Inter, "Noto Sans", "Noto Sans Devanagari", Roboto, system-ui, sans-serif;
}
body { font-family: var(--md-font); color: var(--bk-text); }
.topbar .brand-name .b, .pos, .hk-big.pos, .dash .dbig b.pos { color: var(--bk-primary); }
.btn { background: var(--bk-primary); } .btn:active { background: var(--bk-dark); }
.badge.saffron, .live-dot { background: var(--bk-accent); color: #3A2600; }
.section a, .section button, .dash .dh .dl { color: var(--bk-primary); }
.bottomnav a[aria-current="page"] .pill { background: #D5EEDC; }
.chip[aria-pressed="true"] { background: #D5EEDC; color: #0B3D22; }
.hk:first-child .hk-i, .t-green { background: #D5EEDC; color: var(--bk-dark); }
.star[aria-pressed="true"] { color: var(--bk-accent); }
.mini-price .modal, .skpi .sr b.pos, .gcrop .val b { color: var(--bk-dark); }
.splash .sp-bg { background: radial-gradient(120% 70% at 50% 0%, rgba(242,184,75,.22), transparent 60%), linear-gradient(180deg, #168447 0%, #0E6135 100%); }
.welcome { background: radial-gradient(120% 70% at 50% 0%, rgba(242,184,75,.22), transparent 60%), linear-gradient(180deg, #168447 0%, #0E6135 100%); }

.weather .hours { position: relative; z-index: 1; display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; scrollbar-width: none; }
.weather .hours::-webkit-scrollbar { display: none; }
.weather .hr { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 11px; }
.weather .hr b { font-size: 15px; } .weather .hr i { font-style: normal; font-size: 10.5px; opacity: .9; }

.btn.secondary.danger { background: var(--md-error-container); color: var(--md-on-error-container); }

/* Logo (left art of "Bharat Kisan logo 2") on screens; the boxed app-icon art stays only as the launcher icon */
.topbar .brand > img, .splash .sp-mark { background: #fff; object-fit: cover; }
.topbar .brand > img { border-radius: 12px; }
.splash .sp-mark { width: 132px; height: 132px; border-radius: 32px; }
.bk-logo-card { display: block; background: #fff; border-radius: 24px; padding: 12px 16px; box-sizing: border-box; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); }
.welcome .logo.bk-logo-card { width: min(280px, 78vw); margin-left: auto; margin-right: auto; }
.pin-logo.bk-logo-card { width: min(240px, 66vw) !important; border-radius: 20px; margin: 0 auto 12px; }
.bk-slogan { color: #FFE08A; font: 600 17px/1.4 "Noto Sans Devanagari", Inter, sans-serif; letter-spacing: .3px; text-align: center; margin: 14px 0 0; animation: rise .7s .15s ease-out both; }
/* Welcome: logo sits straight on the green, no white card; a faint white halo keeps the dark-green "Bharat" readable */
.welcome .logo.bk-logo-card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; width: min(300px, 82vw);
  filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 6px rgba(255,255,255,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
.pin-logo.bk-logo-card { background: transparent; box-shadow: none; padding: 0; border-radius: 0; width: min(270px, 74vw) !important;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 6px rgba(255,255,255,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
/* Launch: one continuous green (system splash → WebView → our splash → PIN/welcome), name shown once */
.splash .sp-bg { background: radial-gradient(120% 70% at 50% 0%, rgba(242,184,75,.22), transparent 60%), linear-gradient(180deg, #168447 0%, #0E6135 100%); }
.splash .sp-sub { display: none; }

/* Kisan Charcha: Group chat / Discussion tabs + forum */
.charcha-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 12px; }
.charcha-tabs a { text-align: center; padding: 10px 8px; text-decoration: none; color: inherit; font-weight: 600; }
.charcha-tabs a[aria-pressed="true"] { background: var(--md-secondary-container, #D5EEDC); color: var(--md-on-secondary-container, #0E6135); }
main .charcha-tabs { margin: 0 0 12px; }
.fscope { margin: 0 0 12px; } .fr { font-size: 12px; margin: 8px 2px 12px; }
.fpost { display: block; text-decoration: none; color: inherit; padding: 14px; margin-top: 12px; }
.fpost h3 { margin: 10px 0 4px; font-size: 16px; line-height: 1.35; } .fpost.full h2 { margin: 12px 0 6px; font-size: 19px; line-height: 1.35; }
.fpost .fx { margin: 0; font-size: 14px; color: var(--ink-3, #5B6B62); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fpost .fb { margin: 0 0 8px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.fimg { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin: 10px 0 6px; background: #EEF3EF; }
.fpost.full .fimg { max-height: none; object-fit: contain; }
.flink { display: inline-block; font-size: 12.5px; color: #007AFF; margin: 4px 0; }
.fcc { display: block; font-size: 12.5px; color: var(--ink-3, #5B6B62); margin-top: 6px; }
.fby { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fby > span { display: flex; flex-direction: column; min-width: 0; } .fby b { font-size: 14px; }
.fby small { font-size: 11.5px; color: var(--ink-3, #5B6B62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #34C759, #168447); }
.frp .fa { width: 28px; height: 28px; font-size: 12px; }
.fact { display: flex; gap: 16px; margin-top: 6px; } .fact button { font-size: 12.5px; color: var(--ink-3, #5B6B62); padding: 4px 0; }
.fact button[data-reply] { color: var(--md-primary, #168447); font-weight: 600; }
.fcms { padding: 4px 14px; margin-bottom: 96px; } .fcm { padding: 12px 0; border-top: 1px solid var(--hair, #E8EDE9); } .fcm:first-child { border-top: 0; }
.fcm > p { margin: 6px 0 0 46px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; } .fcm > .fact { margin-left: 46px; }
.frp { margin-left: 46px; padding: 10px 0 0; border-top: 0; } .frp > p, .frp > .fact { margin-left: 38px; }
.fcomp { position: fixed; left: 0; right: 0; bottom: 0; flex-wrap: wrap; padding-bottom: calc(10px + var(--sysnav, 0px)); z-index: 5; }
.frto { flex-basis: 100%; font-size: 12.5px; color: var(--md-primary, #168447); padding: 0 4px 6px; } .frto button { margin-left: 8px; color: #D32F2F; }
.fprev img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.form textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line, #D5E1DC); font: inherit; font-size: 16px; resize: vertical; }
.fpick { gap: 8px; } .fpick .btn { margin: 0; }

/* Forum list: compact preview rows (thumb | heading + 2 lines), author + comments underneath */
.fprow { display: grid; grid-template-columns: 88px 1fr; grid-template-areas: "img txt" "meta meta"; column-gap: 12px; row-gap: 8px;
  padding: 10px; margin-top: 10px; text-decoration: none; color: inherit; }
.fprow.noimg { grid-template-columns: 1fr; grid-template-areas: "txt" "meta"; }
.fthumb { grid-area: img; width: 88px; height: 88px; object-fit: cover; border-radius: 14px; background: #EEF3EF; }
.ftxt { grid-area: txt; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-self: center; }
.ftxt b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ftxt .fx { font-size: 13px; line-height: 1.4; color: var(--ink-3, #5B6B62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmeta { grid-area: meta; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 11.5px; color: var(--ink-3, #5B6B62);
  padding-top: 8px; border-top: 1px solid var(--hair, #E8EDE9); }
.fmeta .fa { width: 22px; height: 22px; font-size: 11px; }
.fmeta > span:not(.fa) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta i { font-style: normal; flex: none; color: var(--md-primary, #168447); font-weight: 600; }

/* Compact comments */
.fcms { padding: 2px 12px; }
.fcm { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 8px 0; }
.fcm > .fa { width: 28px; height: 28px; font-size: 12px; }
.fcb { min-width: 0; }
.fwho { font-size: 11.5px; color: var(--ink-3, #5B6B62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.fwho b { font-size: 12.5px; color: var(--ink, #1D1D1F); }
.fcm .fcb > p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.fcm .fcb > .fact { margin: 2px 0 0; gap: 14px; } .fcm .fact button { font-size: 11.5px; padding: 2px 0; }
.fcm > .frp { grid-column: 2; margin: 0; padding: 6px 0 0; grid-template-columns: 22px 1fr; column-gap: 6px; }
.frp > .fa { width: 22px; height: 22px; font-size: 10px; }

/* 👍 / 👎 */
.fvote { display: inline-flex; gap: 6px; }
.fact .fvote button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 14px; background: rgba(0,0,0,.04); color: var(--ink-3, #5B6B62); font-size: 12px; }
.fact .fvote button b { font-weight: 600; }
.fact .fvote button[data-v="1"][aria-pressed="true"] { background: #E3F3E8; color: #0E6135; }
.fact .fvote button[data-v="-1"][aria-pressed="true"] { background: #FDE9E8; color: #C62828; }
.fact { align-items: center; flex-wrap: wrap; }
.fcm .fcb > .fact .fvote button { padding: 2px 8px; font-size: 11.5px; }

/* PIN popup over the current screen (delete money records) */
.pin-pop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8, 30, 18, .55); animation: fade-in .2s ease; }
.pin-box { display: flex; flex-direction: column; align-items: center; padding: 20px 24px 12px; border-radius: 24px; color: #fff;
  background: linear-gradient(180deg, #168447, #0E6135); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pin-box .label { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.pin-box .pin-msg { min-height: 18px; font-size: 13px; color: #FFE08A; }
.pin-box .pin-pad { grid-template-columns: repeat(3, 64px); gap: 12px; margin-top: 8px; }
.pin-box .pin-pad button { width: 64px; height: 64px; font-size: 24px; }
.pin-box .btn-ghost { margin-top: 10px; color: #fff; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Recent payments: ✏️ edit / 🗑️ delete */
.payrow { align-items: center; } .payrow.on { outline: 2px solid var(--md-primary, #168447); outline-offset: -2px; }
.pact { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(0,0,0,.04); margin-left: 6px; }
.pact.del { background: #FDECEC; }
.pay-editing { margin: -2px 0 6px; padding: 8px 10px; border-radius: 12px; background: #FFF4E0; color: #8A5300; font-size: 13px; font-weight: 600; }

.paytbl { padding: 4px 8px; overflow-x: auto; }
.paytbl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.paytbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3, #5B6B62); padding: 8px 6px; border-bottom: 1px solid var(--hair, #E8EDE9); }
.paytbl td { padding: 6px; border-bottom: 1px solid var(--hair, #E8EDE9); white-space: nowrap; }
.paytbl .num { text-align: right; } .paytbl td.num { font-weight: 600; color: var(--md-primary, #168447); }
.paytbl td.acts { text-align: right; width: 1%; } .paytbl .pact { display: inline-grid; width: 34px; height: 34px; font-size: 16px; }
.paytbl tr.on td { background: #FFF4E0; }
.paytbl tfoot td { border-bottom: 0; font-weight: 700; color: var(--ink, #1D1D1F); }

/* Who paid: 3 compact cards per row */
.party-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.party-grid > .card { margin: 0 !important; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; min-width: 0; text-align: center; font: inherit; color: inherit; }
.ptile .pi { font-size: 22px; line-height: 1.2; }
.ptile b { font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile .pd { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; } .ptile small { font-size: 10.5px; color: var(--ink-3, #5B6B62); }
.ptile .pd.neg { color: #D32F2F; } .ptile .pd.pos { color: var(--md-primary, #168447); }
.ptile.on { outline: 2px solid var(--md-primary, #168447); outline-offset: -2px; background: #EAF5ED !important; }

/* Sinchai (irrigation advice) */
.card.sinchai { padding: 14px; margin-top: 12px; }
.sinchai .sh { display: flex; align-items: center; gap: 8px; font-size: 14px; } .sinchai .sh b { flex: 1; }
.sinchai .sh .speak { color: var(--md-primary, #168447); }
.sinchai .sv { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .sinchai .sv span { font-size: 28px; }
.sinchai .sv b { font-size: 20px; line-height: 1.2; }
.sinchai.s-now .sv b { color: #C62828; } .sinchai.s-soon .sv b { color: #B26A00; } .sinchai.s-wait .sv b { color: #1565C0; } .sinchai.s-ok .sv b { color: #168447; }
.sinchai > p { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; }
.sinchai .sg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sinchai .sg > div { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px; background: rgba(22, 132, 71, .07); min-width: 0; }
.sinchai .sg span { font-size: 11px; color: var(--ink-3, #5B6B62); } .sinchai .sg b { font-size: 15px; font-variant-numeric: tabular-nums; } .sinchai .sg small { font-size: 11px; color: var(--ink-3, #5B6B62); }
.sinchai .bar { display: block; height: 5px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; margin-top: 3px; }
.sinchai .bar > i { display: block; height: 100%; background: linear-gradient(90deg, #E57373, #FFB74D 45%, #4CAF50 70%); }
.card .src, .src { font-size: 11px; line-height: 1.45; color: var(--ink-3, #5B6B62); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--hair, #E1E8E3); }
/* "Member's own advice" note: inside each post card so it appears in screenshots too */
.udisc { font-size: 11.5px; line-height: 1.45; color: #8A5300; background: #FFF6E5; border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.chat-disc { font-size: 11.5px; line-height: 1.4; color: #8A5300; background: #FFF6E5; padding: 6px 12px; }
.msg .udisc-s { display: block; font-size: 9.5px; opacity: .7; margin-top: 3px; }

/* Khad calculator */
.kcrops { gap: 6px; } .kcrops .chip { padding: 6px 10px; font-size: 13px; }
.ksoilbox { margin-top: 12px; } .ksoilbox summary { font-size: 13.5px; font-weight: 600; color: var(--md-primary, #168447); cursor: pointer; padding: 6px 0; }
.ksoil { margin-top: 4px; }
.khad-out { padding: 14px; margin-top: 12px; }
.khad-out .kh { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; } .khad-out .kh b { font-size: 16px; } .khad-out .kh .muted { font-size: 12px; }
.ktbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ktbl th { text-align: left; font-size: 12px; color: var(--ink-3, #5B6B62); padding: 6px 4px; border-bottom: 1px solid var(--hair, #E8EDE9); }
.ktbl td { padding: 8px 4px; border-bottom: 1px solid var(--hair, #E8EDE9); vertical-align: top; } .ktbl td small { display: block; font-size: 11px; color: var(--ink-3, #5B6B62); }
.ktbl .num { text-align: right; white-space: nowrap; } .ktbl td.num b { font-size: 17px; color: var(--md-primary, #168447); }
.ktbl tfoot td { font-weight: 700; border-bottom: 0; }
.kwhen { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(22, 132, 71, .07); font-size: 13.5px; } .kwhen p { margin: 4px 0 0; }
.t-khad svg { color: #8E24AA; background: #F4E8F8; } .t-sat svg { color: #00838F; background: #E0F4F5; }
.nh-tile b { font-size: 12.5px; }

.wn-list { display: flex; flex-direction: column; gap: 4px; } .wn-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 2px; }
.wn-row input { width: 20px; height: 20px; accent-color: var(--md-primary, #168447); flex: none; }

/* Crop calendar */
.advisory.cal.done { opacity: .6; } .advisory.cal.done > span:first-of-type { text-decoration: none; }
.calact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .calact .chip { padding: 4px 10px; font-size: 12px; text-decoration: none; }
.calact .chip[aria-pressed="true"] { background: #E3F3E8; color: #0E6135; }
.card.todaywork { padding: 4px 12px; } .todaywork .tw { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--hair, #E8EDE9); text-decoration: none; color: inherit; font-size: 13.5px; line-height: 1.4; }
.todaywork .tw:first-child { border-top: 0; } .todaywork .tw .tico { font-size: 20px; } .todaywork .tw small { display: block; font-size: 11.5px; color: var(--ink-3, #5B6B62); margin-top: 2px; }

/* Pashu (animal register) */
.an-grid .ptile small { font-size: 10.5px; line-height: 1.3; min-height: 2.6em; }
.card.an-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.an-head b { display: block; font-size: 15px; } .an-head small { font-size: 12px; color: var(--ink-3, #5B6B62); } .an-head .chip { text-decoration: none; flex: none; }
.card.an-dates { padding: 4px 14px; } .an-dates > div { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 9px 0; border-top: 1px solid var(--hair, #E8EDE9); }
.an-dates > div:first-child { border-top: 0; } .an-dates span { font-size: 13.5px; } .an-dates b { font-variant-numeric: tabular-nums; }
.an-dates small { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3, #5B6B62); }
.an-dates .past { opacity: .55; } .an-dates .soon b { color: #C62828; }
.card.an-chart { padding: 12px 14px; margin-top: 10px; }
.an-chart .bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 110px; align-items: end; margin-bottom: 8px; }
.an-chart .bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.an-chart .bars i { display: block; width: 70%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #34C759, #168447); }
.an-chart .bars b { font-size: 10.5px; font-variant-numeric: tabular-nums; } .an-chart .bars small { font-size: 10px; color: var(--ink-3, #5B6B62); }

/* Yojna status */
.card.yj { padding: 14px; margin-top: 10px; }
.yj .yh { display: flex; align-items: center; gap: 10px; } .yj .yh span { font-size: 24px; } .yj .yh b { font-size: 16px; }
.yj > p { margin: 6px 0 8px; font-size: 13.5px; line-height: 1.45; }
.yj .yl { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; margin-top: 6px; } .yj .yl b { font-size: 12.5px; color: var(--md-primary, #168447); }
.yj .ya { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .yj .ya .btn { margin: 0; min-height: 44px; font-size: 14px; text-decoration: none; }
.yj .ya .btn:only-child { grid-column: 1 / -1; }
.yj .yrem { margin-top: 8px; font-size: 12.5px; }

/* KVK directory */
.card.kvk { padding: 12px 14px; margin-top: 10px; } .kvk b { font-size: 14.5px; } .kvk p { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.45; }
.kvk small { display: block; font-size: 11.5px; color: var(--ink-3, #5B6B62); }
.kvk .ya { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .kvk .ya .btn { margin: 0; min-height: 42px; font-size: 13.5px; text-decoration: none; }
html.th-pdf .card.mvu.kcc, .card.mvu.kcc { background: linear-gradient(135deg, #1E9A55, #0E6135) !important; }

/* Kisan Bazaar */
.bzk { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #E3F3E8; color: #0E6135; align-self: flex-start; }
.bzk-buy { background: #E5F0FF; color: #0B57B7; } .bzk-rent { background: #FFF1DD; color: #8A5300; }
.bzp { font-size: 15px; font-weight: 700; color: var(--md-primary, #168447); font-variant-numeric: tabular-nums; } .bzp.big { font-size: 20px; margin: 4px 0 8px; }
.bzrow .ftxt { gap: 3px; }
.bzfull h2 { margin: 8px 0 2px; } .bzfull .fby { margin-top: 12px; }
.bzcall { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; } .bzcall .btn { margin: 0; text-decoration: none; }
.t-cart svg { color: #E65100; background: #FFF0E0; }

/* Fasal Doctor */
.fd-intro { margin: 0 4px 8px; font-size: 13px; line-height: 1.45; }
.fd-tips { margin: 0 0 8px; padding-inline-start: 20px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3, #5B6B62); }
.fd-h { margin: 16px 4px 8px; font-size: 15px; }
a.fd-my { margin-top: 8px; text-decoration: none; color: inherit; }

/* District crop alert (Home + Fasal Doctor) */
.card.pest-al { margin: 8px 0; padding: 12px; background: #FFF4E5; border: 1px solid #F5C98B; }
.pest-al > b { display: block; font-size: 14px; color: #8A4B00; margin-bottom: 4px; }
.pest-al a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F5DDB8; font-size: 13.5px; font-weight: 600; color: #4A2A00; text-decoration: none; }
.pest-al a .go { margin-inline-start: auto; display: flex; }
.pest-al small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: #7A5A2E; }

/* Mandi search with no recent price */
.np-card b { display: block; font-size: 14px; line-height: 1.45; }
.np-card p { margin: 8px 0 12px; font-size: 13px; line-height: 1.5; color: var(--ink-3, #5B6B62); }

/* GYAN: pest library, natural farming, crop-weather advice */
.gy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.gy-grid .gy-crop { margin: 0; }
.gy-crop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; text-decoration: none; color: inherit; text-align: center; }
.gy-crop span { font-size: 28px; line-height: 1; }
.gy-crop b { font-size: 14px; }
.gy-crop small { font-size: 11px; color: var(--ink-3, #5B6B62); }
.gy-item { margin-top: 12px; padding: 12px 16px; }
.gy-item .gy-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gy-item h3 { margin: 0; font-size: 17px; }
.gy-item h4 { margin: 12px 0 4px; font-size: 14px; }
.gy-item p { margin: 0; line-height: 1.5; }
.gy-item ul { margin: 0; padding-left: 20px; line-height: 1.5; }
.gy-item li + li { margin-top: 4px; }
.gy-item .chip-row { margin-top: 12px; }
.gy-em { font-size: 24px; }
.gy-chem { margin-top: 12px !important; padding: 8px; border-radius: 8px; background: #FFF8E6; font-size: 13px; }
.gy-focus { outline: 2px solid #F5A524; }
a.pa-lib { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; text-decoration: none; }
a.pa-lib .go { margin-left: auto; }
a.fd-lib { padding: 8px 0; }
.cw-card { margin-top: 12px; padding: 12px 16px; background: #EEF6FF; border: 1px solid #B9D7F5; }
.cw-card > b { display: block; margin-bottom: 4px; }
.cw-card .cw-l, .cw-card a { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid #D7E7F7; color: inherit; text-decoration: none; line-height: 1.45; }
.cw-card i { font-style: normal; }
.cw-card a .go { margin-left: auto; }
