*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 400 var(--fs-md)/1.5 var(--font-body); color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  transition: background .25s var(--ease), color .25s var(--ease);
}
main { flex: 1; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 800; }
h3 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-2) 0; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.muted { color: var(--c-text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--brand-700); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.link-sm { font-size: var(--fs-sm); font-weight: 600; }


.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none !important; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font: 600 22px/1 var(--font-display); letter-spacing: .02em; }
.logo__text b { font-weight: 700; margin-left: 4px; background: var(--grad-mark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo--light { color: #fff; }
.logo--light .logo__text b { background: linear-gradient(90deg, #fff, var(--brand-cyan-soft)); -webkit-background-clip: text; background-clip: text; }


.amt { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; transition: filter .2s; }
.amt sup { font-size: .6em; vertical-align: .55em; margin-left: 1px; }
.amt.pos { color: var(--c-pos); }
.amt.neg { color: var(--c-neg); }
.amt--xl { font-size: var(--fs-3xl); letter-spacing: -.02em; }
.amt--lg { font-size: 26px; }
.amt--md { font-size: 20px; }
.hide-amounts .amt { filter: blur(7px); user-select: none; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); font: 600 15px/1 var(--font-body); border: 1.6px solid transparent; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(30, 111, 240, .3); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--secondary { background: var(--c-surface); color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--secondary:hover { border-color: var(--c-primary); background: var(--c-hover); }
.btn--tertiary { color: var(--c-primary); padding: 0 10px; height: 36px; }
.btn--tertiary:hover { background: var(--c-hover); }
.btn--danger { background: var(--c-neg); color: #fff; }
.btn--white { background: #fff; color: var(--brand-700); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background .15s; }
.icon-btn:hover { background: var(--c-hover); }
.icon-btn--ghost { color: #fff; }
.icon-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.icon-btn--more { color: var(--c-primary); }


.badge { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--c-badge); color: #fff; font: 700 11px/1 var(--font-body); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--c-surface-3); color: var(--c-text-2); }
.pill--pos { background: var(--c-pos-weak); color: var(--c-pos); }
.pill--neg { background: var(--c-neg-weak); color: var(--c-neg); }
.pill--info { background: var(--c-primary-weak); color: var(--c-primary); }
.pill--warn { background: var(--c-warn-weak); color: #9A6200; }
.ic-circle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary-weak); color: var(--c-primary); flex: none; }
.ic-circle--solid { background: var(--c-primary); color: #fff; }
.ic-circle--sm { width: 36px; height: 36px; }
.ic-circle--sm .ico { width: 18px; height: 18px; }
.ic-badge { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary-weak); color: var(--c-primary); flex: none; }
.ic-badge i { position: absolute; top: -6px; right: -6px; font: 700 11px/18px var(--font-body); font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; background: var(--c-badge); color: #fff; }
.cat-lime { color: var(--cat-lime); background: var(--cat-lime-w); } .cat-lavender { color: var(--cat-lavender); background: var(--cat-lavender-w); }
.cat-rose { color: var(--cat-rose); background: var(--cat-rose-w); } .cat-forest { color: var(--cat-forest); background: var(--cat-forest-w); }
.cat-pool { color: var(--cat-pool); background: var(--cat-pool-w); } .cat-berry { color: var(--cat-berry); background: var(--cat-berry-w); }
.cat-teal { color: var(--cat-teal); background: var(--cat-teal-w); } .cat-honey { color: var(--cat-honey); background: var(--cat-honey-w); }
.cat-stone { color: var(--cat-stone); background: var(--cat-stone-w); } .cat-indigo { color: var(--cat-indigo); background: var(--cat-indigo-w); }


.topbar { position: sticky; top: 0; z-index: 40; background: var(--grad-brand); color: #fff; }
.topbar::before { content: ""; position: absolute; inset: 0; background: rgba(4, 20, 60, .16); pointer-events: none; }
.topbar__inner { position: relative; display: flex; align-items: center; gap: var(--s-4); height: var(--nav-h); }
.topbar__logo { display: flex; margin-right: var(--s-3); }
.topbar__burger { display: none; width: auto; padding: 0 12px 0 8px; border-radius: var(--r-pill); gap: 8px; grid-auto-flow: column; font-weight: 600; font-size: 15px; }
.topbar__burger:hover { background: rgba(255, 255, 255, .14); }
.mainnav { display: flex; gap: 2px; align-items: center; }
.mainnav__item { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--r-pill); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none !important; transition: background .15s; }
.mainnav__item:hover { background: rgba(255, 255, 255, .12); }
.mainnav__item.active, .dd.open > .mainnav__item { background: rgba(4, 20, 60, .28); }
.mainnav__item .chev { width: 16px; height: 16px; transition: transform .2s; }
.dd.open .chev { transform: rotate(180deg); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.avatar { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--brand-700); font: 800 14px/1 var(--font-display); text-decoration: none !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.avatar i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; border: 2px solid #fff; }
.avatar i .ico { width: 11px; height: 11px; }
.avatar--lg { width: 52px; height: 52px; font-size: 18px; background: var(--grad-brand); color: #fff; box-shadow: none; }
.logout { display: flex; align-items: center; gap: 8px; color: #fff; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); }
.logout:hover { background: rgba(255, 255, 255, .12); }
.logout__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.logout__txt b { font-size: 15px; }
.logout__txt small { opacity: .75; font-variant-numeric: tabular-nums; }


.dd { position: relative; }
.dd__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -6px); min-width: 380px;
  background: var(--c-surface); color: var(--c-text); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: var(--s-2);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 50;
}
.dd__panel::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--c-surface); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.dd.open .dd__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd__panel--products { min-width: 520px; }
.dd__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: var(--c-text-2); font-size: 14px; }
.dd__acc, .dd__svc, .dd__foot { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-md); color: var(--c-text); text-decoration: none !important; }
.dd__acc:hover, .dd__svc:hover, .dd__foot:hover { background: var(--c-hover); }
.dd__acc-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dd__acc-txt small { color: var(--c-text-2); }
.dd__acc .amt { font-size: 17px; }
.dd__svc span:last-child, .dd__foot span:last-child { display: flex; flex-direction: column; }
.dd__svc small, .dd__foot small { color: var(--c-text-2); }
.dd__foot { border-top: 1px solid var(--c-border); border-radius: 0 0 var(--r-md) var(--r-md); margin-top: 4px; padding-top: 14px; }
.dd__foot b { color: var(--c-primary); }


.hero { position: relative; background: var(--grad-brand); color: #fff; padding: var(--s-6) 0 88px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 520px; height: 420px; opacity: .10; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M5 5h39l-6.5 10H11.5z' fill='%23fff'/%3E%3Cpath d='M13 19h26l-5.5 9H21.5L15 44z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.hero h1 { font-size: 26px; }
.hero__sub { opacity: .85; margin-top: 4px; }
.hero--title { padding: var(--s-5) 0 var(--s-5); text-align: center; }
.hero--title h1 { font-size: 26px; }
.hero--title::after { display: none; }
.todo-tile { display: flex; align-items: center; gap: 12px; max-width: 320px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(4, 20, 60, .22); color: #fff; font-size: 14px; line-height: 1.35; text-decoration: none !important; backdrop-filter: blur(6px); transition: background .15s; }
.todo-tile:hover { background: rgba(4, 20, 60, .32); }
.todo-tile .ic-badge { background: rgba(255, 255, 255, .15); color: #fff; }


.hero__worth { margin-left: auto; text-align: right; }
.hero__worth small { opacity: .8; font-size: 13px; display: block; }
.hero__worth .amt { color: #fff; font-size: 32px; }


.searchbar { position: relative; z-index: 2; margin-top: -56px; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.searchbar__field { flex: 1; display: flex; align-items: stretch; height: 44px; border: 1.6px solid var(--c-border-strong); border-radius: var(--r-pill); overflow: hidden; background: var(--c-surface); }
.searchbar__field:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-focus); }
.searchbar__field input { flex: 1; border: 0; background: transparent; padding: 0 18px; font: inherit; color: var(--c-text); min-width: 0; outline: none; }
.searchbar__field button { padding: 0 16px; font-weight: 600; color: var(--c-primary); border-left: 1.6px solid var(--c-border); font-size: 15px; }
.searchbar__field button:hover { background: var(--c-hover); }
.searchbar__field .searchbar__go { background: var(--c-primary); color: #fff; border: 0; padding: 0 20px; }
.searchbar__field .searchbar__go:hover { background: var(--c-primary-hover); }
.searchbar__mobile { display: none; }
.seg { display: inline-flex; border: 1.6px solid var(--c-border-strong); border-radius: var(--r-pill); padding: 2px; }
.seg button { display: grid; place-items: center; height: 36px; min-width: 40px; padding: 0 12px; border-radius: var(--r-pill); color: var(--c-primary); font-weight: 600; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--c-primary); color: #fff; }


.section { margin-top: var(--s-6); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.section__head h2 { font-size: 22px; }
.total { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 var(--s-4); color: var(--c-text-2); font-size: 14px; }
.total .amt { color: var(--c-text); font-size: 15px; font-weight: 600; }
.divider { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0 0; }


.spotlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.spot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4); background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); color: var(--c-text); text-decoration: none !important; transition: transform .15s var(--ease), box-shadow .15s; }
.spot:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.spot small { color: var(--c-text-2); font-size: 13px; }
.spot .amt { display: block; font-size: 20px; color: var(--c-text); margin: 2px 0; }
.spot__link { font-size: 12px; color: var(--c-primary); font-weight: 600; }


.products { display: flex; flex-direction: column; gap: var(--s-3); }
.product {
  position: relative; display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; overflow: hidden;
}
.product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-mark); }
.product:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.product__main { min-width: 0; }
.product__name { font-weight: 700; font-size: 16px; color: var(--c-text); text-decoration: none !important; }
.product__name::after { content: ""; position: absolute; inset: 0; }
.product__meta { color: var(--c-text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product__amount { text-align: right; }
.product__amount .amt { font-size: 22px; }
.product__amount small { display: block; color: var(--c-text-2); font-size: 13px; }
.product .btn, .product .icon-btn { position: relative; z-index: 1; }


.products--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.products--cards .product { grid-template-columns: 1fr auto; grid-template-areas: "icon more" "main main" "amount amount" "action action"; padding: var(--s-5); gap: var(--s-3); min-height: 220px; }
.products--cards .product::before { width: auto; height: 5px; right: 0; bottom: auto; }
.products--cards .product > .ic-circle { grid-area: icon; }
.products--cards .product__main { grid-area: main; }
.products--cards .product__amount { grid-area: amount; text-align: left; }
.products--cards .product__amount .amt { font-size: 28px; }
.products--cards .product > .btn { grid-area: action; justify-self: start; }
.products--cards .product > .icon-btn { grid-area: more; }
.products--cards .product--credit { background: linear-gradient(135deg, #0B1F3A, #1B3F7A); color: #fff; }
.products--cards .product--credit .product__name, .products--cards .product--credit .amt { color: #fff; }
.products--cards .product--credit .product__meta, .products--cards .product--credit .product__amount small { color: rgba(255, 255, 255, .7); }
.products--cards .product--credit .ic-circle { background: rgba(255, 255, 255, .15); color: #fff; }
.products--cards .product--credit .icon-btn { color: #fff; }


.skeleton { height: 76px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--c-surface) 25%, var(--c-surface-2) 50%, var(--c-surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; box-shadow: var(--shadow-1); }
@keyframes sk { to { background-position: -200% 0; } }


.card { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s-5); }
.card + .card { margin-top: var(--s-4); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.card__head h2 { font-size: 18px; }


.layout-side > * { min-width: 0; }
.layout-side { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-5); margin-top: var(--s-5); align-items: start; }
.side { position: sticky; top: calc(var(--nav-h) + 16px); }
.sidenav { display: flex; flex-direction: column; gap: 2px; padding: var(--s-2); background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.sidenav a, .sidenav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); color: var(--c-text); font-size: 15px; text-align: left; text-decoration: none !important; }
.sidenav a:hover, .sidenav button:hover { background: var(--c-hover); }
.sidenav a.active { background: var(--c-primary-weak); font-weight: 700; color: var(--c-primary); }
.sidenav .ico { width: 18px; height: 18px; color: var(--c-text-2); }
.sidenav a.active .ico { color: var(--c-primary); }
.acc-card { position: relative; padding: var(--s-5); border-radius: var(--r-lg); background: var(--grad-brand); color: #fff; margin-bottom: var(--s-3); overflow: hidden; box-shadow: var(--shadow-2); }
.acc-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; opacity: .12; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M5 5h39l-6.5 10H11.5z' fill='%23fff'/%3E%3Cpath d='M13 19h26l-5.5 9H21.5L15 44z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain; }
.acc-card small { opacity: .8; display: block; }
.acc-card b { font-size: 17px; display: block; margin: 2px 0 10px; }
.acc-card .amt { color: #fff; font-size: 28px; display: block; margin: 10px 0 4px; }
.acc-card__iban { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: var(--r-pill); color: #fff; }
.acc-card__iban .ico { width: 14px; height: 14px; }
@media (min-width: 861px) { .acc-switch { display: none !important; } }
.acc-switch { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); overflow-x: auto; scrollbar-width: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); padding-bottom: var(--s-5); color: #fff; }
.page-head h1 { font-size: 26px; }


.toolbar { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.toolbar .searchbar__field { min-width: 220px; }
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1.6px solid var(--c-border); background: var(--c-surface); font-size: 14px; font-weight: 600; color: var(--c-text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }


.banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-primary-weak); color: var(--c-text); margin-bottom: var(--s-4); font-size: 14px; }
.banner .ico { color: var(--c-primary); }
.banner .amt { margin-left: auto; font-size: 16px; }
.banner--warn { background: var(--c-warn-weak); }
.banner--warn .ico { color: #B7791F; }


.tx-month { margin-bottom: var(--s-5); }
.tx-month__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px var(--s-2); }
.tx-month__head h3 { font-size: 15px; color: var(--c-text-2); font-weight: 700; text-transform: capitalize; }
.tx-month__head .amt { font-size: 14px; }
.tx-list { background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.tx { border-bottom: 1px solid var(--c-border); }
.tx:last-child { border-bottom: 0; }
.tx__row { width: 100%; display: grid; grid-template-columns: 64px 40px 1fr auto 24px; align-items: center; gap: var(--s-3); padding: 12px var(--s-4); text-align: left; transition: background .12s; }
.tx__row:hover { background: var(--c-hover); }
.tx__date { font-size: 13px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.tx__txt { min-width: 0; }
.tx__txt b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx__txt span { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--c-text-2); white-space: nowrap; overflow: hidden; }
.tx__row .amt { font-size: 16px; }
.tx__row .chev { width: 18px; height: 18px; color: var(--c-text-3); transition: transform .2s; }
.tx.open .tx__row .chev { transform: rotate(180deg); }
.tx__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.tx.open .tx__detail { grid-template-rows: 1fr; }
.tx__detail > div { overflow: hidden; }
.tx__detail-inner { margin: 0 var(--s-4) var(--s-4) calc(64px + 40px + var(--s-4) * 2); padding: var(--s-4); background: var(--c-surface-2); border-radius: var(--r-md); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3) var(--s-5); font-size: 14px; }
.tx__detail-inner dt { color: var(--c-text-2); font-size: 12px; }
.tx__detail-inner dd { margin: 0; font-weight: 600; word-break: break-word; }
.tx__actions { grid-column: 1 / -1; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.empty { text-align: center; padding: var(--s-7) var(--s-4); color: var(--c-text-2); }
.empty .ico { width: 40px; height: 40px; color: var(--c-text-3); margin-bottom: var(--s-2); }


.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-5); }
.field > label, .field__label { font-weight: 700; font-size: 15px; }
.field > label small, .field__label small { font-weight: 400; color: var(--c-text-2); margin-left: 4px; }
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 14px; border: 1.6px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface);
  font: inherit; color: var(--c-text); transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: auto; min-height: 48px; padding: 12px 14px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--c-primary); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-focus); }
.input::placeholder { color: var(--c-text-3); }
.field__hint { font-size: 13px; color: var(--c-text-2); }
.field__error { display: none; font-size: 13px; color: var(--c-neg); font-weight: 600; align-items: center; gap: 6px; }
.field__error .ico { width: 16px; height: 16px; }
.field.invalid .input, .field.invalid .amount-input { border-color: var(--c-neg); }
.field.invalid .field__error { display: flex; }
.field.valid .input { border-color: var(--c-pos); }
.input-group { display: flex; position: relative; }
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group__btn { width: 52px; display: grid; place-items: center; border: 1.6px solid var(--c-border-strong); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--c-primary); background: var(--c-surface); }
.input-group__btn:hover { background: var(--c-hover); }
.amount-input { border: 1.6px solid var(--c-border-strong); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface); transition: border-color .15s, box-shadow .15s; }
.amount-input:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-focus); }
.amount-input__top { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.amount-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 800 44px/1.1 var(--font-display); color: var(--c-text); letter-spacing: -.02em; }
.amount-input input::placeholder { color: var(--c-text-3); }
.currency { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1.6px solid var(--c-border-strong); border-radius: var(--r-md); font-weight: 700; color: var(--c-primary); }
.currency .flag { width: 22px; height: 16px; border-radius: 3px; background: #003399; display: grid; place-items: center; color: #FFCC00; font-size: 9px; }
.amount-input__foot { display: flex; justify-content: space-between; gap: var(--s-2); padding: 10px var(--s-4); background: var(--c-surface-2); font-size: 14px; color: var(--c-text-2); }
.amount-input__foot .amt { font-size: 14px; }
.quick-amounts { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--c-border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--c-primary); }
.switch:checked::after { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }


.popmenu { position: absolute; z-index: 80; min-width: 240px; background: var(--c-surface); color: var(--c-text); border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 6px; animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.popmenu__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 15px; text-align: left; }
.popmenu__item:hover, .popmenu__item:focus-visible { background: var(--c-hover); outline: none; }
.popmenu__item .ico { color: var(--c-primary); width: 18px; height: 18px; }
.popmenu__item.danger, .popmenu__item.danger .ico { color: var(--c-neg); }
.popmenu hr { margin: 4px 0; }
.popmenu--sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-3) var(--s-3) calc(var(--s-4) + env(safe-area-inset-bottom)); animation: sheet .25s var(--ease); }
.popmenu--sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--c-border-strong); margin: 0 auto var(--s-3); }
.popmenu--sheet .popmenu__item { padding: 14px 12px; font-size: 16px; }
.popmenu-backdrop { position: fixed; inset: 0; background: var(--c-overlay); z-index: 79; animation: fade .2s; }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }


