/* ============================================================
   通玄 TONGXUAN · 第三轮新页共用样式 lite-pan.css（2026-11-12 r3-npb）
   诸方历法 / 东亚命法 / 占星地图 / 巴比伦 / 世俗盘：录生辰卡沿用 base.css 的 geng-card；
   这里只补「盘面 + 页签 + 表」三件与各页独有的少量规则。袖中天覆盖在文件尾。
   ============================================================ */
.lp-entry .geng-card { max-width: 760px; margin: 0 auto; }
.lp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.lp-opts .field { margin: 0; }
.lp-opts .select-line { width: 100%; }
.lp-result[hidden] { display: none; }
.lp-adv { margin-top: 18px; border: 1px dashed rgba(150, 114, 58, 0.4); border-radius: var(--radius-sm); padding: 10px 14px; }
.lp-adv > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-height: 32px; }
.lp-adv > summary::-webkit-details-marker { display: none; }
.lp-adv > summary b { font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.3em; color: var(--gold-700); }
.lp-adv > summary span { font-size: 12.5px; color: var(--paper-ink-soft); }
.lp-summary { font-size: 22px; letter-spacing: 0.12em; }
.lp-sub { margin: 6px 0 0; font-size: 13px; letter-spacing: 0.06em; color: var(--paper-ink-soft); text-align: center; }
.lp-notice { margin: 0 auto 14px; max-width: 760px; padding: 8px 12px; border-left: 2px solid var(--gold-700); background: rgba(var(--gold-rgb), 0.12); color: var(--paper-ink); font-size: 13.5px; line-height: 1.8; }
.lp-notice[hidden] { display: none; }

.lp-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; }
.lp-tab {
  min-height: 36px; padding: 6px 18px;
  font-family: var(--font-serif); font-size: 15px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--paper-ink); background: rgba(250, 247, 239, 0.7);
  border: 1px solid rgba(150, 114, 58, 0.35); border-radius: 999px; cursor: pointer;
}
.lp-tab:hover { border-color: rgba(150, 114, 58, 0.7); }
.lp-tab.active { color: #241a08; background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600)); border-color: transparent; }
.lp-tab:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }

.lp-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lp-stage.lp-wide { grid-template-columns: minmax(0, 1fr); }
/* 宽屏左盘右表：表长盘短，盘随页吸住（清查 1112：宿盘/巴比伦/世俗盘读到右表下半，左侧只剩一片空白） */
@media screen and (min-width: 901px) {
  .lp-stage:not(.lp-wide) > .lp-board:first-child:not(:only-child) { position: sticky; top: calc(var(--nav-h, 72px) + 16px); }
}
.lp-board, .lp-panel {
  padding: 18px 20px; min-width: 0;
  background: rgba(250, 247, 239, 0.78);
  border: 1px solid rgba(44, 42, 36, 0.12); border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(44, 42, 36, 0.05);
}
.lp-board { display: flex; justify-content: center; }
.lp-board[hidden], .lp-panel[hidden] { display: none; }
.lp-svg { display: block; width: 100%; max-width: 560px; height: auto; font-family: var(--font-serif); }
.lp-panel-title { margin: 0 0 10px; font-size: 16px; letter-spacing: 0.16em; color: var(--paper-ink); }
.lp-panel-title small { margin-left: 8px; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.04em; color: var(--paper-ink-soft); font-weight: 400; }
.lp-panel > * + .lp-panel-title { margin-top: 18px; }
.lp-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--paper-ink-soft); }

.lp-kv { display: grid; gap: 0; }
.lp-kv > div { display: grid; grid-template-columns: minmax(6em, 8.5em) minmax(0, 1fr); gap: 10px; padding: 7px 2px; border-bottom: 1px dashed rgba(150, 114, 58, 0.22); }
.lp-kv > div:last-child { border-bottom: none; }
.lp-k { font-family: var(--font-serif); font-size: 13px; letter-spacing: 0.12em; color: var(--gold-700); }
.lp-v { font-size: 14px; color: var(--paper-ink); overflow-wrap: anywhere; }

