:root {
  color-scheme: light;
  --ink: #19182b;
  --muted: #68677d;
  --subtle: #76758a;
  --line: #eae9f1;
  --accent: #5b40df;
  --accent-hover: #4a31c5;
  --surface: #fff;
  --bg: #f6f6fb;
  --sidebar: #17152b;
  --good: #157856;
  --warn: #976014;
  --danger: #b23c58;
  --radius: 17px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 450; }
button,input,select,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid #8b6cff; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
i[data-icon] { display: inline-grid; flex: none; place-items: center; width: 19px; height: 19px; font-style: normal; }
i[data-icon] svg { width: 100%; height: 100%; display: block; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 16px 15px; background: var(--sidebar); color: #d0cce3; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; width: fit-content; color: white; font-weight: 780; font-size: 23px; letter-spacing: -.85px; line-height: 1.05; }
.brand small { display: block; color: #a5a1bf; font-size: 8px; font-weight: 650; letter-spacing: .105em; margin-top: 6px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg,#937cff,#694af3 70%); box-shadow: 0 3px 13px #7354ec55,inset 0 1px 1px #fff6; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 34px; border-radius: 11px; background: #211f38; border: 1px solid #302d49; }
.workspace-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #40346c; color: #ded3ff; font-weight: 750; font-size: 15px; }
.workspace strong,.workspace span { display: block; }
.workspace strong { color: #f6f3ff; font-size: 12.5px; }
.workspace span { margin-top: 3px; color: #aaa5c4; font-size: 10.5px; }
.nav-label { margin: 32px 0 10px 10px; color: #9d97b7; font-size: 9.5px; font-weight: 690; letter-spacing: .085em; }
.nav-label.second { margin-top: 25px; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; gap: 11px; align-items: center; padding: 11px 10px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; color: #d2cee3; min-height: 42px; }
.nav i { color: #a9a3c3; width: 17px; height: 17px; }
.nav a:hover,.profile:hover { background: #25213d; }
.nav a[aria-current="page"] { background: #322757; color: #f1ebff; border-color: #43336e; font-weight: 650; }
.nav a[aria-current="page"] i { color: #c9b9ff; }
.nav-count { margin-left: auto; padding: 2px 6px; background: #393056; color: #e1d6ff; font-size: 10px; border-radius: 6px; font-weight: 700; }
.sidebar-end { margin-top: auto; }
.preview-label { display: flex; align-items: center; gap: 8px; color: #b9b1d7; padding: 11px 10px 15px; font-size: 11px; }
.preview-label i { width: 15px; height: 15px; color: #a693ed; }
.profile { border: 0; border-top: 1px solid #312d49; background: transparent; width: 100%; color: #d0cce3; display: flex; align-items: center; padding: 14px 8px 5px; text-align: left; gap: 10px; border-radius: 0 0 9px 9px; }
.avatar { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #eae3ff; color: #5435bf; font-weight: 750; font-size: 11px; border: 0; }
.profile .avatar { background: #46366f; color: #e6dbff; }
.profile-copy { flex: 1; }
.profile-copy strong,.profile-copy small { display: block; }
.profile-copy strong { color: white; font-size: 12px; }
.profile-copy small { margin-top: 3px; color: #a9a2c0; font-size: 11px; }
.profile > i { width: 16px; }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 65px; padding: 0 32px; background: white; border-bottom: 1px solid var(--line); }
.breadcrumb,.header-actions { display: flex; align-items: center; gap: 14px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: #25233b; font-weight: 650; }
.breadcrumb i { width: 13px; height: 13px; color: #8f8ba3; }
.header-actions { gap: 14px; }
.top-help { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.top-help i { width: 16px; height: 16px; }
.top-help:hover { color: var(--accent); }
.icon-button { display: inline-grid; position: relative; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid #ebe9f2; background: white; color: #55536e; border-radius: 9px; }
.icon-button:hover { background: #f6f3ff; color: var(--accent-hover); border-color: #ddd4fb; }
.icon-button i { width: 16px; height: 16px; }
.bell span { position: absolute; width: 7px; height: 7px; background: #805ff2; border: 1px solid white; border-radius: 50%; top: 6px; right: 6px; }
.menu-toggle { display: none; }
.content { max-width: 1560px; padding: 28px 32px 35px; margin: 0 auto; }
.hero { min-height: 200px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; background: linear-gradient(108deg,#20194d 0%,#302267 53%,#5637ab 100%); border-radius: 20px; color: white; box-shadow: 0 10px 26px -19px #3e258aaa; }
.hero-copy { position: relative; z-index: 1; padding: 24px 29px; max-width: 690px; }
.meta-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; margin-bottom: 10px; background: #ffffff15; border: 1px solid #fff3; border-radius: 6px; color: #f0eaff; font-weight: 640; font-size: 10.5px; }
.meta-tag i { width: 15px; height: 12px; }
.hero h1 { font-size: clamp(25px,3vw,39px); font-weight: 740; letter-spacing: -.048em; line-height: 1.12; }
.hero p { color: #e0d9f8; font-size: 13px; line-height: 1.55; margin: 8px 0 17px; max-width: 470px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; font-size: 12.5px; font-weight: 660; white-space: nowrap; }
.button i { width: 16px; height: 16px; }
.button.primary { background: var(--accent); color: white; box-shadow: 0 2px 4px #422ac221; }
.button.primary:hover { background: var(--accent-hover); }
.button.light { background: #efe9ff; color: #2f2064; }
.button.light:hover { background: white; }
.button.ghost { border-color: #ffffff57; background: #ffffff0b; color: #f9f5ff; }
.button.ghost:hover { background: #ffffff25; }
.button.outline { border-color: #e7e2f3; background: white; color: #45405e; }
.button.outline:hover { border-color: #cfc1ff; color: var(--accent-hover); background: #fbfaff; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 17px 0 20px; }
.metric,.card { border: 1px solid #e9e7f1; border-radius: var(--radius); background: white; box-shadow: 0 3px 8px #25215104; min-width: 0; }
.metric { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: start; gap: 12px; padding: 15px 16px; }
.metric-icon,.activity-icon,.account-icon { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 10px; color: #5e40d5; background: #eee8ff; }
.metric-icon i { width: 18px; height: 18px; }
.metric-icon.green { background: #e3f6ee; color: #13805b; }
.metric-icon.gold { background: #fff0d9; color: #a66a13; }
.metric-label { font-size: 12px; color: #615f76; font-weight: 620; }
.metric-number { display: block; font-size: 26px; line-height: 1.1; font-weight: 745; letter-spacing: -.047em; margin: 4px 0 4px; font-variant-numeric: tabular-nums; }
.metric p { color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,2.22fr) minmax(265px,1fr); gap: 16px; align-items: start; }
.card { overflow: hidden; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 18px 13px; }
.card-heading h2 { font-size: 17px; letter-spacing: -.022em; font-weight: 730; line-height: 1.25; }
.card-heading p { color: var(--muted); margin-top: 4px; font-size: 11.5px; line-height: 1.4; }
.text-button { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-hover); font-size: 11.5px; white-space: nowrap; font-weight: 680; }
.text-button i { width: 13px; height: 13px; }
.text-button:hover { text-decoration: underline; }
.card-heading .text-button { margin-top: 4px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f8f7fb; color: #605e76; }
th { font-size: 10.5px; font-weight: 680; white-space: nowrap; }
th,td { padding: 11px 8px; }
th:first-child,td:first-child { padding-left: 18px; }
th:last-child,td:last-child { padding-right: 18px; }
tbody tr+tr { border-top: 1px solid #efedf5; }
tbody tr:hover { background: #fcfbff; }
td { font-size: 12px; }
.account-link { display: flex; align-items: center; gap: 9px; width: fit-content; text-align: left; padding: 0; border: 0; background: none; color: var(--ink); }
.account-link:hover strong { color: var(--accent-hover); }
.account-icon { width: 31px; height: 31px; background: #ecefff; color: #315ad6; border-radius: 8px; }
.account-icon i { width: 15px; height: 15px; }
.account-link strong,.account-link small { display: block; white-space: nowrap; }
.account-link strong { font-size: 12px; font-weight: 690; }
.account-link small { font-size: 10px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 4px 6px; font-size: 10px; font-weight: 660; line-height: 1.2; white-space: nowrap; background: #f0eff5; color: #5e5a74; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.status.good { background: #e5f6ed; color: var(--good); }
.status.warn { background: #fff2d9; color: var(--warn); }
.status.bad { background: #fcecf0; color: var(--danger); }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.open-account { width: 28px; height: 28px; }
.open-account i { width: 13px; height: 13px; }
.row-action { text-align: right; }
.table-note { padding: 10px 18px 11px; color: var(--muted); border-top: 1px solid #efedf5; font-size: 10.5px; }
.activity-list { margin: 0; padding: 0 16px; list-style: none; }
.activity-list li+li { border-top: 1px solid #efedf5; }
.activity-link { display: flex; width: 100%; text-align: left; padding: 12px 0; gap: 9px; align-items: center; border: 0; background: transparent; color: var(--ink); }
.activity-link:hover strong { color: var(--accent-hover); }
.activity-icon { width: 32px; height: 32px; border-radius: 8px; }
.activity-icon i { width: 16px; height: 16px; }
.activity-icon.payment { color: #1b7a5b; background: #e7f6ed; }
.activity-icon.waiting { color: #966016; background: #fff1dc; }
.activity-info { flex: 1; min-width: 0; }
.activity-info strong,.activity-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-info strong { font-size: 11.5px; font-weight: 675; }
.activity-info small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.activity-value { font-size: 11px; white-space: nowrap; align-self: start; margin-top: 2px; }
.activity-link>.status { align-self: start; }
.activity-footer { display: flex; justify-content: space-between; padding: 12px 16px; gap: 10px; border-top: 1px solid #efedf5; }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 15px; margin: 5px 0 22px; }
.page-head h1 { font-size: 34px; letter-spacing: -.045em; line-height: 1.15; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 7px; line-height: 1.5; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
.search { display: flex; gap: 8px; align-items: center; width: min(100%,280px); color: #77738d; border: 1px solid #e8e4f2; padding: 0 10px; border-radius: 9px; }
.search:focus-within { outline: 2px solid #8b6cff; outline-offset: 2px; }
.search i { width: 16px; height: 16px; }
.search input { border: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; height: 38px; outline: none; }
.search input:focus-visible { outline: none; }
.toolbar select { min-height: 40px; color: #4b4862; background: white; border: 1px solid #e8e4f2; border-radius: 9px; padding: 0 8px; max-width: 100%; }
.record-title { border: none; background: none; padding: 0; text-align: left; color: var(--ink); font-weight: 670; }
.record-title:hover { color: var(--accent-hover); }
.record-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.record-table td { height: 58px; }
.record-table td:nth-child(2) { color: var(--muted); }
.empty { text-align: center; padding: 33px 18px; color: var(--muted); }
dialog { width: min(465px,calc(100% - 28px)); max-height: calc(100dvh - 26px); padding: 0; color: var(--ink); border: 1px solid #e6e1f3; border-radius: 20px; box-shadow: 0 22px 85px #19103b4d; }
dialog::backdrop { background: #19152e75; backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 20px 15px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 21px; letter-spacing: -.03em; line-height: 1.2; }
.dialog-head p { color: var(--muted); margin-top: 5px; line-height: 1.45; font-size: 12.5px; }
.dialog-body { padding: 18px 20px 20px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 6px; font-weight: 650; color: #39354f; font-size: 12px; }
.form input,.form select,.form textarea { width: 100%; border: 1px solid #e6e2f0; border-radius: 8px; background: #fff; min-height: 41px; padding: 9px 10px; color: var(--ink); }
.form textarea { resize: vertical; min-height: 86px; }
.form label small,.form-note { color: var(--muted); font-size: 11px; font-weight: 450; }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.detail { margin: 0 0 15px; display: grid; gap: 0; }
.detail div { display: flex; justify-content: space-between; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.detail div:first-child { padding-top: 0; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 650; }
.detail dd button { vertical-align: middle; margin-left: 5px; width: 26px; height: 26px; }
.detail dd button i { width: 13px; height: 13px; }
.detail-message { background: #f7f5fd; padding: 11px 12px; border-radius: 8px; margin-bottom: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: #38344d; }
.dialog-body .activity-list { padding: 0; }
.toast { position: fixed; z-index: 12; bottom: 22px; right: 22px; display: flex; align-items: center; gap: 9px; background: #211939; color: white; border-radius: 11px; border: 1px solid #ffffff24; box-shadow: 0 8px 30px #25154440; padding: 12px 15px; font-size: 13px; max-width: calc(100% - 36px); }
.toast i { color: #bda6ff; }
.screen-dim { display: none; }
@media (min-width: 1450px) {
  .shell { grid-template-columns: 244px minmax(0,1fr); }
  .topbar,.content { padding-left: 36px; padding-right: 36px; }
  .hero { min-height: 210px; }
  .hero-copy { padding-left: 32px; }
}
@media (max-width: 1190px) {
  .shell { grid-template-columns: 202px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .topbar,.content { padding-left: 23px; padding-right: 23px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.8fr) minmax(238px,1fr); gap: 13px; }
  .card-heading { padding-left: 14px; padding-right: 14px; }
  th:first-child,td:first-child { padding-left: 14px; }
  th:last-child,td:last-child { padding-right: 14px; }
}
@media (max-width: 1020px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 226px; transform: translateX(-105%); visibility: hidden; transition: transform .2s,visibility .2s; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .screen-dim { position: fixed; inset: 0; display: block; width: 100%; border: 0; z-index: 4; background: #19152e70; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle i { width: 18px; height: 18px; color: inherit; }
  .topbar { min-height: 58px; padding: 0 16px; }
  .content { padding: 17px 16px 25px; }
  .breadcrumb,.header-actions { gap: 9px; }
}
@media (max-width: 530px) {
  .top-help,.breadcrumb-root,.breadcrumb-root+i { display: none; }
  .hero-copy { padding: 20px 17px; }
  .hero p { max-width: 285px; font-size: 12px; }
  .hero h1 { max-width: 300px; }
  .stats { gap: 7px; margin: 12px 0; }
  .metric { display: flex; flex-direction: column; gap: 7px; padding: 9px 7px; border-radius: 12px; }
  .metric-icon { width: 29px; height: 29px; border-radius: 8px; }
  .metric-icon i { width: 15px; height: 15px; }
  .metric-label,.metric p { font-size: 9.5px; }
  .metric-number { font-size: 19px; }
  .card-heading { gap: 5px; }
  .card-heading h2 { font-size: 16px; }
  .card-heading .text-button { font-size: 10px; }
  th,td { padding: 9px 5px; }
  th:first-child,td:first-child { padding-left: 10px; }
  th:last-child,td:last-child { padding-right: 9px; }
  .accounts-table .account-icon { display: none; }
  .account-link strong { font-size: 11px; }
  .status { font-size: 9px; padding: 4px 5px; }
  .accounts-table .money { font-size: 11px; }
  .page-head h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; } }
