.led-page { padding: 8px 12px 80px; background: #f4f6f9; min-height: 100%; }
.led-page.has-dock { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.led-page.is-emp { height: 100dvh; overflow: hidden; box-sizing: border-box; padding-bottom: 0; }
body.led-emp-lock { overflow: hidden; }
/* 小程序只账本：藏底栏；仅顶栏黄底；底部白/灰 */
body.led-mp #tabbar,
body.led-mp .tabbar { display: none !important; visibility: hidden !important; }
body.led-mp,
body.led-mp #app {
  background: #f4f6f9;
  min-height: 100%;
}
body.led-mp .led-page {
  padding-top: 0;
  background: #f4f6f9;
}
body.led-mp .led-top {
  box-sizing: border-box;
  min-height: 40px;
  padding: 6px 8px 8px;
  margin: 0 -12px 0;
  align-items: center;
  background: #e0f2fe;
}
body.led-mp .led-back-spacer { flex: 0 0 auto; min-width: 52px; }
body.led-mp .led-title-switch {
  font-size: 17px; font-weight: 800; padding: 0 6px;
  color: #0f172a;
  background: transparent;
  border-radius: 0;
}
body.led-mp .led-role-caret {
  border-top-color: #0284c7;
  margin-top: 2px;
}
body.led-mp .led-bill { margin-top: 4px; }
body.led-mp .led-dock {
  left: 0; right: 0; transform: none; width: 100%; max-width: none;
  background: #fff;
}
.led-yield-card {
  display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; overflow: hidden;
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.led-yield-card .led-scroll-flow { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
.led-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 45;
  width: calc(100% - 24px); max-width: 456px; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: space-between;
  background: #fff; padding: 8px 28px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}
.led-dock-side {
  flex: 1; border: 0; background: transparent; color: #94a3b8;
  font-size: 13px; font-weight: 600; padding: 10px 0 2px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.led-dock-side.on { color: #3b82f6; }
.led-dock-side.on::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3b82f6;
}
.led-dock-add {
  flex: 0 0 auto; height: 40px; margin: 0 8px 10px; padding: 0 22px;
  border: 0; border-radius: 999px; background: #3b82f6; color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(59, 130, 246, .34);
}
.led-seg {
  display: flex; width: fit-content; margin: 0 auto 12px; padding: 4px; gap: 4px;
  background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}
.led-seg button {
  border: 0; background: transparent; height: 32px; padding: 0 18px; border-radius: 999px;
  color: #64748b; font-size: 14px; font-weight: 700;
}
.led-seg button.on { background: #3b82f6; color: #fff; }
.led-seg-sm { margin: 0; box-shadow: none; background: #f1f5f9; }
.led-seg-sm button { height: 26px; padding: 0 12px; font-size: 12px; }
.led-stat-page { padding-top: 0; }
.led-stat-hero {
  position: relative; overflow: hidden;
  margin: 8px 0 14px; padding: 14px 12px 8px; border-radius: 18px;
  background:
    radial-gradient(90px 90px at 92% 0%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(140px 120px at 0% 110%, rgba(125, 211, 252, .55), transparent 72%),
    linear-gradient(165deg, #e0f2fe 0%, #bfdbfe 48%, #93c5fd 100%);
}
.led-stat-hero::after {
  content: ""; position: absolute; right: -36px; top: -48px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.38); pointer-events: none;
}
.led-stat-title {
  position: relative; z-index: 1; display: flex; align-items: center; height: 44px;
  margin: 0 0 12px; padding: 0; background: transparent;
}
.led-stat-title .led-back { position: relative; z-index: 1; color: #0369a1; }
.led-stat-title b {
  position: absolute; left: 0; right: 0; top: 0; height: 44px; line-height: 44px;
  text-align: center; font-size: 17px; font-weight: 800; color: #0f172a; pointer-events: none;
}
.led-stat-head { position: relative; z-index: 1; margin: 0 0 8px; }
.led-stat-head .led-seg {
  width: 100%; margin: 0 0 14px; padding: 3px; box-sizing: border-box;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.led-stat-head .led-seg button { flex: 1; height: 36px; font-size: 15px; }
.led-stat-head .led-seg button.on { box-shadow: 0 4px 10px rgba(59, 130, 246, .32); }
.led-stat-nav {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: 0 2px;
}
.led-stat-nav b {
  min-width: 0; text-align: center; font-size: 18px; font-weight: 800;
  letter-spacing: .04em; color: #0f172a;
}
.led-stat-nav button {
  width: 36px; height: 36px; margin: 0 auto; border: 0; border-radius: 50%; padding: 0;
  background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); position: relative;
}
.led-stat-nav button::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-top: 2px solid #475569; border-right: 2px solid #475569;
}
.led-stat-nav button:first-child::before { margin-left: -3px; transform: rotate(-135deg); }
.led-stat-nav button:last-child::before { margin-left: -7px; transform: rotate(45deg); }
.led-bill-plain { padding: 18px 8px 16px; }
.led-stat-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.led-stat-hd > b { font-size: 15px; }
.led-donut-wrap { position: relative; width: 200px; height: 200px; margin: 6px auto 12px; }
.led-donut-wrap canvas { display: block; width: 200px; height: 200px; }
.led-donut-mid {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; text-align: center;
}
.led-donut-mid small { font-size: 12px; color: #64748b; }
.led-donut-mid b { font-size: 18px; color: #0f172a; margin: 2px 0; }
.led-donut-mid span { font-size: 12px; color: #94a3b8; }
.led-stat-row {
  display: grid; grid-template-columns: 10px 1fr auto; column-gap: 8px; row-gap: 4px;
  align-items: center; width: 100%; margin: 10px 0 0; padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.led-stat-detail { margin: 6px 0 2px 18px; }
.led-stat-row i { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; }
.led-stat-row .nm { font-size: 14px; font-weight: 700; }
.led-stat-row > b { font-size: 13px; }
.led-stat-bar { height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.led-stat-bar span { display: block; height: 100%; border-radius: 99px; }
.led-stat-row em { font-style: normal; font-size: 12px; color: #64748b; text-align: right; }
.led-money .led-top strong { font-size: 17px; font-weight: 800; }
.led-money .led-top span { width: 52px; }
.led-money-hero {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 18px 16px 16px; color: #fff;
  background: linear-gradient(135deg, #2e6bff 0%, #4f8bff 52%, #22d3ee 120%);
  box-shadow: 0 14px 36px rgba(46, 107, 255, .35);
}
.led-money-hero::before {
  content: ""; position: absolute; right: -28px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.28); pointer-events: none;
}
.led-money-switch { display: flex; justify-content: center; gap: 12px; width: 86%; margin: 0 auto; }
.led-money-switch button {
  position: relative; overflow: hidden; flex: 1; min-width: 0;
  height: 40px; border: 0; border-radius: 999px; padding: 0 16px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 16px; font-weight: 700;
}
.led-money-switch button::after { content: none; }
.led-money.is-out .led-money-switch button.on { background: #fb7185; }
.led-money.is-in .led-money-switch button.on { background: #34d399; }
.led-money-amt {
  display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 18px 0 8px;
}
.led-money-amt span { font-size: 22px; font-weight: 700; }
.led-money-amt input {
  width: 7em; border: 0; background: transparent; color: #fff; text-align: left;
  font-size: 40px; font-weight: 800; outline: none; padding: 0;
}
.led-money-amt input::placeholder { color: rgba(255,255,255,.88); }
.led-money-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.led-money-split { width: 1px; height: 12px; background: rgba(255,255,255,.55); flex: 0 0 auto; }
.led-money-memo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.led-money-memo > span { white-space: nowrap; }
.led-money-date {
  position: relative; display: flex; align-items: center; gap: 6px;
  font-size: 13px; white-space: nowrap;
}
.led-money-date b { font-weight: 700; }
.led-money-date input { position: absolute; inset: 0; opacity: 0; }
.led-money-note {
  flex: 1; min-width: 0; height: 32px; border: 0; background: transparent; color: #fff;
  font-size: 13px; outline: none; padding: 0;
}
.led-money-note::placeholder { color: rgba(255,255,255,.75); }
.led-money-lab { margin: 16px 2px 8px; font-size: 16px; color: #ef4444; font-weight: 800; }
.led-money-lab span { margin-left: 6px; font-size: 12px; font-weight: 400; color: #94a3b8; }
.led-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.led-cat {
  position: relative;
  border: 1px solid transparent; border-radius: 16px; background: #fff; color: #64748b;
  padding: 14px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.led-cat-x {
  position: absolute; top: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 14px; font-style: normal; font-weight: 700;
  line-height: 18px; text-align: center;
}
.led-cat-edit {
  width: 90%; border: 0; background: #f1f5f9; border-radius: 6px; text-align: center;
  font-size: 13px; font-weight: 700; color: #0f172a; outline: none; padding: 2px 0;
}
.led-money.is-edit .led-cat { border-color: #e2e8f0; }
.led-cat svg { width: 26px; height: 26px; fill: none; stroke: var(--cat, #3b82f6); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.led-cat-add { color: #94a3b8; border: 1px dashed #e2e8f0; box-shadow: none; background: #f8fafc; }
.led-cat-add b { font-size: 22px; line-height: 26px; font-weight: 500; color: #94a3b8; }
.led-cat-new { justify-content: center; }
.led-cat-new input {
  width: 100%; border: 0; background: transparent; text-align: center;
  font-size: 14px; font-weight: 700; color: #0f172a; outline: none;
}
.led-money.is-out .led-cat.on { border-color: #fb7185; color: #334155; background: #fff5f6; }
.led-money.is-in .led-cat.on { border-color: #34d399; color: #334155; background: #f0fdf8; }
.led-money-save {
  display: block; width: 100%; height: 46px; margin-top: 18px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #4b9bff, #2563eb); color: #fff; font-size: 16px; font-weight: 800;
}
.led-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; min-height: 44px;
  padding: 8px 0 12px; font-size: 16px;
}
.led-back {
  border: 0; background: none; color: #0284c7; font-size: 15px; font-weight: 600; padding: 4px 0;
  flex: 0 0 auto; min-width: 52px; z-index: 1;
}
.led-top > span { flex: 0 0 auto; min-width: 52px; }
.led-title-switch {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 0; background: transparent; padding: 2px 8px;
  font-size: 17px; font-weight: 800; color: #0f172a; cursor: pointer;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; line-height: 1;
}
.led-title-switch small { display: none; }
.led-role-caret {
  width: 0; height: 0; margin-top: 2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0284c7;
}
.led-book {
  width: 100%; height: 36px; margin: 0 0 8px; padding: 0 8px;
  border: 0; border-radius: 10px; background: #fff;
  font-size: 15px; font-weight: 700; color: #0f172a;
}
.led-code { font-size: 22px; font-weight: 800; letter-spacing: 0.18em; color: #0f172a; }
.led-hd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.led-next {
  border: 0; background: none; color: #0284c7; font-size: 13px; font-weight: 700; padding: 0;
}
.led-code-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 10px 12px; background: #fff; border-radius: 14px;
}
.led-code-main {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left;
}
.led-code-main b { display: block; font-size: 16px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led-inline-stat {
  flex: 0 0 auto; display: flex; align-items: baseline; gap: 3px; white-space: nowrap;
  background: none; color: #0f172a;
}
.led-inline-stat b { font-size: 15px; font-weight: 800; color: #0369a1; }
.led-inline-stat span { font-size: 12px; color: #64748b; }
.led-audit-range { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.led-audit-range .led-date-pick { flex: 1; min-width: 0; width: auto; }
.led-date-pick,
.led-flow-date {
  position: relative; display: flex; align-items: center;
  flex: 0 0 auto; width: 152px; height: 34px; box-sizing: border-box;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden;
}
.led-date-pick .led-input,
.led-flow-date .led-input {
  width: 100%; flex: none; min-width: 0; height: 100%; margin: 0;
  padding: 0 34px 0 8px; border: 0; border-radius: 0;
  font-size: 13px; line-height: 34px; background: transparent; color: #0f172a;
}
.led-date-pick .led-input::-webkit-calendar-picker-indicator,
.led-flow-date .led-input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.led-date-pick .led-cal-ico,
.led-flow-date .led-cal-ico {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .12));
}
.led-audit-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 2px 0 10px; font-size: 12px; color: #64748b; }
.led-audit-sum b { color: #0f172a; font-size: 14px; }
.led-audit-lines {
  max-height: 280px; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.led-audit-lines::-webkit-scrollbar { display: none; width: 0; height: 0; }
.led-page.is-qr-away .led-audit {
  position: fixed;
  left: 50%;
  top: var(--audit-top, 108px);
  bottom: var(--audit-bottom, 96px);
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  margin: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.led-page.is-qr-away .led-audit > :not(.led-audit-lines) { flex: 0 0 auto; }
.led-page.is-qr-away .led-audit-lines {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.led-audit-lines .led-line { cursor: pointer; }
.led-catch-top { display: flex; align-items: flex-start; gap: 8px; }
.led-catch-top .led-tip { flex: 1; min-width: 0; }
.led-catch-add {
  flex: 0 0 auto; align-self: flex-start; width: 22px; height: 22px; margin: 0; padding: 0;
  border: 0; border-radius: 6px; background: #0284c7; color: #fff;
  font-size: 16px; font-weight: 700; line-height: 22px;
}
.led-catch-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.led-catch-picks button {
  height: 28px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #0f172a; font-size: 13px; font-weight: 700;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.led-catch-picks button.on { border-color: #b91c1c; background: #fef2f2; color: #b91c1c; }
.led-catch-picks .pick-del { border-color: #b91c1c; background: #b91c1c; color: #fff; }
.led-catch-picks .pick-del[hidden] { display: none !important; }
.led-catch { display: block; background: #f8fafc; border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.led-catch-nums { display: flex; gap: 8px; align-items: flex-end; }
.led-catch-nums label { flex: 1; min-width: 0; font-size: 12px; color: #64748b; }
.led-catch-nums .led-input { width: 100%; margin-top: 4px; }
.led-catch-del { flex: 0 0 auto; height: 40px; border: 0; background: none; color: #b91c1c; font-weight: 700; padding: 0 2px; }
.led-code-main small { display: block; margin-top: 2px; font-size: 12px; color: #0284c7; letter-spacing: 0.08em; }
.led-invite {
  overflow: hidden;
  max-height: 480px;
  transition: max-height .28s ease, margin-bottom .28s ease, padding .28s ease, opacity .2s ease;
}
.led-invite.is-away {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.led-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 8px 0 12px;
}
.led-qr img { width: 200px; height: 200px; display: block; margin: 0 auto; }
.led-qr-tools { display: flex; gap: 8px; }
.led-qr-tools .led-btn { flex: 1; margin: 0; height: 40px; padding: 0 6px; font-size: 13px; white-space: nowrap; }
.led-sync { font-size: 12px; color: #64748b; margin: 0 0 10px; }
.led-bill {
  margin: 0 0 12px; padding: 16px 8px 14px; border-radius: 18px; color: #fff;
  background: linear-gradient(100deg, #6ec4ff 0%, #3d98f0 58%, #2f86e6 100%);
  box-shadow: 0 10px 24px rgba(47, 134, 230, .28);
}
.led-bill-nav { display: flex; align-items: center; margin-bottom: 14px; }
.led-bill-nav b { flex: 1; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.led-bill-nav button {
  width: 36px; height: 36px; border: 0; background: transparent; color: #fff;
  font-size: 26px; font-weight: 500; line-height: 1; padding: 0;
}
.led-bill-nums { display: flex; }
.led-bill-nums > div { flex: 1; min-width: 0; text-align: center; }
.led-bill-nums span { display: block; font-size: 12px; opacity: .92; margin-bottom: 4px; }
.led-bill-nums b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; }
.led-sum {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.led-sum > div {
  flex: 1; background: linear-gradient(145deg, #0369a1, #38bdf8); color: #fff;
  border-radius: 14px; padding: 14px 12px;
}
.led-sum b { display: block; font-size: 22px; }
.led-sum span { font-size: 11px; opacity: .88; }
.led-type { position: relative; margin-bottom: 8px; }
.led-form:has(#fAmt) .led-type,
.led-form:has(#fAmt) #fAmt,
.led-form:has(#fAmt) #fDate,
.led-form:has(#fAmt) .led-btn.block {
  width: 50%; max-width: 50%; min-width: 0; box-sizing: border-box;
}
.led-form:has(#fAmt) .led-type-btn { width: 100%; max-width: 100%; }
.led-type-btn {
  width: 100%; box-sizing: border-box; text-align: left; background: #fff; position: relative; padding-right: 32px; cursor: pointer;
}
.led-type-btn::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
}
.led-type-menu {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 6;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12); padding: 4px;
}
.led-type > .led-input { padding-right: 32px; }
.led-type::after {
  content: ""; position: absolute; right: 14px; top: 20px; pointer-events: none;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
}
.led-type-menu [data-kind],
.led-type-menu [data-pick-type] {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  height: 36px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: #0f172a;
}
.led-type-menu[hidden] { display: none !important; }
.led-type-hint { margin: 8px 10px; font-size: 13px; color: #64748b; }
.led-type-row { display: flex; align-items: center; }
.led-type-row [data-kind],
.led-type-row [data-pick-type] {
  flex: 1; width: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.led-type-row [data-edit-type],
.led-type-row [data-del-type] {
  border: 0; background: transparent; font-size: 12px; font-weight: 700;
  height: 36px; padding: 0 6px; flex-shrink: 0;
}
.led-type-row [data-edit-type] { color: #0369a1; }
.led-type-row [data-del-type] { color: #b91c1c; }
.led-type-edit { height: 36px; margin: 0; }
.led-track { width: 100%; height: 150px; display: block; margin: 0 0 8px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.led-track-btn { height: 32px; padding: 0 12px; }
.led-day-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.led-day-hd .led-lab { margin: 0; }
.led-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; font-weight: 700; }
.led-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.led-switch i { width: 40px; height: 24px; border-radius: 999px; background: #cbd5e1; display: block; position: relative; }
.led-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .15s ease;
}
.led-switch input:checked + i { background: #0284c7; }
.led-switch input:checked + i::after { transform: translateX(16px); }
.led-kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.led-kind-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; padding: 12px 8px; border: 1px solid #e2e8f0; border-radius: 14px;
  background: #fff; color: #334155; font-size: 15px; font-weight: 800; text-align: center;
}
.led-kind-cell small { font-size: 11px; font-weight: 500; color: #94a3b8; }
.led-kind-cell.on { border-color: #0284c7; background: #e0f2fe; color: #0369a1; }
.led-kind-cell.on small { color: #0284c7; }
.led-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.led-act {
  flex: 1 1 30%; min-width: 30%;
  height: 40px; border: 0; border-radius: 12px; background: #fff;
  font-weight: 700; color: #0369a1; box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.led-card {
  background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(15,23,42,.05);
}
.led-hd { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.led-flow-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.led-flow-bar .led-hd { margin: 0; flex: 0 0 auto; }
.led-flow-pick { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.led-flow-month {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: auto; min-height: 40px; margin: 0 0 8px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: #f8fafc; color: #0f172a;
  font-size: 14px; font-weight: 700; text-align: left;
}
.led-flow-month > span { flex: 0 0 auto; white-space: nowrap; }
.led-flow-month em { font-style: normal; font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; text-align: right; }
.led-flow-month em b { color: #0f172a; font-weight: 800; }
.led-flow-month.on { background: #e0f2fe; color: #0369a1; }
.led-flow-month-body { margin: 0 0 8px; }
.led-flow-pick button {
  height: 32px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; color: #334155; font-size: 12px; font-weight: 700;
}
.led-flow-pick button.on { border-color: #0284c7; background: #e0f2fe; color: #0369a1; }
.led-hd-note { margin-left: 4px; font-size: 11px; font-weight: 400; color: #94a3b8; }
.led-empty { font-size: 13px; color: #94a3b8; margin: 6px 0; }
.led-attend-above { margin-bottom: 8px; }
.led-attend-above .led-attend:last-child { margin-bottom: 0; }
.led-attend { margin-bottom: 8px; }
.led-attend-hd { cursor: pointer; margin-bottom: 0; }
.led-attend.is-open .led-attend-hd { border-radius: 10px 10px 0 0; }
.led-attend-more {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e8f0; border-top: 0;
  border-radius: 0 0 10px 10px; padding: 8px 10px 10px;
}
.led-attend-more .led-hd { margin-top: 2px; }
.led-attend-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.led-attend-acts .led-btn { margin-top: 0; align-self: auto; }
.led-proof img { width: 100%; border-radius: 12px; display: block; margin-top: 10px; }
.led-proof .led-btn { margin-top: 8px; }
.led-line > b { text-align: right; }
.led-line > b em { font-style: normal; font-weight: 700; white-space: nowrap; margin-right: 6px; }
.led-amt { font-style: normal; font-weight: 800; }
.led-amt.in { color: #16a34a; }
.led-amt.out { color: #ef4444; }
.led-bill-sheet { margin-top: 12px; overflow-x: auto; }
.led-bill-frame {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fffdf9;
  overflow: hidden;
}
.led-bill-top { flex: none; padding: 14px 12px 4px; }
.led-bill-top .who { font-size: 18px; font-weight: 800; }
.led-bill-top .sub { margin: 4px 0 10px; color: #78716c; font-size: 12px; }
.led-bill-cols, .led-bill-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 72px 72px;
  gap: 6px;
  align-items: start;
  padding: 8px 12px;
}
.led-bill-cols { flex: none; color: #a8a29e; font-size: 12px; font-weight: 700; }
.led-bill-cols span:nth-child(n+3), .led-bill-row span:nth-child(3), .led-bill-row b { text-align: right; }
.led-bill-body {
  height: 46vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.led-bill-m {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: #fff7ed; color: #c2410c;
  font-size: 13px; font-weight: 700;
}
.led-bill-m b { color: #16a34a; }
.led-bill-row { border-top: 1px solid #f5f5f4; font-size: 13px; }
.led-bill-row b { color: #16a34a; }
.led-bill-sum3 { display: flex; gap: 8px; margin: 0 0 10px; }
.led-bill-sum3 > div { flex: 1; background: #f8fafc; border-radius: 10px; padding: 8px 6px; text-align: center; }
.led-bill-sum3 span { display: block; font-size: 11px; color: #64748b; }
.led-bill-sum3 b { display: block; margin-top: 2px; font-size: 14px; }
.led-bill-sum3 .borrow { color: #ef4444; }
.led-bill-sum3 .left { color: #16a34a; }
.led-bill-month {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin: 0 0 6px; padding: 10px; border: 0; border-radius: 10px; background: #f8fafc;
  font-size: 14px; font-weight: 700; text-align: left;
}
.led-bill-month.on { background: #eff6ff; }
.led-bill-month b { color: #16a34a; white-space: nowrap; }
.led-bill-lines { max-height: 46vh; overflow: auto; margin: 0 0 8px; }
.led-bill-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.led-bill-table th, .led-bill-table td { padding: 8px 4px; border-bottom: 1px solid #e7e5e4; text-align: left; vertical-align: top; }
.led-bill-table th { color: #78716c; font-size: 12px; font-weight: 700; }
.led-bill-table .num { text-align: right; white-space: nowrap; }
.led-bill-table .cut { color: #16a34a; font-weight: 800; }
.led-bill-table .borrow { color: #ef4444; font-weight: 800; }
.led-bill-table tr.sum td, .led-bill-table tr.left td { font-weight: 800; }
.led-bill-table tr.left td { border-bottom: 0; }
.led-line-amt { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.led-pause {
  height: 26px; padding: 0 10px; border: 0; border-radius: 999px;
  background: #0f172a; color: #fff; font-size: 12px; font-weight: 700;
}
.led-pause.is-on { background: #e2e8f0; color: #0f172a; }
.led-ship, .led-mem, .led-recon, .led-line {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; border: 0; background: #f8fafc; border-radius: 10px;
  padding: 10px; margin-bottom: 8px; text-align: left; color: inherit; font: inherit;
}
.led-ship small, .led-mem small, .led-recon small {
  display: block; color: #64748b; font-size: 12px; font-weight: 400; margin-top: 2px;
}
.led-row { display: flex; gap: 8px; margin-top: 8px; }
.led-input {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  flex: 1; height: 40px; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 0 10px; font-size: 15px; background: #fff;
}
.led-input[hidden] { display: none !important; }
.led-lock {
  display: flex; align-items: center; background: #f1f5f9; color: #64748b;
  pointer-events: none; user-select: none;
}
.led-btn {
  height: 40px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  background: #fff; font-weight: 700; color: #334155;
}
.led-btn.primary { background: #0284c7; color: #fff; border-color: #0284c7; }
.led-btn.block { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; }
.led-bill-shots img { width: 100%; display: block; border-radius: 16px; background: #fffdf9; }
.led-bill-shots img + img { margin-top: 10px; }
.led-bill-acts {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.led-bill-acts .led-btn {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}
.led-bill-acts .led-btn.primary { box-shadow: 0 6px 14px rgba(2, 132, 199, .28); }
.led-lab { display: block; font-size: 12px; color: #64748b; margin: 10px 0 4px; }
.led-form { padding-bottom: 16px; }
.led-tip { font-size: 13px; color: #0369a1; line-height: 1.45; margin: 0 0 8px; }
.led-borrow-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding-bottom: 12px;
}
.led-borrow-form {
  flex: 1 1 48%;
  min-width: 0;
}
.led-borrow-sum {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}
.led-borrow-sum > div {
  flex: 1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.led-borrow-sum b {
  display: block;
  font-size: 16px;
  color: #0c4a6e;
}
.led-borrow-sum span {
  font-size: 11px;
  color: #0369a1;
}
.led-borrow-hist {
  flex: 1 1 48%;
  min-width: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  max-height: 360px;
  overflow-y: auto;
}
.led-borrow-hist .led-hd { margin-bottom: 6px; font-size: 12px; }
.led-borrow-list .led-line-compact {
  padding: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  background: #fff;
}
.led-borrow-list .led-line-compact b { font-size: 13px; white-space: nowrap; }
.led-recon-btns { display: flex; gap: 6px; flex-shrink: 0; }
.led-scroll {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.led-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.led-mem-amt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}
.led-mem-amt b {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.led-mem-btns { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.led-btn.stop-on { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.led-mem.is-stopped { opacity: 0.78; }
.led-nick {
  border: 0;
  background: none;
  color: #0284c7;
  font-weight: 800;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.led-nick:active { opacity: 0.75; }
.led-kind {
  display: inline;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  vertical-align: middle;
  white-space: nowrap;
}
.led-duty {
  display: inline;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  vertical-align: middle;
  white-space: nowrap;
}
.led-duty.is-off { color: #b91c1c; }
.led-btn-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
  margin-top: 8px;
}
.led-mem-detail { margin: 8px 0 0; }
.led-cut { margin: 0 0 8px; }
.led-cut-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0 0 8px; padding: 10px; border: 0;
  background: #f8fafc; border-radius: 10px;
  text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.led-cut-hd span { margin-right: auto; }
.led-cut-hd em { margin-right: 10px; font-style: normal; font-weight: 700; color: #b91c1c; }
.led-cut-hd i { font-style: normal; font-size: 12px; font-weight: 600; color: #64748b; }
.led-cut-done { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #b91c1c; }
.led-cut-pick {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 4px; font-size: 14px; font-weight: 700;
}
.led-cut-pick input {
  border: 0; background: #f8fafc; border-radius: 10px;
  height: 36px; padding: 0 10px; font-size: 14px; font-weight: 700; color: #0f172a;
}
.led-cut-day, .led-cut-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.led-cut-row { padding-left: 22px; color: #475569; }
.led-cut-day > span, .led-cut-row > span { flex: 1; min-width: 0; }
.led-cut-day > b, .led-cut-row > b { flex: 0 0 auto; font-size: 13px; }
.led-cut .led-btn { margin-top: 12px; }
.led-mem-detail .led-line { background: #f8fafc; }
.me-stat strong.me-stat-led { font-size: 15px; }
