:root {
  --wood-1: #e2c8a4;
  --wood-2: #d3b189;
  --wood-3: #c49d72;
  --card: #fffdfa;
  --card-soft: #f6f1e9;
  --ink: #33322f;
  --ink-2: #6f6a63;
  --ink-3: #a49d93;
  --accent: #3a7bd5;
  --accent-soft: #e8f0fd;
  --red: #f2503c;
  --green: #2fa36b;
  --grey: #9b958c;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 10px 28px rgba(120, 86, 45, .16);
  --shadow-soft: 0 4px 14px rgba(120, 86, 45, .10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, rgba(0,0,0,.02) 2px 5px),
    linear-gradient(160deg, var(--wood-1), var(--wood-2) 45%, var(--wood-3));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.phone {
  max-width: 480px;
  margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 14px calc(104px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 14px;
}
.topbar-title {
  font-size: 17px;
  font-weight: 600;
  color: #4a3a26;
  letter-spacing: .3px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,.55);
  color: #5b472e;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.icon-btn:active { transform: scale(.94); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 20px;
  margin-bottom: 16px;
}
.hero-left { min-width: 0; }
.hero-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-sub {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.hero-right {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}
.hero-days {
  font-size: 54px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -2px;
  color: #3c3b39;
  font-variant-numeric: tabular-nums;
}
.hero-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
  margin-top: 6px;
}

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 2px 14px;
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 4px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,.42);
  color: #6b5537;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tab span { font-size: 13px; opacity: .8; }
.tab.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.tab b {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 10px;
  color: var(--red);
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
}

.day { position: relative; margin-bottom: 22px; }
.day::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}

.day-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #5d4a31;
  background: rgba(255,255,255,.62);
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  letter-spacing: .3px;
}

.day-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}

