:root{
  --bg:#f6f5f3;
  --panel:#ffffff;
  --ink:#141414;
  --muted:#6a6a6a;
  --line:#e9e6e1;
  --shadow:0 18px 60px rgba(20,20,20,.10);
  --radius:16px;
  --radius-sm:12px;
  --accent:#121212;
  --accent-2:#2a2a2a;
  --green:#4fd37a;
  --danger:#b42318;
  --danger-bg:#ffefe9;
  --success:#067647;
  --success-bg:#ecfdf3;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.9), rgba(255,255,255,0)) , var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing:.1px;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.85}

.icon{
  width:16px;
  height:16px;
  display:block;
}

.container{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
}

.auth-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
}

.auth-card{
  width:100%;
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(20,20,20,.06);
  border-radius:22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.auth-left{
  padding:56px 52px;
  background:rgba(255,255,255,.92);
}

.auth-right{
  position:relative;
  background:
    radial-gradient(800px 520px at 30% 20%, rgba(255,255,255,.06), rgba(255,255,255,0)),
    radial-gradient(760px 480px at 60% 80%, rgba(120,120,120,.18), rgba(0,0,0,0)),
    linear-gradient(135deg, #0f0f10, #1b1b1d);
}

.auth-right::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/s.jpg");
  background-size:cover;
  background-position:center;
  opacity:.22;
  mix-blend-mode:luminosity;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}

.brand img{
  width:26px;
  height:26px;
  border-radius:8px;
}

.brand-name{
  font-weight:650;
  letter-spacing:.2px;
}

.auth-title{
  font-size:18px;
  font-weight:650;
  margin:6px 0 22px;
}

.field{margin:12px 0}
.label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
}
.input{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  padding:0 12px;
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.input:focus{
  border-color:rgba(18,18,18,.25);
  box-shadow:0 0 0 4px rgba(18,18,18,.06);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
}

.checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
}

.btn{
  width:100%;
  height:40px;
  border:1px solid rgba(18,18,18,.15);
  border-radius:12px;
  background:#f1efeb;
  color:#3b3b3b;
  font-weight:650;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  margin-top:16px;
}
.btn:hover{background:#ece9e3}
.btn:active{transform: translateY(1px)}
.btn-primary{
  background: #e8e6e1;
}

.muted-center{
  margin-top:14px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

.alert{
  border-radius:12px;
  padding:10px 12px;
  font-size:12px;
  margin:10px 0 14px;
  border:1px solid transparent;
}
.alert-danger{
  background:var(--danger-bg);
  color:var(--danger);
  border-color:rgba(180,35,24,.18);
}
.alert-success{
  background:var(--success-bg);
  color:var(--success);
  border-color:rgba(6,118,71,.18);
}

.app-frame{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.app-header{
  position:sticky;
  top:0;
  z-index:5;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(20,20,20,.06);
  backdrop-filter: blur(10px);
}

.header-left{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.entity-btn{
  display:flex;
  align-items:center;
  gap:10px;
  max-width: min(520px, calc(100vw - 140px));
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.86);
  border-radius:14px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:650;
  color:rgba(20,20,20,.90);
}
.entity-btn:hover{background:rgba(255,255,255,.96)}

.entity-logo{
  width:32px;
  height:32px;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.06);
  flex:0 0 auto;
}
.entity-logo img{width:18px;height:18px;border-radius:6px}
.entity-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.entity-caret{color:rgba(20,20,20,.55)}
.entity-caret .icon{width:14px;height:14px;opacity:.75}

.entity-menu{
  position:absolute;
  top:calc(56px - 8px);
  left:0;
  width:340px;
  max-width:calc(100vw - 32px);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(20,20,20,.10);
  border-radius:16px;
  box-shadow:0 24px 70px rgba(20,20,20,.16);
  padding:10px;
  display:none;
}
.entity-menu.open{display:block}

.entity-item{
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  border:0;
  background:transparent;
  cursor:pointer;
}
.entity-item:hover{background:rgba(20,20,20,.05)}
.entity-item.active{background:rgba(20,20,20,.08)}

.entity-panel{display:flex;flex-direction:column;gap:10px}
.entity-panel-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(20,20,20,.03);
  border:1px solid rgba(20,20,20,.06);
}
.entity-panel-avatar{
  width:34px;
  height:34px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.06);
  border:1px solid rgba(20,20,20,.06);
  flex:0 0 auto;
}
.entity-panel-avatar .icon{width:18px;height:18px;opacity:.9}
.entity-panel-user{min-width:0}
.entity-panel-name{font-weight:800;font-size:13px;line-height:1.15}
.entity-panel-email{font-size:12px;color:rgba(20,20,20,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;margin-top:2px}

.entity-theme{display:flex;gap:8px}
.theme-btn{
  flex:1;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.86);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:rgba(20,20,20,.80);
}
.theme-btn .icon{width:14px;height:14px}
.theme-btn.active{background:#141414;color:#fff;border-color:rgba(0,0,0,.35)}

.entity-overview{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.90);
  font-size:13px;
  font-weight:650;
  color:rgba(20,20,20,.82);
}
.entity-overview .icon{width:16px;height:16px}
.entity-overview:hover{background:rgba(255,255,255,.96)}

