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0JKIOpcZKA6y9KVPpzbxaRPx3i3y7tbe1QjPXq1siiodDLWvlw5VE5fpFtuXqlojlH193UhgBdvvT/njLxQY32Hm7io+sW7+cMvemu3JzulOzErFY1wvhqrLy1Bxvvf9gCWf2uA6xeF2FtytPH7vFZLlKxdfi1x+/ivfXNXjN6aM36fSI7dVe/7X48Rtuf/56XVA2tPXj/pS37jJAv2SUlmdmEV8dHm4/ruRoOAfyWC7BWwTo2mKJjbFNpycDvjRhUbhpLlyHGu/ZbgPEagBDI8mYYCx+G25/vCbp6t0j4B2bZQdeCogd9L5njDTHkYCwJSxLcGEt9J0BUUY0SrOLNscx329FxGlrR1c2xxUHXQPoHSbaHIsJ4I/XWUxpJmvdPwUwMDZTr04Duv7ssQkf/XRATLrxaOMuZgoYvMQlUxRTylsOdRtg8OohYrQNerzFMeV+gCgjMH7rESde/KOvNOrHFTHlroAufu97xJmA2KERXvmBY3wI0CE6Q0NPPGmBhUtF0xdFfgWgz8iokB4QQrZAdW5zPVn5dECKHa44eH//8ScmMz8gJyzyhcaXApJKexoveaVVqK/kvHjRxx347gKISv1tMBpRtPeS726AGOaeB+tf6zvJdz/AfljMj0LeSb57ArrRCFxFfj/z3hcQoYCQLrc+nv4fAbHL2F27zf7/FJAI9x+PzaPtvxttVjod/9m+AAAAAElFTkSuQmCC"); }
/* Finora for DIU students.
   Colours come from the DIU crest: royal blue, crest green, globe blue, and one red used only for the
   active-account dot and for errors. Type is Anek Bangla (Latin and Bangla, with a width axis for amounts). */

:root {
  color-scheme: light;
  --royal: #18479b;
  --navy: #0b1f4d;
  --green: #4db848;
  --globe: #8ed4f5;
  --red: #e4262c;
  --grey: #7d8086;
  --page: #f4f6f9;
  --panel: #ffffff;
  --ink: #0b1f4d;
  --muted: #566178;
  --line: #dde2e9;
  --soft: #eef1f6;
  --tint: #eaf6fd;
  --control: #7b879b;
  --link: #18479b;
  --btn: #18479b;
  --focus: #0b7bc7;
  --green-ink: #2b7a2b;
  --red-ink: #b3171d;
  --red-btn: #b3171d;
  --amber: #e8a317;
  --good-bg: #e4f4e3;
  --bad-bg: #fde8e9;
  --nav-h: 64px;
  --top-h: 56px;
  font: 16px/1.5 "Anek Bangla", system-ui, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-padding-top: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0a1226; --panel: #111c3a; --ink: #e8eefa; --muted: #9aa8c4; --line: #243256; --soft: #17244a;
    --tint: #16264f; --control: #5b6c93; --link: #8ed4f5; --btn: #3f73d6; --focus: #8ed4f5;
    --green-ink: #6fd16a; --red-ink: #ff7a7f; --red-btn: #c42a31; --good-bg: #1a3a23; --bad-bg: #3e1a22;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a1226; --panel: #111c3a; --ink: #e8eefa; --muted: #9aa8c4; --line: #243256; --soft: #17244a;
  --tint: #16264f; --control: #5b6c93; --link: #8ed4f5; --btn: #3f73d6; --focus: #8ed4f5;
  --green-ink: #6fd16a; --red-ink: #ff7a7f; --red-btn: #c42a31; --good-bg: #1a3a23; --bad-bg: #3e1a22;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); }
h1, h2, h3, p, dl, dd, fieldset, ol, ul { margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { opacity: .55; cursor: default; }
a { color: var(--link); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--panel); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.amt { font-stretch: 112.5%; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 20px; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0; }
.field-error { color: var(--red-ink); font-size: 14px; margin: 4px 0; }
.field-error:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--red-ink) !important; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--tint); margin: 12px 0; }
.notice:empty { display: none; }
.notice.error { background: var(--bad-bg); color: var(--red-ink); }
.link { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; text-decoration: underline; cursor: pointer; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flip { transform: rotate(180deg); }
.flip-up { transform: rotate(180deg); }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; font-size: 12px; background: var(--soft); }