.lp-table-wrap { margin-top: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(150, 114, 58, 0.4) transparent; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; letter-spacing: 0.03em; }
.lp-table th { padding: 7px 9px; font-family: var(--font-serif); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-align: left; color: var(--gold-700); border-bottom: 1px solid rgba(150, 114, 58, 0.4); white-space: nowrap; }
.lp-table td { padding: 8px 9px; color: var(--paper-ink); border-bottom: 1px dashed rgba(150, 114, 58, 0.22); white-space: nowrap; }
.lp-table tr:last-child td { border-bottom: none; }
.lp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-table tr.lp-hot td { background: rgba(var(--gold-rgb), 0.2); font-weight: 600; }
.lp-cap { caption-side: top; text-align: left; padding: 0 0 4px; font-size: 12.5px; color: var(--paper-ink-soft); }

/* SVG 盘面：类上色在留影前由 paipan-shot 内联（G17），这里只写类 */
.lp-ring { fill: none; stroke: rgba(122, 94, 48, 0.55); stroke-width: 0.9; }
.lp-ring-hot { fill: rgba(var(--gold-rgb), 0.32); stroke: var(--gold-700); stroke-width: 2; }
.lp-ink { fill: var(--paper-ink); }
.lp-ink-soft { fill: var(--paper-ink-soft); }
.lp-ink-hot { fill: var(--gold-700); font-weight: 700; }
.lp-ink-red { fill: #a8382a; }
.lp-line { stroke: rgba(122, 94, 48, 0.55); stroke-width: 1; fill: none; }
.lp-fill-soft { fill: rgba(var(--gold-rgb), 0.14); stroke: rgba(122, 94, 48, 0.55); stroke-width: 1; }

/* ---------- 诸方历法 · 人类图体图 ---------- */
.zf-ch { stroke-width: 4; stroke-linecap: round; }
.zf-ch-per { stroke: #3a3328; }
.zf-ch-design { stroke: #b0402f; }
.zf-ch-both { stroke: var(--gold-600); }
.zf-center { fill: var(--paper-50); stroke: rgba(122, 94, 48, 0.6); stroke-width: 1.2; }
.zf-defined { fill: rgba(var(--gold-rgb), 0.42); stroke: var(--gold-700); stroke-width: 2; }
.zf-lab-bg { fill: var(--paper-50); fill-opacity: 0.92; }

/* ---------- 东亚命法 ---------- */
.dy-day-ring { fill: none; stroke: var(--gold-700); stroke-width: 1.4; stroke-dasharray: 4 4; }
.dy-link { stroke: var(--gold-600); stroke-width: 2.4; }

/* ---------- 占星地图 ---------- */
.acg-c0 { --acg: #c8891a; }
.acg-c1 { --acg: #6b7c93; }
.acg-c2 { --acg: #3f8f6b; }
.acg-c3 { --acg: #c0567e; }
.acg-c4 { --acg: #b8322a; }
.acg-c5 { --acg: #7b5bb0; }
.acg-c6 { --acg: #5d4b32; }
.acg-c7 { --acg: #2f8fb0; }
.acg-c8 { --acg: #3557a8; }
.acg-c9 { --acg: #7a2e4a; }
.acg-c10 { --acg: #2d7d7a; }
.acg-c11 { --acg: #8b8b3c; }
.acg-c12 { --acg: #a0662f; }
.acg-board { display: block; padding: 10px; }
.acg-map-wrap { overflow-x: auto; scrollbar-width: thin; }
.acg-svg { max-width: none; width: 100%; cursor: crosshair; }
.acg-sea { fill: #e9eef0; }
.acg-land { fill: #efe4c8; stroke: #b9a477; stroke-width: 0.8; }
.acg-lake { fill: #e9eef0; stroke: #b9a477; stroke-width: 0.6; }
.acg-grat { stroke: rgba(90, 100, 110, 0.18); stroke-width: 0.6; }
.acg-equator { stroke: rgba(90, 100, 110, 0.45); stroke-width: 0.8; }
.acg-tropic { stroke: rgba(90, 100, 110, 0.35); stroke-width: 0.6; stroke-dasharray: 6 5; }
.acg-pl { color: var(--acg); }
.acg-mc { stroke: var(--acg); stroke-width: 1.8; }
.acg-ic { stroke: var(--acg); stroke-width: 1.6; stroke-dasharray: 7 5; }
.acg-asc { fill: none; stroke: var(--acg); stroke-width: 1.8; }
.acg-desc { fill: none; stroke: var(--acg); stroke-width: 1.8; stroke-dasharray: 2 4; stroke-linecap: round; }
.acg-tag { fill: var(--acg); }
.acg-tag-t { fill: #fff; font-weight: 700; }
.acg-birth { fill: #fff; stroke: #2a2418; stroke-width: 2.4; }
.acg-pin { fill: none; stroke: #b0402f; stroke-width: 3; }
.acg-ecl { fill: none; stroke: #c2410c; stroke-width: 2.6; }
.acg-ecl-edge { fill: none; stroke: #c2410c; stroke-width: 1.2; stroke-dasharray: 5 4; }
.acg-ecl-pt { fill: #c2410c; stroke: #fff; stroke-width: 1.5; }
.acg-clime { stroke: #2f7a6f; stroke-width: 1; }
.acg-clime-edge { stroke-dasharray: 2 4; stroke-width: 0.8; }
.acg-clime-parallel { stroke-dasharray: 6 4; stroke-width: 0.7; }
.acg-clime-t { fill: #2f7a6f; font-weight: 600; }
.acg-ls { fill: none; stroke: var(--acg); stroke-width: 1.2; stroke-dasharray: 1 3; opacity: 0.85; }
.acg-anti { stroke: var(--acg); stroke-width: 1; stroke-dasharray: 10 3 2 3; opacity: 0.7; }
.acg-geod { stroke: var(--acg); stroke-width: 1; stroke-dasharray: 3 6; opacity: 0.7; }
.acg-xl { fill: none; stroke: rgba(70, 70, 80, 0.45); stroke-width: 0.9; }
.acg-star .acg-xl { stroke: rgba(40, 70, 140, 0.55); }
.acg-lot .acg-xl { stroke: rgba(120, 60, 120, 0.55); }
.acg-xl.acg-l-ic { stroke-dasharray: 7 5; }
.acg-xl.acg-l-desc { stroke-dasharray: 2 4; }
.acg-xl-t { fill: #3a3a50; }
.acg-layers { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
.acg-layers .field-label { grid-column: 1 / -1; }
.acg-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.acg-bodies { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 14px; }
.acg-chip { min-height: 34px; padding: 4px 14px; font-size: 14px; letter-spacing: 0.08em; color: var(--paper-ink); background: rgba(250, 247, 239, 0.7);
  border: 1.5px solid var(--acg); border-radius: 999px; cursor: pointer; opacity: 0.55; }
.acg-chip.active { opacity: 1; background: var(--acg); color: #fff; }
.acg-chip.acg-c0.active { color: #241a08; }   /* UI 1113：太阳金底白字仅 2.98:1，改深字 */
.acg-chip:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.acg-legend { text-align: center; margin: 10px 0 18px; }
.acg-here { margin-top: 10px; min-height: 36px; }
.acg-orb { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: var(--paper-ink-soft); }
.acg-orb .select-line { width: auto; min-width: 8em; padding-top: 6px; padding-bottom: 6px; }

/* ---------- 量化盘 ---------- */
.mp-ptr { stroke: var(--gold-700); stroke-width: 2.2; }
.mp-ptr-sub { stroke: var(--gold-700); stroke-width: 1.2; stroke-dasharray: 5 4; }
.mp-ov-t { fill: #6b4fa0; font-weight: 700; }
.mp-ov-tick { stroke: #6b4fa0; stroke-width: 1.4; }
.mp-ov-ring { fill: none; stroke: rgba(107, 79, 160, 0.4); stroke-width: 0.8; stroke-dasharray: 3 3; }
.mp-eph-natal { stroke: rgba(80, 70, 50, 0.45); stroke-width: 0.8; stroke-dasharray: 4 4; }
.mp-eph-line { fill: none; stroke: var(--acg); stroke-width: 1.6; }
.mp-eph-legend .acg-chip { cursor: default; min-height: 28px; font-size: 13px; }
.mp-eph-legend { margin-top: 10px; }
.mp-h4 { margin: 0; padding: 7px 2px; font-size: 14px; font-weight: 400; line-height: 1.8; color: var(--paper-ink); border-bottom: 1px dashed rgba(150, 114, 58, 0.22); }

/* ---------- 世俗盘 ---------- */
[data-md][hidden] { display: none !important; }
.md-axis { stroke: var(--gold-700); stroke-width: 1.6; }
.md-curve { fill: none; stroke: var(--gold-700); stroke-width: 2; }
/* 弹性换行（清查 1112 亲眼看：栅格三轨时，北极神数头两张小卡后全是通栏卡，第一行右三分之一空着；世俗盘末行亦缺一格）——
   每行小卡均分整行，通栏卡独占一行 */
.md-cards { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.md-card { flex: 1 1 320px; min-width: 0; }
.md-card .lp-panel-title { margin-bottom: 6px; }
.md-card.md-wide { flex-basis: 100%; }
.md-table td { white-space: normal; min-width: 4em; }
.bb-roster td { min-width: 0; }   /* UI 1113 巴比伦七曜清单九列：免逐格 4em 撑出半幅栏 */
.bb-roster td:first-child, .bb-roster td:nth-child(2) { white-space: nowrap; }
.md-line { margin: 0; padding: 4px 0; font-size: 14px; line-height: 1.85; color: var(--paper-ink); overflow-wrap: anywhere; }

/* ---------- 巴比伦占星 ---------- */
.bb-tablet { fill: #e9dcc0; stroke: #b59a68; stroke-width: 1.4; }
.bb-list { margin: 6px 0 10px; padding-left: 1.3em; font-size: 14px; line-height: 1.85; color: var(--paper-ink); }
.bb-subtabs { justify-content: flex-start; margin-bottom: 10px; }
.bb-melo-row { cursor: pointer; }
.bb-melo-row:focus-visible { outline: 2px solid var(--gold-600); }
/* UI-1118 B 组：七曜清单九列塞在半幅栏（电脑 ≈550px / 手机 600px 定宽横滑）里逐字竖排，一行高 300px——
   改一曜一卡：首行曜名，其后「列名 值」成对横排、自动折行，末列「状」通栏（格内列名由 babylon.js tameTables 从表头写入 data-label） */
.lp-table.md-table.bb-roster { min-width: 0; }
.bb-roster, .bb-roster tbody, .bb-roster tr, .bb-roster td { display: block; }
.bb-roster thead { display: none; }
.bb-roster tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 6px; border-bottom: 1px dashed rgba(150, 114, 58, 0.22); }
.bb-roster tbody tr:last-child { border-bottom: none; }
.bb-roster td, .bb-roster td:first-child, .bb-roster td:nth-child(2) { padding: 0; border: 0; min-width: 0; white-space: nowrap; line-height: 1.7; text-align: left; }
.bb-roster td::before { content: attr(data-label); margin-right: 6px; font-family: var(--font-serif); font-size: 12px; letter-spacing: 0.08em; color: var(--gold-700); }
.bb-roster td:first-child { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.bb-roster td:first-child::before { content: none; }
.bb-roster td:last-child { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }
.bb-roster td:empty { display: none; }
html[data-theme="xiu"] .bb-roster td::before { color: var(--zi-700); }
html[data-theme="xiu"] .bb-roster tbody tr { border-bottom-color: rgba(88, 74, 133, 0.2); }
/* 表格外层兼挂 .md-tw（接全站横滚暗示）：抵掉 base 的 md-tw 上下 1.25em，留 lite-pan 原距 */
#bbPanel .lp-table-wrap.md-tw { margin: 10px 0 0; border-radius: 0; }

/* ---------- 数术别录 ---------- */
.bl-yao { fill: var(--paper-ink); }
.bl-yao-move { fill: #b0402f; }
#blArt { margin-bottom: 22px; }
.lp-entry .geng-card[hidden] { display: none; }
#blStage[hidden] { display: none; }

@media (max-width: 900px) {
  .lp-stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .md-card { flex-basis: 100%; }
  .acg-svg { width: 760px; }
  .lp-board, .lp-panel { padding: 14px 12px; }
  .lp-kv > div { grid-template-columns: minmax(5em, 7em) minmax(0, 1fr); }
  .lp-tab { padding: 6px 14px; font-size: 14px; }
  .lp-summary { font-size: 19px; }
  .lp-summary { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }   /* UI-1118：盘成大标只在空格处换行，原「本命 一 / 白」 */
  .lp-k { text-wrap: balance; }   /* 长键名两行均分：「兄弟姐妹人数断 / 语」→「兄弟姐妹 / 人数断语」 */
  /* UI 1113 世俗盘手机首屏（360×740 起盘钮曾在 810px）：盘型/年份/周期表短选单两两并排，长选单仍占整行 */
  #mdForm .lp-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  #mdForm .lp-opts > .field { grid-column: 1 / -1; }
  #mdForm .lp-opts > .field:is(:has(#mdType), :has(#mdYear), :has(#mdCycTable)) { grid-column: auto; }
  #mdForm .md-region-note { margin-top: 10px; }
  /* 换行长表（世俗宫义、巴比伦诸表）：手机四五列挤成一字一行的瘦高格（清查 1112 亲眼看）——按列数给最小宽，交外层横滚容器 */
  .md-table:has(th:nth-child(4)) { min-width: 480px; }
  .md-table:has(th:nth-child(5)) { min-width: 600px; }
  /* UI-1118 B 组（巴比伦 / 宿盘）：四列星历表、现象表在 375 右列被截半（「13 月 + 18;5,8」「1985-07-16 19:3」）——收内距与字距即排进；
     换行格只在空格与顿号处折（宿盘宫位表曾折成「日 18 / 亢1分」）；仍宽的长表把横滑提示提到表上 */
  :is(#bbPanel, #szPanel) .lp-table { letter-spacing: 0; }
  :is(#bbPanel, #szPanel) .lp-table th, :is(#bbPanel, #szPanel) .lp-table td { padding-left: 5px; padding-right: 5px; }
  :is(#bbPanel, #szPanel) .lp-table th { letter-spacing: 0.06em; }
  :is(#bbPanel, #szPanel) .md-table td { word-break: keep-all; overflow-wrap: break-word; }
  #bbPanel .lp-kv > div { grid-template-columns: minmax(5em, 9em) minmax(0, 1fr); }   /* 「按近出生之分至月」八字题名曾折出孤字「月」 */
}
/* 11-26 阁主拍板：手机盘图「放大细看」（lite-pan.js zoomable）——默认整幅，点开两倍宽横滑；钮样同七政星盘 .qzm-wheel-zoom */
.lp-zoom { display: none; }
/* 盘台 .lp-board 是横排 flex：外框占满一行（宽同原图，上限 560），钮折到图下，不与图并排挤窄 */
.lp-board:has(> .lp-zoom-box) { flex-wrap: wrap; }
.lp-zoom-box { flex: 1 1 100%; width: 100%; max-width: 560px; min-width: 0; }
@media (max-width: 720px) {
  .lp-zoom-box.is-zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lp-zoom-box.is-zoom > .lp-svg { width: 200%; max-width: 1120px; }
  .lp-zoom { display: flex; align-items: center; margin: 10px auto 0; min-height: 36px; padding: 6px 18px; border: 1px solid rgba(150, 114, 58, 0.45); border-radius: 999px; background: rgba(255, 253, 246, 0.7); font-family: var(--font-serif); font-size: 13px; letter-spacing: 0.1em; color: var(--paper-ink); cursor: pointer; }
  .lp-zoom[aria-pressed="true"] { border-color: var(--gold-700); background: rgba(var(--gold-rgb), 0.2); }
  html[data-theme="xiu"] .lp-zoom { border-color: rgba(88, 74, 133, 0.4); }
  html[data-theme="xiu"] .lp-zoom[aria-pressed="true"] { border-color: var(--zi-700); background: rgba(127, 111, 174, 0.16); }
}
@media (pointer: coarse) and (max-width: 720px) { .lp-zoom { min-height: 44px; font-size: 16px; } }
@media print { .lp-zoom { display: none !important; } .lp-zoom-box.is-zoom { overflow: visible; } .lp-zoom-box.is-zoom > .lp-svg { width: 100%; max-width: 560px; } }

@media print {
  .lp-tabs { display: none; }
  .lp-board, .lp-panel { box-shadow: none; background: #fff; break-inside: avoid; }
  .lp-table-wrap { overflow: visible; }
  .lp-table td, .lp-table th { white-space: normal; }
  /* 已起盘只印结果（同 print.css「技法页纸上只印结果」；简盘八页的结果段是 .lp-result，不在那张总表里——清查 1112 print-audit 实锤前两页印录入表单） */
  body:has(.lp-result:not([hidden])) :is(header.page-hero, section.lp-entry) { display: none !important; }
}

/* ---------- 袖中天 ---------- */
html[data-theme="xiu"] .lp-adv { border-color: rgba(88, 74, 133, 0.4); }
html[data-theme="xiu"] .lp-adv > summary b { color: var(--zi-700); }
html[data-theme="xiu"] .lp-notice { border-left-color: var(--zi-700); background: rgba(127, 111, 174, 0.1); }
html[data-theme="xiu"] .lp-tab { border-color: rgba(88, 74, 133, 0.35); }
html[data-theme="xiu"] .lp-tab:hover { border-color: rgba(88, 74, 133, 0.7); }
html[data-theme="xiu"] .lp-tab.active { color: #fbf8f0; background: linear-gradient(135deg, #7f6fae, #584a85); }
html[data-theme="xiu"] .lp-tab:focus-visible { outline-color: var(--zi-700); }
html[data-theme="xiu"] .lp-k, html[data-theme="xiu"] .lp-table th { color: var(--zi-700); }
html[data-theme="xiu"] .lp-table th { border-bottom-color: rgba(88, 74, 133, 0.4); }
html[data-theme="xiu"] .lp-kv > div, html[data-theme="xiu"] .lp-table td { border-bottom-color: rgba(88, 74, 133, 0.2); }
html[data-theme="xiu"] .lp-table tr.lp-hot td { background: rgba(127, 111, 174, 0.16); }
html[data-theme="xiu"] .lp-ring { stroke: rgba(88, 74, 133, 0.5); }
html[data-theme="xiu"] .lp-ring-hot { fill: rgba(127, 111, 174, 0.26); stroke: var(--zi-700); }
html[data-theme="xiu"] .lp-ink-hot { fill: var(--zi-700); }
html[data-theme="xiu"] .lp-line { stroke: rgba(88, 74, 133, 0.5); }
html[data-theme="xiu"] .lp-fill-soft { fill: rgba(127, 111, 174, 0.12); stroke: rgba(88, 74, 133, 0.5); }
html[data-theme="xiu"] .zf-ch-both { stroke: var(--zi-500, #7f6fae); }
html[data-theme="xiu"] .zf-defined { fill: rgba(127, 111, 174, 0.32); stroke: var(--zi-700); }
html[data-theme="xiu"] .dy-day-ring { stroke: var(--zi-700); }
html[data-theme="xiu"] .dy-link { stroke: var(--zi-500, #7f6fae); }
html[data-theme="xiu"] .acg-land { fill: #ece6d6; stroke: #a69bc0; }
html[data-theme="xiu"] .acg-sea, html[data-theme="xiu"] .acg-lake { fill: #e6e8f0; }
html[data-theme="xiu"] .acg-chip:focus-visible { outline-color: var(--zi-700); }
html[data-theme="xiu"] .mp-ptr, html[data-theme="xiu"] .mp-ptr-sub { stroke: var(--zi-700); }
html[data-theme="xiu"] .mp-h4 { border-bottom-color: rgba(88, 74, 133, 0.2); }
html[data-theme="xiu"] .md-axis, html[data-theme="xiu"] .md-curve { stroke: var(--zi-700); }

html[data-theme="xiu"] .bb-tablet { fill: #e6e0ee; stroke: #a69bc0; }

html[data-theme="xiu"] .bl-yao { fill: #3d3560; }

/* ================= UI-1118 逐页清查 · E 组（占星地图 / 量化盘 / 世俗盘，2026-11-18） ================= */
/* 三联起查日（占星地图「起查日」、量化盘「叠盘日」、世俗盘「起查日」）挂的 .zr-date3 只在择日页的 zeri.css 里有定义，
   本三页没挂那张表——落回 base 的五列：电脑上三格挤在左 3/5、每格 54px 把「2026」裁成「20」 */
.date-grid.zr-date3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 中点式每一对一枚（midpoint.js eqLine），只在「=」处折 */
.mp-nb { display: inline-block; }
/* 结果段与录入段同为纸底，中间曾空出 120px（手机）/ 220px（电脑）一整块——收距并加一道细界线（与合盘页同法） */
:is(#acgResult, #mpResult, #mdResult) { border-top: 1px solid rgba(44, 42, 36, 0.08); }
html[data-theme="xiu"] :is(#acgResult, #mpResult, #mdResult) { border-top-color: rgba(88, 74, 133, 0.14); }
@media (min-width: 721px) {
  body:is([data-help="acg"], [data-help="midpoint"], [data-help="mundane"]) .lp-entry:has(~ .lp-result:not([hidden])) { padding-bottom: 56px; }
  :is(#acgResult, #mpResult, #mdResult) { padding-top: 56px; }
}
@media (max-width: 720px) {
  body:is([data-help="acg"], [data-help="midpoint"], [data-help="mundane"]) .lp-entry:has(~ .lp-result:not([hidden])) { padding-bottom: 28px; }
  :is(#acgResult, #mpResult, #mdResult) { padding-top: 30px; }
  /* 占星地图附加图层勾选项长名（「本地空间线（出生地望向各星的方位大圆）」）单行不折，375 伸出卡外被裁 */
  .acg-layers { grid-template-columns: minmax(0, 1fr); }   /* minmax(260px) 在 320 宽撑破卡（整张录入卡右出屏 11px） */
  .acg-layers .check-line { white-space: normal; align-items: flex-start; line-height: 1.6; letter-spacing: 0.04em; }
  .acg-layers .check-line input { flex: none; margin-top: 3px; }
  /* 占星地图两表（行星线经度五列、两线交点）在 375 宽出 6–41px、末列只露半截：收格距、去字距，排进框内 */
  #acgResult .lp-table { letter-spacing: 0; }
  #acgResult .lp-table th, #acgResult .lp-table td { padding-left: 5px; padding-right: 5px; }
  #acgResult .lp-table th { letter-spacing: 0.04em; }
  /* 量化盘六宫框七列（星 + 六种起宫法）在 375 宽出 115px、后两列整列藏在框外：收格距与表头字距，七列排进 */
  #mpResult .lp-table { font-size: 12px; letter-spacing: 0; }
  #mpResult .lp-table th { font-size: 12px; letter-spacing: 0; }
  #mpResult .lp-table th, #mpResult .lp-table td { padding-left: 4px; padding-right: 4px; }
  /* 图形星历 720 宽的图压进 300px，图中字只剩 4px：手机改横滑（600px，字约 9px），右沿渐隐提示可滑 */
  #mpResult .lp-table-wrap:has(> svg) { padding-right: 22px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
  #mpResult .lp-table-wrap > svg { width: 600px; max-width: none; }
  /* 世俗盘「行星周期」式：盘型与周期表两只长名下拉曾并排各半、选中项截成「行星周期与世…」「两星之合 · 巴…」——此式两只各占整行 */
  #mdForm .lp-opts:has(> .field:not([hidden]) #mdCycTable) > .field:is(:has(#mdType), :has(#mdCycTable)) { grid-column: 1 / -1; }   /* :has 不可嵌套，外层用后代式 */
  /* 高级选项里的长题签（「恒星黄道读数（只加读数，不改线）」「他人出生日期与时分（公历）」）折出孤字——两行均分 */
  body:is([data-help="acg"], [data-help="midpoint"], [data-help="mundane"]) .lp-entry .field-label { text-wrap: balance; }
  /* 世俗盘宫义/分野表：星名、宫次、分野名被列宽逼成「天王 / 星」「第4 / 宫」「上升(国 / 民)」——首列（三列以上的表连第二列）不折 */
  #mdResult .md-table td:first-child, #mdResult .md-table:has(th:nth-child(3)) td:nth-child(2) { white-space: nowrap; }
}

/* 触屏块居文末（G18h） */
@media (pointer: coarse) {
  .lp-tab { min-height: 40px; }
  .acg-chip { min-height: 40px; }
  .acg-orb .select-line { font-size: 16px; }
}