.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s-4); }
.modal__backdrop { position: absolute; inset: 0; background: var(--c-overlay); opacity: 0; transition: opacity .2s; }
.modal__dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s, transform .25s var(--ease); }
.modal__dialog.sm { max-width: 420px; }
.modal__dialog.lg { max-width: 720px; }
.modal.open .modal__backdrop { opacity: 1; }
.modal.open .modal__dialog { opacity: 1; transform: none; }
.modal.closing .modal__backdrop, .modal.closing .modal__dialog { opacity: 0; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-4) var(--s-2) var(--s-5); }
.modal__head h2 { font-size: 20px; }
.modal__body { padding: var(--s-2) var(--s-5) var(--s-5); overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--c-border); }
.list-select { display: flex; flex-direction: column; gap: 2px; }
.list-select button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); text-align: left; }
.list-select button:hover { background: var(--c-hover); }
.list-select small { display: block; color: var(--c-text-2); font-variant-numeric: tabular-nums; }


.toasts { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); background: #0B1F3A; color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); animation: toast .3s var(--ease); transition: opacity .3s, transform .3s; }
.toast .ico { color: var(--brand-cyan); width: 18px; height: 18px; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }


.help { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.help__fab { width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(30, 111, 240, .45); transition: transform .2s var(--ease); }
.help__fab:hover { transform: scale(1.06); }
.help__fab .ico { width: 26px; height: 26px; }
.help__panel { position: absolute; right: 0; bottom: 72px; width: 300px; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s var(--ease); padding-bottom: var(--s-3); }
.help.open .help__panel { opacity: 1; visibility: visible; transform: none; }
.help__top { background: var(--grad-brand); color: #fff; padding: var(--s-4) var(--s-4) 40px; }
.help__top b { font: 700 18px var(--font-display); }
.help__top p { font-size: 14px; opacity: .9; margin-top: 2px; }
.help__opt { display: flex; align-items: center; gap: 12px; margin: 0 var(--s-3) var(--s-2); padding: 14px 16px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: var(--shadow-2); color: var(--c-text); font-weight: 600; text-decoration: none !important; }
.help__opt:first-of-type { margin-top: -28px; }
.help__opt:hover { background: var(--c-surface-2); }
.help__opt .ico { color: var(--c-text-2); }
.help__opt small { margin-left: auto; color: var(--c-text-2); font-weight: 400; }
.help__opt .pill { margin-left: auto; }


.footer { margin-top: var(--s-8); background: var(--grad-brand); color: #fff; padding: var(--s-4) 0; }
.footer__inner { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.footer .logo__mark { width: 26px; height: 26px; }
.footer .logo__text { font-size: 17px; }
.footer ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer a { color: #fff; font-size: 13px; }
.footer small { margin-left: auto; opacity: .7; }


.drawer { position: fixed; inset: 0; z-index: 85; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: var(--c-overlay); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: var(--c-surface); padding: var(--s-4); overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 2px; }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.drawer__user { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); margin-bottom: var(--s-3); }
.drawer__user small { display: block; color: var(--c-text-2); }
.drawer__link, .drawer__group summary { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r-md); color: var(--c-text); font-weight: 600; text-decoration: none !important; cursor: pointer; list-style: none; width: 100%; text-align: left; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__link:hover, .drawer__group summary:hover { background: var(--c-hover); }
.drawer__link .ico, .drawer__group summary .ico { color: var(--c-primary); }
.drawer__group summary .chev { margin-left: auto; color: var(--c-text-3); transition: transform .2s; }
.drawer__group[open] summary .chev { transform: rotate(180deg); }
.drawer__group a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 46px; color: var(--c-text); font-size: 15px; border-radius: var(--r-sm); text-decoration: none !important; }
.drawer__group a:hover { background: var(--c-hover); }
.drawer__group a .amt { font-size: 14px; }
.switch-row .switch { margin-left: auto; }
.drawer__logout { margin-top: auto; color: var(--c-neg); }
.drawer__logout .ico { color: var(--c-neg) !important; }
.tabbar { display: none; }


.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.kv { display: flex; justify-content: space-between; gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--c-border); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--c-text-2); }
.kv b { text-align: right; }
.row-link { display: flex; align-items: center; gap: var(--s-3); padding: 14px 4px; border-bottom: 1px solid var(--c-border); color: var(--c-text); text-decoration: none !important; }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--c-hover); }
.row-link > .ico:last-child { margin-left: auto; color: var(--c-text-3); }
.row-link small { display: block; color: var(--c-text-2); }
.stack { display: flex; flex-direction: column; }
.spin { width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


@media (max-width: 1080px) {
  .mainnav, .logout__txt small { display: none; }
  .topbar__burger { display: inline-grid; }
  .topbar__logo { margin: 0 auto; position: absolute; left: 50%; transform: translateX(-50%); }
  .layout-side { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .layout-side { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; overflow-x: auto; gap: var(--s-2); scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-4) 4px; background: none; box-shadow: none; border-radius: 0; }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a, .sidenav button { flex: none; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-surface); font-size: 14px; box-shadow: var(--shadow-1); }
  .sidenav .ico { display: none; }
  .sidenav a.active { background: var(--c-primary); color: #fff; }
  .side { position: static; min-width: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .container { padding: 0 var(--s-4); }
  .hide-sm { display: none !important; }
  .topbar__burger span { display: none; }
  .topbar__burger { padding: 0; width: 40px; }
  .logout { padding: 8px; }
  .logout__txt { display: none; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__text { font-size: 19px; }
  .hero { padding: var(--s-5) 0 80px; text-align: center; }
  .hero__inner { flex-direction: column; gap: var(--s-4); }
  .hero__worth { margin: 0; text-align: center; }
  .hero::after { width: 300px; right: -120px; }
  .todo-tile { max-width: none; width: 100%; text-align: left; }
  .searchbar { flex-wrap: wrap; margin-top: -52px; }
  .searchbar > .searchbar__field { display: none; }
  .searchbar__mobile { display: flex; flex: 1 1 100%; height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1.6px solid var(--c-border-strong); border-radius: var(--r-pill); color: var(--c-primary); font-weight: 600; }
  .searchbar .btn--tertiary span { display: none; }
  .searchbar .spacer { flex: 1; }
  .section { margin-top: var(--s-5); }
  .section__head h2 { font-size: 20px; }
  .product { grid-template-columns: 1fr auto; grid-template-areas: "main more" "amount more"; gap: 2px var(--s-2); padding: var(--s-4) var(--s-3) var(--s-4) var(--s-5); }
  .product > .ic-circle, .product > .btn { display: none; }
  .product__main { grid-area: main; }
  .product__meta { display: none; }
  .product__amount { grid-area: amount; text-align: left; }
  .product__amount .amt { font-size: 22px; }
  .product > .icon-btn { grid-area: more; }
  .products--cards { grid-template-columns: 1fr; }
  .products--cards .product { min-height: 0; }
  .products--cards .product__meta { display: block; }
  .tx__row { grid-template-columns: 40px 1fr auto; padding: 12px var(--s-3); }
  .tx__date, .tx__row .chev { display: none; }
  .tx__txt span .tx__d { display: inline; }
  .tx__detail-inner { margin: 0 var(--s-3) var(--s-3); grid-template-columns: 1fr 1fr; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: var(--s-4); }
  .modal { place-items: end stretch; padding: 0; }
  .modal__dialog, .modal__dialog.sm, .modal__dialog.lg { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); max-height: 92vh; }
  .modal.open .modal__dialog { transform: none; }
  .modal__foot { padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1; }
  .help { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .help__fab { width: 48px; height: 48px; }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer { margin-top: var(--s-6); }
  .footer small { margin-left: 0; }
  .page-head { padding-top: var(--s-4); padding-bottom: var(--s-4); }
  .toolbar { flex-wrap: nowrap; }
  .toolbar .searchbar__field { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-4); }
  .chips::-webkit-scrollbar { display: none; }
  .page-head h1 { font-size: 22px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-surface) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--c-border);
  }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--c-text-2); font-size: 11px; font-weight: 600; text-decoration: none !important; }
  .tabbar__item .ico { width: 24px; height: 24px; }
  .tabbar__item.active { color: var(--c-primary); }
  .tabbar__send { justify-self: center; width: 56px; height: 56px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(30, 111, 240, .45); border: 4px solid var(--c-bg); }
  .tabbar__send .ico { width: 24px; height: 24px; transform: translate(-1px, 1px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .topbar, .tabbar, .help, .footer, .searchbar { display: none !important; } body { background: #fff; } }
