:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172b3a; background: #f2f5f8; font-size: 16px; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 960px; margin: auto; padding: 1.2rem; }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header { margin: .5rem 0 1.5rem; }
.brand { color: #245c80; font-size: .875rem; font-weight: 750; letter-spacing: .16em; }
h1 { margin: .1rem 0; font-size: 1.65rem; }
h2 { font-size: 1rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
p { margin: .6rem 0; }
a { color: #185879; text-underline-offset: .2em; }
.badge, .status { display: inline-block; border-radius: .35rem; padding: .2rem .5rem; font-size: .875rem; white-space: nowrap; background: #e8eef3; }
.panel { background: #fff; border: 1px solid #d9e2e9; border-radius: .75rem; padding: 1.1rem; margin-bottom: 1rem; min-width: 0; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: .8rem; align-items: end; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
input, select, button { font: inherit; min-height: 44px; border-radius: .4rem; }
input, select { width: 100%; min-width: 0; background-color: white; color: #172b3a; border: 1px solid #9babbb; padding: .5rem .6rem; }
select { appearance: none; padding-right: 1.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23394d5c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .5rem center; }
button { background: #185879; color: white; border: 1px solid #185879; padding: .5rem 1rem; cursor: pointer; }
button.secondary { background: white; color: #185879; }
:focus-visible { outline: 3px solid #3286b4; outline-offset: 3px; }
.muted, .meta, footer { color: #526574; font-size: .875rem; }
.ledger-link { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .35rem; }
.ledger-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.amount { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.primary { background: #163f59; color: white; border-color: #163f59; }
.primary .amount { font-size: 1.7rem; }
.primary p { color: #d5e6ef; font-size: .875rem; }
.empty-value { font-weight: 500; font-size: 1rem; }
.review-panel { border-left: 4px solid #b87c19; }
.notice { font-size: .875rem; background: #e9eff5; padding: .9rem; border-radius: .5rem; margin-bottom: 1rem; }
.group { padding: .85rem 0; border-bottom: 1px solid #e2e8ef; }
.group:last-child { border-bottom: 0; padding-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .4rem; }
.split span { font-size: .875rem; color: #526574; }
.split .amount { font-size: 1rem; }
.transactions { list-style: none; padding: 0; margin: 0; }
.transaction { padding: 1.1rem 0; border-bottom: 1px solid #e2e8ef; }
.transaction-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; }
.transaction-head p { font-size: .875rem; color: #526574; margin: .2rem 0; }
.transaction-value { text-align: right; max-width: 12rem; overflow-wrap: anywhere; }
.transaction-value strong { display: block; font-variant-numeric: tabular-nums; }
.exception-reason { color: #754c08; font-size: .875rem; }
.status { margin-top: .25rem; }
.review { color: #754c08; background: #fff1d6; }
summary { color: #185879; cursor: pointer; padding: .35rem 0; min-height: 44px; font-size: .875rem; }
dl { display: grid; grid-template-columns: 6.5rem 1fr; font-size: .875rem; }
dt { color: #526574; }
dd { margin: 0; overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: 1rem; font-size: .875rem; }
.pagination a { padding: .5rem 0; }
.empty { padding: 1rem 0; }
.login { max-width: 440px; margin: 2rem auto; }
.login button { width: 100%; margin-top: 1rem; }
footer { justify-content: flex-end; margin: .5rem 0 2rem; }
@media (max-width: 640px) {
  main { padding: .85rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary .amount { font-size: 1.8rem; }
  .transaction-value { max-width: 10rem; }
}
@media (max-width: 350px) {
  .transaction-head { grid-template-columns: minmax(0, 1fr); }
  .transaction-value { text-align: left; max-width: 100%; }
}

.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.reward-section > h2 { font-size: 1.2rem; }
.reward-card {
  min-width: 0; border: 1px solid #dde6e2; border-radius: 17px; background: #fff;
  padding: 17px 18px 18px; box-shadow: 0 2px 6px #183a2c08;
  break-inside: avoid;
}
.reward-card p { margin: 0; }
.reward-card h3 { font-size: 1.08rem; line-height: 1.25; }
.reward-card h4 { margin: 0; font-size: .86rem; }
.reward-card-header { display: flex; justify-content: flex-start; gap: 10px; align-items: center; margin: 0 0 13px; }
.reward-bank {
  display: grid; place-items: center; flex: 0 0 43px; min-height: 35px; border-radius: 9px;
  background: #eef1f4; color: #334951; font-size: .73rem; font-weight: 750; letter-spacing: .015em;
}
.reward-bank-citi { color: #225087; background: #edf4ff; }
.reward-bank-dbs, .reward-bank-hsbc { color: #952c36; background: #fceff0; }
.reward-bank-uob { color: #2b4a82; background: #eff2fb; }
.reward-bank-mari { color: #55552f; background: #f3f3e5; }
.reward-period { color: #4b605e; font-size: .81rem; }
.reward-card .reward-period { display: block; margin-top: 3px; }
.reward-programme + .reward-programme { border-top: 1px solid #dde6e2; margin-top: 14px; padding-top: 14px; }
.reward-card .reward-programme > h4, .reward-card .reward-programme > .reward-period { margin-bottom: 7px; }
.reward-status { border-radius: 12px; padding: 12px 13px; background: #edf3fb; --meter: #3169a0; --track: #d6e3f1; }
.reward-status[data-stage="cap"],
.reward-status[data-stage="complete"] { background: #e9f5f0; --meter: #22765b; --track: #cce5d8; }
.reward-status[data-stage="spend"] { background: #f2f5f4; }
.reward-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin: 0; }
.reward-metrics dd { font-size: clamp(1.1rem, 4.5vw, 1.55rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.reward-card .reward-stage { font-size: .77rem; color: #2b5b86; font-weight: 700; margin-bottom: 2px; }
.reward-card [data-stage="cap"] .reward-stage, .reward-card [data-stage="complete"] .reward-stage { color: #1e624e; }
.reward-card [data-stage="spend"] .reward-stage { color: #4b605e; }
.reward-lead { font-size: clamp(1.28rem, 4.7vw, 1.8rem); letter-spacing: -.035em; line-height: 1.25; font-weight: 750; }
.reward-card .reward-labels {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px;
  color: #3e5559; font-size: .81rem; margin-top: 9px;
}
.reward-status progress {
  display: block; width: 100%; height: 8px; margin-top: 6px; border: 0; border-radius: 99px;
  overflow: hidden; appearance: none; background: var(--track); color: var(--meter);
}
.reward-status progress::-webkit-progress-bar { background: var(--track); }
.reward-status progress::-webkit-progress-value { background: var(--meter); border-radius: 99px; }
.reward-status progress::-moz-progress-bar { background: var(--meter); border-radius: 99px; }
.reward-card .reward-action { margin-top: 8px; color: #344f51; font-size: .83rem; }
.reward-card .reward-merchant-status {
  border-top: 1px solid #cfdded; padding-top: 8px; margin-top: 10px; color: #334e65; font-size: .81rem;
}
.reward-card details { font-size: .83rem; margin-top: 6px; }
.reward-card summary {
  width: fit-content; min-height: 44px; color: #185f58; padding: 8px 0 6px; cursor: pointer;
  font-weight: 650; text-decoration: underline;
}
.reward-details-body { color: #344f51; border-top: 1px solid #dde6e2; padding-top: 8px; }
.reward-details-body p + p, .reward-details-body dl + p { margin-top: 7px; }
.reward-merchant-list { margin: 10px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reward-merchant-list div { padding: 6px 8px; background: #f3f6f5; border-radius: 7px; }
.reward-merchant-list dt { font-weight: 700; }
.reward-merchant-list dd { margin-inline-start: 0; color: #4b605e; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .reward-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .reward-card { padding: 14px; border-radius: 14px; }
}
@media (max-width: 400px) {
  .reward-section { padding: .65rem; }
}
