:root {
  --bg: #f0f2f5;
  --sidebar: #1b2430;
  --rail: #1b2430;
  --fly: #ffffff;
  --accent: #2f6bff;
  --accent-soft: #e8efff;
  --teal: #0f9f8a;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --line: #e5e7eb;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #10b981;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .04);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --rail-w: 68px;
  --fly-w: 188px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ===== Icon rail + flyout ===== */
.sidebar {
  display: flex;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  z-index: 40;
}

.rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  background: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  z-index: 2;
}

.rail-brand {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 17px;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
  transition: transform .2s ease;
}
.rail-brand:hover { transform: translateY(-1px); color: #fff; }

.rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
}

.rail-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: .18s ease;
  padding: 8px 2px 6px;
  font-family: inherit;
}
.rail-btn > i {
  font-size: 18px;
  line-height: 1;
}
.rail-lbl {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  color: inherit;
}
.rail-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.rail-btn.active {
  color: #fff;
  background: rgba(47,107,255,.35);
  box-shadow: inset 0 0 0 1px rgba(147,197,253,.25);
}
.rail-btn.rail-expand {
  margin-top: auto;
  color: #6b7280;
}
.rail-dot {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--rail);
}

.flyout {
  width: 0;
  overflow: hidden;
  background: var(--fly);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: width .26s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(15, 23, 42, .04);
}
.app-shell.fly-open .flyout {
  width: var(--fly-w);
}

.flyout-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.flyout-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}
.flyout-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
}
.flyout-close:hover { background: #f3f4f6; color: var(--text); }

.flyout-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 16px;
  min-width: var(--fly-w);
}

.fly-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: .15s ease;
  white-space: nowrap;
}
.fly-group a i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: #9ca3af;
  flex: 0 0 auto;
}
.fly-group a span { flex: 1; min-width: 0; }
.fly-group a:hover {
  background: #f3f4f6;
  color: var(--text);
}
.fly-group a:hover i { color: var(--accent); }
.fly-group a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.fly-group a.active i { color: var(--accent); }

.nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.sb-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .25);
  z-index: 35;
}
@media (max-width: 900px) {
  .flyout {
    position: absolute;
    left: var(--rail-w);
    top: 0;
    bottom: 0;
    height: 100vh;
    box-shadow: 8px 0 28px rgba(0,0,0,.12);
  }
  .app-shell.fly-open .sb-mask { display: block; }
}

/* ===== Main ===== */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.crumb-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.crumb-sep {
  font-size: 11px;
  color: #d1d5db;
}
.topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: .15s ease;
  padding: 0;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: #c7d2fe;
  background: var(--accent-soft);
}
.top-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding-left: 4px;
}
.user-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.user-chip .uname { color: var(--text); font-weight: 500; }
.badge-soft {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.content {
  padding: 18px 20px 36px;
  width: 100%;
  max-width: none;
  flex: 1;
}

.card-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* colored status cards like reference */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .rail-expand { display: none; }
}

.stat {
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--line);
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stat-c, var(--accent));
}
.stat .stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--stat-bg, var(--accent-soft));
  color: var(--stat-c, var(--accent));
  font-size: 16px;
  margin-bottom: 10px;
}
.stat .label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.stat .num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}
.stat .num.accent { color: var(--stat-c, var(--accent)); }
.stat .num.warn { color: var(--warn); }
.stat .num.danger { color: var(--danger); }

