:root {
  --bg: #05070c;
  --text: #e9eff8;
  --text-dim: #96a3b6;
  --accent: #35e0d0;
  --accent-3: #5b8cff;
  --border: rgba(255, 255, 255, 0.09);
  --danger: #ff6b6b;
  --ok: #3ddc97;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 560px at 12% -8%, rgba(53, 224, 208, 0.12), transparent 60%),
    radial-gradient(760px 560px at 92% 6%, rgba(91, 140, 255, 0.13), transparent 62%),
    radial-gradient(600px 420px at 50% 108%, rgba(242, 179, 61, 0.05), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 30%, #000 20%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(53, 224, 208, 0.3); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------------- 布局 ---------------- */

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px;
}

.auth-intro { max-width: 520px; }

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.auth-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -14px rgba(0, 0, 0, 0.9);
}

.auth-brand strong { display: block; font-size: 17px; letter-spacing: 0.08em; }
.auth-brand em { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 0.32em; color: var(--text-dim); }

.auth-title {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.auth-title span {
  background: linear-gradient(100deg, #ffffff, #8af6ea 45%, #6c9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lead {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
  max-width: 440px;
}

.auth-points { margin-top: 34px; display: grid; gap: 16px; }

.auth-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: #b7c3d4;
}

.auth-points i {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(53, 224, 208, 0.1);
  border: 1px solid rgba(53, 224, 208, 0.2);
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
}

/* ---------------- 卡片 ---------------- */

.auth-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 38px 34px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(53, 224, 208, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1);
}

.auth-card h1 { font-size: 24px; letter-spacing: -0.02em; }
.auth-card .sub { margin-top: 8px; color: var(--text-dim); font-size: 13.5px; }

.form { margin-top: 26px; display: grid; gap: 16px; }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8c99ad;
  margin-bottom: 8px;
}

.input-wrap { position: relative; }

.field input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 15px;
  color: var(--text);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input::placeholder { color: #5f6b7d; }

.field input:focus {
  outline: none;
  border-color: rgba(53, 224, 208, 0.5);
  background: rgba(53, 224, 208, 0.04);
  box-shadow: 0 0 0 4px rgba(53, 224, 208, 0.08);
}

.field input.is-bad { border-color: rgba(255, 107, 107, 0.6); }

.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7c899c;
  cursor: pointer;
}

.pwd-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.pwd-toggle svg { width: 19px; height: 19px; }

.strength { display: flex; gap: 5px; margin-top: 9px; }
.strength i { height: 3px; flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.09); }
.strength i.on-1 { background: #ff6b6b; }
.strength i.on-2 { background: #f2b33d; }
.strength i.on-3 { background: #3ddc97; }
.strength-text { margin-top: 6px; font-size: 11.5px; color: #7c899c; }

/* ---------------- 拼图验证 ---------------- */

.captcha { margin-top: 2px; }

.cap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8c99ad;
}

.cap-refresh {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}

.cap-refresh:hover { background: rgba(53, 224, 208, 0.08); }

.cap-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0f18;
  border: 1px solid var(--border);
  user-select: none;
  touch-action: none;
}

.cap-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cap-piece {
  position: absolute;
  left: 0;
  width: 13.125%;
  height: 26.25%;
  background-repeat: no-repeat;
  background-size: 320px 160px;
  border-radius: 7px;
  filter: brightness(1.18) saturate(1.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transition: box-shadow 0.2s ease;
}

.cap-frame.is-dragging .cap-piece { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(53, 224, 208, 0.7); }

.cap-slider {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 42px;
  margin: 14px auto 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  touch-action: none;
  user-select: none;
  overflow: hidden;
}

.cap-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  background: linear-gradient(90deg, rgba(53, 224, 208, 0.18), rgba(53, 224, 208, 0.05));
  border-right: 1px solid rgba(53, 224, 208, 0.25);
}

.cap-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4de8d8, #5b8cff);
  color: #04110f;
  cursor: grab;
  box-shadow: 0 8px 22px -8px rgba(53, 224, 208, 0.8);
  transition: transform 0.1s ease;
}

.cap-handle:active { cursor: grabbing; }
.cap-handle svg { width: 18px; height: 18px; }

.cap-tip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7f8c9f;
  pointer-events: none;
}

