/* PROTOTYPE 主頁。介面用系統字。 */
.pt-root.hm-root, .pt-tabbar {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
}
.pt-root.hm-root {
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
.pt-root.hm-root > *:not(.hm-body) { flex-shrink: 0; }
/* 主頁清單自己捲，高度鎖在看得見的那一屏。100dvh 在 iPhone 17 Pro 會比畫面高，整頁橡皮筋、最後一列被分頁列擋住。 */
.pt-root.hm-root.hm-list {
  position: fixed;
  inset: 0;
  height: auto;
  overflow: hidden;
}
.hm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.hm-body > * { flex-shrink: 0; }
.dw-home .pt-root.hm-root.hm-list {
  position: relative;
  inset: auto;
  height: 100%;
}

.pt-page .pt-nav { grid-template-columns: 72px 1fr 72px; }
.pt-page .pt-nav > .pt-icon:last-child { justify-self: end; }
.pt-root .hm-back {
  display: flex; align-items: center; justify-content: flex-start;
  width: 44px; height: 44px; margin: 0; padding: 0; color: #007aff;
}
.pt-root .hm-back svg { margin-left: -6px; color: #007aff; }
.hm-danger { color: #ff3b30 !important; }
.hm-trail { font-size: 17px; color: var(--label3); }
.hm-trail.hm-trail-tap { color: var(--tap); }
.hm-trail-row { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; color: var(--label3); }
.hm-chev { color: #c7c7cc; flex: none; }
.hm-set-first { margin-top: 20px; }
.hm-set-danger { margin-top: 28px; }
.hm-login-row { min-height: 60px; }
.hm-login-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-login-name b { font-weight: 400; }
.hm-login-name small { font-size: 13px; color: var(--label3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-root .hm-login-btn { flex: none; height: 28px; padding: 0 16px; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 600; color: #ff3b30; }
.hm-root .hm-login-btn.on { background: #007aff; color: #fff; }
.hm-root .hm-login-btn:disabled { background: var(--fill); color: var(--label3); }
.hm-root .hm-handoff-input { width: 100%; height: 56px; padding: 0 16px; border: 0; background: transparent; font-size: 28px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; color: var(--label); outline: none; }
.hm-root .hm-handoff-go { display: flex; align-items: center; justify-content: center; width: calc(100% - 32px); height: 50px; margin: 4px 16px 0; border-radius: 12px; background: #007aff; font-size: 17px; font-weight: 600; color: #fff; }
.hm-root a.hm-handoff-secondary { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(100% - 32px); height: 50px; margin: 4px 16px 0; border-radius: 12px; border: 1px solid #007aff; background: #fff; font-size: 17px; font-weight: 600; color: #007aff; text-decoration: none; }
.hm-root .hm-handoff-go:disabled { opacity: 0.35; }
.hm-root .hm-handoff-note { text-align: center; }
.hm-root .hm-login-go { justify-content: center; color: #007aff; }
.hm-root .hm-login-go:disabled { color: var(--label3); }
.hm-inline-link { color: #007aff; font-size: inherit; }

.hm-search {
  display: flex; align-items: center; gap: 6px; margin: 8px 16px 12px;
  padding: 0 10px; height: 36px; border-radius: 10px; background: var(--fill); color: var(--label3);
}
.hm-search input, .hm-add-id input, .hm-inline {
  flex: 1; width: 100%; height: 36px; border: 0; background: transparent;
  padding: 0; font: inherit; font-size: 17px; color: var(--label); outline: none;
}
.hm-search-tight { margin-top: 0; }
.hm-inline { width: auto; flex: 1; text-align: right; background: transparent; height: auto; }

.pt-root button.hm-me-card {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 0 16px 8px; padding: 12px 14px;
  border-radius: 12px; background: #fff; text-align: left;
}
.hm-me-card .hm-row-body b { font-size: 17px; font-weight: 600; }
.hm-me-seal-empty {
  flex: none; width: 56px; height: 56px; border-radius: 10px; box-sizing: border-box;
  border: 1.5px dashed #c7c7cc; background: transparent;
}
.hm-group { margin: 0 16px 8px; border-radius: 10px; background: var(--card); overflow: hidden; }
.hm-row {
  display: flex; width: 100%; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 16px; text-align: left;
}
.hm-row + .hm-row, .hm-req + .hm-req { border-top: 0.5px solid var(--sep); }
.hm-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-row-body b { font-size: 17px; font-weight: 400; }
.hm-row-body small, .hm-card small, .hm-dock small, .hm-face small, .hm-id { color: var(--label3); font-size: 13px; font-weight: 400; }
.hm-role { font-size: 13px; color: var(--label3); }
.hm-req-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 12px; }
.hm-req-actions button, .hm-card-actions button, .hm-dock button, .hm-fill {
  height: 28px; padding: 0 16px; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 600;
}
.hm-req-actions button.on, .hm-card-actions button.on, .hm-dock button.on, .hm-fill {
  background: #007aff; color: #fff;
}

.pt-backdrop.hm-confirm { z-index: 50; }
/* 人物頁是 42；動作選單要在它上面，不然點「⋯」會開在頁面底下，看起來沒反應 */
#person-sheet { z-index: 50; }
/* 人物頁、確認視窗都比預設 30 高；失敗提示要蓋在它們上面才看得到 */
#home-toast { z-index: 70; }
.hm-actions {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
}
.hm-actions-group, .hm-actions-cancel {
  border-radius: 14px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.hm-actions-group { overflow: hidden; }
.hm-actions-title {
  padding: 14px 16px 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--label3);
}
/* 確認框標題下的一行說明小字（例：交流列表「拿掉」） */
.hm-actions-note {
  margin: -4px 0 0; padding: 0 16px 12px; text-align: center; font-size: 13px; line-height: 1.4; color: var(--label3);
}
.hm-actions-group button {
  display: block; width: 100%; min-height: 56px; border-top: 0.5px solid var(--sep);
  color: #007aff; font-size: 20px; font-weight: 400;
}
.hm-actions-cancel {
  display: block; width: 100%; min-height: 56px; margin-top: 8px;
  color: #007aff; font-size: 20px; font-weight: 600;
}
.hm-actions-group button.hm-danger { color: #ff3b30; font-weight: 400; }
.hm-report .hm-actions-title { font-size: 15px; color: var(--label); }
.hm-actions.hm-report {
  display: flex; flex-direction: column; box-sizing: border-box;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.hm-report > * { flex-shrink: 0; }
.hm-report .hm-actions-group button.hm-report-row, .hm-report .hm-report-row {
  display: flex; justify-content: space-between; align-items: center; min-height: 48px;
  padding: 0 16px; font-size: 17px; color: var(--label); text-align: left;
}
.hm-report .hm-report-row input { flex: 1; min-height: 44px; font-size: 17px; }
.hm-report .hm-report-row.hm-report-block { margin-top: 8px; border-top-width: 8px; border-top-color: var(--sep); }
.hm-report .hm-actions-group button.hm-danger { font-weight: 600; }
.hm-report .hm-actions-group button.hm-danger:disabled { color: var(--label3); font-weight: 400; }
.hm-alert-input {
  display: block; width: calc(100% - 16px); margin: 0 8px 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--fill, #f2f2f7); font-size: 17px; text-align: center;
}
.hm-alert-error { color: #ff3b30; }
.hm-invite {
  display: grid; grid-template-columns: 40px 1fr; gap: 10px 12px; align-items: center;
  margin: 0 16px 12px; padding: 14px 16px; border-radius: 10px; background: var(--card);
}
.hm-invite .hm-req-actions { grid-column: 1 / -1; padding: 4px 0 0; }
.hm-first {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0 16px 12px; padding: 16px; border-radius: 10px; background: var(--card);
}
.hm-first b { font-size: 17px; font-weight: 600; }
.hm-first small { font-size: 13px; color: var(--label3); }
.hm-first-actions { display: flex; gap: 8px; }
.pt-root .hm-first-actions button {
  flex: 1; height: 36px; border-radius: 18px; background: rgba(0, 122, 255, 0.12); color: #007aff; font-size: 14px; font-weight: 600;
}
.hm-empty { margin: 28px 32px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--label3); }
.hm-legal { margin: 20px 24px; font-size: 15px; line-height: 1.65; color: var(--label2); }
.hm-alert {
  position: absolute; left: 36px; right: 36px; top: 50%; transform: translateY(-50%);
  padding: 20px 16px 0; border-radius: 14px; background: #fff;
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; text-align: center;
}
.hm-alert b { display: block; font-size: 17px; }
.hm-alert p { margin: 8px 8px 16px; font-size: 13px; line-height: 1.45; color: var(--label2); }
.hm-alert-row { display: flex; border-top: 0.5px solid var(--sep); }
.hm-alert-row button { flex: 1; min-height: 44px; font-size: 17px; color: #007aff; }
.hm-alert-row button + button { border-left: 0.5px solid var(--sep); font-weight: 600; }
.hm-delete-copy { text-align: left; }
.hm-alert .hm-delete-copy p { margin-bottom: 10px; }
.hm-delete-copy strong { color: var(--label); }
.hm-delete-copy a { display: block; margin: 0 8px 14px; color: #007aff; font-size: 13px; text-align: center; }
.hm-account-notice {
  margin: 0 16px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(52, 199, 89, 0.12); color: #1f6d35;
}
.hm-account-notice b { display: block; margin-bottom: 4px; font-size: 15px; }
.hm-account-notice p { margin: 0; font-size: 13px; line-height: 1.5; }
.hm-scan { background: #1c1c1e; }
.hm-scan .pt-nav { background: transparent; }
.hm-scan .pt-nav-title, .hm-scan .pt-nav-action { color: #fff; }
.pt-root.hm-scan .hm-back, .pt-root.hm-scan .hm-back svg { color: #fff; }
.hm-scan-frame {
  width: 220px; height: 220px; margin: 48px auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 18px;
}
.hm-scan .hm-empty { color: #aeaeb2; }
.hm-scan-video { display: block; object-fit: cover; background: #000; }
.hm-scan .pt-set-row { width: auto; box-sizing: border-box; margin: 24px 16px 0; border-radius: 12px; background: #2c2c2e; color: #fff; }
.hm-scan .pt-set-row .pt-field-input { color: #fff; }
.hm-scan .pt-set-foot { color: #ff6961; text-align: center; }
.hm-pc-login { display: flex; flex-direction: column; align-items: stretch; padding-top: 24px; }
.hm-pc-login > b { margin: 8px 32px 20px; font-size: 20px; text-align: center; }
.hm-invite-showcase { width: 100%; margin-top: 36px; padding-bottom: 24px; }
.hm-invite-showcase h2 { margin: 0 24px 18px; color: var(--label); font-size: 20px; line-height: 1.4; text-align: center; }
.hm-invite-showcase-track {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 32px;
  scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-color: rgba(60, 60, 67, 0.2) transparent;
  scrollbar-width: thin; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch;
}
.hm-invite-showcase-track::-webkit-scrollbar { height: 4px; }
.hm-invite-showcase-track::-webkit-scrollbar-thumb { border-radius: 2px; background: rgba(60, 60, 67, 0.2); }
.hm-invite-showcase-card {
  flex: 0 0 min(76vw, 292px); overflow: hidden; border: 1px solid rgba(60, 60, 67, 0.12); border-radius: 30px;
  background: #fff; box-shadow: 0 8px 24px rgba(28, 28, 30, 0.1); scroll-snap-align: start;
}
.hm-invite-showcase-card img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; }
/* 邀請頁比一屏高：#app 與 .pt-root 預設 overflow:hidden、且 .pt-root 留了底欄 padding，這裡改成可直向捲動 */
#app.hm-invite-page {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.hm-line-open-note { margin-right: 16px; margin-left: 16px; color: #c2410c; }
.hm-invite-install-note { margin-right: 16px; margin-left: 16px; text-align: center; }
@media (min-width: 900px) {
  .hm-invite-showcase { max-width: 860px; margin-right: auto; margin-left: auto; }
  .hm-invite-showcase-track { justify-content: center; gap: 22px; overflow: visible; padding-right: 24px; padding-left: 24px; }
  .hm-invite-showcase-card { flex-basis: 232px; }
}
/* 人物頁借用邀請頁的直排容器，stretch 會把頭像那層撐滿整行、頭像貼左；頭像要跟名字、印一起置中 */
#person-face { display: flex; justify-content: center; align-self: center; }
#person-sub, #person-given { text-align: center; }
.hm-pc-icon { font-size: 48px; text-align: center; }
.hm-root .hm-pc-go { margin: 20px 16px 0; height: 50px; border-radius: 12px; background: #0A0A0A; color: #fff; font-size: 17px; font-weight: 600; }
.hm-root .hm-pc-cancel { margin: 8px 16px 0; height: 44px; color: #007aff; font-size: 17px; }
.hm-scan-demo {
  display: block; margin: 24px auto 0; min-height: 44px; padding: 0 16px;
  color: #0a84ff; font-size: 17px;
}
.hm-scan-photo { width: max-content; margin-top: 8px; line-height: 44px; text-align: center; cursor: pointer; }

.hm-ava {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; color: #fff; font-weight: 600; line-height: 1; letter-spacing: -0.4px;
}
.hm-ava.long { letter-spacing: -1px; padding-top: 1px; }
.hm-ava-photo { overflow: hidden; padding: 0; background: #e8e8ed; }
.hm-ava-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-ava-edit { position: relative; display: inline-flex; }
.hm-ava-cam {
  position: absolute; right: -1px; bottom: -1px;
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 13px;
  background: #007aff; color: #fff; box-shadow: 0 0 0 2px var(--bg);
}
.ava-crop-page[hidden] { display: none !important; }
.ava-crop-page {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; background: #000; color: #fff;
}
.ava-crop-page p { margin: 0; font-size: 15px; }
.ava-crop {
  position: relative; width: 280px; height: 280px; overflow: hidden; border-radius: 8px;
  background: #1c1c1e; touch-action: none;
}
.ava-crop img { position: absolute; left: 50%; top: 50%; max-width: none; }
.pt-root button.ava-crop-use, .pt-root button.ava-crop-cancel {
  min-width: 200px; min-height: 44px; border-radius: 12px; font-size: 17px;
}
.pt-root button.ava-crop-use { background: #007aff; color: #fff; font-weight: 600; }
.pt-root button.ava-crop-cancel { color: #fff; }
.hm-pack-seg { margin: 8px 16px 4px; }
.hm-me-block { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 16px; text-align: center; }
.hm-me-block b, .hm-hero h1 { font-size: 22px; font-weight: 700; }
.hm-me-block p, .hm-card p { margin: 8px 0 0; font-size: 15px; color: var(--label2); }
.hm-hint { margin: 8px 32px 16px; font-size: 13px; line-height: 1.5; color: var(--label3); text-align: center; }

.pt-root .hm-fold {
  display: flex; align-items: center; gap: 4px; width: auto; height: auto; padding: 0; background: transparent; color: var(--label3);
}
.pt-root .hm-title-pick { border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--label3); text-align: right; appearance: none; -webkit-appearance: none; }
.hm-title-line { margin: 10px 0 0; text-align: center; font-size: 13px; color: #c2410c; }
.hm-natals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 16px; }
.hm-natals.one { grid-template-columns: 140px; justify-content: center; margin-bottom: 8px; }
.hm-seal {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  border-radius: 12px; background: #f6efe3; color: #a33a2a; font-weight: 700; box-shadow: inset 0 0 0 2px #e7c9b9;
}
.hm-seal.art { background: none; box-shadow: none; padding: 0; }
.hm-seal.art img { width: 100%; height: 100%; object-fit: contain; }
.hm-seal.many { display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-flow: column; direction: rtl; place-items: center; padding: 10%; box-sizing: border-box; }
.pt-root .hm-slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: auto; padding: 28px 10px 14px; border-radius: 12px; background: #fff; color: var(--label);
}
.pt-root .hm-slot:disabled { opacity: 1; }
.hm-slot > i { position: absolute; top: 10px; font-style: normal; font-size: 12px; letter-spacing: 4px; color: #b8a98c; }
.hm-slot > b { font-size: 16px; font-weight: 600; }
.hm-slot > small { font-size: 12px; color: var(--label3); margin-top: -4px; }
.pt-root .hm-slot.empty { min-height: 178px; background: transparent; box-shadow: none; border: 1.5px dashed #c7c7cc; color: #007aff; font-size: 15px; }
.hm-pick-shade { position: fixed; z-index: 60; }
.hm-pick { box-sizing: border-box; width: 100%; max-height: 70vh; max-height: 70dvh; overflow: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; }
.hm-pick h3 { margin: 0 0 12px; font-size: 17px; text-align: center; }
.hm-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hm-pick-grid.two { grid-template-columns: 1fr 1fr; }
.pt-root .hm-pick-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: transparent; height: auto; }
.pt-root .hm-pick-grid button.on { box-shadow: inset 0 0 0 2px #007aff; }
.hm-pick-grid small { font-size: 12px; color: var(--label); }
.hm-pick-grid em { font-style: normal; font-size: 10px; color: var(--label3); }
.hm-pick-note { margin: -4px 0 12px; text-align: center; font-size: 13px; color: var(--label3); }
.hm-pick-grid + .hm-pick-note { margin: 12px 0 0; }
.pt-root .hm-pick-list { margin: 0; width: 100%; max-width: none; box-sizing: border-box; }
.pt-root .hm-pick-list .pt-set-row { background: #f2f2f7; }
.pt-root .hm-pick-new { color: #007aff; }
.pt-root .hm-pick-alt { width: 100%; margin-top: 12px; min-height: 44px; border-radius: 12px; background: #f2f2f7; color: #007aff; font-size: 16px; }
.pt-root .hm-pick-clear { width: 100%; margin-top: 12px; min-height: 44px; border-radius: 12px; background: #f2f2f7; color: #ff3b30; font-size: 16px; }
.hm-person-actions { display: flex; justify-content: center; gap: 12px; margin: 12px 16px 0; }
.hm-person-actions form { display: contents; }
.pt-root .hm-person-actions button {
  flex: 1; max-width: 140px; height: 64px; border-radius: 12px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #007aff; font-size: 13px;
}
.pt-root .hm-person-actions button.wide { max-width: none; flex-direction: row; gap: 8px; height: 52px; font-size: 17px; font-weight: 600; }
.pt-root .hm-person-actions button.hm-add-go { background: #0A0A0A; color: #fff; }
.pt-root .hm-person-actions button.hm-add-go:disabled { background: #e5e5ea; color: #8e8e93; }
#person-groups-wrap .pt-set-row { border-top: 0.5px solid rgba(60, 60, 67, 0.29); }
.hm-common-name { display: inline-flex; align-items: center; gap: 10px; }
.hm-common-name .hm-ava, .hm-common-name .ch-gface, .hm-common-name .ch-group { transform: scale(0.8); }
.hm-qr { display: grid; grid-template-columns: repeat(7, 1fr); width: 168px; aspect-ratio: 1; gap: 3px; }
.hm-qr i { background: transparent; }
.hm-qr i.on { background: #111; }
.hm-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0 24px; }

/* B：大頭檔 */
.hm-hero { display: flex; flex-direction: column; align-items: center; padding: 8px 20px 18px; text-align: center; }
.hm-hero h1 { margin: 10px 0 0; }
.hm-role-seg { margin: 12px 0; }
.hm-stats { display: flex; gap: 22px; margin: 8px 0 16px; font-size: 13px; color: var(--label3); }
.hm-stats b { display: block; font-size: 18px; color: var(--label); }
.hm-shortcuts { display: flex; gap: 8px; width: 100%; }
.hm-shortcuts button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 12px; background: var(--card); font-size: 12px;
}
.hm-banner {
  display: block; width: calc(100% - 32px); margin: 0 16px 12px; padding: 12px 14px;
  border-radius: 10px; background: #fff4e5; color: #9a5b00; font-size: 14px; text-align: left;
}
.hm-faces {
  display: flex; flex-wrap: wrap; gap: 14px 8px; padding: 4px 16px 20px;
}
.hm-face {
  width: calc(25% - 6px); display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px; border-radius: 12px;
}
.hm-face.on { background: var(--card); }
.hm-face b { font-size: 12px; font-weight: 600; }
.hm-card {
  margin: 0 16px 16px; padding: 14px 16px; border-radius: 14px; background: var(--card);
}
.hm-card-head { display: flex; align-items: center; gap: 10px; }
.hm-card-head b { display: block; font-size: 17px; }
.hm-card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.hm-add-id { display: flex; gap: 8px; padding: 8px 0 16px; }

/* C：通訊錄 */
.hm-filters { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; }
.hm-filters button {
  flex: none; height: 30px; padding: 0 12px; border-radius: 15px;
  background: var(--fill); font-size: 13px;
}
.hm-filters button.on { background: var(--label); color: #fff; }
.hm-dir { display: grid; grid-template-columns: 1fr 18px; gap: 4px; min-height: 40dvh; }
.hm-dir-list { padding: 0 8px 0 16px; }
.hm-dir-list h2 { margin: 12px 4px 4px; font-size: 13px; color: var(--label3); font-weight: 600; }
.hm-dir-row {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 4px 8px; border-radius: 8px; text-align: left; font-size: 16px;
}
.hm-dir-row.on { background: var(--card); }
.hm-dir-row small { font-size: 12px; color: var(--label3); }
.hm-index {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 0; font-size: 10px; font-weight: 600; color: #007aff;
}
.hm-index a { color: inherit; text-decoration: none; }
.hm-dock {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.hm-dock b { display: block; font-size: 16px; }

/* QR code 頁：掃描／我的 QR code */
.pt-root .hm-qr-seg { margin: 8px 16px 12px; }
.hm-my-qr { display: flex; flex-direction: column; align-items: center; padding: 8px 16px 24px; }
.hm-my-qr-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 320px;
  padding: 20px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hm-my-qr-who { display: flex; align-items: center; gap: 10px; }
.hm-my-qr-who b { font-size: 18px; font-weight: 600; }
.hm-my-qr-card small { font-size: 13px; color: var(--label3); }
.hm-my-qr-hint { max-width: 320px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; text-align: center; color: #aeaeb2; }
.hm-scan .hm-qr-seg { background: rgba(255, 255, 255, 0.14); }
.pt-root.hm-scan .hm-qr-seg button { color: #fff; }
.pt-root.hm-scan .hm-qr-seg button.on { color: #000; background: #fff; }
.hm-my-qr-actions { display: flex; gap: 10px; width: 100%; max-width: 320px; margin-top: 8px; }
.pt-root .hm-my-qr-actions button { flex: 1; height: 44px; border-radius: 12px; font-size: 16px; font-weight: 600; color: #007aff; background: #fff; }

/* 師承（手機）。樹這一頁鎖在分頁列上面，整頁不滑；表打開時蓋過分頁列。 */
.pt-root.hm-root.ln-root {
  position: fixed; inset: 0; z-index: 1; height: auto; overflow: auto;
}
.pt-root.hm-root.ln-root.locked,
.pt-root.hm-root.ln-root.sky-still {
  bottom: calc(50px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  overflow: hidden; overscroll-behavior: none;
  padding-bottom: 0;
}
.pt-root.hm-root.ln-root.over { z-index: 20; }
.ln-root.locked > .ln-tree {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.ln-root.sky-still > .ln-sky-body {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.ln-root.sky-still .ln-sky-foot { flex: none; }
.ln-root.sky-still .ln-chart {
  flex: 1 1 auto; min-height: 0;
}
.ln-chart-body { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.ln-chart-tools { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 12px; }
.ln-chart-tools-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ln-chart-tools .ln-zoom { position: static; }
.ln-chart-tools .ln-minimap { position: static; left: auto; bottom: auto; }
.pt-root .ln-chart-tools button.ln-find { position: static; right: auto; bottom: auto; }
.ln-root.sky-still .ln-chart:not(.oblique) .ln-chart-map {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
}
.ln-root.sky-still .ln-chart:not(.oblique) .ln-chart-svg {
  width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1;
}
.ln-root.sky-still .ln-chart-map {
  flex: 0 1 auto; min-height: 0; overflow: hidden;
}
.ln-root.sky-still .ln-chart.oblique .ln-chart-map {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
}
.ln-root.sky-still .ln-chart-svg { max-height: 100%; }
/* 星圖放大：工具列（小地圖、＋－、找到我）浮在圖上，不再佔掉一整條高度；卡片左右邊距縮小，圖貼近卡寬。 */
.ln-root.sky-still .ln-chart { margin: 0 8px; }
.ln-root.sky-still .ln-chart-body { position: relative; }
.ln-root.sky-still .ln-chart-map { padding: 0 4px; }
.ln-root.sky-still .ln-chart-tools {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 8px 10px 10px; pointer-events: none;
}
.ln-root.sky-still .ln-chart-tools > * { pointer-events: auto; }
.ln-root.sky-still .ln-chart-tools .ln-minimap { opacity: 0.85; }
.ln-root.sky-still .ln-tilt-hint { margin-top: 4px; }
/* 矮螢幕（Safari 有網址列＋工具列）：把星圖以外的字收緊，高度都讓給圖。 */
@media (max-height: 760px) and (max-width: 899px) {
  .ln-root.sky-still .ln-sky-foot, .ln-root.sky-still .ln-tilt-hint { display: none; }
  .ln-root.sky-still .ln-sky-switch { margin: 6px 12px 4px; }
  .ln-root.sky-still .ln-art-seg { margin-top: 6px; margin-bottom: 6px; }
  .ln-root.sky-still .ln-next { margin-top: 4px; }
  .ln-root.sky-still .ln-chart { margin-bottom: 6px; }
}
.ln-card {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 0 16px 8px; padding: 12px 14px;
  border-radius: 12px; background: #fff; text-align: left;
}
.pt-root button.ln-card { width: calc(100% - 32px); }
.ln-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ln-card-body b { font-size: 17px; font-weight: 600; }
.ln-card-body small { font-size: 13px; color: var(--label3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-mini {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
}
.ln-mini svg { width: 36px; height: 36px; }
.ln-mini.empty { border: 1.5px dashed #c7c7cc; border-radius: 50%; background: #f4f4f6; }
.pt-root .ln-baishi {
  flex: none; height: 30px; padding: 0 12px; border-radius: 15px;
  background: rgba(0, 122, 255, 0.12); color: #007aff; font-size: 15px; font-weight: 600;
}
.ln-art { margin-top: 0; }
.ln-level-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 2px 16px 8px; min-height: 32px;
}
.ln-level-row > b { font-size: 15px; }
.ln-trail { display: flex; align-items: center; gap: 2px; min-width: 0; font-size: 15px; color: #007aff; }
.ln-trail b { color: #1c1c1e; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-trail svg { color: #c7c7cc; flex: none; }
.ln-levels { display: flex; flex: none; padding: 2px; border-radius: 8px; background: rgba(118, 118, 128, 0.12); }
.pt-root .ln-levels button { height: 26px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: #3a3a3c; }
.pt-root .ln-levels button.on { background: #1c1c1e; color: #fff; }
.ln-board {
  position: relative; width: calc(100% - 32px); aspect-ratio: 1; margin: 0 16px;
  border-radius: 16px; background: #fff; overflow: hidden;
}
.ln-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ln-center, .ln-face, .ln-branch, .ln-dot, .ln-seal, .ln-you, .ln-callout, .ln-new, .ln-wait {
  position: absolute; transform: translate(-50%, -50%);
}
.ln-center {
  left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #1c1c1e; text-align: center;
}
.ln-center.dark { background: #1c1c1e; color: #fff; }
.ln-center b { font-size: 15px; font-weight: 700; }
.ln-center small, .ln-center.person small { font-size: 11px; font-weight: 500; opacity: 0.8; }
.ln-center.person { color: #fff; font-size: 28px; font-weight: 600; border: 0; }
.ln-center.dash {
  color: #8e8e93; font-size: 28px; background: #f4f4f6;
  border: 1.5px dashed #c7c7cc;
}
.ln-wait {
  left: 50%; top: 64%; padding: 2px 8px; border-radius: 10px;
  border: 1px dashed #c7c7cc; color: #8e8e93; font-size: 12px; background: #fff;
}
.ln-branch { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; }
.ln-branch i, .ln-legend .sq {
  width: 10px; height: 10px; border-radius: 1px; background: #94211b;
}
.ln-branch i.hollow, .ln-legend .sq.hollow { background: #fff; box-shadow: inset 0 0 0 1.5px #94211b; }
.ln-branch i.dash { background: transparent; box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.ln-branch em { font-style: normal; font-size: 10px; line-height: 1.25; text-align: center; color: #3a3a3c; }
.pt-root button.ln-branch { color: inherit; }
.pt-root button.ln-you {
  padding: 4px 8px; border-radius: 8px; background: #1c1c1e; color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ln-you-tag {
  position: static; transform: none; margin-top: 2px; padding: 1px 6px; border-radius: 6px;
  background: #1c1c1e; color: #fff; font-size: 10px; font-weight: 600;
}
.pt-root button.ln-dot { width: 8px; height: 8px; border-radius: 1px; background: #e08b86; }
.pt-root button.ln-dot.on, .pt-root button.ln-dot.near { background: #007aff; }
.ln-dot.gray { background: #d1d1d6; }
.ln-unsorted { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font-size: 11px; color: #8e8e93; }
.pt-root button.ln-callout {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 6px 8px; border-radius: 10px; background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); text-align: left;
}
.ln-callout b { font-size: 12px; }
.ln-callout small { font-size: 11px; color: #8e8e93; }
.ln-callout em { font-style: normal; color: #007aff; font-size: 12px; font-weight: 600; }
.ln-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 600;
}
.ln-face em, .ln-face i {
  position: absolute; font-style: normal;
}
.ln-face em { top: 100%; margin-top: 2px; color: #1c1c1e; font-size: 11px; font-weight: 500; white-space: nowrap; }
.ln-face.self { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c1c1e; }
.pt-root button.ln-face.dash, .ln-sheet .ln-face.dash {
  color: #8e8e93; background: #f4f4f6; border: 1.5px dashed #c7c7cc;
}
.ln-face.dash b {
  position: absolute; top: calc(100% + 14px); color: #8e8e93; font-size: 10px; font-weight: 500; white-space: nowrap;
}
.ln-face.self i {
  top: -8px; right: -14px; padding: 0 5px; border-radius: 8px; background: #1c1c1e; color: #fff; font-size: 11px;
}
.ln-face.big { position: static; transform: none; width: 72px; height: 72px; font-size: 32px; }
.ln-seal {
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  width: 22px; height: 26px; background: #fff; box-shadow: inset 0 0 0 1px currentColor;
  font-size: 8px; line-height: 1;
}
.ln-seal.tiny { width: 16px; height: 18px; font-size: 6px; }
.pt-root button.ln-new {
  padding: 4px 8px; border-radius: 12px; border: 1.5px dashed #007aff; color: #007aff;
  font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap;
}
.ln-sub {
  display: flex; justify-content: space-between; gap: 8px;
  margin: 0 20px 6px; font-size: 13px; color: #8e8e93;
}
.ln-banner {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 0 16px 10px; padding: 12px 14px;
  border-radius: 12px; background: #fff;
}
.ln-banner b { display: block; font-size: 16px; }
.ln-banner p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #8e8e93; }
.pt-root .ln-send {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: #007aff; color: #fff; font-weight: 600;
}
.ln-legend { margin: 12px 20px 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.7; color: #3a3a3c; }
.ln-legend li { display: flex; align-items: center; gap: 6px; }
.ln-legend .sq.on { box-shadow: inset 0 0 0 1.5px #007aff; background: #fff; }
.ln-legend .sq.gray { background: #d1d1d6; }
.ln-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b5b95; }
.ln-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; }
.ln-empty b { font-size: 17px; }
.ln-ask { padding-bottom: 24px; }
.ln-kind { margin: 4px 16px 12px; }
.ln-field {
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px; padding: 0 16px; min-height: 52px; border-radius: 12px; background: #fff;
}
.ln-field span { flex: none; font-size: 17px; }
.ln-field input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font: inherit; font-size: 17px; text-align: right; outline: none; }
.pt-root button.ln-add {
  flex: none; height: 32px; padding: 0 12px; border-radius: 16px;
  background: #1c1c1e; color: #fff; font-size: 15px; font-weight: 600;
}
.pt-root button.ln-add:disabled { opacity: 0.35; }
.ln-pick { display: flex; gap: 8px; margin: 0 16px 8px; overflow: auto; }
.pt-root .ln-pick button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; background: #fff; font-size: 15px; }
.pt-root .ln-pick button.on { background: #1c1c1e; color: #fff; }
.ln-ask-list { margin: 8px 16px 0; padding: 0; list-style: none; background: #fff; border-radius: 12px; overflow: hidden; }
.ln-ask-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 16px; }
.ln-ask-list li + li { border-top: 0.5px solid #e5e5ea; }
.ln-ask-list small { color: #8e8e93; font-size: 13px; }
.pt-root .ln-go {
  display: block; width: calc(100% - 32px); height: 50px; margin: 16px 16px 0; border-radius: 12px;
  background: #1c1c1e; color: #fff; font-size: 17px; font-weight: 600;
}
.pt-root .ln-go:disabled { opacity: 0.35; }
.ln-settings { padding-bottom: 24px; }
.ln-who { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px 4px; }
.ln-who b { font-size: 20px; }
.ln-who small { font-size: 13px; color: #8e8e93; }
.ln-gap { margin-top: 20px; }
.ln-pub { align-items: center; }
.ln-pub > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ln-pub b { font-weight: 400; font-size: 17px; }
.ln-pub b i {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px;
  background: #f3e6c8; color: #8a6a22; font-style: normal; font-size: 11px; font-weight: 600;
}
.ln-pub small { font-size: 12px; color: #8e8e93; }
.pt-root button.ln-switch {
  width: 51px; height: 31px; border-radius: 16px; background: #e9e9eb; position: relative; flex: none;
}
.ln-switch i {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pt-root button.ln-switch.on { background: #1c1c1e; }
.ln-switch.on i { left: 22px; }
.ln-switch:disabled { opacity: 0.45; }
.pt-root .ln-upgrade {
  display: block; width: calc(100% - 32px); height: 50px; margin: 16px 16px 0; border-radius: 12px;
  background: #fff; color: #8a6a22; font-size: 17px; font-weight: 600;
}
.ln-shade {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, 0.4);
}
.ln-shade.sheet { align-items: flex-end; padding: 0; }
.ln-dialog, .ln-sheet {
  width: min(100%, 320px); border-radius: 14px; background: #fff; overflow: hidden; text-align: center;
}
.ln-sheet {
  width: 100%; max-height: 100%; overflow: auto; border-radius: 14px 14px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); text-align: left;
  animation: ln-sheet-up 0.25s ease-out;
}
@keyframes ln-sheet-up { from { transform: translateY(24px); opacity: 0; } }
.ln-dialog p { margin: 0; padding: 8px 16px 0; font-size: 13px; line-height: 1.5; color: #3a3a3c; }
.ln-dialog p:first-child { padding-top: 20px; font-size: 17px; font-weight: 600; color: #1c1c1e; }
.pt-root .ln-dialog button {
  display: block; width: 100%; height: 48px; margin-top: 12px; border-top: 0.5px solid rgba(60, 60, 67, 0.29);
  font-size: 17px; font-weight: 600;
}
.pt-root .ln-dialog button:last-child { color: #007aff; margin-top: 0; }
.ln-art-label { display: flex; gap: 14px; margin: 2px 16px 6px; }
.pt-root .ln-art-label button, .ln-art-label .on { font-size: 13px; color: #c7c7cc; }
.pt-root .ln-art-label button.on, .ln-art-label .on { color: #8e8e93; }
.ln-tree { padding-bottom: 0; min-height: 0; }
.ln-tree-block { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 100%; }
.ln-row { display: flex; align-items: flex-start; gap: 6px; width: 100%; min-width: 0; padding: 0 8px; box-sizing: border-box; }
.ln-row > em { flex: none; width: 44px; padding-top: 8px; font-style: normal; font-size: 12px; line-height: 1.3; color: #8e8e93; }
.ln-row-main { flex: 1; min-width: 0; }
.ln-scroller { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ln-scroller::-webkit-scrollbar { display: none; height: 0; }
.ln-cards { display: flex; gap: 8px; width: max-content; }
.ln-cards.invite { justify-content: center; padding: 0 16px; }
.pt-root button.ln-tcard, .ln-tcard {
  position: relative; box-sizing: border-box; flex: none; width: 98px; height: 136px; padding: 18px 6px 8px;
  border: 1px solid #e5e5ea; border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.pt-root button.ln-tcard.self, .ln-tcard.self { border: 1.8px solid #94211b; }
.pt-root button.ln-tcard.on, .ln-tcard.on { border: 2px solid #007aff; }
.pt-root button.ln-tcard.add { border: 1px dashed #d8d8dc; background: transparent; }
.ln-tcard b { font-size: 15px; font-weight: 600; }
.pt-root button.ln-tcard.add b { color: #94211b; }
.ln-tcard small { font-size: 11px; color: #8e8e93; }
.ln-tcard small.wait { color: #8f6a10; }
.ln-ava {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #e9e6e0; color: #fff; font-size: 22px; font-weight: 600;
}
.ln-ava.made { color: #6b645a; }
.ln-ava.empty { background: #fff; color: #c7c7cc; border: 1.5px dashed #c7c7cc; }
.ln-ava.blank { background: #e8e8ed; }
.ln-ava.photo { overflow: hidden; padding: 0; background: #e8e8ed; }
.ln-ava.photo img { width: 100%; height: 100%; object-fit: cover; }
.ln-plus {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #94211b;
}
.ln-mark {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px;
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px #94211b; color: #94211b;
  font-size: 7px; line-height: 1;
}
.ln-mark b { font-size: 7px; font-weight: 500; line-height: 1; }
img.ln-mark { object-fit: contain; background: transparent; box-shadow: none; }
.ln-tcard.seal img.ln-mark { width: 64px; height: 64px; }
.ln-sheet-seal { display: block; width: 96px; height: 96px; margin: 4px auto 8px; }
.ln-mark.empty { box-shadow: none; border: 1px dashed #c7c7cc; }
.ln-tcard.seal { justify-content: center; }
.ln-tcard.seal .ln-mark { position: static; width: 36px; height: 36px; font-size: 10px; }
.ln-tcard.seal .ln-mark b { font-size: 10px; }
.ln-wire-clip { overflow: hidden; height: 16px; }
.ln-wires { position: relative; height: 16px; }
.ln-wires i { position: absolute; top: 0; width: 0; height: 8px; border-left: 1.6px solid #94211b; }
.ln-wires i, .ln-wires b { transition: border-color 0.3s ease, background-color 0.3s ease, border-top-color 0.3s ease; }
.ln-wires b { position: absolute; top: 7px; height: 0; border-top: 1.6px solid #94211b; }
.ln-rail { position: relative; height: 12px; margin: 0; touch-action: none; cursor: grab; }
.ln-rail i { position: absolute; left: 0; right: 0; top: 4px; height: 3px; border-radius: 2px; background: #e5e5ea; }
.ln-rail b { position: absolute; top: 1px; height: 10px; border-radius: 5px; background: #8e8e93; }
.ln-tree-foot { flex: none; margin: 6px 20px 2px; font-size: 13px; line-height: 1.5; color: #8e8e93; }
.ln-toast {
  position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 30; max-width: calc(100% - 48px); padding: 10px 16px; border-radius: 20px;
  background: #1c1c1e; color: #fff; font-size: 14px; white-space: nowrap;
}
.ln-friend-pick { margin-top: 8px; text-align: left; }
.ln-friend-pick > b { display: block; margin: 0 16px; font-size: 15px; }
.ln-friend-pick ul {
  list-style: none; margin: 8px 16px 0; padding: 0; max-height: 220px; overflow: auto;
  background: #f4f4f6; border-radius: 12px;
}
.ln-friend-pick li + li { border-top: 0.5px solid #e5e5ea; }
.ln-friend-pick label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; font-size: 17px; }
.ln-friend-pick input { width: 18px; height: 18px; margin: 0; }
.ln-friend-pick > p, #lineage-friend-box > p { margin: 8px 16px 0; font-size: 13px; line-height: 1.45; color: #8e8e93; }
.ln-friend-pick.desk > b, .ln-friend-pick.desk ul, .ln-friend-pick.desk > p, .ln-friend-pick.desk #lineage-friend-box > p { margin-left: 0; margin-right: 0; }
.ln-friend-pick.desk label { min-height: 36px; padding: 0 10px; font-size: 15px; }
.ln-friend-pick.desk ul { background: #f2f2f7; }
.ln-addsheet { text-align: center; }
.ln-addsheet h2 { margin: 8px 0 0; font-size: 20px; }
.ln-add-sub { margin: 4px 0 12px; font-size: 13px; color: #8e8e93; }
.ln-add-ava {
  width: 72px; height: 72px; margin: 8px auto 0; border-radius: 16px; background: #f4f4f6;
  display: grid; place-items: center; color: #8e8e93; font-size: 28px; font-weight: 600;
}
.pt-root button.ln-optional {
  display: block; margin: 8px auto 0; background: none; color: #007aff; font-size: 13px;
}
.ln-invite { padding: 8px 0 32px; text-align: center; }
.ln-invite-col { width: max-content; margin: 28px auto 0; }
.ln-invite-link { width: 0; height: 28px; margin: 0 auto; border-left: 1.5px dashed #c7c7cc; }
.ln-invite h2 { margin: 22px 24px 0; font-size: 22px; line-height: 1.35; }
.ln-invite > p { margin: 8px 32px 0; font-size: 14px; line-height: 1.5; color: #8e8e93; }
.pt-root .ln-invite .ln-go { margin-top: 28px; }
.pt-root button.ln-no {
  display: block; width: calc(100% - 32px); height: 50px; margin: 10px 16px 0; border-radius: 12px;
  background: #fff; font-size: 17px; font-weight: 600;
}
.ln-face.big.made { background: #6b5b95; color: #fff; }
.ln-block-note { margin: 0; padding: 0 16px 12px; text-align: center; font-size: 13px; line-height: 1.45; color: #8e8e93; }
.ln-grab { display: block; width: 36px; height: 5px; margin: 4px auto 12px; border-radius: 3px; background: #d1d1d6; }
.ln-sheet-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ln-sheet-who .ln-face { position: static; transform: none; }
.ln-sheet-who b { display: block; font-size: 17px; }
.ln-sheet-who small { font-size: 13px; color: #8e8e93; }

.pt-root button.ln-navlink { justify-self: end; padding: 0; background: none; color: #007aff; font-size: 17px; }
.ln-pill { margin-left: 8px; padding: 1px 8px; border: 1px solid #94211b; border-radius: 10px; color: #94211b; font-size: 12px; }
.ln-title-me { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.ln-title-me > span { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #8c5a2e; color: #fff; font-size: 28px; }
.ln-title-me b { margin-top: 8px; font-size: 22px; }
.ln-title-me em { margin-top: 6px; padding: 1px 8px; border: 1px solid #94211b; border-radius: 10px; color: #94211b; font-style: normal; font-size: 12px; }
.pt-root button.ln-case-card { position: relative; display: block; width: calc(100% - 32px); margin: 8px 16px; padding: 12px 36px 12px 16px; border-radius: 10px; background: #fff; text-align: left; }
.ln-case-card small { color: #8e8e93; font-size: 13px; }
.ln-case-card b { display: block; font-size: 32px; }
.ln-case-card .hm-chev { position: absolute; right: 12px; top: 36px; }
.pt-root button.ln-title-row { gap: 10px; }
.ln-title-row img { width: 28px; height: 44px; object-fit: contain; }
.ln-title-row i { flex: none; width: 28px; height: 44px; border: 1px dashed #c7c7cc; border-radius: 14px; }
.ln-title-row > span { display: block; }
.ln-title-row > span small { display: block; color: #8e8e93; font-size: 12px; }
.ln-title-check { margin-left: auto; color: #34c759; }
.ln-title-bar { position: relative; width: 108px; margin-left: auto; padding-top: 8px; text-align: right; font-size: 12px; color: #8e8e93; }
.ln-title-bar::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; border-radius: 2px; background: #e5e5ea; }
.ln-title-bar em { position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; background: #94211b; }
.ln-case { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.ln-case > span b, .ln-case > span small { display: block; }
.ln-case small { color: #8e8e93; font-size: 13px; font-weight: 400; }
.ln-case em { font-style: normal; color: #8e8e93; }
.ln-case-total { font-size: 22px; }
.ln-award { text-align: center; }
.ln-award-seal { width: 88px; margin-top: 28px; }
.ln-award h2 { margin: 16px 0 8px; font-size: 28px; }
.ln-award > p { margin: 0 32px; color: #8e8e93; line-height: 1.5; }
.ln-award-row { display: flex; justify-content: space-around; margin: 28px 16px; padding: 16px 8px; border-radius: 16px; background: #fff; }
.ln-award-row img { width: 36px; height: 56px; object-fit: contain; }
.ln-award-row i { display: block; width: 36px; height: 56px; margin: 0 auto; border: 1px dashed #c7c7cc; border-radius: 18px; }
.ln-award-row small { display: block; margin-top: 6px; color: #8e8e93; font-size: 12px; }
.ln-award-row .got small { color: #1c1c1e; font-weight: 600; }
.pt-root button.ln-award-go { width: calc(100% - 32px); height: 50px; margin: 28px 16px 0; border-radius: 12px; background: #94211b; color: #fff; font-size: 17px; font-weight: 600; }
.pt-root button.ln-award-show { margin-top: 14px; background: none; color: #007aff; font-size: 17px; }

.pt-root .ln-art-seg { display: flex; margin: 8px 16px 0; padding: 2px; border-radius: 9px; background: #e5e5ea; }
.pt-root .ln-art-seg button { flex: 1; height: 32px; border-radius: 7px; background: transparent; color: #1c1c1e; font-size: 15px; font-weight: 600; }
.pt-root .ln-art-seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.ln-sky-switch { display: flex; align-items: center; gap: 6px; margin: 12px 16px 8px; }
.pt-root button.ln-crumb { padding: 0; background: none; color: #007aff; font-size: 15px; }
.ln-sky-switch > span, .ln-sky-switch > b { font-size: 15px; }
.ln-seg { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: #e5e5ea; }
.pt-root .ln-seg button { height: 28px; padding: 0 12px; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 600; color: #1c1c1e; }
.pt-root .ln-seg button.on { background: #1c1c1e; color: #fff; }
.ln-chart { position: relative; margin: 0 16px; border-radius: 18px; background: #17181a; color: #e8e4da; overflow: hidden; }
.ln-chart.gold { background: linear-gradient(#4A3A18, #1A1408); }
.ln-kunlun-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 12px 0; }
.ln-kunlun-copy { min-width: 0; }
.ln-kunlun-copy b { display: block; font-size: 13px; font-weight: 600; color: #e8e4da; }
.ln-kunlun-copy > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ln-tilt { display: flex; flex: none; padding: 2px; border-radius: 8px; background: #2c2e32; }
.pt-root .ln-tilt button { height: 26px; padding: 0 10px; border-radius: 6px; background: transparent; color: #a1a1a6; font-size: 12px; font-weight: 600; }
.pt-root .ln-tilt button.on { background: #e8e4da; color: #17181a; }
.ln-tilt-hint { margin: 6px 12px 0; font-size: 12px; line-height: 1.4; color: #8e8e93; }
.ln-oblique { position: relative; width: 100%; aspect-ratio: 358 / 560; margin: 0 auto; }
.ln-root.sky-still .ln-chart.oblique .ln-oblique { height: 100%; width: auto; max-width: 100%; max-height: 100%; min-height: 0; }
.ln-mount, .ln-kunlun-tags, .ln-yujing { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ln-mount { z-index: 2; }
.ln-kunlun-tags, .ln-yujing { z-index: 4; }
.ln-disc-slot { position: absolute; width: 83.8%; left: 8.1%; top: 1.6%; z-index: 1; transform-origin: 50% 50%; pointer-events: none; }
.ln-disc-slot.far { z-index: 1; clip-path: inset(0 0 50% 0); }
.ln-disc-slot.near { z-index: 3; clip-path: inset(50% 0 0 0); }
.ln-disc-slot.ln-own-slot { visibility: hidden; z-index: 0; clip-path: none; }
.ln-own-float { position: absolute; z-index: 5; overflow: visible; pointer-events: none; transform: translate(-50%, -50%); opacity: 0; }
.ln-disc-slot.anim { transition: transform 1s ease-in-out; }
.ln-disc-slot .ln-chart-svg { background: transparent; }
.ln-peak { position: absolute; z-index: 4; left: 50%; top: 8%; width: 46%; margin-left: -23%; pointer-events: none; }
.ln-peak.gold { top: 0; width: 54%; margin-left: -27%; }
.ln-spin-hint { position: absolute; z-index: 4; left: 12px; right: 72px; top: 46%; margin: 0; color: #d9534a; font-size: 13px; pointer-events: none; }
.pt-root button.ln-heaven-bar { display: block; width: calc(100% - 88px); padding: 14px 16px 4px; background: none; color: #e8e4da; text-align: left; }
.ln-heaven-bar b { display: block; font-size: 20px; font-weight: 600; }
.ln-heaven-bar small { display: block; margin-top: 2px; font-size: 12px; color: #a1a1a6; }
.ln-heaven-bar span { position: relative; display: block; margin-top: 10px; padding-top: 8px; font-size: 12px; color: #a1a1a6; }
.ln-heaven-bar span::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: #3a3c40; }
.ln-heaven-bar i { position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; background: #d9534a; }
.ln-chart-tools { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 12px 0; }
.pt-root button.ln-heaven-go, .pt-root button.ln-stage { position: static; height: 26px; padding: 0 10px; border-radius: 13px; background: #2c2e32; color: #e8e4da; font-size: 12px; white-space: nowrap; }
.pt-root button.ln-stage:disabled { opacity: 1; }
.ln-side { padding-top: 6px; }
.ln-side .ln-ladder-list { max-height: 140px; padding-right: 84px; }
.ln-next, .pt-root button.ln-next { position: relative; display: block; width: calc(100% - 24px); margin: 8px 12px 0; padding: 8px 0 0; background: none; border: 0; color: #a1a1a6; font-size: 12px; text-align: left; }
.ln-next::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: #3a3c40; }
.ln-next i { position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; background: #d9534a; }
.ln-vein { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#sky-vein.has-asks { flex-direction: column; align-items: stretch; justify-content: flex-start; }
#sky-vein.has-asks .ln-chart-svg { width: 100%; min-height: 0; }
.ln-root.sky-still .ln-chart:not(.oblique) .ln-vein .ln-chart-svg { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 358 / 560; }
.ln-vein-card {
  position: absolute; left: 12px; right: 12px; bottom: 58px; z-index: 4;
  padding: 12px 14px; border-radius: 14px; background: #24262a; color: #e8e4da;
}
.ln-vein-card b { display: block; font-size: 15px; }
.ln-vein-card small { color: #a1a1a6; font-size: 12px; }
.ln-vein-card p { margin: 6px 0 0; font-size: 13px; color: #c7c7cc; }
.ln-vein-card ul { display: flex; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; overflow: auto; }
.ln-vein-card li { flex: none; padding: 6px 10px; border-radius: 8px; background: #17181a; font-size: 13px; }
.ln-vein-seal { display: block; width: 72px; height: 72px; margin: 0 auto 8px; object-fit: contain; }
.ln-vein-card button, .ln-vein-open {
  display: block; width: 100%; height: 40px; margin-top: 12px; border: 0; border-radius: 20px;
  background: #d9534a; color: #fff; font-size: 15px;
}
.ln-vein-open.quiet { background: #2c2c2e; }
.ln-vein-card button:disabled { background: #3a3a3c; color: #aeaeb2; }
.ln-vein-asks { display: flex; flex-direction: column; gap: 8px; margin: 8px 12px 0; }
.ln-vein-asks div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #2c2c2e; }
.ln-vein-asks b { font-size: 14px; }
.ln-vein-asks small { display: block; color: #aeaeb2; font-size: 12px; }
.ln-vein-asks span { margin-left: auto; display: flex; gap: 6px; }
.ln-vein-asks button { height: 30px; padding: 0 10px; border: 0; border-radius: 15px; background: #3a3a3c; color: #fff; }
.ln-vein-asks button.on { background: #d9534a; }
.ln-ask-seal { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ln-ask-mark {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: #f2f2f7; color: #6b645a; font-size: 13px;
}
.ln-sky-set {
  width: min(100%, 420px); max-height: 80vh; overflow: auto; border-radius: 14px; background: var(--bg, #fff);
}
.ln-desk-set {
  height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fff; color: #1c1c1e; font-size: 14px;
}
.ln-chart-map { position: relative; z-index: 1; touch-action: none; }
.ln-chart-svg { display: block; width: 100%; height: auto; touch-action: none; }
.ln-you-pill { position: absolute; z-index: 2; transform: translate(-50%, -150%); padding: 3px 8px; border-radius: 11px; background: #d9534a; color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
.ln-zoom { position: absolute; z-index: 2; right: 12px; bottom: 62px; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; border: 1px solid #45474b; }
.pt-root .ln-zoom button { width: 36px; height: 34px; background: #25272a; color: #fff; font-size: 18px; }
.pt-root .ln-zoom button + button { border-top: 1px solid #45474b; }
.ln-minimap { position: absolute; z-index: 2; left: 12px; bottom: 14px; width: 72px; color: #8e8e93; font-size: 10px; text-align: center; }
.ln-minimap i { display: block; width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 50%; background: #111; box-shadow: inset 0 0 0 1px #45474b; }
.ln-minimap b { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #d9534a; }
.pt-root button.ln-find { position: absolute; z-index: 2; right: 12px; bottom: 14px; height: 36px; padding: 0 14px; border-radius: 18px; background: #25272a; color: #fff; border: 1px solid #45474b; font-size: 14px; }
.pt-root button.ln-find.on { background: #d9534a; border-color: #d9534a; }
.ln-crowd-note { position: fixed; z-index: 40; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 12px; background: #d9534a; color: #fff; font-size: 12px; }
.ln-sky-foot { margin: 12px 20px 0; font-size: 13px; line-height: 1.5; color: #8e8e93; }
.ln-ladder-page { padding-bottom: calc(16px + 50px + env(safe-area-inset-bottom)); }
.ln-ladder { margin: 8px 16px 0; border-radius: 18px; background: #17181a; color: #e8e4da; overflow: hidden; }
.ln-ladder header { padding: 14px 16px 8px; }
.ln-ladder header small, .ln-ladder header span { display: block; color: #a1a1a6; font-size: 12px; }
.ln-ladder header b { display: block; font-size: 28px; }
.ln-ladder-list { overflow: visible; }
.ln-ladder-row, .pt-root button.ln-ladder-row { box-sizing: border-box; display: grid; grid-template-columns: 16px 22px minmax(0, 1fr) auto auto; gap: 4px; align-items: center; width: 100%; min-height: 28px; padding: 0 10px; border: 0; background: none; font-size: 12px; color: #636366; text-align: left; }
.ln-ladder-row em { font-style: normal; font-size: 10px; color: #8e8e93; }
.pt-root button.ln-ladder-row.done { color: #e8e4da; }
.pt-root button.ln-ladder-row.now { color: #d9534a; background: rgba(217, 83, 74, 0.16); }
.pt-root button.ln-ladder-row.look { box-shadow: inset 2px 0 0 #c9a24a; }
.ln-ladder-row i { font-style: normal; font-size: 10px; }
.ln-heaven-list, .ln-marks, .ln-scroll { margin: 8px 16px 28px; padding: 14px 14px 18px; border-radius: 18px; background: #17181a; color: #e8e4da; }
.ln-heaven-list h3, .ln-scroll h3 { margin: 14px 0 4px; font-size: 13px; color: #a1a1a6; }
.ln-heaven-row { padding: 7px 0; border-top: 0.5px solid #2c2e32; }
.ln-heaven-row b { font-size: 14px; }
.ln-heaven-row.now b { color: #d9534a; }
.ln-heaven-row small { float: right; color: #8e8e93; font-size: 12px; }
.ln-heaven-row span, .ln-heaven-row em { display: block; color: #8e8e93; font-size: 12px; font-style: normal; }
.ln-marks h2, .ln-heaven-list h2, .ln-scroll h2 { margin: 2px 0 8px; font-size: 28px; font-weight: 600; }
.ln-marks > small { display: block; font-size: 12px; color: #a1a1a6; }
.ln-marks > p, .ln-scroll > p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #8e8e93; }
.ln-marks-grid, .ln-scroll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.ln-scroll-grid h3 { grid-column: 1 / -1; }
.ln-marks-grid div, .ln-scroll-grid div { text-align: center; }
.ln-marks-grid img, .ln-scroll-grid img { width: 72px; height: 72px; object-fit: contain; }
.ln-marks-grid div:not(.got) img, .ln-scroll-grid div:not(.got) img { filter: grayscale(1) brightness(0.45); }
.ln-marks-grid > .got, .ln-scroll-grid > .got { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ln-marks-grid .ln-marks-line, .ln-scroll-grid .ln-marks-line, .ln-desk .ln-marks-line {
  display: flex; justify-content: center; align-items: center; width: 100%; height: 16px; margin: 0;
  overflow: hidden; font-size: 12px; font-weight: 400; line-height: 16px; white-space: nowrap; color: #8e8e93;
}
.ln-marks-grid b.ln-marks-line { font-weight: 600; color: #e8e4da; }
.ln-marks-grid .ln-marks-line > span { flex: none; transform-origin: center; white-space: nowrap; }
.ln-scroll-grid small { display: block; font-size: 12px; color: #8e8e93; }
.ln-star-sheet { text-align: center; padding-bottom: calc(24px + 50px); }
.ln-star-seal { display: grid; width: 84px; height: 84px; margin: 4px auto 8px; place-items: center; border: 2px solid #94211b; color: #94211b; font-size: 16px; letter-spacing: 0.2em; }
.ln-star-sheet b { display: block; font-size: 20px; }
.ln-star-sheet small, .ln-star-sheet p { color: #8e8e93; }
.ln-ascent { min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 72px 24px 96px; background: #141516; color: #e8e4da; text-align: center; }
.ln-ascent.gold { background: linear-gradient(#3a2e14, #120f08); color: #f4e6b8; }
.ln-ascent h2 { margin: 8px 0 0; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 36px; font-weight: 500; letter-spacing: 0.14em; }
.ln-ascent h3 { margin: 0; font-size: 28px; }
.ln-ascent-chart { width: 210px; margin: 24px 0; }
.ln-meteor { stroke-dasharray: 90; animation: ln-shoot 2.6s linear infinite; }
@keyframes ln-shoot { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -90; } }
.ln-guest { animation: ln-guest 1.8s ease-in-out infinite; }
@keyframes ln-guest { 50% { opacity: 0.15; } }
.ln-ascent-kicker { margin-top: 8px; color: #a1a1a6; }
.ln-ascent-seals { display: flex; gap: 10px; margin-top: 8px; }
.ln-ascent-seals img { width: 68px; height: 68px; object-fit: contain; }
.ln-ascent button { width: 100%; height: 50px; margin-top: 16px; border-radius: 12px; background: #f2f2f7; color: #1c1c1e; font-size: 17px; font-weight: 600; }
.ln-ascent button.wait { opacity: 0.45; }
.ln-ascent-sky { width: min(100%, 280px); height: 280px; margin: 12px 0; }
.ln-ascent-sky .ln-new { opacity: 0; }
.ln-ascent-sky.drawing .ln-new,
.ln-ascent-sky.settled .ln-new { opacity: 1; }
.ln-ascent-sky.drawing .ln-new path,
.ln-ascent-sky.drawing .ln-new line,
.ln-ascent-sky.drawing .ln-new polyline,
.ln-ascent-sky.drawing .ln-new polygon {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ln-draw 1.1s ease forwards;
}
.ln-ascent-sky.settled .ln-new { opacity: 0.45; transition: opacity 1s ease; }
.ln-ascent-sky.settled.full .ln-new { opacity: 1; }
@keyframes ln-draw { to { stroke-dashoffset: 0; } }
.ln-stamp { animation: ln-stamp 0.35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ln-stamp { from { transform: scale(1.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ln-chart.leaving .ln-chart-map { animation: ln-leave 0.7s ease forwards; }
@keyframes ln-leave { to { transform: scale(2.4); opacity: 0; } }
.ln-vein-enter { transform-origin: 50% 47%; animation: ln-vein-open 0.9s ease-out; }
@keyframes ln-vein-open { from { transform: scale(0.2); opacity: 0.35; } }
.ln-found-ring { stroke-dashoffset: 251; animation: ln-ring-draw 0.5s ease-out forwards; }
@keyframes ln-ring-draw { to { stroke-dashoffset: 0; } }
.ln-pick-ring { animation: ln-fade 0.2s ease; }
@keyframes ln-fade { from { opacity: 0; } to { opacity: 1; } }
.ln-scroll-grid > .got { position: relative; }
.ln-seal-dot {
  position: absolute; top: 0; right: 18%; width: 8px; height: 8px; border-radius: 50%; background: #d9534a;
}
@media (prefers-reduced-motion: reduce) {
  .ln-ascent, .ln-ascent *, .ln-vein-enter, .ln-chart.leaving .ln-chart-map, .ln-sheet, .ln-found-ring, .ln-pick-ring, .ln-stamp, .ln-disc-slot {
    animation: none !important;
    transition: none !important;
  }
}

.hm-role { margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #f2f2f7; color: #8e8e93; font-size: 11px; font-style: normal; font-weight: 500; }
.hm-row-seal { width: 28px; height: 28px; object-fit: contain; flex: none; }

.pt-root button.ln-banner, .ln-banner {
  position: relative; display: block; width: calc(100% - 32px); height: 92px; margin: 0 16px 8px; padding: 14px 36px 14px 16px;
  border: 0; border-radius: 14px; background: #17181a; color: #e8e4da; text-align: left; overflow: hidden;
}
.ln-banner.desk { height: 84px; }
.ln-banner.on { box-shadow: inset 0 0 0 2px #007aff; }
.ln-banner-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: 68%; }
.ln-banner-copy b { font-family: "Songti TC", "Noto Serif TC", serif; font-size: 20px; font-weight: 500; letter-spacing: 0.2em; }
.ln-banner-copy span { font-size: 13px; }
.ln-banner-copy small { font-size: 12px; color: #9a958b; }
.ln-banner-art { position: absolute; right: -28px; top: -54px; width: 210px; height: 210px; }
.ln-banner-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #17181a 40%, rgba(23, 24, 26, 0) 74%); }
.ln-banner-go { position: absolute; z-index: 1; right: 10px; top: 50%; color: #fff; transform: translateY(-50%); }
.pt-root button.ln-banner-add {
  position: absolute; z-index: 1; right: 12px; top: 50%; transform: translateY(-50%);
  height: 32px; padding: 0 12px; border-radius: 16px; background: #e8e4da; color: #1c1c1e; font-size: 14px; font-weight: 600;
}

.ln-desk { height: 100%; min-height: 0; display: flex; flex-direction: column; background: #f2f2f7; color: #1c1c1e; }
.ln-desk-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: #fff; border-bottom: 1px solid #e5e5ea; }
.ln-desk-bar > b { font-size: 17px; }
.pt-root.ln-desk .ln-art-seg { margin: 0; width: 140px; }
.ln-desk-tabs { margin-left: auto; display: flex; gap: 6px; }
.pt-root.ln-desk .ln-desk-tabs button { height: 30px; padding: 0 12px; border-radius: 15px; background: #e5e5ea; color: #1c1c1e; font-size: 13px; }
.pt-root.ln-desk .ln-desk-tabs button.on { background: #1c1c1e; color: #fff; }
.ln-desk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.ln-desk-main, .ln-desk-side { min-width: 0; min-height: 0; overflow: auto; }
.ln-desk-side { padding: 16px; background: #f2f2f7; border-left: 1px solid #e5e5ea; }
.ln-desk-side section, .ln-desk-who, .ln-desk-add, .ln-desk-empty {
  margin-bottom: 12px; padding: 14px; border-radius: 16px; background: #fff;
}
.ln-desk-bands { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ln-desk-band { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; gap: 8px; align-items: center; }
.ln-desk-band b { font-size: 12px; font-weight: 600; }
.ln-desk-band i { display: block; height: 4px; border-radius: 2px; background: #e5e5ea; }
.ln-desk-band i b { display: block; height: 100%; border-radius: 2px; background: #C9A24A; }
.ln-desk-band small { text-align: right; }
.ln-desk-side h3 { margin: 0 0 8px; font-size: 13px; color: #8e8e93; }
.ln-desk-side .ln-desk-band small { white-space: nowrap; }
.ln-desk-side .ln-desk-seal { display: block; margin: 0 0 10px; }
.ln-desk-side p { margin: 0; font-size: 14px; line-height: 1.5; }
.ln-desk-side small, .ln-desk-who small, .ln-desk-add small { display: block; color: #8e8e93; font-size: 12px; }
.ln-desk-tree { padding: 8px 0 24px; }
.ln-desk-tree .ln-art-label { display: none; }
.ln-desk-hint { margin: 4px 16px 8px; color: #8e8e93; font-size: 12px; }
.ln-desk-who, .ln-desk-add { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ln-desk-who .ln-ava { width: 64px; height: 64px; font-size: 26px; }
.ln-desk-seal { width: 84px; height: 84px; object-fit: contain; }
.pt-root.ln-desk button.ln-desk-go, .pt-root.ln-desk button.ln-desk-danger, .pt-root.ln-desk button.ln-desk-create {
  width: 100%; height: 40px; margin-top: 6px; border-radius: 10px; font-size: 15px; font-weight: 600;
}
.pt-root.ln-desk button.ln-desk-go { background: #e8f1ff; color: #007aff; }
.pt-root.ln-desk button.ln-desk-danger { background: #f2f2f7; color: #d70015; }
.pt-root.ln-desk button.ln-desk-create { background: #1c1c1e; color: #fff; }
.pt-root.ln-desk button.ln-desk-create:disabled { opacity: 0.4; }
.ln-desk-add { align-items: stretch; text-align: left; }
.ln-desk-add label { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; color: #8e8e93; }
.ln-desk-add input { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #f2f2f7; font: inherit; font-size: 16px; color: #1c1c1e; }
.ln-desk-wait { margin-top: 12px; }
.ln-desk-wait > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 0.5px solid #e5e5ea; }
.pt-root.ln-desk .ln-desk-wait button { background: none; color: #007aff; font-size: 14px; }
.ln-desk-friend { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.ln-desk-friend .ln-ava { flex: none; width: 32px; height: 32px; font-size: 14px; }
.ln-desk-friend > span:not(.ln-ava) { flex: 1; min-width: 0; }
.pt-root.ln-desk .ln-desk-friend button { background: none; color: #007aff; font-size: 13px; }
.pt-root.ln-desk button.ln-desk-now { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 12px; background: #f7f4ee; text-align: left; }
.ln-desk-now img { width: 42px; height: 42px; object-fit: contain; }
.ln-desk-now em { margin-left: auto; color: #007aff; font-style: normal; font-size: 13px; }
.ln-desk-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ln-desk-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ln-desk-sky .ln-root,
.ln-desk-sky .pt-root.hm-root.ln-root.sky-still {
  position: static; inset: auto; bottom: auto; display: block;
  height: auto; overflow: visible; background: transparent;
}
.ln-desk-sky .pt-nav, .ln-desk-sky .ln-art-seg, .ln-desk-sky .ln-sky-switch, .ln-desk-sky .ln-sky-foot, .ln-desk-sky .ln-heaven-go, .ln-desk-sky .ln-ladder-more { display: none; }
.ln-desk-sky .ln-chart { margin: 12px; display: block; flex: none; min-height: 0; }
.ln-desk-sky .ln-chart-tools { position: static; padding: 8px 12px 12px; pointer-events: auto; }
.ln-desk-sky .ln-chart-map { padding: 0; }
.ln-desk-sky .ln-chart.oblique .ln-oblique { height: auto; width: min(100%, 520px); }
.ln-desk-sky .ln-sky-body, .ln-desk-sky .ln-chart-map { display: block; flex: none; overflow: visible; }
.ln-desk-sky .ln-chart-svg { max-height: none; }
.ln-desk-black { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 100%; margin: 12px; border-radius: 18px; background: #17181a; color: #e8e4da; overflow: hidden; }
.ln-desk-black ol { max-height: calc(100vh - 140px); margin: 0; padding: 12px 0; overflow: auto; list-style: none; }
.pt-root.ln-desk .ln-desk-black button { display: grid; grid-template-columns: 36px 22px minmax(0, 1fr) auto auto; gap: 4px; align-items: center; width: 100%; min-height: 26px; padding: 0 10px; background: none; color: #8e8e93; font-size: 12px; text-align: left; }
.pt-root.ln-desk .ln-desk-black button.now { color: #d9534a; background: rgba(217, 83, 74, 0.16); }
.pt-root.ln-desk .ln-desk-black button.look { box-shadow: inset 2px 0 0 #c9a24a; }
.ln-desk-black > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.ln-desk-black h2 { margin: 4px 0 12px; font-family: "Songti TC", "Noto Serif TC", serif; font-size: 28px; font-weight: 500; }
.ln-desk-black > div img { width: 96px; height: 96px; object-fit: contain; }
.ln-desk-scroll, .ln-desk-marks { padding: 16px; }
.ln-desk-scroll section > div, .ln-desk-marks > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.pt-root.ln-desk .ln-desk-scroll button, .pt-root.ln-desk .ln-desk-marks button { background: #fff; border-radius: 12px; padding: 8px; color: #1c1c1e; }
.ln-desk-scroll img, .ln-desk-marks img { width: 64px; height: 64px; object-fit: contain; }
.pt-root.ln-desk .ln-desk-scroll section button, .pt-root.ln-desk .ln-desk-marks > div > button {
  display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center;
}
.pt-root.ln-desk .ln-marks-line { color: #1c1c1e; }
.pt-root.ln-desk .ln-marks-line + .ln-marks-line { color: #8e8e93; font-weight: 400; }



.ln-teacher-more {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  width: 28px; height: 28px; border-radius: 14px;
  display: grid; place-items: center;
  color: #8e8e93; font-size: 18px; line-height: 1; font-weight: 700;
  background: transparent;
}
.ln-tcard[role="button"] { cursor: pointer; }
.ln-teacher-more:active, .ln-teacher-more:focus-visible { color: #007aff; background: rgba(0, 122, 255, 0.08); }
.pt-root .ln-go.ln-go-quiet {
  margin-top: 8px; background: transparent; color: #007aff; font-weight: 400;
}
.hm-alert-row button.hm-danger { color: #ff3b30; font-weight: 600; }

/* 主頁命理模式快捷切換 */
.hm-title-row { display: inline-flex; align-items: center; gap: 8px; }
.hm-mode-toggle {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: var(--label2, #666);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
}
.hm-mode-toggle[data-kind="bazi"] { color: #c2410c; border-color: rgba(194,65,12,.35); }
.hm-mode-toggle[data-kind="ziwei"] { color: #5856d6; border-color: rgba(88,86,214,.35); }