.entity-panel-label{
  padding:2px 2px 0;
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.entity-list{display:flex;flex-direction:column;gap:2px}
.entity-item-left{display:flex;align-items:center;gap:10px;min-width:0}
.entity-item-logo{
  width:28px;
  height:28px;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.06);
  border:1px solid rgba(20,20,20,.06);
  flex:0 0 auto;
}
.entity-item-logo img{width:16px;height:16px;border-radius:6px}
.entity-item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.entity-item-check{opacity:0;display:flex;align-items:center;justify-content:center;color:rgba(20,20,20,.55)}
.entity-item-check.active{opacity:1;color:rgba(20,20,20,.85)}
.entity-item-check .icon{width:14px;height:14px}

.entity-links{display:flex;flex-direction:column;gap:2px}
.entity-link{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.90);
  font-weight:650;
  color:rgba(20,20,20,.82);
}
.entity-link .icon{width:16px;height:16px;opacity:.9}
.entity-link span{flex:1}
.entity-link:hover{background:rgba(255,255,255,.96)}

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.header-meta{
  color:var(--muted);
  font-size:12px;
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pill{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.86);
  font-size:12px;
  color:rgba(20,20,20,.75);
}
.pill-label{color:rgba(20,20,20,.55)}
.pill-value{font-weight:750}

.btn-primary-small{
  height:36px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:12px;
  background:#141414;
  color:#fff;
  font-weight:750;
  border:1px solid rgba(0,0,0,.35);
}
.btn-primary-small:hover{opacity:.92}
.icon-btn{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.86);
  cursor:pointer;
  font-weight:750;
  color:rgba(20,20,20,.75);
}
.icon-btn .icon{width:16px;height:16px}
.icon-btn:hover{background:rgba(255,255,255,.96)}
.icon-btn-mobile{display:none}

.app-shell{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns: 260px 1fr;
  background:var(--bg);
}

.sidebar{
  background:rgba(255,255,255,.78);
  border-right:1px solid rgba(20,20,20,.06);
  backdrop-filter: blur(10px);
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sidebar-entity{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 8px 10px;
}
.sidebar-entity-wrap{
  position:relative;
  flex:1;
  min-width:0;
}
.sidebar-entity-btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.86);
  border-radius:14px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:650;
  color:rgba(20,20,20,.90);
}
.sidebar-entity-btn:hover{background:rgba(255,255,255,.96)}
.sidebar-entity-logo{
  width:32px;
  height:32px;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.06);
  flex:0 0 auto;
}
.sidebar-entity-logo img{width:18px;height:18px;border-radius:6px}
.sidebar-entity-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  flex:1;
  min-width:0;
}
.sidebar-entity-caret{color:rgba(20,20,20,.55)}
.sidebar-entity-caret .icon{width:14px;height:14px;opacity:.75}
.sidebar-entity-menu{
  top:44px;
  left:0;
  width:calc(100% + 52px);
  max-width:calc(100vw - 32px);
}
.sidebar-collapse-btn{
  width:36px;
  height:36px;
  border-radius:12px;
}