.summary-row { display: flex; align-items: flex-start; gap: 8px; }
.summary-text {
  flex: 1;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0 0 12px;
  cursor: text;
}
.summary-text.editing {
  background: var(--card-soft);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
.tag {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 7px;
  letter-spacing: .3px;
}
.tag.rule { color: var(--grey); background: #f1eeea; }
.tag.ai { color: var(--accent); background: var(--accent-soft); }
.tag.manual { color: var(--green); background: #e7f6ee; }

.photos { display: grid; gap: 6px; }
.photos.n1 { grid-template-columns: 1fr; }
.photos.n2 { grid-template-columns: 1fr 1fr; }
.photos.n3, .photos.n4, .photos.nmore { grid-template-columns: 1fr 1fr; }

.photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-soft);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.photos.n1 .photo { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .warn {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 9.5px;
  background: rgba(242,80,60,.92);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
}
.photo .more {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
}

.day-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ghost-btn {
  border: none;
  background: var(--card-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 11px;
  cursor: pointer;
}
.ghost-btn:active { transform: scale(.97); }
.ghost-btn:disabled { opacity: .45; cursor: not-allowed; }
.ghost-btn.ai { color: var(--accent); background: var(--accent-soft); }

/* ---------- 表单 ---------- */
.form-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.field input {
  border: 1.5px solid #eae3d8;
  background: var(--card-soft);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}
.field input:focus { border-color: var(--accent); background: #fff; }
.primary-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
}
.primary-btn:active { transform: scale(.985); }

/* ---------- 底部操作条 ---------- */
.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(452px, calc(100% - 28px));
  display: flex;
  gap: 8px;
  background: rgba(255,253,250,.92);
  backdrop-filter: blur(14px);
  padding: 8px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(90, 62, 30, .22);
}
.dock-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 6px;
  border-radius: 15px;
  cursor: pointer;
  font-family: inherit;
}
.dock-btn:active { background: var(--card-soft); }
.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}
.dot.plus { background: #f0a03c; }
.dot.upload { background: var(--accent); }
.dot.gear { background: #a89a86; }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(40, 28, 14, .38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}
.sheet {
  width: min(480px, 100%);
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
  max-height: 82vh;
  overflow-y: auto;
  animation: rise .22s ease;
}
@keyframes rise { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 14px; font-size: 17px; }
.sheet .row { display: flex; gap: 10px; margin-top: 12px; }
.sheet .row > * { flex: 1; }
.sheet textarea {
  width: 100%;
  border: 1.5px solid #eae3d8;
  background: var(--card-soft);
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  min-height: 84px;
  outline: none;
}
.sheet .hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.sheet .big-img {
  width: 100%;
  max-height: 44vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  background: #111;
}

/* ---------- 杂项 ---------- */
.hidden { display: none !important; }
.empty {
  text-align: center;
  color: #fff;
  opacity: .92;
  padding: 56px 20px;
  font-size: 14px;
  line-height: 1.7;
}
.empty b { display: block; font-size: 34px; margin-bottom: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: rgba(48, 38, 26, .92);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 12px;
  z-index: 60;
  max-width: 82vw;
  text-align: center;
  line-height: 1.4;
}

.pending-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.pending-head { display: flex; align-items: center; gap: 12px; }
.pending-item img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pending-item .meta { flex: 1; min-width: 0; }
.pending-item .meta strong { font-size: 14.5px; }
.pending-item .meta small { color: var(--ink-3); font-size: 11.5px; display: block; margin-top: 4px; }
.pending-edit { display: flex; gap: 8px; }
.pending-edit input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #eae3d8;
  border-radius: 12px;
  padding: 10px;
  font-size: 13.5px;
  background: var(--card-soft);
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.pending-edit input:focus { border-color: var(--accent); background: #fff; }
.primary-btn.small { padding: 10px 16px; font-size: 13.5px; border-radius: 12px; flex: 0 0 auto; }
.warn-text { color: var(--red); font-size: 12px; }

/* ---------- 登录页 ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.login-card {
  width: min(360px, 100%);
  background: var(--card);
  border-radius: 26px;
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.login-emoji { font-size: 38px; }
.login-card h1 { font-size: 21px; margin: 12px 0 6px; }
.login-hint { font-size: 13px; color: var(--ink-3); margin: 0 0 20px; line-height: 1.5; }
.login-input {
  width: 100%;
  border: 1.5px solid #eae3d8;
  background: var(--card-soft);
  border-radius: 13px;
  padding: 13px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 12px;
  outline: none;
  font-family: inherit;
}
.login-input:focus { border-color: var(--accent); background: #fff; }
.login-error { color: var(--red); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- 日记本切换 ---------- */
.notebooks {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.notebooks::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: rgba(255,255,255,.42);
  color: #6b5537;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.chip em {
  font-style: normal;
  font-size: 10.5px;
  opacity: .65;
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 6px;
}
.chip.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.chip.add { font-size: 15px; padding: 8px 14px; color: var(--accent); }

/* ---------- 日记本管理 ---------- */
.form-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.book-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
}
.book-row.active { border-color: rgba(58,123,213,.35); }
.book-main { flex: 1; min-width: 0; cursor: pointer; }
.book-main strong { font-size: 15px; display: block; }
.book-main small { color: var(--ink-3); font-size: 11.5px; display: block; margin-top: 4px; }
.ghost-btn.small { padding: 7px 11px; font-size: 12px; flex: 0 0 auto; }

.select {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #eae3d8;
  background: var(--card-soft);
  border-radius: 12px;
  padding: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

/* ---------- 首页：本子网格 ---------- */
.topbar-actions { display: flex; gap: 6px; }
.topbar { gap: 8px; }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 2px;
}
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: none;
  background-color: var(--card);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  min-height: 132px;
  overflow: hidden;
}
.book-card-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}
.book-card.has-cover .book-card-shade {
  background: linear-gradient(180deg, rgba(20,14,6,.10) 0%, rgba(20,14,6,.30) 45%, rgba(20,14,6,.68) 100%);
}
.book-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  flex: 1;
}
.book-card.has-cover .book-card-title,
.book-card.has-cover .book-card-days,
.book-card.has-cover .book-card-sub,
.book-card.has-cover .book-card-meta {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.book-card.has-cover .book-card-days em { color: rgba(255,255,255,.82); }
.book-card:active { transform: scale(.98); }
.book-card-title,
.book-card-days,
.book-card-sub,
.book-card-meta {
  display: block;
}
.book-card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.book-card-days {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.book-card-days em { font-size: 12px; font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.book-card-sub { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; }
.book-card-meta { font-size: 10.5px; color: var(--ink-3); }

.home-empty {
  grid-column: 1 / -1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(90,60,20,.3);
}
.home-settings {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: rgba(255,255,255,.42);
  color: #6b5537;
  font-size: 13px;
  padding: 12px;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 阳历 / 农历切换 ---------- */
.seg {
  display: flex;
  gap: 3px;
  background: var(--card-soft);
  border-radius: 12px;
  padding: 3px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-family: inherit;
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
}
.seg-btn.active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.lunar-row { display: flex; gap: 8px; }
.lunar-row .select { flex: 1; padding: 11px 8px; }

.ghost-btn.danger { color: var(--red); background: #fdeeec; }

.primary-btn.danger-solid { background: var(--red); }

/* ---------- 待确认：批量操作 ---------- */
.pending-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  color: var(--ink-2);
}
.pending-group { margin-bottom: 20px; }
.pending-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5d4a31;
}
.pending-group-date {
  display: flex;
  gap: 8px;
  padding: 0 4px 10px;
}
.pending-group-date input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.55);
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #4a3a26;
  outline: none;
}
.pending-group-date input:focus { background: #fff; border-color: var(--accent); }

/* ---------- 上传进度条 ---------- */
.uprogress {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  z-index: 70;
  background: rgba(255,253,250,.96);
  backdrop-filter: blur(10px);
  padding: 10px 16px calc(10px);
  box-shadow: 0 6px 20px rgba(90,62,30,.18);
  border-radius: 0 0 16px 16px;
}
.uprogress-bar {
  height: 6px;
  border-radius: 3px;
  background: #eee7db;
  overflow: hidden;
}
.uprogress-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, #f0a03c, var(--accent));
  transition: width .18s ease;
}
.uprogress-text {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- 大图浏览 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0c0a08;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.lb-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}
.lb-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.lb-counter { font-size: 13px; opacity: .85; font-variant-numeric: tabular-nums; }
.lb-date { margin-left: auto; font-size: 12.5px; opacity: .6; }

.lb-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 8px;
  overflow: hidden;
  touch-action: pan-y;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .22s ease, opacity .18s ease;
}
.lb-stage img.slide-left { transform: translateX(-24px); opacity: .3; }
.lb-stage img.slide-right { transform: translateX(24px); opacity: .3; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }
.lb-nav:disabled { opacity: .2; }

.lb-actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
}
.lb-action {
  flex: 1;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 14px;
  padding: 13px;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 重复上传清单 ---------- */
.dup-group {
  background: var(--card-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}
.dup-day { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dup-name {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dup-name.more { color: var(--ink-3); }

/* ---------- 实况照片 ---------- */
.lb-live {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #ffd27a;
  border: 1px solid rgba(255,210,122,.5);
  border-radius: 7px;
  padding: 2px 7px;
}
#lb-video {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #000;
}
.lb-stage.live-playing { -webkit-touch-callout: none; }

/* ---------- 扫描来源候选 ---------- */
.src-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.src-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  border: 1.5px solid #eae3d8;
  background: var(--card-soft);
  border-radius: 13px;
  padding: 11px 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.src-chip:active { border-color: var(--accent); }
.src-chip.locked { opacity: .55; cursor: not-allowed; }
.src-label { font-size: 13.5px; font-weight: 600; }
.src-hint { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