/* ---------- Controls ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; min-height: 44px; border: 1px solid var(--control); border-radius: 8px;
  background: var(--panel); color: var(--ink);
}
textarea { resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--soft); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); background: var(--btn); }
.btn.primary.armed { background: #2b7a2b; border-color: #2b7a2b; }
.btn.danger { color: var(--red-ink); border-color: var(--red-ink); }
.btn.danger-solid { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn-row { display: flex; gap: 12px; margin: 16px 0; }
.btn-row .btn { flex: 1; margin-top: 0; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.mini-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; background: rgba(255,255,255,.16); color: inherit; border-radius: 50%; }
.mini-btn .ic { width: 15px; height: 15px; }
.dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; box-shadow: 0 0 0 2px var(--panel); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; margin: 16px 0; background: var(--soft); border-radius: 10px; }
.segmented button { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; }
.segmented button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(11,31,77,.18); }
.chips, .chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
@media (max-width: 899px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
}
.chip {
  min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 14px;
}
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.chip.big { display: flex; flex-direction: column; align-items: flex-start; border-radius: 12px; padding: 8px 14px; min-height: 52px; }
.chip.big small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.waiting { background: var(--tint); color: var(--link); border: 1px solid var(--globe); }
.badge.approved { background: var(--good-bg); color: var(--green-ink); }
.badge.rejected { background: var(--bad-bg); color: var(--red-ink); }
.badge.cancelled { background: var(--soft); color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; border: 0; border-radius: 14px; background: var(--control); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--btn); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.search { position: relative; margin: 8px 0; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { padding-left: 40px; }
.date-row { display: flex; gap: 12px; }
.date-row label { flex: 1; margin-top: 8px; }

/* ---------- Crest ---------- */
.crest { display: inline-block; flex: none; width: 34px; height: 34px; background: var(--crest) center / contain no-repeat; }
.crest.big { width: 72px; height: 72px; }

/* ---------- Session check ---------- */
.session-view { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }

