/* Microbanking design system. The brand is fixed (navy and royal blue, a red rule on top, green for money in): see the design share. Components below are used by the
   public site, the customer app and the staff consoles. No framework, no build step. */
@font-face { font-family: Inter; font-weight: 400; src: url(/fonts/Inter-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 500; src: url(/fonts/Inter-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 600; src: url(/fonts/Inter-SemiBold.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: Inter; font-weight: 700; src: url(/fonts/Inter-Bold.ttf) format('truetype'); font-display: swap; }

:root {
  --navy: #0A2540; --navy-deep: #061A2E; --navy-soft: #123a63; --royal: #2563EB; --royal-dark: #1D4ED8; --red: #DC2626; --green: #15803D;
  --ink: #0F172A; --ink-2: #475569; --mute: #64748B; --bg: #EFF4FA; --paper: #F8FAFC; --surface: #FFFFFF; --surface-2: #F6F9FE; --line: #D9E2EE; --line-2: #E8EEF7;
  --royal-soft: #E4EDFF; --green-soft: #DCFCE7; --red-soft: #FEE2E2; --amber: #B45309; --amber-soft: #FEF3C7; --teal: #0D9488;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 10px 28px rgba(10, 37, 64, .08); --shadow-lg: 0 20px 50px rgba(10, 37, 64, .22);
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Playfair Display', Georgia, 'Times New Roman', serif; --body-serif: Lora, Georgia, serif;
  --gap: 16px; --maxw: 1120px;
}
[data-theme='dark'] {
  --bg: #0A1220; --paper: #0D1626; --surface: #121E33; --surface-2: #0F1A2D; --ink: #E9F0FC; --ink-2: #B8C6DE; --mute: #8798B3; --line: #243652; --line-2: #1B2B45;
  --royal: #6EA2FF; --royal-dark: #9CC0FF; --royal-soft: #16284A; --green: #4ADE80; --green-soft: #0F2C1D; --red: #F87171; --red-soft: #35141A; --amber: #FBBF24; --amber-soft: #2E2410;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; } h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; } h3 { font-size: 19px; font-weight: 650; } h4 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 1em; } a { color: var(--royal); text-decoration: none; } a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.serif { font-family: var(--serif); } .num { font-variant-numeric: tabular-nums; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; } .muted { color: var(--mute); } .small { font-size: 13.5px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap); } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: var(--gap); } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 820px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } .hide-sm { display: none !important; } }
@media (min-width: 821px) { .only-sm { display: none !important; } }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; transition: background .12s, transform .06s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--royal); border-color: var(--royal); color: #fff; } .btn.primary:hover { background: var(--royal-dark); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; } .btn.navy:hover { background: var(--navy-soft); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; } .btn.danger:hover { filter: brightness(.92); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--royal); } .btn.ghost:hover { background: var(--royal-soft); }
.btn.sm { padding: 7px 13px; font-size: 13.5px; } .btn.lg { padding: 14px 26px; font-size: 16.5px; } .btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .6; cursor: progress; pointer-events: none; }
.field { display: block; margin: 0 0 16px; } .field > span, .field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea, .input { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--royal); outline-offset: -1px; border-color: var(--royal); }
.field .hint, .hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 0 0 14px; } .check input { margin-top: 4px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.input-money { position: relative; } .input-money::before { content: '$'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mute); } .input-money input { padding-left: 28px; }
.msg { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; margin: 0 0 16px; }
.msg.ok { background: var(--green-soft); color: #14532D; } .msg.bad { background: var(--red-soft); color: #991B1B; } .msg.warn { background: var(--amber-soft); color: #78350F; } .msg.info { background: var(--royal-soft); color: #1E3A8A; }
[data-theme='dark'] .msg.ok { color: #86EFAC; } [data-theme='dark'] .msg.bad { color: #FCA5A5; } [data-theme='dark'] .msg.warn { color: #FCD34D; } [data-theme='dark'] .msg.info { color: #BFD6FF; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; } .pad { padding: 22px; } .pad-sm { padding: 14px 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .card-head h3 { font-size: 16px; }
.tile { padding: 18px 20px; } .tile .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); } .tile .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; } .tile .sub { color: var(--mute); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; } .kv dt { color: var(--mute); font-size: 14px; } .kv dd { margin: 0; font-weight: 550; word-break: break-word; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--royal-soft); color: var(--royal-dark); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); } .pill.bad { background: var(--red-soft); color: var(--red); } .pill.warn { background: var(--amber-soft); color: var(--amber); } .pill.mute { background: var(--line-2); color: var(--mute); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); }
.skel { height: 84px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; } @keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- lists, tables, tabs ---------- */
.rows { list-style: none; margin: 0; padding: 0; } .rows > li, .rows > a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; } .rows > li:first-child, .rows > a:first-child { border-top: 0; }
.rows > a:hover { background: var(--surface-2); } .rows .main { flex: 1; min-width: 0; } .rows .main b { display: block; font-weight: 600; } .rows .main span { color: var(--mute); font-size: 13px; }
.amt { font-weight: 650; font-variant-numeric: tabular-nums; } .amt.in { color: var(--green); } .amt.out { color: var(--ink); } .amt.neg { color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; } .table th { position: sticky; top: 0; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; } .table tr:hover td { background: var(--surface-2); } .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; } .table td .btn { margin-right: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; } .tabs button, .tabs a { font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--mute); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tabs [aria-selected='true'], .tabs [aria-current='page'] { color: var(--royal); border-bottom-color: var(--royal); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 4px; color: var(--mute); font-size: 14px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 26, 46, .55); display: grid; place-items: center; padding: 20px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; } .modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); } .modal-body { padding: 22px; } .modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }
.iconbtn { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; padding: 6px 9px; border-radius: 8px; } .iconbtn:hover { background: var(--line-2); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 200; } .toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 360px; font-size: 14.5px; } .toast.bad { background: #991B1B; } .toast.ok { background: #14532D; }

/* ---------- public site ---------- */
.rule-top { height: 3px; background: var(--red); }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .in { height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.01em; } .brand:hover { text-decoration: none; } .brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 2px; flex: 1; } .site-nav a { color: #C7D6EA; padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; } .site-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; } .site-nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, .14); }
.site-cta { display: flex; gap: 10px; align-items: center; } .site-cta .btn { padding: 9px 16px; font-size: 14px; } .site-cta .btn.ghost { color: #fff; } .site-cta .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 8px; padding: 7px 11px; font: inherit; }
@media (max-width: 900px) { .nav-toggle { display: block; margin-left: auto; } .site-nav { display: none; position: absolute; top: 73px; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 10px 20px 18px; } .site-nav.open { display: flex; } .site-cta { display: none; } }
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1b4f8f 0%, transparent 60%), linear-gradient(165deg, var(--navy), var(--navy-deep)); color: #fff; padding: 76px 0 84px; }
.hero h1 { font-family: var(--serif); max-width: 16ch; } .hero .lead { color: #C7D6EA; margin-top: 18px; } .hero .row { margin-top: 28px; }
.hero.compact { padding: 52px 0 56px; } .hero .btn { border-color: transparent; } .hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; } @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.section { padding: 64px 0; } .section.alt { background: var(--surface); border-block: 1px solid var(--line); } .section-head { max-width: 62ch; margin-bottom: 30px; } .section-head h2 { font-family: var(--serif); margin: 6px 0 10px; }
.feature { padding: 24px; } .feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--royal-soft); color: var(--royal); margin-bottom: 14px; } .feature .ico svg { width: 22px; height: 22px; } .feature h3 { margin-bottom: 6px; } .feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; list-style: none; } .steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; } .steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-soft)); color: #fff; padding: 52px 0; } .cta-band h2 { font-family: var(--serif); } .cta-band p { color: #C7D6EA; }
.prose { max-width: 74ch; } .prose h2 { margin: 36px 0 10px; font-family: var(--serif); font-size: 26px; } .prose h3 { margin: 24px 0 8px; } .prose p, .prose li { color: var(--ink-2); font-family: var(--body-serif); font-size: 17px; } .prose ul { padding-left: 22px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 18px; } .faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; } .faq summary::-webkit-details-marker { display: none; } .faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; } .faq details p { color: var(--ink-2); }
.rate-table { width: 100%; border-collapse: collapse; } .rate-table th, .rate-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); } .rate-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.site-footer { background: var(--navy-deep); color: #9FB3CC; padding: 48px 0 30px; font-size: 14.5px; } .site-footer a { color: #C7D6EA; } .site-footer .cols { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(3, 1fr); } @media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } } .site-footer h4 { color: #fff; margin-bottom: 10px; } .site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 6px 0; } .site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; font-size: 13px; }
.mbcard { line-height: 0; } .mbcard svg { display: block; width: 100%; height: auto; border-radius: 4.2% / 6.7%; box-shadow: 0 14px 30px rgba(6, 26, 46, .3), 0 2px 5px rgba(6, 26, 46, .2); }

/* ---------- app shell (customer app and staff consoles) ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #C7D6EA; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-top: 3px solid var(--red); }
.sidebar .brand { padding: 6px 10px 18px; } .nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #C7D6EA; font: inherit; font-weight: 550; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; } .nav-item[aria-current='page'] { background: rgba(255, 255, 255, .15); color: #fff; } .nav-item svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 12px 8px; } .sidebar .who { padding: 12px 10px 4px; font-size: 13px; }
.app-main { padding: 26px clamp(16px, 3vw, 40px) 70px; min-width: 0; } .app-in { max-width: 1060px; margin: 0 auto; } .app-in.wide { max-width: 1320px; }
.page-head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; } .page-head h1 { font-size: 28px; } .page-head p { margin: 4px 0 0; color: var(--mute); }
.topbar { display: none; background: var(--navy); color: #fff; border-top: 3px solid var(--red); padding: 10px 16px; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; } .topbar .brand { font-size: 18px; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; z-index: 90; } .sidebar.open { transform: none; } .topbar { display: flex; } }
.hero-card { padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-end; justify-content: space-between; } .hero-card .big { font-size: clamp(34px, 5vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.acct { padding: 20px; display: block; color: inherit; border-left: 4px solid var(--royal); transition: transform .12s, box-shadow .12s; } .acct:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); } .acct.credit { border-left-color: var(--red); } .acct.savings { border-left-color: var(--green); } .acct .bal { font-size: 28px; font-weight: 700; margin: 6px 0 2px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .toolbar .input { max-width: 320px; }
.staff .app-in { max-width: 1380px; } .staff .table { font-size: 14px; } .staff .card-head h3 { font-size: 15px; }
.cardwrap { max-width: 440px; } .cardrail { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media print { .sidebar, .topbar, .site-header, .site-footer, .btn { display: none !important; } body { background: #fff; } }

/* ---------- sign-in / sign-up split screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 6fr; }
.auth-brand { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-top: 3px solid var(--red); }
.auth-brand h1 { font-size: 36px; max-width: 14ch; } .auth-brand p { color: #BFD0E6; max-width: 36ch; } .auth-brand img { width: 220px; height: auto; }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--paper); }
.auth-card { width: min(420px, 100%); } .auth-card.wide { width: min(640px, 100%); } .auth-card h2 { font-size: 28px; margin-bottom: 6px; }
@media (max-width: 800px) { .auth { grid-template-columns: 1fr; } .auth-brand { padding: 28px; gap: 24px; } }
.kindpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 22px; } .kindpick button { font: inherit; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; color: var(--ink); } .kindpick button[aria-pressed='true'] { border-color: var(--royal); background: var(--royal-soft); } .kindpick b { display: block; } .kindpick span { font-size: 12.5px; color: var(--mute); }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; } .fieldset > h3 { font-size: 15px; margin: 18px 0 4px; } .fieldset > p { margin: 0 0 12px; color: var(--mute); font-size: 13.5px; }
.pwwrap { position: relative; } .pwwrap button { position: absolute; right: 8px; top: 8px; font-size: 12.5px; }

/* ---------- customer app extras ---------- */
.layout-2 { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } @media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }
.section-title { margin: 22px 0 8px; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--royal-soft); color: var(--royal); flex: none; } .ico.green { background: var(--green-soft); color: var(--green); } .ico.rose { background: var(--red-soft); color: var(--red); } .ico.orange { background: var(--amber-soft); color: var(--amber); } .ico.purple { background: #ECE4FF; color: #7C3AED; }
.dateflag { min-width: 54px; text-align: center; font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.banner { background: linear-gradient(120deg, var(--navy), var(--navy-soft)); color: #fff; border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; } .banner p { color: #C7D6EA; margin: 4px 0 0; max-width: 54ch; } .banner .score { font-size: 56px; font-weight: 800; font-family: var(--serif); }
.rows .accent { border-left: 4px solid var(--royal); } .rows .accent.green { border-left-color: var(--green); } .rows .accent.rose { border-left-color: var(--red); } .rows .accent.orange { border-left-color: var(--amber); } .rows .accent.purple { border-left-color: #7C3AED; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .progress > i { display: block; height: 100%; background: var(--royal); }
.paper { background: #fff; color: #111; padding: 28px; border-radius: 8px; font-family: var(--body-serif); } .paper h2 { font-family: var(--serif); } .paper table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; } .paper th, .paper td { padding: 6px 4px; border-bottom: 1px solid #ddd; text-align: left; } .paper .r { text-align: right; }
.pos { color: var(--green); } .neg { color: var(--red); }
@media print { .overlay { position: static; background: none; padding: 0; } .modal { box-shadow: none; width: 100%; max-height: none; } .modal-head, .modal-foot, .no-print { display: none !important; } .app-main > *:not(.overlay) { display: none; } }

/* ---------- photography (Pexels, free licence) and the sign-in pages inside the site ---------- */
.split { display: grid; gap: 52px; grid-template-columns: 1fr 1fr; align-items: center; } .split.rev .split-media { order: 2; } @media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .split-media { order: 0; } }
.split-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); background: var(--navy); } .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.split-media .tag { position: absolute; left: 16px; bottom: 16px; background: rgba(6, 26, 46, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 9px; backdrop-filter: blur(4px); }
.split h2 { font-family: var(--serif); } .split .lead { margin-top: 12px; } .split ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; } .split ul.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); } .split ul.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.photo-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); } @media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-tile { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; background: var(--navy); box-shadow: var(--shadow); } @media (max-width: 900px) { .photo-tile { aspect-ratio: 16 / 10; } }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; } .photo-tile:hover img { transform: scale(1.04); }
.photo-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(6, 26, 46, .92) 100%); }
.photo-tile .cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; } .photo-tile .cap h3 { font-family: var(--serif); font-size: 24px; color: #fff; } .photo-tile .cap p { margin: 6px 0 10px; color: #D5E1F2; font-size: 14.5px; } .photo-tile .cap span { font-weight: 700; font-size: 14px; }
.photo-credit { font-size: 12px; color: var(--mute); margin-top: 8px; }

.signin { display: grid; grid-template-columns: minmax(300px, 5fr) 6fr; min-height: calc(100vh - 73px); }
.signin-photo { position: relative; color: #fff; display: flex; align-items: flex-end; padding: 48px; overflow: hidden; background: var(--navy); }
.signin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signin-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 46, .25) 0%, rgba(6, 26, 46, .55) 45%, rgba(6, 26, 46, .94) 100%); }
.signin-photo > div { position: relative; z-index: 1; max-width: 30ch; } .signin-photo h1 { font-family: var(--serif); font-size: 36px; color: #fff; } .signin-photo p { color: #D5E1F2; margin-top: 12px; }
.signin-form { display: grid; place-items: center; padding: 40px 28px; background: var(--paper); }
.signin-form .auth-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .signin { grid-template-columns: 1fr; min-height: 0; } .signin-photo { min-height: 240px; padding: 28px; } .signin-photo h1 { font-size: 28px; } }
.signin.wide { grid-template-columns: minmax(260px, 4fr) 8fr; } .signin.wide .signin-form { align-items: start; } @media (max-width: 860px) { .signin.wide { grid-template-columns: 1fr; } }