.stat-blue { --stat-c: #3b82f6; --stat-bg: #dbeafe; }
.stat-green { --stat-c: #10b981; --stat-bg: #d1fae5; }
.stat-orange { --stat-c: #f59e0b; --stat-bg: #fef3c7; }
.stat-red { --stat-c: #ef4444; --stat-bg: #fee2e2; }
.stat-teal { --stat-c: #14b8a6; --stat-bg: #ccfbf1; }
.stat-purple { --stat-c: #8b5cf6; --stat-bg: #ede9fe; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  min-height: 36px;
}
.toolbar .hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
@media (max-width: 900px) {
  .toolbar { flex-wrap: wrap; }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.filter-bar .form-control,
.filter-bar .form-select {
  min-height: 36px;
  font-size: 13px;
  width: auto;
  min-width: 140px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  color: var(--text);
}
.table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #fafbfc;
  vertical-align: middle;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tbody tr:hover td { background: #f8fafc; }

/* 钱包列表：紧凑居中，避免横向滚动条 */
.wallet-panel { overflow: hidden; }
.wallet-wrap {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.table-wallet {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;
}
.table-wallet th,
.table-wallet td {
  padding: 8px 4px;
  box-sizing: border-box;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-wallet thead th {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}
.table-wallet tbody td {
  height: 52px;
  border-bottom: 1px solid #eef2f7;
}
.table-wallet .col-id { width: 2.4%; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wallet .col-name { width: 6.5%; white-space: normal; }
.table-wallet .col-addr { width: 7%; }
.table-wallet .col-time {
  width: 6.5%;
  white-space: normal;
  font-family: var(--mono);
  color: #475569;
}
.table-wallet .time-main {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.table-wallet .time-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}
.table-wallet .col-days { width: 2.8%; }
.table-wallet .col-unlock { width: 5.5%; }
.table-wallet .col-lv { width: 3.2%; }
.table-wallet .col-act { width: 7.5%; padding-left: 2px; padding-right: 4px; }
.table-wallet .name-main {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-wallet .enc-line {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}
.table-wallet th.num,
.table-wallet td.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.table-wallet td.num.money,
.table-wallet td.money {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.table-wallet td.money.is-ok { color: var(--ok) !important; }
.table-wallet .col-act .actions {
  justify-content: center;
  gap: 3px;
}
.table-wallet .act-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
}
.table-wallet .pill {
  padding: 2px 7px;
  font-size: 11px;
  max-width: 100%;
}
.table-wallet .badge-soft {
  padding: 2px 7px;
  font-size: 11px;
}
.table-wallet .addr {
  max-width: 100%;
  vertical-align: middle;
  color: #334155;
  font-size: 12px;
}

.table .mono, .mono {
  font-family: var(--mono);
  font-size: 12px;
  color: #334155;
  word-break: break-all;
}
.addr {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 12px;
}
.money {
  color: var(--danger);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.pill-ok { background: #d1fae5; color: #047857; }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-danger { background: #fee2e2; color: #b91c1c; }
.pill-info { background: #dbeafe; color: #1d4ed8; }
.pill-muted { background: #f3f4f6; color: #6b7280; }

.form-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control, .form-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  min-height: 40px;
  padding: .5rem .75rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,107,255,.15);
  outline: none;
  background: #fff;
  color: var(--text);
}
.form-control-sm, .form-select-sm {
  min-height: 34px;
  font-size: 13px;
}

.btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: .45rem .9rem;
}
.btn-accent, .btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.btn-accent:hover, .btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text);
}
.btn-outline-light {
  border-color: var(--line) !important;
  color: var(--text) !important;
  background: #fff !important;
}
.btn-outline-light:hover { background: #f1f5f9 !important; }
.btn-outline-success {
  border-color: #a7f3d0 !important;
  color: var(--ok) !important;
  background: #ecfdf5 !important;
}
.btn-outline-warning {
  border-color: #fde68a !important;
  color: var(--warn) !important;
  background: #fffbeb !important;
}
.btn-outline-danger {
  border-color: #fecdd3 !important;
  color: var(--danger) !important;
  background: #fff1f2 !important;
}
.btn-sm { padding: .28rem .55rem; font-size: 12px; }
.btn-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}
.btn-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.muted { color: var(--muted); }
.actions {
  display: inline-flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}
.act-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: .12s ease;
  flex: 0 0 auto;
}
.act-btn:hover {
  color: var(--accent);
  border-color: #c7d2fe;
  background: var(--accent-soft);
}
.act-btn.act-ok {
  color: var(--ok);
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.act-btn.act-ok:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.act-btn.act-warn {
  color: var(--warn);
  border-color: #fde68a;
  background: #fffbeb;
}
.act-btn.act-warn:hover {
  background: #fef3c7;
  border-color: #fcd34d;
}
.act-btn.act-danger {
  color: var(--danger);
  border-color: #fecdd3;
  background: #fff1f2;
}
.act-btn.act-danger:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}
.enc-line {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.cfg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}
.cfg-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s ease;
}
.cfg-tab:hover { color: var(--text); background: #f3f4f6; }
.cfg-tab.active {
  color: #fff;
  background: var(--accent);
}
.cfg-pane { display: none; }
.cfg-pane.active { display: block; }
.cfg-sec-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
}

.stat .stat-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-all;
}
.fund-stat-grid {
  margin-bottom: 12px;
}

.model-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #1e3a5f;
  font-size: 13px;
  line-height: 1.55;
}
.model-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
}
.model-box p { margin: 0; }

.range-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.range-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: #f3f4f6;
  border: 1px solid transparent;
  text-decoration: none;
  transition: .15s ease;
}
.range-chip:hover {
  color: var(--text);
  background: #e5e7eb;
}
.range-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.date-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.filter-meta {
  font-size: 13px;
  margin-left: 4px;
}
.filter-bar-wrap {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.row-muted td {
  color: var(--muted);
  background: #fafafa;
}

.form-card {
  max-width: 640px;
  padding: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
}
.page-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.tree-box ul {
  list-style: none;
  margin: 0;
  padding-left: 18px;
  border-left: 1px dashed #d5dee8;
}
.tree-box > ul { padding-left: 0; border-left: 0; }
.tree-box li { margin: 10px 0; line-height: 1.5; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 15% 10%, rgba(47,107,255,.14), transparent 60%),
    radial-gradient(700px 360px at 90% 80%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(160deg, #eef2ff 0%, #f0f2f5 100%);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
  padding: 32px 28px;
}
.login-card .brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.login-card .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}
#think_page_trace, #think_page_trace_open { display: none !important; }

.unlock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  margin-right: 8px;
  font-size: 12px;
}
.unlock-chip.is-on {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
}
.unlock-chip .unlock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
.unlock-chip .unlock-txt { color: var(--text); white-space: nowrap; }
.unlock-chip .muted { color: var(--muted); }

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dash-hello {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dash-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.dash-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .dash-row, .dash-row-3 { grid-template-columns: 1fr; }
}
.dash-panel { padding: 14px 16px 16px; }
.dash-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
}
.dash-more { font-size: 12px; font-weight: 500; color: var(--accent); }
.dash-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.dash-bar-label { font-size: 12px; color: var(--muted); }
.dash-bar-track {
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  min-width: 0;
  transition: width .35s ease;
}
.dash-bar-fill.u0 { background: #94a3b8; }
.dash-bar-fill.u20 { background: #f59e0b; }
.dash-bar-fill.u50 { background: #3b82f6; }
.dash-bar-fill.u100 { background: #10b981; }
.dash-bar-fill.lv { background: #6366f1; }
.dash-bar-val { font-size: 12px; font-weight: 600; text-align: right; }
.dash-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dash-mini-stats div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
}
.dash-mini-stats span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.dash-mini-stats b {
  font-size: 13px;
  font-weight: 650;
  word-break: break-all;
}
.dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.dash-links a { color: var(--accent); font-weight: 500; }
.table-sm td, .table-sm th { padding: .45rem .55rem; font-size: 12.5px; }
.tiny { font-size: 11px !important; color: var(--muted); }
.pill-danger { background: #fee2e2; color: #b91c1c; }
