/* Super24 Expense Manager: presentation only, scoped to .s24ex */
.s24ex{--s24navy:#0d2149;--s24blue:#2563eb;--s24teal:#0f9b8e;--s24ink:#172747;--s24muted:#62738f;color:var(--s24ink);font-family:inherit}
.s24ex *{box-sizing:border-box}
.s24ex .s24ex-head{background:linear-gradient(120deg,#0a1b3c,#123e83);border-radius:22px;padding:clamp(20px,4vw,34px);color:#fff;box-shadow:0 14px 34px #123e8324}
.s24ex .s24ex-head h2,.s24ex .s24ex-head p,.s24ex .s24ex-head small{color:#fff}
.s24ex .s24ex-head small{letter-spacing:.13em;color:#a7d5ff;font-weight:800}
.s24ex .s24ex-private{background:#ffffff1c;border:1px solid #ffffff40;border-radius:100px;padding:8px 12px;color:#fff}
.s24ex .s24ex-controls{gap:12px;align-items:end;flex-wrap:wrap}
.s24ex button{border-radius:12px!important;font-weight:700;transition:transform .15s ease,filter .15s ease;cursor:pointer}
.s24ex button:hover{filter:brightness(1.07)}
.s24ex button:active{transform:translateY(1px)}
.s24ex button:focus-visible,.s24ex input:focus-visible,.s24ex select:focus-visible{outline:3px solid #6eb9ff;outline-offset:2px}
.s24ex #s24ex-add,.s24ex #s24ex-budget-save,.s24ex #s24ex-rate-save,.s24ex .s24ex-form button[type=submit]{background:linear-gradient(120deg,#2563eb,#1744bc)!important;color:white!important;border:0!important;box-shadow:0 6px 16px #2563eb2e}
.s24ex .s24ex-budget{background:linear-gradient(125deg,#0e2148,#234783)!important;color:#fff!important;border:1px solid #4268a0!important;border-radius:22px!important;box-shadow:0 12px 28px #152d6026}
.s24ex .s24ex-budget small,.s24ex .s24ex-budget strong,.s24ex .s24ex-budget span{color:#fff!important}
.s24ex .s24ex-progress{background:#ffffff30!important;border-radius:99px;overflow:hidden}
.s24ex .s24ex-progress i{background:linear-gradient(90deg,#34d399,#60a5fa)!important}
.s24ex .s24ex-cards{gap:12px!important}
.s24ex .s24ex-cards>div{border-radius:18px!important;border:1px solid #d7e6ff!important;box-shadow:0 6px 20px #16366a0d!important;padding:18px!important;min-width:0}
.s24ex .s24ex-cards>div:nth-child(1){background:linear-gradient(135deg,#eaf5ff,#f6fbff)!important;border-top:4px solid #2d7dd2!important}
.s24ex .s24ex-cards>div:nth-child(2){background:linear-gradient(135deg,#e9fdf6,#f8fffd)!important;border-top:4px solid #0eaa82!important}
.s24ex .s24ex-cards>div:nth-child(3){background:linear-gradient(135deg,#f1edff,#fbfaff)!important;border-top:4px solid #8064dd!important}
.s24ex .s24ex-cards>div:nth-child(4){background:linear-gradient(135deg,#fff3e8,#fffcf7)!important;border-top:4px solid #e89534!important}
.s24ex .s24ex-cards strong{font-size:clamp(18px,3vw,27px);overflow-wrap:anywhere;color:#13284b!important}
.s24ex .s24ex-cards small{font-weight:700;color:#526482!important}
.s24ex .s24ex-panel{border:1px solid #dbe7f6!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 8px 26px #183c690d;padding:clamp(16px,3vw,26px)!important}
.s24ex .s24ex-panel h3{color:#122951!important;letter-spacing:-.02em}
.s24ex .s24ex-rate{background:linear-gradient(135deg,#f0f7ff,#f8fcff)!important}
.s24ex input,.s24ex select,.s24ex textarea{border:1px solid #cbdaf0!important;border-radius:10px!important;max-width:100%;background:#fff;color:#172747}
.s24ex #s24ex-categories>*,.s24ex #s24ex-members>*,.s24ex #s24ex-history>*{border-radius:12px}
.s24ex .s24ex-dialog:not([hidden]){z-index:99999}
.s24ex .s24ex-form{border-radius:20px!important;box-shadow:0 20px 70px #07193650!important}
@media(max-width:600px){.s24ex .s24ex-head{padding:20px!important}.s24ex .s24ex-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.s24ex .s24ex-cards>div{padding:14px!important}.s24ex .s24ex-controls button{min-height:44px}.s24ex .s24ex-panel{padding:16px!important}}
@media(max-width:360px){.s24ex .s24ex-cards{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.s24ex button{transition:none}}

/* v1.1: Accessible contrast for all four summary cards. */
.s24ex .s24ex-cards > div {color:#172747!important;opacity:1!important}
.s24ex .s24ex-cards > div :is(p,small,span,div,em,b,strong){opacity:1!important;visibility:visible!important;text-shadow:none!important}
.s24ex .s24ex-cards > div :is(p,small,span,div,em){color:#405371!important}
.s24ex .s24ex-cards > div strong,.s24ex .s24ex-cards > div b{color:#122747!important}
.s24ex .s24ex-cards > div :is(.positive,.increase-good,.down,.s24ex-good,.s24ex-positive){color:#047857!important}
.s24ex .s24ex-cards > div :is(.negative,.increase-bad,.up,.s24ex-bad,.s24ex-negative){color:#b91c1c!important}
.s24ex .s24ex-cards > div small{font-size:12px!important;line-height:1.55!important;font-weight:650!important}

/* v1.2: Strong, accessible day/month/year comparison indicators. */
.s24ex .s24ex-cards .s24ex-compare{display:block!important;font-size:13px!important;line-height:1.5!important;font-weight:800!important;letter-spacing:.005em;opacity:1!important;color:#334155!important}
.s24ex .s24ex-cards .s24ex-compare.s24ex-down{color:#047857!important;font-weight:850!important}
.s24ex .s24ex-cards .s24ex-compare.s24ex-up{color:#b91c1c!important;font-weight:850!important}
.s24ex .s24ex-cards #s24ex-day-compare{font-size:14px!important}