/* ---------- a livelier backdrop: brand-coloured glows and a banknote-style rosette pattern behind every page ---------- */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 6% 4%, rgba(37, 99, 235, .36), transparent 62%),
    radial-gradient(820px 600px at 98% 18%, rgba(13, 148, 136, .30), transparent 60%),
    radial-gradient(900px 640px at 55% 104%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(520px 380px at 0% 70%, rgba(220, 38, 38, .10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='%232563EB' stroke-opacity='.13' stroke-width='1'%3E%3Ccircle cx='160' cy='160' r='16'/%3E%3Ccircle cx='160' cy='160' r='32'/%3E%3Ccircle cx='160' cy='160' r='48'/%3E%3Ccircle cx='160' cy='160' r='64'/%3E%3Ccircle cx='160' cy='160' r='80'/%3E%3Ccircle cx='160' cy='160' r='96'/%3E%3Ccircle cx='160' cy='160' r='112'/%3E%3Ccircle cx='160' cy='160' r='128'/%3E%3Ccircle cx='160' cy='160' r='144'/%3E%3Ccircle cx='160' cy='160' r='160'/%3E%3Cg fill='%232563EB' fill-opacity='.22' stroke='none'%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='320' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='320' r='2.2'/%3E%3Ccircle cx='320' cy='320' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center top / 320px 320px; }
[data-theme='dark'] body::before { background:
    radial-gradient(900px 560px at 6% 4%, rgba(37, 99, 235, .30), transparent 62%),
    radial-gradient(820px 600px at 98% 18%, rgba(13, 148, 136, .22), transparent 60%),
    radial-gradient(900px 640px at 55% 104%, rgba(99, 102, 241, .22), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='%232563EB' stroke-opacity='.13' stroke-width='1'%3E%3Ccircle cx='160' cy='160' r='16'/%3E%3Ccircle cx='160' cy='160' r='32'/%3E%3Ccircle cx='160' cy='160' r='48'/%3E%3Ccircle cx='160' cy='160' r='64'/%3E%3Ccircle cx='160' cy='160' r='80'/%3E%3Ccircle cx='160' cy='160' r='96'/%3E%3Ccircle cx='160' cy='160' r='112'/%3E%3Ccircle cx='160' cy='160' r='128'/%3E%3Ccircle cx='160' cy='160' r='144'/%3E%3Ccircle cx='160' cy='160' r='160'/%3E%3Cg fill='%232563EB' fill-opacity='.22' stroke='none'%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='320' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='320' r='2.2'/%3E%3Ccircle cx='320' cy='320' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center top / 320px 320px; opacity: .8; }
.section.alt { background: rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block-color: rgba(37, 99, 235, .14); }
[data-theme='dark'] .section.alt { background: rgba(18, 30, 51, .6); }
.signin-form, .auth-form { background: transparent; }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .8; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none' stroke='%23FFFFFF' stroke-opacity='.13' stroke-width='1'%3E%3Ccircle cx='160' cy='160' r='16'/%3E%3Ccircle cx='160' cy='160' r='32'/%3E%3Ccircle cx='160' cy='160' r='48'/%3E%3Ccircle cx='160' cy='160' r='64'/%3E%3Ccircle cx='160' cy='160' r='80'/%3E%3Ccircle cx='160' cy='160' r='96'/%3E%3Ccircle cx='160' cy='160' r='112'/%3E%3Ccircle cx='160' cy='160' r='128'/%3E%3Ccircle cx='160' cy='160' r='144'/%3E%3Ccircle cx='160' cy='160' r='160'/%3E%3Cg fill='%23FFFFFF' fill-opacity='.22' stroke='none'%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='320' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='320' r='2.2'/%3E%3Ccircle cx='320' cy='320' r='2.2'/%3E%3C/g%3E%3C/svg%3E") right -80px top -60px / 320px 320px; mask-image: linear-gradient(100deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%); }
.hero > .container { position: relative; }

/* ---------- search box in the sidebar and the jump-to-anything palette ---------- */
.searchbtn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #AFC3DD; font: inherit; font-size: 14px; cursor: pointer; text-align: left; } .searchbtn:hover { background: rgba(255, 255, 255, .13); color: #fff; } .searchbtn span { flex: 1; } .searchbtn kbd, .pal kbd { font: 600 11px var(--sans); padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .22); color: #8FA6C4; }
.pal-overlay { align-items: start; padding-top: 12vh; } .pal { width: min(640px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--mute); } .pal-in input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); } .pal-in kbd { border-color: var(--line); color: var(--mute); }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 8px; } .pal-group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pal-item { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; } .pal-item span { color: var(--mute); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pal-item[aria-selected] { background: var(--royal-soft); } .pal-empty { padding: 26px; text-align: center; color: var(--mute); }

.navbadge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--red); color: #fff; font: 700 12px var(--sans); text-align: center; font-style: normal; } .navbadge[hidden] { display: none; }
