:root {
  --ink: #0f2a24;
  --muted: #5b736c;
  --line: #e2ece8;
  --paper: #eef5f2;
  --card: #ffffff;
  --em: #0d9488;
  --em-deep: #0f766e;
  --em-soft: #ccfbf1;
  --mint: #f0fdfa;
  --danger: #e11d48;
  --warn: #d97706;
  --ok: #059669;
  --shadow: 0 8px 28px rgba(15, 42, 36, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 42, 36, 0.05);
  --r: 20px;
  /* 系统中文字体，不再下载本地 Noto（原约 4.5MB） */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(13, 148, 136, 0.1), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.app {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 96px;
  position: relative;
}

/* ===== Header ===== */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.28);
  border-radius: 0 0 28px 28px;
}
.hd::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.hd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.hd h1 { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd .sub { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.82); }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}
.hd-links { display: flex; gap: 8px; }
.hd-links a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform .15s, background .15s;
}
.hd-links a:active { transform: scale(0.94); background: rgba(255,255,255,0.3); }
.hd-links a.lbl {
  width: auto;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}

.bd { padding: 16px 14px 0; }

/* ===== Messages ===== */
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}
.msg-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.msg-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.msg-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ===== Card ===== */
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 236, 232, 0.9);
}
.card h2 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.card h2 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 0 4px var(--em-soft);
}