.main-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 0 18px;
}
.main-header-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.main-header-ico{
  width:28px;
  height:28px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.04);
  border:1px solid rgba(20,20,20,.06);
  font-weight:750;
}
.main-header-ico .icon{width:16px;height:16px;opacity:.9}
.main-header-titles{min-width:0}
.main-header-title{
  font-size:18px;
  font-weight:750;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.main-header-sub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.main-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.sidebar-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px 12px;
}
.sidebar-top img{
  width:24px;
  height:24px;
  border-radius:8px;
}
.sidebar-title{
  font-weight:700;
  letter-spacing:.2px;
}

.nav-group{
  margin-top:6px;
}
.nav-caption{
  padding:10px 10px 6px;
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
}
.nav-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px;
  border-radius:12px;
  color:rgba(20,20,20,.82);
  transition: background .12s ease;
}
.nav-item:hover{background:rgba(20,20,20,.05)}
.nav-item.active{background:rgba(20,20,20,.08)}

.nav-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.nav-ico{
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.85;
  flex:0 0 auto;
}
.nav-ico .icon{width:16px;height:16px}
.nav-text{
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav-item-btn{
  width:100%;
  border:0;
  background:transparent;
  cursor:pointer;
}
.nav-caret{
  color:rgba(20,20,20,.45);
  margin-left:10px;
}
.nav-caret .icon{width:14px;height:14px;opacity:.85}
.nav-item-btn.open .nav-caret{transform: rotate(180deg)}

.submenu{
  display:none;
  margin:6px 0 2px 28px;
  padding-left:10px;
  border-left:1px solid rgba(20,20,20,.08);
}
.submenu.open{display:block}
.nav-sub{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 10px;
  border-radius:12px;
  color:rgba(20,20,20,.78);
}
.nav-sub:hover{background:rgba(20,20,20,.05)}
.nav-sub.active{background:rgba(20,20,20,.08)}

.nav-chip{
  font-size:11px;
  color:#7b5b00;
  background:rgba(250, 204, 21, .26);
  border:1px solid rgba(250, 204, 21, .35);
  padding:2px 8px;
  border-radius:999px;
}
.nav-badge{
  font-size:11px;
  color:var(--muted);
}

.sidebar-bottom{
  margin-top:auto;
  padding:10px;
}
.restricted{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background:rgba(20,20,20,.03);
  border:1px solid rgba(20,20,20,.06);
  margin-bottom:12px;
}
.restricted-ico{
  width:26px;
  height:26px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(20,20,20,.06);
}
.restricted-ico .icon{width:14px;height:14px;opacity:.85}
.restricted-text{
  font-size:13px;
  font-weight:650;
  color:rgba(20,20,20,.78);
}
.link-btn{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.9);
  text-align:center;
  font-weight:650;
}

.main{
  padding:26px 28px 40px;
}

.dash-grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:16px;
}

