/* PoP 2.0 demo – design system.
   Palette from the region's materials: handloom indigo (neel), turmeric (haldi), paddy green (dhaan),
   laterite red, limewashed wall. One bold motif: the sohrai wall-painting band. */
:root {
  --neel: #26357A; --neel-2: #34479B; --neel-3: #4A5DB5; --neel-ink: #1B2340; --neel-wash: #E8EBF6;
  --haldi: #EFA51E; --haldi-deep: #B87508; --haldi-wash: #FCEFD3;
  --dhaan: #2E7A4E; --dhaan-wash: #E1F1E6;
  --laterite: #B23A26; --laterite-wash: #FBE3DD;
  --lime: #F3F4EF; --card: #FFFFFF; --sunk: #ECEEE6; --line: #DFE2D7; --line-2: #EEF0E9;
  --ink: #1B2340; --ink-2: #444C66; --muted: #5E6577;

  --pending: #8E5508; --pending-bg: #FFF0CF;
  --syncing: #34479B; --syncing-bg: #E5E9F7;
  --synced: #1F6B41; --synced-bg: #DDF2E3;
  --failed: #A3301F; --failed-bg: #FBE1DC;

  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 11px;
  --sh-1: 0 1px 2px rgba(27,35,64,.07), 0 3px 10px rgba(27,35,64,.05);
  --sh-2: 0 18px 40px -12px rgba(27,35,64,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Oriya", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sohrai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 0h12L6 7z' fill='%23EFA51E'/%3E%3Ccircle cx='18' cy='3' r='1.6' fill='%23F3F4EF'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lime); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:lang(hi) { font-family: "Noto Sans Devanagari", "Noto Sans", system-ui, sans-serif; }
:lang(or) { font-family: "Noto Sans Oriya", "Noto Sans", system-ui, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--neel-2); }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { display: block; flex: none; }
.num { font-stretch: 78%; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
h1, h2, h3, h4 { margin: 0; }

/* ================= demo bar ================= */
.demobar { position: sticky; top: 0; z-index: 50; background: var(--neel-ink); color: #E9ECF7; }
.db-in { display: flex; align-items: center; gap: 12px; padding: 8px 24px; max-width: 1680px; margin: 0 auto; flex-wrap: wrap; }
.db-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.db-mark .mark { border-radius: 9px; }
.db-t { display: flex; flex-direction: column; line-height: 1.15; }
.db-t b { font-size: 15px; letter-spacing: .01em; }
.db-t span { font-size: 12px; opacity: .72; }
.netctl, .panesw { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.netctl-l { font-size: 12px; opacity: .7; padding: 0 8px 0 10px; }
.netctl button, .panesw button { border: 0; background: transparent; color: #E9ECF7; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; min-height: 34px; transition: background .2s var(--ease); }
.netctl button[aria-pressed="true"][data-net="online"] { background: #2E9461; color: #fff; }
.netctl button[aria-pressed="true"][data-net="weak"] { background: var(--haldi); color: var(--neel-ink); }
.netctl button[aria-pressed="true"][data-net="offline"] { background: #C8432E; color: #fff; }
.panesw { display: none; }
.panesw button[aria-pressed="true"] { background: #fff; color: var(--neel-ink); }
.db-links { display: flex; gap: 4px; }
.db-links a, .db-links button { color: #E9ECF7; text-decoration: none; font-size: 13px; font-weight: 650; padding: 7px 12px; border-radius: 10px; border: 0; background: transparent; min-height: 34px; display: inline-flex; align-items: center; }
.db-links a:hover, .db-links button:hover { background: rgba(255,255,255,.1); }
.db-links [data-act="reset"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.devnet { margin: 0; font-size: 12px; text-align: center; padding: 4px 16px 6px; background: rgba(0,0,0,.2); color: #C9CFE6; }
.devnet b { color: #fff; font-weight: 700; }

/* ================= workbench ================= */
.workbench { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 28px; max-width: 1680px; margin: 0 auto; padding: 24px; align-items: start; }
.phonecol { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; }
.caption { margin: 14px 0 0; font-size: 13px; color: var(--muted); text-align: center; max-width: 360px; }
.device { position: relative; width: 414px; height: min(860px, calc(100vh - 140px)); min-height: 660px; padding: 12px; border-radius: 58px; background: linear-gradient(145deg, #2A2F3D, #12151D); box-shadow: inset 0 0 0 1.5px #4A5163, inset 0 0 0 4px #1A1E28, var(--sh-2), 0 40px 80px -30px rgba(27,35,64,.35); }
.dv-btn { position: absolute; width: 4px; border-radius: 2px; background: #2F3544; }
.dv-btn.a { left: -3px; top: 150px; height: 34px; } .dv-btn.b { left: -3px; top: 200px; height: 62px; } .dv-btn.c { right: -3px; top: 190px; height: 90px; }
.device-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: var(--lime); display: flex; flex-direction: column; isolation: isolate; }
.sbar { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 30px; font-size: 14px; font-weight: 700; color: var(--neel-ink); background: var(--card); position: relative; z-index: 3; }
.sbar.dark { background: var(--neel); color: #fff; }
.sb-cam { position: absolute; left: 50%; top: 9px; width: 96px; height: 26px; margin-left: -48px; background: #0D0F14; border-radius: 20px; }
.sb-r { display: flex; align-items: center; gap: 7px; }
.sb-sig svg { fill: currentColor; }
.app { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.scr { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.enter-fwd { animation: inR .32s var(--ease) both; }
.enter-back { animation: inL .32s var(--ease) both; }
@keyframes inR { from { opacity: 0; transform: translateX(28px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-28px); } }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }

/* ================= app chrome ================= */
.appbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px 16px; background: var(--neel); color: #fff; min-height: 72px; flex: none; }
.appbar::after, .homebar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--sohrai) repeat-x 0 0 / 24px 10px; opacity: .95; }
.appbar .ttl { flex: 1; min-width: 0; }
.appbar h2 { font-size: 19px; font-weight: 750; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .sub { display: block; font-size: 12.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 46px; height: 46px; border-radius: 14px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; flex: none; text-decoration: none; transition: transform .12s; }
.iconbtn:active { transform: scale(.94); }
.iconbtn.sm { width: 36px; height: 36px; background: var(--sunk); color: var(--ink); }
.netpill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); white-space: nowrap; flex: none; }
.netpill .dot { width: 8px; height: 8px; border-radius: 50%; background: #6EE7A2; box-shadow: 0 0 0 3px rgba(110,231,162,.25); }
.netpill.off .dot { background: #FF8A73; box-shadow: 0 0 0 3px rgba(255,138,115,.25); }
.netpill.weak .dot { background: #FFD25E; box-shadow: 0 0 0 3px rgba(255,210,94,.25); }
.syncbtn { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); flex: none; text-decoration: none; }
.syncbtn b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--haldi); color: var(--neel-ink); font-size: 11.5px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--neel); }
.say { display: flex; align-items: center; gap: 12px; margin: 14px 16px 4px; padding: 10px 10px 10px 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); flex: none; }
.say p { margin: 0; flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.speak { width: 58px; height: 58px; border-radius: 50%; border: 0; flex: none; background: var(--haldi); color: var(--neel-ink); display: grid; place-items: center; box-shadow: 0 4px 0 var(--haldi-deep); transition: transform .1s, box-shadow .1s; }
.speak:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--haldi-deep); }
.speak.on { animation: pulse 1.1s ease-in-out infinite; }
.speak.wide { width: auto; height: 54px; border-radius: 999px; padding: 0 22px 0 16px; gap: 8px; display: inline-flex; align-items: center; font-weight: 750; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 var(--haldi-deep), 0 0 0 12px rgba(239,165,30,.28); } }
.voicenote { margin: 0 18px; font-size: 12.5px; color: var(--muted); flex: none; }
.voicenote:not(:empty) { margin: 2px 18px 4px; }
.body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.footbar { flex: none; padding: 10px 16px 18px; background: linear-gradient(to top, var(--lime) 75%, rgba(243,244,239,0)); display: flex; gap: 10px; }
.footbar.two > * { flex: 1; }
.bigbtn { min-height: 60px; width: 100%; border: 0; border-radius: var(--r-md); font-size: 18px; font-weight: 750; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--dhaan); box-shadow: 0 4px 0 #1C5535; text-decoration: none; padding: 0 14px; transition: transform .1s, box-shadow .1s; text-align: center; line-height: 1.2; }
.bigbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1C5535; }
.bigbtn.blue { background: var(--neel-2); box-shadow: 0 4px 0 var(--neel-ink); }
.bigbtn.warm { background: var(--laterite); box-shadow: 0 4px 0 #7A2617; }
.bigbtn.ghost { background: var(--card); color: var(--neel); box-shadow: inset 0 0 0 2px var(--neel-wash), 0 4px 0 var(--line); }
.bigbtn[disabled] { background: #A9AEBC; box-shadow: 0 4px 0 #868B99; cursor: not-allowed; }
.label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 14px 0 8px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15.5px; font-weight: 800; margin: 20px 0 10px; }
.muted { color: var(--muted); font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.empty { color: var(--muted); font-size: 14px; padding: 16px; text-align: center; background: rgba(255,255,255,.55); border-radius: var(--r-md); border: 1.5px dashed var(--line); }
.late { display: flex; align-items: center; gap: 8px; color: var(--failed); font-weight: 700; font-size: 14px; margin: 10px 0 0; }

/* chips & tags */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 750; white-space: nowrap; flex: none; }
.chip svg { width: 15px; height: 15px; }
.chip-pending { background: var(--pending-bg); color: var(--pending); }
.chip-syncing { background: var(--syncing-bg); color: var(--syncing); }
.chip-syncing svg { animation: spin 1s linear infinite; }
.chip-synced { background: var(--synced-bg); color: var(--synced); }
.chip-failed { background: var(--failed-bg); color: var(--failed); }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.tag.ontrack, .tag.paid, .tag.closed { background: var(--synced-bg); color: var(--synced); }
.tag.overdue { background: var(--failed-bg); color: var(--failed); }
.tag.due { background: var(--pending-bg); color: var(--pending); }
.tag.upcoming { background: var(--sunk); color: var(--muted); }
.gr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-weight: 800; font-size: 15px; flex: none; }
.gr.big { width: 52px; height: 52px; border-radius: 16px; font-size: 26px; }
.gA { background: var(--synced-bg); color: var(--synced); } .gB { background: var(--neel-wash); color: var(--neel-2); } .gC { background: var(--failed-bg); color: var(--failed); }

/* ================= splash & onboarding & language ================= */
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--neel); color: #fff; position: relative; }
.splash h1 { font-size: 34px; font-weight: 800; letter-spacing: .02em; margin-top: 14px; animation: rise .6s .7s var(--ease) both; }
.splash p { margin: 0; opacity: .75; animation: rise .6s .85s var(--ease) both; }
.splash .sohrai-line { position: absolute; bottom: 70px; left: 0; right: 0; height: 10px; background: var(--sohrai) repeat-x 0 0 / 24px 10px; animation: slide 1.6s linear both; }
.mark.draw .mk-bg { animation: fadeIn .3s both; }
.mark.draw .mk-a { stroke-dasharray: 140; animation: draw .8s .15s var(--ease) both; }
.mark.draw .mk-b { stroke-dasharray: 80; animation: draw .6s .45s var(--ease) both; }
.mark.draw .mk-c { transform-origin: 32px 32px; animation: pop .4s .8s var(--ease) both; }
.mark.draw .mk-d { animation: fadeIn .4s .95s both; }
@keyframes draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.25); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes slide { from { background-position-x: -120px; opacity: 0; } to { opacity: 1; } }
.onboard { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 26px 26px; background: linear-gradient(180deg, var(--neel-wash), var(--lime) 60%); }
.onboard .skip { align-self: flex-end; border: 0; background: transparent; color: var(--neel-2); font-weight: 700; padding: 8px 6px; min-height: 44px; }
.ob-art { margin: 18px 0 26px; animation: rise .45s var(--ease) both; }
.ob-disc { width: 190px; height: 190px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--sh-2); --ic-fill: var(--neel-wash); --ic-acc: var(--haldi); color: var(--neel); }
.ob-disc .il { width: 120px; height: 120px; }
.onboard h2 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.onboard p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 300px; }
.dots { display: flex; gap: 8px; margin: auto 0 18px; padding-top: 24px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 26px; background: var(--neel); }
.langlist { display: grid; gap: 10px; }
.langbtn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; min-height: 76px; text-align: left; border: 2px solid transparent; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: transform .12s; }
.langbtn:active { transform: scale(.98); }
.langbtn.cur { border-color: var(--neel-2); }
.langbtn .glyph { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; font-weight: 750; background: var(--neel-wash); color: var(--neel); flex: none; }
.langbtn .lt { flex: 1; min-width: 0; }
.langbtn .nmx { font-size: 21px; font-weight: 750; line-height: 1.2; display: block; }
.langbtn .en { font-size: 13px; color: var(--muted); }
.langbtn .tick { color: var(--neel-2); }
.langbtn.soon { background: transparent; box-shadow: none; border: 2px dashed #CDD1C4; }
.langbtn.soon .glyph { background: var(--sunk); color: var(--muted); font-size: 18px; }
.soonnote { display: block; font-size: 12.5px; color: #6E5214; margin-top: 3px; line-height: 1.3; font-weight: 600; }

/* ================= home ================= */
.homebar { position: relative; background: var(--neel); color: #fff; padding: 12px 16px 22px; flex: none; }
.hb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hello { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.role { margin: 2px 0 0; font-size: 13px; opacity: .78; }
.hb-right { display: flex; align-items: center; gap: 6px; }
.langmini { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--neel); font-weight: 800; font-size: 18px; text-decoration: none; }
.shgpick { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: rgba(255,255,255,.12); color: #fff; text-align: left; min-height: 58px; }
.shgpick .sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.shgpick b { font-size: 17px; } .shgpick small { opacity: .78; font-size: 12.5px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.tile { position: relative; border-radius: 24px; min-height: 128px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 16.5px; font-weight: 750; line-height: 1.2; text-decoration: none; box-shadow: var(--sh-1); transition: transform .14s var(--ease); background: var(--card); color: var(--ink); }
.tile:active { transform: scale(.96); }
.tile .ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; }
.tile .il { width: 52px; height: 52px; }
.tile.meeting .ico { background: var(--neel-wash); --ic-ink: var(--neel); --ic-fill: #fff; --ic-acc: var(--haldi); }
.tile.money .ico { background: var(--haldi-wash); --ic-ink: #7A4B00; --ic-fill: #fff; --ic-acc: var(--haldi); }
.tile.members .ico { background: #F6E5EE; --ic-ink: #7E2457; --ic-fill: #fff; --ic-acc: #E6A3C6; }
.tile.business .ico { background: var(--dhaan-wash); --ic-ink: var(--dhaan); --ic-fill: #fff; --ic-acc: #9BCB7B; }
.tile.myday .ico { background: var(--laterite-wash); --ic-ink: var(--laterite); --ic-fill: #fff; --ic-acc: #F2A38F; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; min-height: 96px; gap: 16px; }
.tile.savings .ico { background: var(--dhaan-wash); --ic-ink: var(--dhaan); --ic-fill: #fff; --ic-acc: var(--haldi); }
.tourcard { display: flex; align-items: center; gap: 4px; background: var(--neel); color: #fff; border-radius: var(--r-lg); margin-bottom: 12px; padding: 4px 4px 4px 0; }
.tourcard .tc-main { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; font-weight: 700; font-size: 15px; padding: 10px 6px 10px 12px; min-height: 56px; background: none; border: 0; }
.tourcard .tc-main svg:last-child { width: 20px; height: 20px; flex: none; opacity: .8; }
.tourcard .tc-x { width: 44px; height: 44px; display: grid; place-items: center; color: #C9D0EE; background: none; border: 0; border-radius: 50%; }
.tourcard .tc-x svg { width: 20px; height: 20px; }
.tile.sync .ico { background: var(--neel-wash); --ic-ink: var(--neel-2); --ic-fill: #fff; --ic-acc: var(--haldi); }
.badge { position: absolute; top: 10px; right: 10px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--haldi); color: var(--neel-ink); font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gl { background: var(--card); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); }
.gl-k { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.gl-v { font-size: 20px; font-weight: 800; }
.statusstrip { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1); font-size: 13.5px; color: var(--ink-2); }
.fab { position: absolute; right: 16px; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 0 20px 0 16px; height: 56px; border-radius: 999px; background: var(--neel); color: #fff; text-decoration: none; font-weight: 750; box-shadow: 0 10px 24px -6px rgba(38,53,122,.55); }
.fab:active { transform: scale(.96); }
.sheet-bg { position: absolute; inset: 0; background: rgba(18,24,48,.5); display: flex; align-items: flex-end; z-index: 10; animation: fadeIn .2s both; }
.sheet { width: 100%; background: var(--lime); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px 16px 22px; display: grid; gap: 10px; animation: up .3s var(--ease) both; }
@keyframes up { from { transform: translateY(40%); opacity: .4; } }
.sheet h3 { font-size: 18px; margin-bottom: 4px; }
.shgrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); border: 2px solid transparent; background: var(--card); text-align: left; min-height: 64px; color: var(--ink); }
.shgrow.cur { border-color: var(--neel-2); }
.shgrow .sp-t { flex: 1; display: flex; flex-direction: column; } .shgrow small { color: var(--muted); }
.sheet .who { display: flex; align-items: center; gap: 12px; }
.sheet .q { flex: 1; font-size: 19px; font-weight: 750; line-height: 1.3; }
.sheet .big { font-size: 46px; color: var(--haldi-deep); text-align: center; font-stretch: 75%; font-weight: 800; }
.yn { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.yn button { min-height: 64px; border: 0; border-radius: var(--r-md); font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.yn .y { background: var(--dhaan); color: #fff; box-shadow: 0 4px 0 #1C5535; }
.yn .n { background: var(--card); color: var(--failed); box-shadow: inset 0 0 0 2px var(--failed-bg); }

/* ================= lists, cards ================= */
.rlist { display: grid; gap: 8px; }
.rrow, .lrow, .mrow, .loanrow, .mtg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; min-height: 60px; }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt small { color: var(--muted); font-size: 12.5px; }
.ri { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--neel-wash); --ic-ink: var(--neel); --ic-fill: #fff; --ic-acc: var(--haldi); }
.ri .il { width: 32px; height: 32px; }
.ri.sm { width: 38px; height: 38px; } .ri.sm .il { width: 28px; height: 28px; }
.ri.tone-savings, .ri.tone-loan, .ri.tone-repayment { background: var(--haldi-wash); --ic-ink: #7A4B00; }
.ri.tone-etx { background: var(--dhaan-wash); --ic-ink: var(--dhaan); }
.ri.tone-visit, .ri.tone-followup, .ri.tone-followup_done { background: var(--laterite-wash); --ic-ink: var(--laterite); }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.retry { border: 0; background: var(--failed); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; min-height: 30px; }
.lrow { min-height: 52px; }
.lrow .rt { font-size: 14.5px; }
.num.plus { color: var(--synced); } .num.minus { color: var(--failed); }
.daysep { font-size: 12.5px; font-weight: 750; color: var(--muted); margin: 10px 2px 2px; }
.mlist { display: grid; gap: 8px; }
.mrow .av { flex: none; }
.mrow > svg:last-child { color: var(--muted); }
.shgcard { background: var(--card); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-1); }
.sc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sc-top b { display: block; font-size: 17px; } .sc-top small { color: var(--muted); font-size: 13px; }
.hbar { display: grid; grid-template-columns: 1fr 1.1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; padding: 4px 0; }
.track, .prog { display: block; height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.track i, .prog i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--neel-3); animation: grow .8s var(--ease) both; }
.prog i { background: var(--dhaan); }
.prog.big { height: 12px; margin: 12px 0; }
@keyframes grow { from { width: 0; } }
.hbar b { text-align: right; font-size: 15px; }
.mtg-d { width: 46px; height: 50px; border-radius: 12px; background: var(--neel-wash); color: var(--neel); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; flex: none; }
.mtg-d b { font-size: 19px; } .mtg-d small { font-size: 11.5px; font-weight: 700; }
.decs { display: flex; gap: 4px; margin-top: 4px; }
.dec-mini { width: 24px; height: 24px; border-radius: 7px; background: var(--haldi-wash); display: inline-grid; place-items: center; --ic-ink: #7A4B00; --ic-fill: #fff; --ic-acc: var(--haldi); }
.dec-mini .il { width: 18px; height: 18px; }

/* profile */
.profile { text-align: center; background: var(--card); border-radius: var(--r-xl); padding: 22px 16px 16px; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.profile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: var(--neel-wash); }
.pf-av { position: relative; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 5px #fff; }
.profile h3 { font-size: 24px; margin-top: 8px; }
.profile p { margin: 2px 0 10px; color: var(--muted); font-size: 13.5px; }
.pf-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pf-tags span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--sunk); font-size: 13px; font-weight: 650; }
.pf-sync { margin-top: 10px; display: flex; justify-content: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { background: var(--card); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--sh-1); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-height: 76px; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.stat .v { font-size: 22px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat .v small { font-size: 12px; font-weight: 750; font-stretch: 100%; }
.stat .v.overdue { color: var(--failed); } .stat .v.ontrack small { color: var(--synced); }
.stat .v.sm { font-size: 15px; font-stretch: 100%; }

/* registration */
.stepper { display: flex; list-style: none; margin: 0; padding: 12px 16px 2px; gap: 6px; flex: none; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
.stepper li::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 6px; }
.stepper li:last-child::after { display: none; }
.stepper .sn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); flex: none; font-size: 12.5px; }
.stepper .sn svg { width: 15px; height: 15px; }
.stepper .sl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li:not(.cur) .sl { display: none; } .stepper li.cur { flex: 2.6; }
.stepper li.cur { color: var(--neel); } .stepper li.cur .sn { background: var(--neel); color: #fff; }
.stepper li.done .sn { background: var(--dhaan); color: #fff; } .stepper li.done::after { background: var(--dhaan); }
.stepback { align-self: flex-start; margin: 8px 0 0 10px; border: 0; background: transparent; color: var(--neel-2); font-weight: 700; display: flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 8px; }
.stepback svg { width: 20px; height: 20px; }
.photo-pick { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.pp-main { position: relative; }
.pp-main .av { border-radius: 50%; box-shadow: 0 0 0 4px #fff, var(--sh-1); }
.pp-cam { position: absolute; right: -6px; bottom: -2px; width: 44px; height: 44px; border-radius: 50%; background: var(--haldi); display: grid; place-items: center; --ic-ink: var(--neel-ink); --ic-fill: #fff; --ic-acc: var(--neel); box-shadow: 0 0 0 3px #fff; }
.pp-cam .il { width: 30px; height: 30px; }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 12px 0 6px; }
.avopt { border: 2px solid transparent; background: transparent; padding: 2px; border-radius: 50%; display: grid; place-items: center; min-height: 48px; }
.avopt[aria-pressed="true"] { border-color: var(--neel-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field > span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input { min-height: 56px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 14px; font-size: 19px; font-weight: 650; width: 100%; }
.field input:focus { border-color: var(--neel-2); outline: none; box-shadow: 0 0 0 4px var(--neel-wash); }
.field input.otp { letter-spacing: .5em; font-variant-numeric: tabular-nums; max-width: 190px; font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.pill { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 750; font-size: 16px; white-space: nowrap; }
.pill[aria-pressed="true"] { border-color: var(--neel); background: var(--neel); color: #fff; }
.consent { text-align: center; background: var(--card); border-radius: var(--r-xl); padding: 20px 18px; box-shadow: var(--sh-1); }
.cs-ic { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 26px; background: var(--dhaan-wash); display: grid; place-items: center; --ic-ink: var(--dhaan); --ic-fill: #fff; --ic-acc: var(--haldi); }
.cs-ic .il { width: 60px; height: 60px; }
.consent p { font-size: 16.5px; line-height: 1.6; text-align: left; margin: 0 0 16px; }

/* meeting */
.datebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 650; }
.count { font-weight: 800; color: var(--neel); white-space: nowrap; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 70px; border-radius: var(--r-md); border: 2px solid transparent; background: var(--card); text-align: left; box-shadow: var(--sh-1); transition: transform .12s, background .2s; position: relative; }
.mcard:active { transform: scale(.97); }
.mcard .nmx { font-size: 16px; font-weight: 750; display: block; line-height: 1.2; }
.mcard .st { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.mcard[aria-pressed="true"] { border-color: var(--dhaan); background: var(--dhaan-wash); }
.mcard[aria-pressed="true"] .st { color: var(--dhaan); }
.mcard[aria-pressed="true"]::after { content: ""; position: absolute; left: 40px; top: 40px; width: 22px; height: 22px; border-radius: 50%; background: var(--dhaan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; box-shadow: 0 0 0 2px #fff; animation: pop .3s var(--ease) both; }
.savelist { display: grid; gap: 8px; }
.saverow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.saverow b { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saverow .amt { min-width: 62px; text-align: center; font-size: 20px; }
.stepbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--sunk); display: grid; place-items: center; color: var(--neel); flex: none; }
.stepbtn:active { background: var(--neel-wash); transform: scale(.94); }
.decgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decgrid.sm { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; min-height: 108px; border-radius: var(--r-md); border: 2px solid transparent; background: var(--card); box-shadow: var(--sh-1); font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .12s; --ic-ink: var(--neel); --ic-fill: var(--neel-wash); --ic-acc: var(--haldi); }
.decgrid.sm .dec { min-height: 92px; font-size: 13px; }
.dec .ico .il { width: 46px; height: 46px; }
.decgrid.sm .dec .ico .il { width: 38px; height: 38px; }
.dec:active { transform: scale(.96); }
.dec[aria-pressed="true"] { border-color: var(--neel); background: var(--neel-wash); --ic-fill: #fff; }
.summary { background: var(--card); border-radius: var(--r-xl); padding: 8px 16px; box-shadow: var(--sh-1); }
.sm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.sm-row:last-child { border-bottom: 0; }
.sm-row span { color: var(--muted); font-weight: 650; }
.sm-row b { text-align: right; }
.sm-row b.big { font-size: 30px; }
.sm-avs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 10px; border-bottom: 1px solid var(--line-2); }

/* savings, numbers */
.mpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mpick button { border: 2px solid transparent; background: var(--card); border-radius: var(--r-md); padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 750; box-shadow: var(--sh-1); min-height: 82px; overflow: hidden; }
.mpick button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.mpick button[aria-pressed="true"] { border-color: var(--haldi-deep); background: var(--haldi-wash); }
.amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 12px 0 8px; padding: 8px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-height: 76px; }
.amount .rs { font-size: 28px; color: var(--haldi-deep); font-weight: 800; }
.amount .val { font-size: 50px; font-weight: 800; font-stretch: 75%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.amount .val.zero { color: #C3C7BA; }
.amount.bump .val { animation: bump .18s var(--ease); }
@keyframes bump { 50% { transform: scale(1.06); } }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.quick button { border: 0; border-radius: 14px; background: var(--haldi-wash); color: #7A4B00; font-weight: 800; font-size: 15.5px; min-height: 48px; }
.quick button[aria-pressed="true"] { background: var(--haldi); color: var(--neel-ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { position: relative; overflow: hidden; min-height: 56px; border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 2px 0 var(--line); font-size: 26px; font-weight: 700; display: grid; place-items: center; }
.pad button:active { transform: translateY(2px); box-shadow: none; }
.pad button.hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(38,53,122,.18); animation: ripple .35s ease-out both; }
@keyframes ripple { to { transform: scale(14); opacity: 0; } }
.pad .fn { font-size: 15px; color: var(--ink-2); background: var(--sunk); }
.who-line { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 15px; }
.who-line b { flex: 1; }
.preview { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--neel-wash); color: var(--neel-ink); font-weight: 650; font-size: 14.5px; }

/* money */
.cashhero { position: relative; background: var(--neel); color: #fff; border-radius: var(--r-xl); padding: 16px 18px 14px; overflow: hidden; }
.cashhero::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 110px; background: var(--sohrai) repeat 0 0 / 24px 10px; opacity: .22; transform: rotate(90deg) scale(1.6); transform-origin: 70% 50%; }
.ch-k { font-size: 13px; opacity: .8; font-weight: 650; }
.ch-v { display: block; font-size: 46px; line-height: 1.05; margin: 2px 0 10px; }
.ch-row { display: flex; gap: 20px; position: relative; z-index: 1; }
.ch-row span { display: flex; flex-direction: column; }
.ch-row small { opacity: .75; font-size: 12px; } .ch-row b { font-size: 19px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--sunk); border-radius: 14px; padding: 4px; margin: 14px 0 10px; }
.seg button { border: 0; background: transparent; border-radius: 11px; min-height: 44px; font-weight: 750; font-size: 14.5px; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--card); color: var(--neel); box-shadow: var(--sh-1); }
.loanrow .lr-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.loanrow .lr-r b { font-size: 17px; }
.loanrow .prog { margin-top: 6px; height: 6px; }
.loanhero { background: var(--card); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--sh-1); border-top: 6px solid var(--dhaan); }
.loanhero.overdue { border-top-color: var(--failed); }
.lh-top { display: flex; align-items: center; gap: 12px; }
.lh-top > div { flex: 1; display: flex; flex-direction: column; }
.lh-top .k { font-size: 12.5px; color: var(--muted); font-weight: 650; } .lh-top .v { font-size: 34px; line-height: 1.05; }
.lh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lh-grid span { display: flex; flex-direction: column; } .lh-grid small { font-size: 12px; color: var(--muted); } .lh-grid b { font-size: 17px; }
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sched li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--card); border-radius: 14px; box-shadow: var(--sh-1); }
.sched .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; }
.sched .s-paid .dot { background: var(--dhaan); } .sched .s-overdue .dot { background: var(--failed); } .sched .s-due .dot { background: var(--haldi); }
.sched .s-overdue { box-shadow: inset 3px 0 0 var(--failed), var(--sh-1); }
.sched b.num { font-size: 16px; }
.linkbtn { margin-top: 12px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: var(--r-md); border: 2px dashed var(--line); background: transparent; font-weight: 750; color: var(--neel); min-height: 56px; --ic-ink: var(--neel); --ic-fill: #fff; --ic-acc: var(--haldi); }
.linkbtn .il { width: 30px; height: 30px; }
.linkbtn.sm { width: auto; margin: 0; min-height: 40px; padding: 6px 12px; font-size: 13px; border-style: solid; border-width: 1.5px; }
.pbhead { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-1); }
.pbhead > div { display: flex; flex-direction: column; } .pbhead .k { font-size: 12.5px; color: var(--muted); } .pbhead .v { font-size: 34px; }
.passbook { list-style: none; padding: 0; margin: 14px 0 0; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.passbook li { display: grid; grid-template-columns: 58px 1fr auto 76px; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.passbook li:nth-child(even) { background: #FAFBF7; }
.passbook .pd { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.passbook .pa { font-size: 16px; } .passbook .pbal { text-align: right; color: var(--muted); font-size: 14px; font-weight: 700; }
.passbook .pb-loan .pk, .passbook .pb-repayment .pk { color: #7A4B00; }

/* enterprise */
.entlist { display: grid; gap: 10px; }
.entcard { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); min-height: 92px; }
.ent-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; flex: none; background: var(--dhaan-wash); --ic-ink: var(--dhaan); --ic-fill: #fff; --ic-acc: var(--haldi); }
.ent-art .il { width: 48px; height: 48px; }
.ent-art.big { width: 84px; height: 84px; border-radius: 26px; } .ent-art.big .il { width: 64px; height: 64px; }
.k-goat .ent-art, .ent-art.k-goat { background: #F1EADF; --ic-ink: #6B4A2B; } .k-poultry .ent-art, .ent-art.k-poultry { background: var(--haldi-wash); --ic-ink: #7A4B00; }
.k-tailor .ent-art, .ent-art.k-tailor { background: #F6E5EE; --ic-ink: #7E2457; } .k-dairy .ent-art, .ent-art.k-dairy { background: var(--neel-wash); --ic-ink: var(--neel); }
.k-shop .ent-art, .ent-art.k-shop { background: var(--laterite-wash); --ic-ink: var(--laterite); }
.ent-avs { display: flex; margin-top: 6px; } .ent-avs .av { margin-right: -6px; box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.ent-p { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ent-p small { font-size: 11.5px; color: var(--muted); } .ent-p b { font-size: 20px; color: var(--synced); } .ent-p b.neg { color: var(--failed); }
.enthero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--sh-1); }
.eh-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 200px; }
.eh-grid span { display: flex; flex-direction: column; } .eh-grid small { font-size: 12px; color: var(--muted); } .eh-grid b { font-size: 19px; }
.eh-grid .pf b { color: var(--synced); font-size: 24px; }
.enthero .hint { width: 100%; margin: 0; }
.chartcard { background: var(--card); border-radius: var(--r-lg); padding: 14px 10px 6px; box-shadow: var(--sh-1); margin-bottom: 12px; }
.pbars { width: 100%; height: auto; }
.pbars .bar { fill: var(--dhaan); transform-origin: bottom; transform-box: fill-box; animation: barup .6s calc(var(--i) * 90ms) var(--ease) both; }
.pbars .bar.neg { fill: var(--failed); transform-origin: top; }
@keyframes barup { from { transform: scaleY(0); } }
.pbars .bl { font-size: 12px; font-weight: 800; fill: var(--ink); font-stretch: 80%; } .pbars .bx { font-size: 12px; fill: var(--muted); font-weight: 650; }

/* smart sakhi */
.tasks { display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1); min-height: 64px; }
.task a.rt { text-decoration: none; color: var(--ink); }
.task.t-loan .ri { background: var(--failed-bg); --ic-ink: var(--failed); }
.task.t-follow .ri { background: var(--laterite-wash); --ic-ink: var(--laterite); }
.task > svg { color: var(--muted); }
.when { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.when.w-late { background: var(--failed-bg); color: var(--failed); } .when.w-today { background: var(--pending-bg); color: var(--pending); }
.donebtn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; flex: none; transition: all .2s var(--ease); }
.donebtn:hover { border-color: var(--dhaan); color: var(--dhaan); }
.donebtn.popping { background: var(--dhaan); border-color: var(--dhaan); color: #fff; transform: scale(1.15); }
.loccard { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1); flex-wrap: wrap; }

/* sync */
.synchero { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.ringwrap { position: relative; width: 132px; height: 132px; flex: none; }
.ring { transform: rotate(-90deg); }
.ring .r-bg { fill: none; stroke: var(--sunk); stroke-width: 12; }
.ring .r-fg { fill: none; stroke: var(--dhaan); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.ring.spin .r-fg { stroke: var(--neel-2); }
.ring.spin { animation: ringspin 1.4s linear infinite; }
@keyframes ringspin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-c b { font-size: 30px; line-height: 1; } .ring-c small { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.counters { flex: 1; display: grid; gap: 6px; }
.counter { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 14px; }
.counter .n { font-size: 22px; grid-column: 3; grid-row: 1; } .counter .l { font-size: 13.5px; font-weight: 750; grid-column: 2; grid-row: 1; }
.counter.pending { background: var(--pending-bg); color: var(--pending); }
.counter.synced { background: var(--synced-bg); color: var(--synced); }
.counter.failed { background: var(--failed-bg); color: var(--failed); }
.netwarn { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--pending-bg); color: #5E3A05; font-size: 14px; font-weight: 650; }
.lastsync { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.devtools { margin-top: 20px; padding: 14px; border: 1.5px dashed #C4C9BA; border-radius: var(--r-md); background: #EEF0E8; font-size: 13.5px; }
.devtools h3 { font-size: 14px; margin-bottom: 4px; color: var(--ink-2); }
.devtools p { margin: 0 0 10px; color: var(--ink-2); }
.devtools button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--neel-ink); color: #fff; font-weight: 700; }
.slog { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.slog li { background: #fff; border-radius: 9px; padding: 6px 9px; }
.slog .dup { color: #6E4206; font-weight: 700; box-shadow: inset 3px 0 0 var(--haldi); }

/* assistant */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; position: relative; animation: rise .3s var(--ease) both; }
.bubble p { margin: 0; }
.bubble.me { align-self: flex-end; background: var(--neel); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--card); box-shadow: var(--sh-1); border-bottom-left-radius: 6px; padding-left: 46px; padding-right: 44px; }
.bot-ic { position: absolute; left: 10px; top: 10px; } .bot-ic .mark { border-radius: 8px; }
.mini-speak { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--haldi-wash); color: #7A4B00; display: grid; place-items: center; }
.mini-speak svg { width: 18px; height: 18px; }
.ask-empty { display: grid; place-items: center; padding: 16px 0 4px; --ic-ink: var(--neel); --ic-fill: #fff; --ic-acc: var(--haldi); }
.ask-empty .il { width: 96px; height: 96px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.suggest button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 650; min-height: 42px; text-align: left; color: var(--neel-ink); }
.askbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: var(--card); border-top: 1px solid var(--line-2); }
.askbar input { flex: 1; min-width: 0; min-height: 50px; border-radius: 999px; border: 2px solid var(--line); padding: 0 16px; font-size: 16px; background: var(--lime); }
.askbar input:focus { outline: none; border-color: var(--neel-2); }
.micbtn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--haldi); color: var(--neel-ink); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--haldi-deep); }
.micbtn.on { background: var(--laterite); color: #fff; animation: pulse 1s infinite; }
.sendbtn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--neel); color: #fff; display: grid; place-items: center; flex: none; }

/* feedback */
.toast { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 30; background: var(--neel-ink); color: #fff; padding: 13px 16px; border-radius: var(--r-md); font-weight: 650; font-size: 14.5px; display: flex; gap: 10px; align-items: center; transform: translateY(20px); opacity: 0; transition: transform .25s var(--ease), opacity .25s; pointer-events: none; }
.toast.show { transform: none; opacity: 1; }
.burst { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(243,244,239,.72); backdrop-filter: blur(3px); animation: fadeIn .2s both; }
.burst.out { animation: fadeOut .3s both; }
@keyframes fadeOut { to { opacity: 0; } }
.burst-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 26px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-2); max-width: 300px; text-align: center; animation: pop .45s var(--ease) both; }
.burst-card p { margin: 0; font-size: 17px; font-weight: 750; }
.b-ring { fill: var(--dhaan-wash); stroke: var(--dhaan); stroke-width: 4; stroke-dasharray: 214; animation: drawRing .5s var(--ease) both; }
.b-tick { fill: none; stroke: var(--dhaan); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: drawTick .4s .35s var(--ease) both; }
@keyframes drawRing { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 0; } }
@keyframes drawTick { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 9px; background: var(--c); animation: fall var(--d) var(--delay) cubic-bezier(.25,.6,.4,1) both; }
.confetti i.dot { border-radius: 50%; }
.confetti i.bar { width: 5px; height: 13px; border-radius: 2px; }
.confetti i.tri { width: 0; height: 0; background: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--c); }
@keyframes fall { to { transform: translate(var(--dx), 620px) rotate(var(--r)); opacity: .2; } }

/* ================= portal ================= */
.portal { position: relative; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--card); border-radius: var(--r-xl); box-shadow: 0 1px 2px rgba(27,35,64,.06), 0 20px 50px -30px rgba(27,35,64,.25); min-height: calc(100vh - 140px); overflow: hidden; }
.pside { background: var(--neel-ink); color: #D9DDEE; display: flex; flex-direction: column; padding: 18px 12px; gap: 18px; }
.ps-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.ps-brand .mark { border-radius: 10px; }
.ps-brand span { display: flex; flex-direction: column; line-height: 1.2; } .ps-brand b { color: #fff; font-size: 15px; } .ps-brand small { font-size: 12px; opacity: .7; }
.ps-nav { display: grid; gap: 2px; }
.ps-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left; min-height: 40px; position: relative; }
.ps-nav button:hover { background: rgba(255,255,255,.07); }
.ps-nav button.cur { background: rgba(255,255,255,.12); color: #fff; }
.ps-nav button.cur::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--haldi); }
.ps-nav .nb { margin-left: auto; min-width: 20px; height: 20px; border-radius: 99px; background: var(--haldi); color: var(--neel-ink); font-size: 11.5px; display: grid; place-items: center; padding: 0 6px; }
.ps-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.ps-foot .sohrai-line { height: 10px; background: var(--sohrai) repeat-x 0 0 / 24px 10px; border-radius: 2px; }
.ps-foot small { font-size: 11.5px; opacity: .6; }
.pmain { min-width: 0; padding: 22px 26px 28px; background: #FAFBF7; }
.ptop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ptop h1 { font-size: 26px; letter-spacing: -.01em; }
.ptop p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ptop-a { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--ink); text-decoration: none; min-height: 40px; white-space: nowrap; }
.btn:hover { border-color: #C8CCBE; }
.btn.pri { background: var(--neel); border-color: var(--neel); color: #fff; }
.btn.spinning svg { animation: spin .6s linear; }
.pview.in { animation: rise .35s var(--ease) both; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.kpi .k { font-size: 13px; color: var(--muted); font-weight: 650; }
.kpi .v { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; margin: 4px 0 2px; white-space: nowrap; }
.kpi .h { font-size: 12px; color: var(--muted); }
.kpi.hero { background: var(--neel); border-color: var(--neel); color: #fff; } .kpi.hero .k, .kpi.hero .h { color: #C9D0EE; }
.kpi.warn .v { color: var(--failed); }
.kpi.sk, .panel.sk { min-height: 98px; background: linear-gradient(90deg, var(--sunk) 0, #F6F7F2 40%, var(--sunk) 80%) 0 0 / 300% 100%; animation: shimmer 1.1s linear infinite; border: 0; }
.panel.sk.tall { min-height: 280px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pmain { container-type: inline-size; container-name: pmain; }
@container pmain (max-width: 820px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .pgrid > .wide { grid-column: auto; } }
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel.flush { padding: 0; overflow: hidden; }
.ph2 h3 { font-size: 16px; } .ph2 p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin: 2px 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i, .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.pchart { width: 100%; height: auto; overflow: visible; }
.pchart .grid { stroke: #ECEEE6; stroke-width: 1; }
.pchart .ax { font-size: 11.5px; fill: var(--muted); }
.pchart .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1600; animation: drawLine 1.2s var(--ease) both; }
@keyframes drawLine { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
.pchart .dot { stroke: #fff; stroke-width: 2; }
.pchart .dl { font-size: 12px; font-weight: 700; fill: var(--ink); }
.pchart .cap { font-size: 12px; font-weight: 750; fill: var(--ink); }
.pchart .hit { fill: transparent; }
.pchart .xhair { stroke: var(--ink-2); stroke-width: 1; opacity: 0; } .pchart .xhair.on { opacity: .35; }
.pchart .seg { transform-origin: bottom; transform-box: fill-box; animation: barup .6s var(--ease) both; }
.pchart .seg:hover { opacity: .85; }
.hbars { display: grid; gap: 12px; margin-top: 6px; }
.hb, .pb { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; font-size: 13.5px; }
.hb-l { display: flex; align-items: center; gap: 6px; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 16px; display: block; }
.hb-t i { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; animation: grow .9s var(--ease) both; }
.hb-v { text-align: right; font-variant-numeric: tabular-nums; display: inline-flex; justify-content: flex-end; align-items: center; gap: 4px; }
.hb-v svg { width: 15px; height: 15px; color: var(--failed); }
.parbars { display: grid; gap: 14px; margin-top: 8px; }
.pb-t { display: flex; gap: 2px; height: 16px; width: var(--w); animation: grow .9s var(--ease) both; }
.pb-t i { height: 100%; } .pb-t i.ok { background: #9AA3C7; } .pb-t i.risk { background: var(--laterite); border-radius: 0 4px 4px 0; } .pb-t i.ok:last-child { border-radius: 0 4px 4px 0; }
.attn { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.attn li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.attn li:last-child { border-bottom: 0; }
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 750; padding: 2px 8px 2px 6px; border-radius: 999px; }
.st svg { width: 14px; height: 14px; }
.st.crit { background: var(--failed-bg); color: var(--failed); } .st.warn { background: var(--pending-bg); color: var(--pending); }
.lnk { border: 0; background: none; padding: 0; color: var(--neel-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.fsearch { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-height: 40px; color: var(--muted); flex: 1 1 200px; max-width: 320px; }
.fsearch input { border: 0; outline: none; background: transparent; min-height: 38px; flex: 1; min-width: 0; color: var(--ink); }
.fsel { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 650; }
.fsel select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--card); font-size: 14px; color: var(--ink); }
.fchips { display: flex; gap: 4px; background: var(--sunk); padding: 3px; border-radius: 11px; }
.fchips button { border: 0; background: transparent; border-radius: 8px; padding: 0 12px; min-height: 34px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.fchips button[aria-pressed="true"] { background: var(--card); color: var(--neel); box-shadow: var(--sh-1); }
.tablewrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBF7; }
.ptable td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable .r { text-align: right; }
.ptable tr[tabindex] { cursor: pointer; } .ptable tr[tabindex]:hover td { background: #F6F7F2; }
.ptable td.who { display: flex; align-items: center; gap: 8px; }
.ptable td .sw { margin-right: 8px; }
.ptable.mini td { padding: 7px 4px; font-size: 13px; }
.ptable td.key { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.emptyrow { text-align: center; color: var(--muted); padding: 24px !important; }
.newtag { font-size: 11px; font-weight: 800; background: var(--haldi-wash); color: #7A4B00; padding: 1px 7px; border-radius: 99px; }
.dupn { color: #8A5206; font-weight: 750; }
.tag.t-savings { background: var(--haldi-wash); color: #7A4B00; } .tag.t-meeting { background: var(--neel-wash); color: var(--neel); } .tag.t-member, .tag.t-member_update { background: #F6E5EE; color: #7E2457; } .tag.t-etx { background: var(--dhaan-wash); color: var(--dhaan); }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }
.lede { font-size: 15px; color: var(--ink-2); max-width: 70ch; margin: 0 0 14px; }
.entgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.panel.ent { border-top: 4px solid var(--c); }
.ent-h { display: flex; align-items: center; gap: 12px; } .ent-h h3 { font-size: 16px; } .ent-h p { margin: 0; font-size: 13px; color: var(--muted); }
.ent-h .ent-art { width: 52px; height: 52px; border-radius: 16px; } .ent-h .ent-art .il { width: 38px; height: 38px; }
.ent-n { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 10px; }
.ent-n span { display: flex; flex-direction: column; } .ent-n small { font-size: 12px; color: var(--muted); } .ent-n b { font-size: 19px; }
.minibars, .daybars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.minibars span, .daybars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.minibars i, .daybars i { display: block; width: 100%; max-width: 24px; height: var(--h); min-height: 2px; background: var(--dhaan); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: barup .6s var(--ease) both; }
.minibars small, .daybars small { font-size: 11px; color: var(--muted); transform: translateY(18px); }
.minibars, .daybars { margin-bottom: 20px; }
.daybars i { background: var(--neel-3); }
.conflict { margin-bottom: 14px; }
.cf-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cf-h > div { flex: 1; min-width: 200px; } .cf-h h3 { font-size: 16px; } .cf-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cf-v { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.cfv { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; transition: all .25s var(--ease); }
.cfv .k { font-size: 12.5px; color: var(--muted); font-weight: 650; } .cfv b { font-size: 24px; } .cfv small { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.cfv.won { border-color: var(--dhaan); background: var(--dhaan-wash); } .cfv.lost { opacity: .6; }
.kept { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; color: var(--synced); font-size: 14px; } .kept.off { color: var(--muted); font-weight: 600; }
.about .aboutgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about h3 { font-size: 16px; margin-bottom: 8px; }
.about ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.about li { padding-left: 26px; position: relative; }
.about .ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--dhaan-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B41' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.about .dots li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--haldi); }
.about p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--card); box-shadow: -20px 0 40px -20px rgba(27,35,64,.35); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); z-index: 5; }
.drawer.open { transform: none; }
.dr-h { display: flex; align-items: flex-start; gap: 12px; } .dr-h > div { flex: 1; min-width: 0; } .dr-h h3 { font-size: 20px; } .dr-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.dr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; } .dr-tags span { display: inline-flex; align-items: center; gap: 4px; background: var(--sunk); border-radius: 99px; padding: 3px 9px; font-size: 12.5px; color: var(--ink-2); }
.dr-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; padding: 12px; background: #FAFBF7; border-radius: var(--r-md); }
.dr-k span { display: flex; flex-direction: column; } .dr-k small { font-size: 12px; color: var(--muted); } .dr-k b { font-size: 18px; }
.drawer h4 { font-size: 14px; margin: 18px 0 6px; }
.dr-loan { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.dr-loan .prog, .dr-loan small { grid-column: 1 / -1; } .dr-loan small { color: var(--muted); }
.dr-mem { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dr-mem button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; padding: 6px 8px; font-size: 13px; text-align: left; }
.dr-mem button span { flex: 1; } .dr-mem b { font-size: 13px; }
.ptip { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; background: var(--neel-ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; min-width: 150px; box-shadow: var(--sh-2); }
.ptip span { display: flex; align-items: center; gap: 6px; } .ptip i { width: 8px; height: 8px; border-radius: 2px; }
.ptoast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--neel-ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 650; font-size: 14px; transition: all .25s var(--ease); pointer-events: none; z-index: 60; }
.ptoast.show { opacity: 1; transform: translate(-50%, 0); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 28px; }

/* ================= responsive ================= */
@media (max-width: 1439px) {
  .portal { grid-template-columns: 68px minmax(0, 1fr); }
  .pside { padding: 16px 10px; align-items: center; }
  .ps-brand span, .ps-nav span, .ps-foot small { display: none; }
  .ps-nav button { justify-content: center; padding: 10px; }
  .ps-nav .nb { position: absolute; top: 2px; right: 2px; margin: 0; }
  .ps-foot { width: 100%; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .entgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .panesw { display: flex; }
  .netctl-l { display: none; }
  .devnet { display: none; }
  .workbench { display: block; padding: 20px; }
  .workbench[data-pane="phone"] .portal { display: none; }
  .workbench[data-pane="portal"] .phonecol { display: none; }
  .phonecol { position: static; }
  .portal { grid-template-columns: 1fr; min-height: 0; }
  .pside { flex-direction: row; align-items: center; padding: 8px 10px; gap: 10px; overflow-x: auto; position: sticky; top: 0; z-index: 4; }
  .ps-brand, .ps-foot { display: none; }
  .ps-nav { display: flex; gap: 4px; }
  .ps-nav span { display: inline; }
  .ps-nav button { white-space: nowrap; padding: 8px 12px; }
  .ps-nav button.cur::before { left: 10px; right: 10px; top: auto; bottom: -8px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .ps-nav .nb { position: static; margin-left: 4px; }
  .pmain { padding: 18px; }
  .drawer { position: fixed; top: 0; z-index: 70; }
}
@media (max-width: 760px) {
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .entgrid, .about .aboutgrid, .cf-v { grid-template-columns: 1fr; }
  .kpi .v { font-size: 25px; }
  .hb, .pb { grid-template-columns: 96px 1fr 54px; }
}
@media (max-width: 599px) {
  .db-in { padding: 6px 10px; gap: 6px; }
  .db-t span { display: none; }
  .netctl button, .panesw button { padding: 5px 9px; font-size: 12.5px; min-height: 32px; }
  .db-links { order: 4; } .panesw { order: 3; }
  .db-links a, .db-links button { padding: 5px 8px; font-size: 12.5px; min-height: 32px; }
  .workbench { padding: 0; }
  .phonecol { display: block; }
  .device { width: 100%; height: auto; min-height: calc(100dvh - 96px); padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .dv-btn, .sbar, .caption { display: none; }
  .device-screen { height: auto; min-height: calc(100dvh - 96px); border-radius: 0; overflow: visible; }
  .app, .scr { flex: 1; }
  .body { overflow: visible; }
  .footbar { position: sticky; bottom: 0; z-index: 3; }
  .askbar { position: sticky; bottom: 0; z-index: 3; }
  .fab { position: fixed; }
  .toast, .fx, .sheet-bg { position: fixed; }
  .toast { bottom: 90px; }
  .fx { z-index: 80; }
  .sheet-bg { z-index: 75; }
  .portal { border-radius: 0; box-shadow: none; }
  .pmain { padding: 16px; }
  .ptop h1 { font-size: 22px; }
  .kpis { gap: 8px; } .kpi { padding: 12px; }
  .kpi .v { font-size: 22px; }
  .tiles { gap: 10px; }
  .tile { min-height: 118px; }
}
@media (max-width: 374px) {
  .netctl button { padding: 5px 7px; }
  .db-brand .db-t { display: none; }
  .mpick { grid-template-columns: repeat(3, 1fr); }
  .decgrid.sm { grid-template-columns: repeat(2, 1fr); }
  .avgrid { grid-template-columns: repeat(4, 1fr); }
  .amount .val { font-size: 44px; }
  .passbook li { grid-template-columns: 50px 1fr auto 64px; padding: 10px; }
  .synchero { flex-direction: column; align-items: stretch; } .ringwrap { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v2 additions after review */
.ph2.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.dupline { display: block; margin-top: 4px; color: var(--ink); font-weight: 700; }