/* ===== Search ===== */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}
.search-field {
  flex: 1;
  position: relative;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 16px;
  height: 16px;
}
.search-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px 11px 38px;
  background: var(--mint);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-field input:focus {
  border-color: var(--em);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  background: #fff;
}
.report-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.report-filter .search-field { width: 100%; }
.report-filter-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.report-filter select,
.report-filter .month-input {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  position: relative;
  z-index: 2;
}
.report-filter select:focus,
.report-filter .month-input:focus {
  border-color: var(--em);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.report-filter .btn {
  flex: 0 0 88px;
  position: relative;
  z-index: 3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(0.97); }
.btn-g {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.32);
}
.btn-g:hover { background: linear-gradient(135deg, #0f766e, #0d9488); }
.btn-w {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-r {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #fff;
}
.btn-block { width: 100%; height: 48px; border-radius: 16px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f5f4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .12s, color .12s, box-shadow .12s;
}
button.chip { appearance: none; font: inherit; line-height: inherit; }
.chip.on {
  background: var(--em);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.is-hidden { display: none !important; }

/* ===== Long-press action sheet ===== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 36, 0.45);
}
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  z-index: 1;
  animation: sheetUp .2s ease-out;
}
@keyframes sheetUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-title {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px 8px;
  background: #f8faf9;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
}
.sheet-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-top: none;
  background: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.sheet-btn:active { background: #f0fdfa; }
.sheet-btn-danger { color: #e11d48; }
.sheet-btn-cancel {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}
.sheet-btn:nth-last-of-type(2) { border-radius: 0 0 14px 14px; }

/* ===== List item + swipe actions ===== */
.swipe-item {
  position: relative;
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #e11d48;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 0;
}
.swipe-btn {
  width: 76px;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.swipe-btn .i { width: 18px; height: 18px; }
.swipe-btn-warn { background: #d97706; }
.swipe-btn-ok { background: #0d9488; }
.swipe-btn-danger { background: #e11d48; }
.swipe-front {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  transition: transform .18s ease-out;
  will-change: transform;
}
.swipe-item.open .swipe-front {
  box-shadow: -4px 0 16px rgba(15, 42, 36, 0.08);
}
.swipe-front:active { background: #f8fcfb; }
.item {
  display: block;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.item:active {
  transform: scale(0.99);
  border-color: #99f6e4;
  box-shadow: var(--shadow);
}
.item-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.item-h-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.item-h-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-h b { font-size: 16px; font-weight: 650; }
.item-amt {
  font-size: 22px;
  font-weight: 700;
  color: var(--em);
  letter-spacing: -0.02em;
  margin: 2px 0 10px;
}
.item-amt span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.t-正常 { background: #e0f2fe; color: #0369a1; }
.t-已回款 { background: #d1fae5; color: #047857; }
.t-逾期 { background: #ffe4e6; color: #be123c; }
.t-已下架 { background: #f1f5f9; color: #64748b; }

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.meta strong { color: var(--ink); font-weight: 500; }
.meta .em { color: var(--em); font-weight: 650; }

.empty {
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
}
.empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--mint);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-ico svg { width: 28px; height: 28px; }
.empty p { font-size: 14px; font-weight: 500; }
.empty small { display: block; margin-top: 6px; font-size: 12px; color: #94a3b8; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  right: max(20px, calc(50% - 200px));
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #14b8a6, #0f766e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.45);
  z-index: 50;
  border: 3px solid rgba(255,255,255,0.35);
  transition: transform .15s;
}
.fab:active { transform: scale(0.94); }
.fab svg { width: 26px; height: 26px; }

/* ===== Forms ===== */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #0d9488;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-item {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 14px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500 !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}
.check-item span { flex: 0 1 auto; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--em);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.presets button {
  border: 1px solid var(--line);
  background: var(--mint);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.presets button:active, .presets button:hover {
  background: var(--em);
  border-color: var(--em);
  color: #fff;
}
.expected-repay {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}
.field-hint {
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.pool-pick { display: flex; flex-direction: column; gap: 8px; }
.pool-card {
  display: grid;
  grid-template-columns: 18px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 12px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pool-card:active { transform: scale(0.995); }
.pool-card.on {
  background: var(--mint);
  border-color: #5eead4;
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.12);
}
.pool-card.is-empty:not(.on) { opacity: 0.72; }
.pool-card input.pool-check {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0d9488;
  flex-shrink: 0;
}
.pool-ord {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0d9488;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pool-ord[hidden] { visibility: hidden; }
.pool-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-meta {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-avail {
  flex-shrink: 0;
  max-width: 7.5em;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
}
.pool-avail.is-empty {
  color: #be123c;
  background: rgba(225, 29, 72, 0.1);
}
.pool-autofill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 500;
  color: #5b736c;
  cursor: pointer;
}
.pool-autofill input { margin-top: 2px; accent-color: #0d9488; }
.pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 8px 0;
  font-size: 13px;
}
.pool-row label { display: flex; align-items: center; gap: 8px; flex: 1; margin: 0; font-weight: 500; color: var(--ink); }

.kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px 10px;
  font-size: 14px;
}
.kv .k { color: var(--muted); font-size: 13px; }
.kv .v-em { color: var(--em); font-weight: 700; font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.row { display: flex; gap: 8px; margin-bottom: 10px; align-items: stretch; }
.row input, .row select { flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 12px; outline: none; background: #fff; }

/* ===== Stats / Nav ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat {
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #14b8a6);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
  position: relative;
  overflow: hidden;
}
.stat:nth-child(2), .stat:nth-child(4) {
  background: linear-gradient(145deg, #115e59, #0d9488);
}
.stat::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  right: -20px;
  top: -20px;
}
.stat .l { font-size: 12px; color: rgba(255,255,255,0.8); position: relative; z-index: 1; }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 8px; position: relative; z-index: 1; letter-spacing: -0.02em; }

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--mint), #fff);
  border: 1px solid var(--line);
  transition: border-color .15s;
}
.nav a:active { border-color: #99f6e4; }
.nav-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25);
}
.nav-ico svg { width: 20px; height: 20px; }
.nav a strong { display: block; font-size: 14px; font-weight: 650; }
.nav a span { font-size: 12px; color: var(--muted); }
.nav .arrow { margin-left: auto; color: #94a3b8; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ===== Login ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.35), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(20, 184, 166, 0.25), transparent 42%),
    linear-gradient(160deg, #042f2e 0%, #0f766e 48%, #134e4a 100%);
}
.login {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 32px 24px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.5);
}
.login-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.25);
  background: #fff;
}
.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.login h1 { text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); }
.login > p { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.captcha-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.captcha-row img {
  width: 140px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  object-fit: contain;
}

@media (max-width: 420px) {
  .meta { grid-template-columns: 1fr; }
}

/* ===== Dashboard (对齐准确版结构，沿用本站配色) ===== */
.dash .mb-8 { margin-bottom: 8px; }
.dash .mb-10 { margin-bottom: 10px; }
.dash-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dash-muted { font-size: 11px; color: var(--muted); }
.dash-num { font-size: 14px; font-weight: 700; margin-top: 2px; }
.dash-big { font-size: 18px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; }
.dash-big small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.c-ok { color: var(--ok) !important; }
.c-warn { color: var(--warn) !important; }
.c-danger { color: var(--danger) !important; }
.c-blue { color: #0284c7 !important; }
.text-center { text-align: center; }

.dash-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}
.dash-link strong { display: block; font-size: 13px; font-weight: 650; }
.dash-link span { font-size: 11px; color: var(--muted); }
.dash-link-ico {
  width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-link-teal { background: linear-gradient(90deg, #ecfdf5, #f0fdfa); border-color: #a7f3d0; }
.dash-link-teal .dash-link-ico { background: #ccfbf1; color: #0d9488; }
.dash-link-teal strong { color: #115e59; }
.dash-link-blue { background: linear-gradient(90deg, #eff6ff, #f0f9ff); border-color: #bfdbfe; }
.dash-link-blue .dash-link-ico { background: #dbeafe; color: #2563eb; }
.dash-link-blue strong { color: #1e3a8a; }
.dash-link-violet { background: linear-gradient(90deg, #f5f3ff, #faf5ff); border-color: #ddd6fe; }
.dash-link-violet .dash-link-ico { background: #ede9fe; color: #7c3aed; }
.dash-link-violet strong { color: #5b21b6; }
.dash-link-amber { background: linear-gradient(90deg, #fff7ed, #fffbeb); border-color: #fed7aa; }
.dash-link-amber .dash-link-ico { background: #ffedd5; color: #ea580c; }
.dash-link-amber strong { color: #9a3412; }

.dash-kpi {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; text-align: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  background: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
  font: inherit; color: inherit;
  min-height: 96px; box-sizing: border-box;
}
.dash-kpi.kpi-blue {
  background: linear-gradient(160deg, #eff6ff 0%, #fff 70%);
  border-color: #bfdbfe;
}
.dash-kpi.kpi-teal {
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 70%);
  border-color: #a7f3d0;
}
.dash-kpi-top {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dash-kpi-label {
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.dash-kpi-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash-kpi-l { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-kpi-ico {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-kpi-ico.t-blue { background: #dbeafe; color: #2563eb; }
.dash-kpi-ico.t-ok { background: #ccfbf1; color: #0d9488; }
.dash-kpi-ico svg { width: 16px; height: 16px; }
.dash-kpi-v {
  margin-top: 10px;
  font-size: 24px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-all;
  text-align: center;
}
.dash-kpi.kpi-blue .dash-kpi-v { color: #1e40af; }
.dash-kpi.kpi-teal .dash-kpi-v { color: #0f766e; }
.dash-kpi-v small {
  font-size: 12px; font-weight: 500; color: var(--muted);
  margin-left: 2px; letter-spacing: 0;
}

.dash-tile { border-radius: 12px; padding: 10px; text-align: center; }
.dash-tile.t-blue { background: #eff6ff; }
.dash-tile.t-blue .dash-big { color: #2563eb; }
.dash-tile.t-ok { background: #ecfdf5; }
.dash-tile.t-ok .dash-big { color: #059669; }
.dash-tile.t-teal { background: #f0fdfa; }
.dash-tile.t-teal .dash-big { color: #0d9488; }
.dash-tile.t-amber { background: #fffbeb; }
.dash-tile.t-amber .dash-big { color: #d97706; }

.dash-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.dash-card-hd h2 { margin: 0; }
.dash-month-nav { display: flex; align-items: center; gap: 6px; }
.dash-ym { font-size: 13px; color: var(--muted); }
.icon-btn {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f5f4; color: var(--ink); font-size: 18px; line-height: 1;
  border: 1px solid var(--line);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; appearance: none; padding: 0;
}
.icon-btn:active { background: var(--em-soft); }
.icon-btn:disabled { opacity: .5; cursor: default; }

.bar {
  width: 100%; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 8px;
}
.bar-fill { height: 100%; background: #fb923c; border-radius: 999px; min-width: 0; }

.pool-usage { padding: 12px; background: #f8faf9; border-radius: 12px; margin-bottom: 8px; }
.pool-usage-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.pool-usage-hd b { font-size: 13px; }
.pool-usage-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

.pool-box {
  border: 1px solid #d1fae5; border-radius: 14px; overflow: hidden; background: #fff;
}
.pool-box-hd {
  background: #ecfdf5; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pool-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; flex-shrink: 0; }
.pool-box-hd b { font-size: 13px; }
.pool-meta { margin-left: auto; font-size: 11px; color: #0f766e; }
.pool-box > .dash-grid3, .pool-box > .yield-row { padding: 10px 12px; }

.yield-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 12px 12px; padding: 8px 10px; border-radius: 10px;
  background: #f0fdfa; font-size: 12px; color: #0f766e;
}
.yield-row b { color: #115e59; }

.kv-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.kv-line span { color: var(--muted); }
.kv-line b { font-weight: 600; }
.kv-hl {
  border: none; margin-top: 8px; padding: 12px;
  background: #ecfdf5; border-radius: 12px;
}
.kv-hl span { color: #065f46; font-weight: 600; }

.month-block { margin-top: 16px; padding-top: 14px; border-top: 2px solid #d1fae5; }
.month-title { font-size: 13px; font-weight: 650; color: #0f766e; }
.mini-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 10px; margin-top: 6px; font-size: 13px;
}
.mini-row b { font-weight: 700; }
.c-bg-danger { background: #fff1f2; color: #e11d48; }
.c-bg-blue { background: #eff6ff; color: #1d4ed8; }
.c-bg-warn { background: #fff7ed; color: #c2410c; }
.c-bg-ok { background: #ecfdf5; color: #047857; }

.c-accent { color: #7c3aed !important; }
.kv-accent {
  border: none; margin-top: 8px; padding: 12px;
  background: #f5f3ff; border-radius: 12px;
}
.kv-accent span { color: #5b21b6; font-weight: 600; }
.kv-accent b { font-size: 20px; font-weight: 700; color: #6d28d9; }

.share-bar-block { margin-bottom: 12px; }
.share-bar-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 6px; color: var(--muted);
}
.share-bar-hd b { font-weight: 650; }
.bar-lg { height: 12px; }
.bar-warn { background: #f97316; }
.bar-ok { background: #10b981; }
.dash-note {
  margin-top: 8px; font-size: 11px; color: #94a3b8; line-height: 1.5;
}

.bank-row { margin-bottom: 12px; }
.bank-row:last-child { margin-bottom: 0; }
.bank-row-hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 6px;
}
.bank-row-hd b { font-weight: 650; }
.bank-c0 { background: #10b981; }
.bank-c1 { background: #3b82f6; }
.bank-c2 { background: #f59e0b; }
.bank-c3 { background: #ef4444; }
.bank-c4 { background: #8b5cf6; }
.bank-c5 { background: #ec4899; }

.person-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #f8faf9; border-radius: 12px; margin-bottom: 8px;
}
.person-row:last-child { margin-bottom: 0; }
.person-left { display: flex; align-items: center; gap: 10px; }
.person-av {
  width: 28px; height: 28px; border-radius: 999px;
  background: #ede9fe; color: #7c3aed;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 650;
}
.person-left b { font-size: 13px; font-weight: 650; }
.person-right { text-align: right; }
.person-right .c-ok { font-size: 13px; font-weight: 650; }