.dash-balance{
  padding:16px 16px 14px;
}
.dash-balance-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dash-balance-date{
  font-size:12px;
  color:var(--muted);
}
.dash-segs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.seg{
  height:28px;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.90);
  cursor:pointer;
  font-size:12px;
  font-weight:650;
  color:rgba(20,20,20,.78);
}
.seg.active{
  background:#fff;
  box-shadow:0 6px 18px rgba(20,20,20,.10);
  color:rgba(20,20,20,.92);
}
.seg-select{
  display:flex;
  align-items:center;
  gap:8px;
}
.seg-ico{opacity:.75}
.seg-ico .icon{width:14px;height:14px}
.seg-caret{opacity:.55}
.seg-caret .icon{width:12px;height:12px}
.dash-balance-amount{
  margin-top:6px;
  font-size:40px;
  font-weight:800;
  letter-spacing:-.02em;
}
.dash-chart{
  margin-top:10px;
  position:relative;
  height:260px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(142, 240, 170, .75), rgba(142, 240, 170, .12));
  overflow:hidden;
  border:1px solid rgba(20,20,20,.06);
}
.dash-chart-area{
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 260px at 80% 40%, rgba(79, 211, 122, .55), rgba(79, 211, 122, 0)),
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55));
  clip-path: polygon(0% 92%, 18% 92%, 26% 88%, 32% 62%, 38% 78%, 46% 82%, 54% 80%, 60% 80%, 64% 80%, 66% 40%, 70% 18%, 80% 18%, 100% 18%, 100% 100%, 0% 100%);
}
.dash-chart-tip{
  position:absolute;
  left:110px;
  top:86px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(20,20,20,.10);
  box-shadow:0 14px 34px rgba(20,20,20,.12);
  z-index:2;
}
.dash-tip-amt{font-weight:750;color:#256b3d;font-size:12px}
.dash-tip-amt2{color:#946200;margin-top:6px}
.dash-tip-pct{font-weight:650;color:rgba(20,20,20,.50)}
.dash-chart-axis{
  position:absolute;
  left:14px;
  right:14px;
  bottom:10px;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:rgba(20,20,20,.55);
  z-index:3;
}
.dash-available{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(20,20,20,.10);
}
.dash-available-left{display:flex;align-items:center;gap:10px;color:rgba(20,20,20,.72);font-weight:650}
.dash-available-caret{opacity:.75;display:flex;align-items:center}
.dash-available-caret .icon{width:14px;height:14px}
.dash-available-info{
  width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(20,20,20,.10);
  color:rgba(20,20,20,.55);
}
.dash-available-info .icon{width:12px;height:12px;opacity:.85}
.dash-available-right{font-weight:800}

.dash-trans{padding:0}
.dash-card-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(20,20,20,.06);
}
.dash-card-title{font-weight:800}
.dash-card-link{font-size:12px;color:rgba(20,20,20,.55)}
.dash-trans-body{padding:10px 12px 14px}
.tx-group{
  font-size:12px;
  color:rgba(20,20,20,.55);
  padding:10px 6px 6px;
}
.tx-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 6px;
  border-radius:12px;
}
.tx-row:hover{background:rgba(20,20,20,.03)}
.tx-left{display:flex;align-items:center;gap:10px;min-width:0}
.tx-ico{
  width:28px;height:28px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(20,20,20,.04);
  border:1px solid rgba(20,20,20,.06);
  flex:0 0 auto;
}
.tx-ico .icon{width:14px;height:14px;opacity:.9}
.tx-txt{min-width:0}
.tx-title{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.tx-sub{font-size:12px;color:rgba(20,20,20,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.tx-right{text-align:right;flex:0 0 auto}
.tx-amt{font-weight:800}
.tx-amt.neg{color:rgba(20,20,20,.85)}
.tx-amt.pos{color:#0f7b41}
.tx-meta{font-size:11px;color:rgba(20,20,20,.50);margin-top:3px}

.dash-cards{padding:0;overflow:hidden}
.dash-count{margin-left:8px;font-size:12px;color:rgba(20,20,20,.55);font-weight:750}
.dash-card-actions{display:flex;align-items:center;gap:12px}
.dash-cards-body{padding:0}
.dash-table-wrap{position:relative}
.dash-search{
  position:absolute;
  right:18px;
  bottom:18px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(20,20,20,.10);
  background:rgba(255,255,255,.95);
  box-shadow:0 12px 30px rgba(20,20,20,.12);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dash-search .icon{width:16px;height:16px}
.dash-empty{
  padding:34px 16px 44px;
  text-align:center;
}
.dash-empty-title{font-weight:800}
.dash-empty-sub{margin-top:6px;font-size:12px;color:rgba(20,20,20,.55)}

.chat-fab{
  position:fixed;
  right:20px;
  bottom:20px;
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid rgba(20,20,20,.10);
  background:#141414;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 60px rgba(20,20,20,.25);
}
.chat-fab .icon{width:18px;height:18px}

.sidebar-backdrop{
  display:none;
}

body.sidebar-collapsed .app-shell{
  grid-template-columns: 88px 1fr;
}
body.sidebar-collapsed .sidebar{
  padding:18px 10px;
}
body.sidebar-collapsed .sidebar-title{
  display:none;
}
body.sidebar-collapsed .nav-caption{
  display:none;
}
body.sidebar-collapsed .nav-item{
  justify-content:center;
}
body.sidebar-collapsed .nav-text{display:none}
body.sidebar-collapsed .nav-caret{display:none}
body.sidebar-collapsed .submenu{display:none}
body.sidebar-collapsed .nav-badge{
  display:none;
}
body.sidebar-collapsed .sidebar-entity-name{display:none}
body.sidebar-collapsed .sidebar-entity-caret{display:none}
body.sidebar-collapsed .sidebar-entity-btn{justify-content:center}
body.sidebar-collapsed .link-btn{
  font-size:12px;
  padding:10px 8px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.page-title{
  font-size:18px;
  font-weight:750;
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

.grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap:18px;
}

.card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(20,20,20,.06);
  border-radius:16px;
  box-shadow:0 12px 40px rgba(20,20,20,.06);
  overflow:hidden;
}
.card-hd{
  padding:14px 16px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(20,20,20,.06);
}
.card-title{
  font-size:12px;
  color:rgba(20,20,20,.72);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.card-bd{padding:16px}
.big-number{
  font-size:28px;
  font-weight:780;
  letter-spacing:-.4px;
}
.subtle{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.chart{
  height:180px;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(79,211,122,.30), rgba(79,211,122,0)),
    radial-gradient(600px 240px at 40% 40%, rgba(79,211,122,.26), rgba(79,211,122,0)),
    linear-gradient(135deg, rgba(20,20,20,.06), rgba(255,255,255,0));
  border:1px dashed rgba(20,20,20,.12);
  display:flex;
  align-items:flex-end;
  padding:14px;
  color:rgba(20,20,20,.55);
  font-size:12px;
}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(20,20,20,.03);
}
.dot{
  width:8px;height:8px;border-radius:999px;background:var(--green);
}
.list-left{display:flex;align-items:center;gap:10px}
.list-title{font-weight:650;font-size:13px}
.list-meta{color:var(--muted);font-size:12px;margin-top:2px}
.money{font-weight:700}
.money.negative{color:#8a1f10}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:left;
  font-size:11px;
  color:var(--muted);
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:0 12px;
}
.table td{
  padding:12px 12px;
  background:rgba(20,20,20,.03);
}
.table tr td:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
.table tr td:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}

.btn-sm{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(20,20,20,.12);
  background:rgba(255,255,255,.9);
  cursor:pointer;
  font-weight:650;
  font-size:12px;
}
.btn-danger{
  border-color:rgba(180,35,24,.22);
  color:var(--danger);
}
.form-inline{
  display:grid;
  grid-template-columns: 1.2fr 1fr 140px;
  gap:10px;
  margin-top:14px;
}

@media (max-width: 960px){
  .auth-card{grid-template-columns:1fr}
  .auth-right{min-height:260px}
  .icon-btn-mobile{display:inline-flex}
  .icon-btn-desktop{display:none}
  .header-meta{display:none}
  .app-shell{grid-template-columns:1fr}
  body.sidebar-collapsed .app-shell{grid-template-columns:1fr}
  body.sidebar-collapsed .sidebar-title{display:block}
  body.sidebar-collapsed .nav-caption{display:block}
  body.sidebar-collapsed .nav-item{justify-content:space-between}
  body.sidebar-collapsed .nav-text{display:inline}
  body.sidebar-collapsed .nav-caret{display:inline}
  body.sidebar-collapsed .submenu{display:block}
  body.sidebar-collapsed .nav-badge{display:inline}

  .sidebar{
    position:fixed;
    top:0;
    left:-280px;
    bottom:0;
    width:260px;
    z-index:6;
    transition:left .18s ease;
  }

  body.sidebar-open .sidebar{left:0}

  .sidebar-backdrop{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
    z-index:4;
  }
  body.sidebar-open .sidebar-backdrop{display:block}
  body.with-app-header .sidebar{top:56px}
  body.with-app-header .sidebar-backdrop{top:56px}

  .main{padding:18px 16px 28px}
  .grid{grid-template-columns:1fr}
  .dash-grid{grid-template-columns:1fr}
  .dash-chart{height:220px}
  .tx-title,.tx-sub{max-width:220px}
  .form-inline{grid-template-columns:1fr}
}