.cap-status { margin-top: 8px; font-size: 12px; text-align: center; min-height: 18px; color: #7c899c; }
.cap-status.ok { color: var(--ok); }
.cap-status.bad { color: var(--danger); }

/* ---------------- 按钮与提示 ---------------- */

.btn-submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #03110f;
  background: linear-gradient(135deg, #4de8d8, #5b8cff);
  cursor: pointer;
  box-shadow: 0 14px 34px -16px rgba(53, 224, 208, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 20px 42px -16px rgba(53, 224, 208, 0.95); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.alert {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.alert.show { display: block; }
.alert.bad { color: #ffb3b3; background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.25); }
.alert.ok { color: #a9f5cf; background: rgba(61, 220, 151, 0.08); border-color: rgba(61, 220, 151, 0.25); }
.alert a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

.auth-links {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #8c99ad;
  flex-wrap: wrap;
}

.auth-links a { color: #b7c3d4; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.auth-links a:hover { color: var(--accent); border-color: rgba(53, 224, 208, 0.5); }

.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #8c99ad; }
.checkline input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }

.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #6d7a8d;
  text-align: center;
  line-height: 1.8;
}

.auth-foot a { color: #8c99ad; }

/* ---------------- 门户 ---------------- */

.portal-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 26px 80px;
}

.portal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.portal-head img { width: 42px; height: 42px; border-radius: 11px; }
.portal-head .who { margin-right: auto; }
.portal-head .who strong { display: block; font-size: 16px; letter-spacing: 0.04em; }
.portal-head .who span { font-size: 12.5px; color: var(--text-dim); }

.btn-line {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: #b7c3d4;
  font-size: 13px;
  cursor: pointer;
}

.btn-line:hover { border-color: rgba(53, 224, 208, 0.4); color: var(--text); }

.portal-title { margin-top: 46px; }
.portal-title h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; }
.portal-title p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; }

.site-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.site-card {
  position: relative;
  display: block;
  padding: 26px 26px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 224, 208, 0.32);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95);
}

.site-card .row { display: flex; align-items: center; gap: 10px; }
.site-card h2 { font-size: 18px; letter-spacing: -0.01em; }
.site-card .domain { margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.site-card p { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); line-height: 1.75; }

.site-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.site-tags li {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #9cabc0;
}

.site-card .go {
  margin-top: 18px;
  font-size: 12.5px;
  color: #b7c3d4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-card:hover .go { color: var(--accent); }

.site-card.locked { opacity: 0.6; }
.site-card.locked:hover { transform: none; border-color: var(--border); box-shadow: none; }
.site-card.locked .go { color: #8c99ad; }
.site-card.locked .pill i { background: #8c99ad; box-shadow: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #9cabc0;
  border: 1px solid var(--border);
}

.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, 0.8); }

.portal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #8c99ad;
  line-height: 1.8;
}

/* ---------------- 管理员授权 ---------------- */

.admin-panel {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid rgba(53, 224, 208, 0.22);
  border-radius: 18px;
  background: rgba(53, 224, 208, 0.03);
}

.admin-head h2 { font-size: 18px; }
.admin-head p { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }

.admin-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.admin-row:first-child { border-top: 0; }

.admin-user { flex: 1; min-width: 200px; }
.admin-user strong { display: block; font-size: 14px; }
.admin-user span { font-size: 11.5px; color: var(--text-dim); }

.admin-toggles { display: flex; gap: 16px; flex-wrap: wrap; }

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #b7c3d4;
  cursor: pointer;
}