/* ---------- Sign in ---------- */
.access { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--panel); }
.access-brand { position: relative; background: var(--royal); color: #fff; padding: 24px 24px 28px; overflow: hidden; }
.access-brand::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -24px; height: 48px; background: var(--green); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -3px 0 rgba(255,255,255,.35); }
.brand-lock { display: flex; align-items: center; gap: 12px; }
.brand-lock strong { display: block; font-size: 22px; line-height: 1.1; }
.brand-lock small { opacity: .85; }
.access-brand .crest { width: 48px; height: 48px; padding: 4px; background-color: #fff; background-origin: content-box; border-radius: 50%; }
.access-pitch { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 18px; max-width: 14ch; }
.access-sub, .points { display: none; }
.access-form { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 24px 40px; }
.access-form h1 { font-size: 28px; }
.help { margin-top: 16px; font-size: 14px; color: var(--muted); }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field .icon-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.strength { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.strength i { flex: 0 0 36px; height: 5px; border-radius: 3px; background: var(--line); }
.strength span { margin-left: 6px; font-size: 13px; color: var(--muted); }
.strength[data-level="1"] i:nth-child(1) { background: var(--red); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] i { background: var(--green-ink); }
@media (min-width: 900px) {
  .access { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .access-brand { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
  .access-brand::after { height: 72px; bottom: -30px; }
  .access-pitch { font-size: 40px; max-width: 16ch; }
  .access-sub { display: block; margin-top: 12px; max-width: 34ch; font-size: 18px; opacity: .92; }
  .access-form { align-self: center; padding: 48px; }
}

/* ---------- Account cards ---------- */
.acard {
  position: relative; display: flex; flex-direction: column; flex: 0 0 min(82%, 320px); min-height: 176px; padding: 16px 18px 40px;
  border-radius: 20px; color: #fff; overflow: hidden; scroll-snap-align: center; cursor: pointer; margin: 0; font-size: 16px; font-weight: 400;
}
.acard.tone-0 { background: var(--royal); }
.acard.tone-1 { background: #0b1f4d; border: 1px solid rgba(255,255,255,.14); }
.acard.tone-2 { background: var(--panel); color: var(--ink); border: 2px solid var(--royal); }
.acard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.acard-name { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .dot { display: none; flex: none; }
.acard.active .dot { display: block; }
.acard-no { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: .92; margin-top: 2px; }
.acard.tone-2 .mini-btn { background: var(--soft); }
.acard-balance { margin-top: auto; font-size: 30px; line-height: 1.1; padding-bottom: 6px; }
.ribbon { position: absolute; left: -8%; right: -8%; bottom: -20px; height: 48px; background: var(--green); border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: 0 -3px 0 rgba(125,128,134,.6); }
.acard.active { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--globe); }
.acard:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; }
.acard.sample { display: none; flex: none; width: min(320px, 100%); pointer-events: none; margin-top: 32px; }
.acard.sample .dot { display: block; }
@media (min-width: 900px) and (min-height: 640px) { .access-brand .acard.sample { display: flex; } }

/* ---------- App shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: var(--top-h);
  padding: env(safe-area-inset-top) 12px 0 16px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { display: none; color: var(--muted); font-size: 12px; }
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 58vw; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--soft);
}
.pill-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; text-align: left; }
.pill-text > span:first-child { font-size: 13px; font-weight: 600; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-text .amt { font-size: 12.5px; color: var(--muted); }
.pill .ic { width: 18px; height: 18px; }
body[data-screen="home"] .pill, body[data-screen="profile"] .pill { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pill:not([hidden]) + .top-actions { margin-left: 0; }
.avatar {
  display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #e4e6eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='15.5' r='7.5' fill='%23a8afba'/%3E%3Cpath d='M5 40c0-9.5 6.7-15 15-15s15 5.5 15 15z' fill='%23a8afba'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.avatar.big { width: 72px; height: 72px; }
.avatar.small { width: 32px; height: 32px; }

#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--panel); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); padding: 6px 2px; color: var(--muted); font-size: 12px; text-decoration: none;
}
#nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
#nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--royal); }
#nav .long { display: none; }
#nav .count { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-btn); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
body[data-role="admin"] #nav { background: var(--navy); border-color: var(--navy); overflow-x: auto; }
body[data-role="admin"] #nav a { flex: 1 0 auto; min-width: 74px; color: #b9c6e4; }
body[data-role="admin"] #nav a[aria-current="page"] { color: #fff; }
body[data-role="admin"] #nav a[aria-current="page"]::before { background: var(--globe); }

#main { padding: 16px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.screen { max-width: 720px; margin: 0 auto; }
.screen.narrow { max-width: 560px; }
.screen.wide { max-width: 1120px; }
#screen-home { max-width: 1080px; }
.screen > h1, .screen-head h1 { font-size: 22px; margin: 4px 0; }
.screen-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.screen-head.spread { justify-content: space-between; }
#app-error { max-width: 720px; margin: 0 auto 12px; }

@media (min-width: 900px) {
  .brand-text small { display: block; }
  #nav { top: var(--top-h); bottom: 0; right: auto; width: 248px; flex-direction: column; gap: 2px; padding: 16px 12px; border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  #nav a { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
  #nav a:hover { background: var(--soft); }
  #nav a[aria-current="page"] { background: var(--tint); }
  #nav a[aria-current="page"]::before { display: none; }
  #nav .long { display: inline; }
  #nav .short { display: none; }
  #nav .count { position: static; margin-left: auto; }
  body[data-role="admin"] #nav a { flex: 0 0 auto; min-width: 0; }
  body[data-role="admin"] #nav a:hover { background: rgba(255,255,255,.08); }
  body[data-role="admin"] #nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
  #main { margin-left: 248px; padding: 28px 32px 56px; }
  .pill { margin-left: 24px; max-width: 320px; }
  .pill-text > span:first-child { max-width: 220px; }
}

/* ---------- Home ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.home-main > h1 { font-size: 22px; margin: 4px 0 6px; }
.total-line { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 4px; }
.total-line strong { font-size: 20px; color: var(--ink); }
.total-line .icon-btn { width: 36px; height: 36px; }
.cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.empty-card { text-align: center; padding: 28px 16px; border: 1px dashed var(--control); border-radius: 12px; color: var(--muted); margin: 12px 0; }
.empty-card strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.empty-card .btn { margin-top: 12px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; background: none; border: 0; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.qa-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tint); color: var(--link); border: 1px solid var(--line); }
.qa:hover .qa-ic { background: var(--globe); color: var(--navy); }
.strip { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--globe); border-radius: 12px; background: var(--tint); color: var(--ink); text-decoration: none; }
.strip span { flex: 1; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { font-size: 16px; }
.rail { display: none; }
.rail .panel { margin-top: 0; }
@media (min-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; max-width: 1080px; }
  .rail { display: block; }
  .strip { display: none !important; }
  .cards { margin: 0; padding: 8px 4px 14px; }
  .acard { flex-basis: 300px; }
}

.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: inherit; }
.tx:last-child { border-bottom: 0; }
.tx:hover { background: var(--soft); }
.tx.unread { box-shadow: inset 3px 0 0 var(--royal); }
.tx-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); }
.tx-ic .ic { width: 20px; height: 20px; }
.tx-ic.in, .tx-ic.approved { background: var(--good-bg); color: var(--green-ink); }
.tx-ic.out { background: var(--soft); }
.tx-ic.wait, .tx-ic.waiting { background: var(--tint); color: var(--link); }
.tx-ic.rejected { background: var(--bad-bg); color: var(--red-ink); }
.tx-ic.cancelled { background: var(--soft); color: var(--muted); }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tx-main small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tx-amt { white-space: nowrap; }
.credit { color: var(--green-ink); }
.big-amt { font-size: 34px; margin: 4px 0 8px; }
.day { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 2px; }
.day:first-child { margin-top: 0; }
#hist-status + .tx-list .day:first-child { margin-top: 10px; }
.tx-list.compact .tx { padding: 8px 4px; }
.skel { height: 52px; margin: 8px 0; border-radius: 8px; background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

#trend-chart svg, #chart svg { width: 100%; height: auto; display: block; }
.chart-line { fill: none; stroke: var(--royal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
:root[data-theme="dark"] .chart-line, :root[data-theme="dark"] .chart-dot { stroke: var(--globe); }
.chart-area { fill: var(--royal); fill-opacity: .12; }
.chart-dot { fill: var(--royal); stroke: var(--panel); stroke-width: 2; }
.chart-base { stroke: var(--line); stroke-width: 1; }
.chart-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart-label { fill: var(--muted); font-size: 11px; }
.seg-approved { fill: var(--green); background: var(--green); }
.seg-rejected { fill: var(--red); background: var(--red); }
.seg-pending { fill: var(--globe); background: var(--globe); }
.seg-cancelled { fill: var(--grey); background: var(--grey); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Send, add money, receipts ---------- */
.progress-text { margin: 8px 0 6px; font-size: 13px; color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--royal); transition: width .25s; }
.from-line { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.from-line:empty { display: none; }
.step h2.mini, h3.mini { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 4px; }
.to-line { margin-top: 16px; font-weight: 600; }
.amount-field { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; border-bottom: 2px solid var(--royal); }
.amount-field span { font-size: 36px; font-weight: 600; font-stretch: 112.5%; }
.amount-field input { border: 0; min-height: 0; padding: 4px 0; background: none; font-size: 40px; font-weight: 600; font-stretch: 112.5%; font-variant-numeric: tabular-nums; }
.amount-field input:focus-visible { outline: 0; }
.amount-field:focus-within { border-bottom-color: var(--green); }
.facts { margin: 12px 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.receipt { text-align: center; }
.receipt .facts { text-align: left; }
.receipt h2 { font-size: 24px; margin: 4px 0 8px; }
.tick { width: 76px; height: 76px; margin: 12px auto 4px; display: block; }
.tick circle { fill: var(--green); }
.tick path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; }
.tick.wait circle { fill: var(--globe); }
.tick.wait path { stroke: var(--navy); }
.tick.play circle { transform-origin: 26px 26px; animation: pop .3s ease-out both; }
.tick.play path { animation: draw .45s .15s ease-out both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* ---------- Requests, history, profile ---------- */
.profile-card { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.settings { padding: 0 16px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting.stack { flex-direction: column; align-items: stretch; gap: 0; }
.setting.stack .segmented { margin: 8px 0 0; }
.timeline { list-style: none; margin: 16px 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline .marker { flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--control); }
.timeline .done .marker { background: var(--royal); }
.timeline .good .marker { background: var(--green-ink); }
.timeline .bad .marker { background: var(--red); }
.timeline .current .marker { background: var(--globe); box-shadow: 0 0 0 4px var(--tint); }
.timeline small { display: block; color: var(--muted); }
.reason { padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--red-ink); }

/* ---------- Admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--royal); }
.tile.attention { background: var(--tint); border-color: var(--globe); }
.tile-label { color: var(--muted); font-size: 14px; }
.tile-value { font-size: 28px; line-height: 1.2; }
.tile small { color: var(--muted); }
.queue { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.queue-list-col, .queue-detail-col, .lookup-pick, .lookup-detail { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.queue-detail-col { min-height: 320px; }
.qlist { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow: auto; margin: 8px 0; }
.qrow { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; text-align: left; }
.qrow small { color: var(--muted); }
.qrow:hover { background: var(--soft); }
.qrow.selected { border-color: var(--royal); background: var(--tint); box-shadow: 0 0 0 1px var(--royal); }
.shortcuts { margin-top: 12px; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-head h2 { flex: 1; font-size: 19px; }
.back-btn { display: none; }
.projection { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 12px 0; border-radius: 8px; background: var(--tint); border: 1px solid var(--globe); }
.reject-box textarea { margin-top: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 12px 0; }
.grid { width: 100%; border-collapse: collapse; }
.grid th { padding: 10px 14px; text-align: left; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 10px 14px; min-height: 44px; border-bottom: 1px solid var(--line); }
.grid tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; }
.grid tr.click { cursor: pointer; }
.grid tr.click:hover { background: var(--soft); }
.sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font-weight: 600; font-size: 13px; }
.sort .ic { width: 14px; height: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 8px 0; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.lookup { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.confirm-box { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--tint); }
.confirm-box .btn { margin-top: 10px; }
@media (max-width: 599px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile { padding: 12px; }
  .tile-value { font-size: 22px; }
  .tile-label { font-size: 13px; }
}
@media (max-width: 899px) {
  .queue, .lookup { grid-template-columns: 1fr; }
  .queue-detail-col { display: none; }
  .queue.detail-open .queue-list-col { display: none; }
  .queue.detail-open .queue-detail-col { display: block; }
  .back-btn { display: inline-grid; }
  .sticky-actions { position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); padding: 10px 0; background: var(--panel); }
}

/* ---------- Sheet and toast ---------- */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--panel); color: var(--ink); box-shadow: 0 -8px 32px rgba(11,31,77,.3); overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(11,31,77,.55); }
dialog.sheet[open] { animation: slide-up .22s ease-out; }
@keyframes slide-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { display: flex; flex-direction: column; max-height: 88vh; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 12px 4px 20px; }
.sheet-head h2 { font-size: 18px; }
.sheet-body { padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.acct-list { display: flex; flex-direction: column; margin-bottom: 8px; }
.acct-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.acct-row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.acct-row small { color: var(--muted); }
.acct-row .ic { color: var(--green-ink); }
.tick-space { width: 22px; }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; max-width: 440px; border-radius: 16px; max-height: 86vh; }
  dialog.sheet.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; max-width: 480px; border-radius: 0; }
  dialog.sheet.drawer .sheet-inner { max-height: 100vh; height: 100vh; }
  dialog.sheet.drawer[open] { animation: slide-in .22s ease-out; }
}
@keyframes slide-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed; inset: auto; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); margin: 0; transform: translateX(-50%);
  max-width: min(92vw, 460px); padding: 11px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; z-index: 400; text-align: center;
}
.toast.error { background: var(--red-btn); }
:root[data-theme="dark"] .toast:not(.error) { background: #e8eefa; color: var(--navy); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- Statement (print only) ---------- */
.statement { display: none; }
.st-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.st-head h1 { font-size: 24px; }
.statement table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.statement th, .statement td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ccd; }
.statement .num { text-align: right; }
@media print {
  body > *:not(#statement) { display: none !important; }
  .statement { display: block !important; color: #000; background: #fff; padding: 0; }
  .statement .facts dt, .statement .fine { color: #444; }
  @page { margin: 14mm; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Polish ---------- */
:root { --shadow: 0 1px 2px rgba(11,31,77,.05), 0 8px 24px rgba(11,31,77,.06); }
.btn { border-radius: 10px; }
input, select, textarea { border-radius: 10px; }
.panel, .tile, .table-wrap, .queue-list-col, .queue-detail-col, .lookup-pick, .lookup-detail { border-radius: 16px; box-shadow: var(--shadow); }

/* Sign in */
.access-brand { background: radial-gradient(120% 90% at 0% 0%, #2f6bd0 0%, var(--royal) 45%, #0d2a66 100%); }
.access-brand > * { position: relative; z-index: 1; }
.points { list-style: none; margin-top: 24px; }
.points li { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 16px; }
.points .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.14); }
@media (min-width: 900px) { .points { display: block; } .access-form { align-self: center; } }
.demo { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo h2 { font-size: 16px; }
.demo > p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.demo-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); text-align: left; transition: border-color .15s, background .15s;
}
.demo-btn:hover:not(:disabled) { border-color: var(--btn); background: var(--tint); }
.demo-btn strong, .demo-btn small { display: block; line-height: 1.25; }
.demo-btn small { color: var(--muted); font-size: 12.5px; }

/* Top bar */
.top-name { display: none; font-weight: 600; font-size: 14px; margin: 0 4px; }
body[data-screen="home"] .pill + .top-actions, body[data-screen="profile"] .pill + .top-actions { margin-left: auto; }
@media (min-width: 900px) {
  .top-name { display: inline; }
  .topbar { padding-right: 24px; }
  .pill:not([hidden]) + .top-actions { margin-left: auto; }
}

/* Account setup */
.type-list { border: 0; margin-top: 16px; }
.type-list legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.type-option { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400; font-size: 16px; cursor: pointer; }
.type-option input { width: 18px; min-height: 0; height: 18px; flex: none; accent-color: var(--btn); }
.type-option strong, .type-option small { display: block; line-height: 1.3; }
.type-option small { color: var(--muted); font-size: 13px; }
.type-option:has(input:checked) { border-color: var(--btn); background: var(--tint); box-shadow: 0 0 0 1px var(--btn); }

/* Home */
.home-main > h1 { font-size: 28px; }
.total-line strong { font-size: 24px; }
.acard.tone-0 { background: linear-gradient(135deg, #2f6bd0, #18479b 55%, #123a82); box-shadow: 0 10px 24px rgba(24,71,155,.28); }
.acard.tone-1 { background: linear-gradient(135deg, #1b3270, #0b1f4d 70%); }
.acard.active { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--globe); }
.quick { padding: 12px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.qa { font-weight: 600; }
.qa-ic { background: var(--btn); border-color: var(--btn); color: #fff; transition: transform .15s; }
.qa:hover .qa-ic { background: var(--btn); color: #fff; transform: translateY(-2px); }

/* Lists sit on their own panel instead of the grey page */
#hist-list, #req-list, #act-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 12px; margin-top: 8px; }
#hist-list:empty, #req-list:empty, #act-list:empty { display: none; }
#hist-list .day { margin-top: 12px; }

/* Send and add money */
#screen-send .step, #screen-money .step { margin-top: 12px; padding: 4px 20px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }

/* Profile */
.profile-card { flex-direction: column; text-align: center; gap: 8px; padding: 24px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.profile-card strong { font-size: 20px; }

/* Admin */
.person { display: flex; align-items: center; gap: 10px; }
.person small { display: block; color: var(--muted); font-size: 13px; }
.tile-value { font-weight: 700; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  body[data-role="admin"] #nav a { flex: 1 1 0; min-width: 0; font-size: 11px; }
}

/* Headings are focused by script after a screen change; no outline needed. */
h1[tabindex="-1"]:focus { outline: none; }
