* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --page: #eef1f5; --card: #fff; --text: #1d2433; --muted: #6b7486; --line: #edf0f4; --shadow: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.08); --up: #1a7f45; --down: #c0392b; --up-bg: #e6f4ec; --down-bg: #fbeaea; }
.theme-navy { --brand: #1F3864; --brand-2: #2E5FA3; --soft: #BDD3F5; --tint: #EEF2F8; }
.theme-plum { --brand: #4A1942; --brand-2: #7B2D73; --soft: #E8C8E5; --tint: #F3EAF2; }
body.choose-page { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: var(--page); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.num { font-variant-numeric: tabular-nums; }

.cp-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(16,24,40,0.05); }
.cp-bar-title { font-weight: 700; font-size: 15px; color: #1F3864; }
.cp-out button { height: 34px; padding: 0 12px; border: 1px solid #d0ddf5; background: #fff; color: #c0392b; font: 700 13px inherit; font-family: inherit; cursor: pointer; }
.cp-out button:hover { background: #fbeaea; }

.cp-wrap { max-width: 640px; margin: 0 auto; padding: 22px 14px calc(28px + env(safe-area-inset-bottom)); }
.cp-intro h1 { font-size: 22px; font-weight: 700; color: #1F3864; letter-spacing: -0.3px; }
.cp-intro p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.cp-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.cp-card { display: block; text-decoration: none; color: inherit; background: var(--card); box-shadow: var(--shadow); transition: transform 0.1s, box-shadow 0.15s; }
.cp-card:hover { box-shadow: 0 4px 14px rgba(16,24,40,0.14); }
.cp-card:active { transform: scale(0.99); }
.cp-card:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.cp-name { font-size: 16px; font-weight: 700; }
.cp-go { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: square; flex-shrink: 0; transition: transform 0.15s; }
.cp-card:hover .cp-go { transform: translateX(3px); }
.cp-body { display: block; padding: 14px 16px 16px; }
.cp-amts { display: flex; flex-direction: column; }
.cp-amt { white-space: nowrap; }
.cp-gbp { order: 1; } .cp-inr { order: 2; }
.cp-amt.cp-gbp { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -0.4px; line-height: 1.2; }
.cp-amt.cp-inr { font-size: 14px; color: var(--muted); margin-top: 2px; }
.cp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cp-date { color: var(--muted); font-size: 12px; }
.cp-meta .cp-date { flex-basis: 100%; }
.chg { display: inline-block; font-weight: 700; padding: 2px 8px; font-size: 12px; }
.chg.up { background: var(--up-bg); color: var(--up); } .chg.down { background: var(--down-bg); color: var(--down); } .chg.flat { background: rgba(127,127,127,0.1); color: var(--muted); }
.cp-meta .cur-inr { display: none; }

.cp-combined { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; padding: 12px 16px; background: var(--card); box-shadow: var(--shadow); border-left: 4px solid #1F3864; }
.cp-c-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.cp-c-val { display: flex; gap: 10px; align-items: baseline; flex: 1; }
.cp-amt-s.cp-gbp { font-weight: 700; color: #1F3864; font-size: 16px; }
.cp-amt-s.cp-inr { color: var(--muted); font-size: 13px; }
.cp-fx { font-size: 12px; color: var(--muted); }

/* ₹ chosen as the main currency in the dashboard menu */
body.cur-inr .cp-amts .cp-inr { order: 1; font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -0.4px; margin-top: 0; line-height: 1.2; }
body.cur-inr .cp-amts .cp-gbp { order: 2; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
body.cur-inr .cp-c-val .cp-inr { order: 1; font-weight: 700; color: #1F3864; font-size: 16px; }
body.cur-inr .cp-c-val .cp-gbp { order: 2; font-weight: 400; color: var(--muted); font-size: 13px; }
body.cur-inr .cp-meta .cur-gbp { display: none; } body.cur-inr .cp-meta .cur-inr { display: inline; }

/* card = main link + row of section shortcuts */
.cp-card { overflow: hidden; }
.cp-card:active { transform: none; }
.cp-main { display: block; text-decoration: none; color: inherit; }
.cp-main:focus-visible { outline: 3px solid var(--brand-2); outline-offset: -3px; }
.cp-main:hover .cp-go { transform: translateX(3px); }
.cp-card:hover .cp-go { transform: none; }
.cp-main:hover .cp-go { transform: translateX(3px); }
.cp-sections { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.cp-sec { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid var(--soft); background: var(--tint); color: var(--brand); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cp-sec:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.cp-sec:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.cp-ico { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 420px) { .cp-sections { display: grid; grid-template-columns: 1fr 1fr; } .cp-sec { justify-content: flex-start; } }

/* display settings row */
.cp-display { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cp-d-item { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 12px; background: var(--card); box-shadow: var(--shadow); border: none; font-family: inherit; color: var(--text); }
.cp-d-label { font-size: 13px; font-weight: 600; }
.cp-cur { display: inline-flex; border: 1px solid #d0ddf5; }
.cp-cs { width: 36px; height: 30px; border: none; background: transparent; color: #1F3864; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.cp-cs[aria-pressed="true"] { background: #1F3864; color: #fff; }
.cp-short { cursor: pointer; padding-right: 10px; }
.cp-short:hover { background: #f5f8ff; }
.cp-switch { position: relative; width: 40px; height: 22px; background: #cfd6e2; transition: background 0.15s; }
.cp-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; transition: transform 0.15s; }
.cp-short[aria-checked="true"] .cp-switch { background: #1F3864; }
.cp-short[aria-checked="true"] .cp-switch::after { transform: translateX(18px); }
.cp-cs:focus-visible, .cp-short:focus-visible { outline: 3px solid #2E5FA3; outline-offset: 2px; }
@media (max-width: 420px) { .cp-d-item { flex: 1 1 auto; justify-content: space-between; } }
.cp-install { display: block; width: 100%; height: 46px; margin-top: 18px; border: 1px dashed #1F3864; background: #fff; color: #1F3864; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.cp-install[hidden] { display: none; }
.cp-install:hover { background: #EEF2F8; }

/* burger + slide-out menu (same as the dashboard) */
.cp-burger { width: 40px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #d0ddf5; background: #f5f8ff; cursor: pointer; padding: 0; }
.cp-burger:hover, .cp-burger[aria-expanded="true"] { background: #e4edff; }
.cp-burger svg { width: 22px; height: 22px; fill: none; stroke: #1F3864; stroke-width: 2; stroke-linecap: square; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(16,24,40,0.45); opacity: 0; transition: opacity 0.25s ease; }
.drawer-backdrop.open { opacity: 1; }
.drawer-backdrop[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 610; width: min(320px, 86vw); background: var(--card); display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(16,24,40,0.2); transform: translateX(100%); transition: transform 0.25s ease; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.drawer.open { transform: translateX(0); }
.drawer[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: flex-end; height: 50px; padding: 0 8px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-close { width: 40px; height: 40px; border: none; background: transparent; font-size: 26px; line-height: 1; color: #1F3864; cursor: pointer; }
.drawer-close:hover { background: #f5f8ff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-sec { padding: 8px 0; }
.drawer-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); padding: 8px 18px 6px; }
.drawer-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 18px; border-left: 3px solid transparent; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); }
.drawer-item:hover { background: #f5f8ff; }
.di-dot { width: 10px; height: 10px; flex-shrink: 0; }
.di-amit { background: #1F3864; } .di-parents { background: #4A1942; }
.drawer-foot { border-top: 1px solid var(--line); padding: 12px 18px 16px; flex-shrink: 0; }
.drawer-user { font-size: 12px; color: var(--muted); margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-signout { width: 100%; height: 42px; border: 1px solid #d0ddf5; background: #fff; color: #c0392b; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.drawer-signout:hover { background: #fbeaea; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }

/* install banner at the very top */
.install-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); background: linear-gradient(135deg, #3A8DFF 0%, #74BCFF 100%); color: #fff; }
.install-bar[hidden] { display: none; }
.ib-icon { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.5); }
.ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.ib-text strong { font-size: 14px; }
.ib-go { height: 34px; padding: 0 14px; border: none; background: #FFD400; color: #1d2433; font: 700 14px inherit; font-family: inherit; cursor: pointer; flex-shrink: 0; }
.ib-go:hover { background: #ffe24d; }
.ib-close { width: 32px; height: 34px; border: none; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }


/* settings view in the menu (gear) — same look as the dashboard */
.drawer-head { gap: 4px; }
.drawer-gear { width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.drawer-gear:hover { background: #f5f8ff; }
.drawer-gear[hidden], .drawer-back[hidden], .drawer-title[hidden], .dv[hidden] { display: none; }
.gear-ico { width: 22px; height: 22px; fill: none; stroke: #1F3864; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-back { height: 40px; padding: 0 10px; border: none; background: transparent; color: #1F3864; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.drawer-back:hover { background: #f5f8ff; }
.drawer-title { flex: 1; font-weight: 700; font-size: 15px; color: #1F3864; }
.drawer-row { cursor: default; }
.drawer-row:hover { background: transparent; }
.di-text { flex: 1; display: flex; flex-direction: column; }
.di-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.drawer-item.cp-short { border: none; border-left: 3px solid transparent; background: transparent; font: 600 14px inherit; font-family: inherit; color: var(--text); cursor: pointer; text-align: left; height: auto; padding: 10px 18px; }
.drawer-item.cp-short:hover { background: #f5f8ff; }

/* downloads page */
.ex-back { color: #1F3864; font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 4px; }
.ex-spacer { width: 52px; }
.cp-bar { justify-content: space-between; }
.ex-empty { margin-top: 18px; color: var(--muted); }
.ex-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ex-day { background: var(--card); box-shadow: var(--shadow); padding: 14px 16px; }
.ex-date { display: block; font-weight: 700; color: #1F3864; margin-bottom: 10px; }
.ex-files { display: flex; flex-direction: column; gap: 8px; }
.ex-file { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #d0ddf5; background: #f5f8ff; color: #1F3864; text-decoration: none; font-weight: 600; font-size: 14px; }
.ex-file small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; }
.ex-file svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.ex-file.ex-parents { border-color: #ead3e7; background: #fbf5fa; color: #4A1942; }
.ex-file:hover { filter: brightness(0.97); }
.dl-ico { width: 16px; height: 16px; fill: none; stroke: #1F3864; stroke-width: 2; flex-shrink: 0; margin-left: -3px; }
.ex-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #667085; margin: 22px 2px 10px; }

/* sign-in & security */
.sec-list { list-style: none; margin: 0 0 16px; padding: 0; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,0.08); }
.sec-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #e6ebf2; }
.sec-item:first-child { border-top: none; }
.sec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-name { font-weight: 700; color: #1F3864; }
.sec-sub { font-size: 12px; color: #667085; }
.sec-remove { height: 32px; padding: 0 12px; border: 1px solid #e3b7b2; background: #fff; color: #c0392b; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.sec-remove.confirm { background: #c0392b; color: #fff; border-color: #c0392b; }
.sec-add { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: none; background: #1F3864; color: #fff; font: 700 15px inherit; font-family: inherit; cursor: pointer; margin-bottom: 14px; }
.sec-add[hidden] { display: none; }
.sec-add svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sec-add:disabled { opacity: 0.6; }
.sec-ok { padding: 10px 12px; background: #e8f5ee; color: #1e7a46; border-left: 3px solid #1e7a46; font-size: 14px; margin: 0 0 14px; }
.sec-err { padding: 10px 12px; background: #fbeaea; color: #a12a1e; border-left: 3px solid #c0392b; font-size: 14px; margin: 0 0 14px; }
.sec-err[hidden] { display: none; }
.sec-note { font-size: 13px; color: #667085; line-height: 1.5; margin: 0 0 10px; }
.sec-note[hidden] { display: none; }

/* theme switch (Settings) */
.th-switch { display: inline-flex; border: 1px solid #d0ddf5; flex-shrink: 0; }
.th-btn { height: 30px; padding: 0 9px; border: none; background: transparent; color: #1F3864; font: 700 12px inherit; font-family: inherit; cursor: pointer; }
.th-btn[aria-pressed="true"] { background: #1F3864; color: #fff; }

/* users (admin) */
.us-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #667085; margin: 18px 0 8px; }
.us-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-top: 1px solid #e6ebf2; }
.us-item:first-child { border-top: none; }
.us-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.us-note { font-size: 13px; color: #1d2433; font-style: italic; margin-top: 2px; }
.us-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.us-acts form { margin: 0; }
.us-btn { height: 34px; padding: 0 12px; border: 1px solid #c9d6ee; background: #fff; color: #1F3864; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.us-btn.us-go { background: #1F3864; border-color: #1F3864; color: #fff; }
.us-btn.us-warn { border-color: #e3b7b2; color: #c0392b; }
.us-btn.confirm { background: #c0392b; border-color: #c0392b; color: #fff; }
.us-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; background: #f2f4f7; color: #667085; margin-left: 4px; vertical-align: 1px; }
.us-temp { background: #fff8e6; border-left: 3px solid #d99a00; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; color: #1d2433; }
.us-pw { font: 700 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; margin: 8px 0; user-select: all; }
.us-small { font-size: 12px; color: #667085; }
.di-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c0392b; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cp-welcome { background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,0.08); padding: 18px; border-left: 4px solid #2E5FA3; }
.cp-welcome h2 { font-size: 17px; color: #1F3864; margin: 0 0 8px; }
.cp-welcome p { font-size: 14px; color: #667085; line-height: 1.5; margin: 0 0 8px; }
.pw-form label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #667085; margin: 12px 0 6px; }
.pw-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d0ddf5; background: #f5f8ff; font-size: 16px; font-family: inherit; color: #1d2433; border-radius: 0; }
.pw-form .sec-add { margin-top: 16px; }

/* privacy page and account data */
.pv-h { font-size: 15px; font-weight: 700; color: #1F3864; margin: 22px 0 8px; }
.pv-p { font-size: 14px; color: #1d2433; line-height: 1.6; margin: 0 0 10px; }
.pv-list { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: #1d2433; line-height: 1.6; }
.pv-list li { margin-bottom: 6px; }
.pv a, .sec-note a { color: #2E5FA3; font-weight: 600; }
.sec-out { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid #c9d6ee; background: #fff; color: #1F3864; font: 700 15px inherit; font-family: inherit; text-decoration: none; margin-bottom: 14px; }
.danger-zone { border: 1px solid #e3b7b2; background: #fff; padding: 14px; margin-top: 8px; }
.danger-zone .pw-form label { color: #a12a1e; }
.sec-danger { width: 100%; height: 48px; border: none; background: #c0392b; color: #fff; font: 700 15px inherit; font-family: inherit; cursor: pointer; margin-top: 14px; }