.admin-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 36px; }
  .auth-intro { max-width: 100%; }
  .auth-brand { margin-bottom: 26px; }
  .auth-card { justify-self: center; max-width: 520px; }
  .auth-points { display: none; }
}

@media (max-width: 720px) {
  .auth-shell { padding-top: 30px; }
  .auth-intro .auth-title { font-size: 26px; }
  .auth-lead { display: none; }
  .auth-brand { margin-bottom: 20px; }
  .site-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px 26px; border-radius: 20px; }
  .portal-shell { padding: 32px 18px 60px; }
  .portal-head .who span { display: none; }
}
/* ---------------- 客户台账 ---------------- */
[hidden] { display: none !important; }
.ledger-panel { margin-top: 30px; }
.ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ledger-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ledger-actions .btn-line { height: 34px; padding: 0 12px; }
.ledger-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; }
.ledger-stat { padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.ledger-stat b { display: block; font-size: 20px; letter-spacing: -.03em; color: #fff; }
.ledger-stat span { font-size: 11px; color: var(--text-dim); }
.ledger-stat.warn b { color: #f2b33d; }
.ledger-stat.ok b { color: var(--ok); }
.ledger-stat.bad b { color: var(--danger); }
.ledger-tools { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(4, minmax(110px,.7fr)); gap: 8px; margin-bottom: 12px; }
.ledger-tools input, .ledger-tools select, .ledger-form input, .ledger-form select, .ledger-form textarea, .ledger-inline input, .ledger-inline select, .ledger-inline textarea {
  width: 100%; height: 40px; padding: 0 12px; color: var(--text); font-size: 13px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.10); border-radius: 9px; outline: none;
}
.ledger-tools input:focus, .ledger-tools select:focus, .ledger-form input:focus, .ledger-form select:focus, .ledger-form textarea:focus, .ledger-inline input:focus, .ledger-inline select:focus, .ledger-inline textarea:focus {
  border-color: rgba(53,224,208,.55); box-shadow: 0 0 0 3px rgba(53,224,208,.08);
}
.ledger-tools select option, .ledger-form select option, .ledger-inline select option { background: #101720; color: var(--text); }
.ledger-table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.ledger-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12.5px; }
.ledger-table th { text-align: left; padding: 10px 10px; color: #8c99ad; font-weight: 500; font-size: 10.5px; letter-spacing: .08em; background: rgba(255,255,255,.035); white-space: nowrap; }
.ledger-table td { padding: 11px 10px; border-top: 1px solid rgba(255,255,255,.065); vertical-align: top; color: #cbd5e4; }
.ledger-table td b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.ledger-table td small { display: block; color: var(--text-dim); font-size: 10.5px; margin-top: 2px; }
.ledger-table .money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.ledger-actions-cell button { height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.13); background: transparent; color: #b7c3d4; font-size: 11px; cursor: pointer; }
.ledger-actions-cell button:hover { border-color: rgba(53,224,208,.45); color: #fff; }
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.badge.lead { background: rgba(148,163,184,.14); color: #b7c3d4; }
.badge.quoted { background: rgba(91,140,255,.14); color: #9bb7ff; }
.badge.pending_payment { background: rgba(242,179,61,.14); color: #f2c36b; }
.badge.paid { background: rgba(53,224,208,.13); color: #6ff0e3; }
.badge.active { background: rgba(61,220,151,.13); color: #6ee7b7; }
.badge.expired { background: rgba(255,107,107,.12); color: #ff9a9a; }
.badge.refunding, .badge.refunded { background: rgba(255,107,107,.14); color: #ff8e8e; }
.pay-tag { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.pay-tag.paid { color: var(--ok); }
.pay-tag.partial { color: #f2b33d; }
.ledger-cards { display: none; gap: 10px; }
.ledger-card { border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.025); }
.ledger-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ledger-card-head b { display: block; color: #fff; font-size: 14px; }
.ledger-card-head span { color: var(--text-dim); font-size: 11px; }
.ledger-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin: 10px 0; font-size: 11.5px; color: #b7c3d4; }
.ledger-card-grid span { display: block; color: var(--text-dim); font-size: 10px; }
.ledger-empty { padding: 24px 10px; text-align: center; color: var(--text-dim); font-size: 12.5px; }
.ledger-mask { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(2,6,12,.76); backdrop-filter: blur(6px); }
.ledger-modal { width: min(760px, 100%); max-height: calc(100svh - 36px); overflow: auto; border: 1px solid rgba(53,224,208,.24); border-radius: 18px; background: #0b121b; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.ledger-modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0b121b; }
.ledger-modal-head h2 { font-size: 16px; }
.ledger-modal-head button { border: 0; background: transparent; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.ledger-form { padding: 16px 20px 20px; }
.ledger-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; }
.ledger-form-grid .full { grid-column: 1 / -1; }
.ledger-form label { display: block; font-size: 10.5px; color: #8c99ad; margin: 0 0 5px; letter-spacing: .05em; }
.ledger-form textarea, .ledger-inline textarea { height: 84px; padding: 9px 11px; resize: vertical; }
.ledger-checkline { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #b7c3d4; padding-top: 7px; }
.ledger-checkline label { display: flex; gap: 5px; align-items: center; margin: 0; font-size: 12px; letter-spacing: 0; color: #b7c3d4; }
.ledger-checkline input { width: 14px; height: 14px; accent-color: var(--accent); }
.ledger-submit-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ledger-submit-row button { height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,.13); background: transparent; color: #dbe5f2; cursor: pointer; }
.ledger-submit-row button.primary { border-color: transparent; background: linear-gradient(100deg, #35e0d0, #5b8cff); color: #061019; font-weight: 700; }
.ledger-detail-body { padding: 16px 20px 22px; }
.ledger-detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.ledger-detail-summary div { padding: 9px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; }
.ledger-detail-summary span { display: block; font-size: 10px; color: var(--text-dim); }
.ledger-detail-summary b { display: block; font-size: 13px; color: #fff; margin-top: 2px; }
.ledger-detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.ledger-detail-actions button { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.13); background: transparent; color: #cdd8e8; font-size: 11.5px; cursor: pointer; }
.ledger-inline { display: grid; gap: 9px; padding: 12px; margin: 0 0 14px; border: 1px solid rgba(53,224,208,.2); border-radius: 10px; background: rgba(53,224,208,.035); }
.ledger-inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ledger-section-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9fb0c6; margin: 16px 0 7px; }
.ledger-list { display: grid; gap: 6px; }
.ledger-list-item { padding: 8px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; font-size: 11.5px; color: #b7c3d4; }
.ledger-list-item b { color: #fff; }
.ledger-list-item small { color: var(--text-dim); display: block; margin-top: 2px; }
.ledger-note-box { padding: 9px 11px; border-radius: 8px; background: rgba(255,255,255,.035); color: #b7c3d4; font-size: 11.5px; white-space: pre-wrap; }
.ledger-toast { margin-top: 10px; font-size: 12px; color: var(--ok); }
@media (max-width: 980px) {
  .ledger-stats { grid-template-columns: repeat(3, 1fr); }
  .ledger-tools { grid-template-columns: 1fr 1fr; }
  .ledger-tools input { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ledger-panel { padding: 18px 15px; }
  .ledger-table-wrap { display: none; }
  .ledger-cards { display: grid; }
  .ledger-stats { grid-template-columns: repeat(2, 1fr); }
  .ledger-form-grid { grid-template-columns: 1fr; }
  .ledger-form-grid .full { grid-column: auto; }
  .ledger-detail-summary { grid-template-columns: 1fr 1fr; }
  .ledger-inline-row { grid-template-columns: 1fr; }
  .portal-head { flex-wrap: wrap; }
  .portal-head .who { width: 100%; order: 5; }
}
