/* ============================================================
   通玄 · 七政四余 —— 天星择日（2026-11-12 第三轮）：表单、双轮盘、择日表、反查
   ============================================================ */
.qzpk-form { display: grid; gap: 12px; margin-top: 4px; }
.qzpk-lab { display: block; font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.06em; color: var(--paper-ink-soft); margin-bottom: 4px; }
.qzpk-lab-row { margin-bottom: -4px; }
.qzpk-when { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.qzpk-field { display: block; min-width: 0; }
.qzpk-field .select-line, .qzpk-field .input-line { width: 100%; }
.qzpk-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px; }
.qzpk-chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.qzpk-chipg .qzm-tabs { margin: 0; }
.qzpk-now { min-height: 36px; }
.qzpk-go { justify-self: start; }
.qzpk-out { margin-top: 14px; }
.qzpk-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; margin-bottom: 10px; }
.qzpk-kv { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--paper-ink); }
.qzpk-kv b { flex: none; min-width: 4.6em; font-family: var(--font-serif); font-weight: 600; color: var(--gold-700); }
.qzpk-wheel-box { display: flex; justify-content: center; }
.qzpk-svg { width: 100%; max-width: 600px; height: auto; }
.qzpk-svg text { text-anchor: middle; dominant-baseline: central; font-family: var(--font-serif); }
.qzpk-disc { fill: rgba(250, 247, 239, 0.9); stroke: rgba(150, 114, 58, 0.55); stroke-width: 1.4; }
.qzpk-shan { fill: rgba(150, 114, 58, 0.04); stroke: rgba(150, 114, 58, 0.35); stroke-width: 0.7; }
.qzpk-shan.is-zuo { fill: rgba(178, 58, 46, 0.16); }
.qzpk-shan-t { font-size: 17px; font-weight: 700; }
.wx-木 { fill: #237a45; } .wx-火 { fill: #c72d22; } .wx-土 { fill: #7a4f2a; } .wx-金 { fill: #ab5500; } .wx-水 { fill: #275fc7; }
.qzpk-shan.wx-木, .qzpk-shan.wx-火, .qzpk-shan.wx-土, .qzpk-shan.wx-金, .qzpk-shan.wx-水 { fill: rgba(150, 114, 58, 0.04); }
.qzpk-shan.is-zuo.wx-木, .qzpk-shan.is-zuo.wx-火, .qzpk-shan.is-zuo.wx-土, .qzpk-shan.is-zuo.wx-金, .qzpk-shan.is-zuo.wx-水 { fill: rgba(178, 58, 46, 0.16); }
.qzpk-tick { stroke: rgba(150, 114, 58, 0.5); stroke-width: 0.8; }
.qzpk-line { fill: none; stroke: rgba(150, 114, 58, 0.45); stroke-width: 0.9; }
.qzpk-lead { stroke-width: 0.9; opacity: 0.6; }
.qzpk-star { font-size: 17px; font-weight: 700; }
.qzpk-dyn.is-down { opacity: 0.45; }
.qzpk-sign { fill: rgba(150, 114, 58, 0.05); stroke: rgba(150, 114, 58, 0.35); stroke-width: 0.6; }
.qzpk-sign.alt { fill: rgba(150, 114, 58, 0.11); }
.qzpk-sign-t { font-size: 15px; font-weight: 700; fill: #3b352a; }
.qzpk-xiu { fill: rgba(150, 114, 58, 0.03); stroke: rgba(150, 114, 58, 0.3); stroke-width: 0.5; }
.qzpk-xiu.alt { fill: rgba(150, 114, 58, 0.1); }
.qzpk-xiu-t { font-size: 11px; fill: #5a4a26; }
.qzpk-tick2 { stroke-width: 2.2; }
.qzpk-star2 { font-size: 14px; font-weight: 700; }
.qzpk-axis { stroke: #3b352a; stroke-width: 1.6; opacity: 0.7; }
.qzpk-axis-t { font-size: 13px; font-weight: 700; fill: #a2382e; }
.qzpk-life { stroke: #b23a2e; stroke-width: 1.5; stroke-dasharray: 5 3; }
.qzpk-ck { font-size: 12px; letter-spacing: 0.3em; fill: #8a6a2a; }
.qzpk-cv { font-size: 18px; font-weight: 700; fill: #a2382e; }
.qzpk-t .qzm-row { grid-template-columns: 0.9fr 1.2fr 1fr 1.3fr 1.1fr 0.6fr; }
.qzpk-t-az .qzm-row { grid-template-columns: 1fr 0.8fr 1.2fr; }
.qzpk-t-ecl .qzm-row { grid-template-columns: 1fr 0.9fr 0.8fr 1.2fr; }
.qzpk-search { margin-top: 16px; }
.qzpk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.qzpk-use { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }

@media (max-width: 720px) {
  .qzpk-when { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qzpk-when > .qzpk-field:first-child { grid-column: span 2; }
  .qzpk-t, .qzpk-t-ecl { min-width: 560px; }
}
/* UI-1118：罗盘默认整幅排进屏宽，按「放大细看」（qizheng-pick.js，钮样式同 qizheng-more.css .qzm-wheel-zoom）才 480px 横滑；
   两张择日表改按内容定列（同 qizheng-more.css 六表），排得进 299px 就整表排进，排不进照旧横滑 */
@media (max-width: 720px) {
  .qzpk-wheel-box.is-zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .qzpk-wheel-box.is-zoom .qzpk-svg { width: 480px; max-width: none; }
  .qz-chart :is(.qzpk-t, .qzpk-t-ecl, .qzpk-t-az).qzm-table { min-width: 0; display: grid; grid-template-columns: repeat(var(--qzm-cols, 4), auto); }
  .qz-chart :is(.qzpk-t, .qzpk-t-ecl, .qzpk-t-az) > .qzm-row { display: contents; }
  .qz-chart :is(.qzpk-t, .qzpk-t-ecl, .qzpk-t-az) .qzm-c { padding: 8px 5px; border-bottom: 1px solid rgba(150, 114, 58, 0.14); word-break: keep-all; }
  .qz-chart :is(.qzpk-t, .qzpk-t-ecl, .qzpk-t-az) > .qzm-row:last-child > .qzm-c { border-bottom: none; }
  .qz-chart :is(.qzpk-t, .qzpk-t-ecl, .qzpk-t-az) > .qzm-head > .qzm-c { background: rgba(150, 114, 58, 0.07); }
}
@media print {
  .qzpk-form, .qzpk-search { display: none !important; }
  .qzpk-svg { width: 100% !important; max-width: 520px; }
  .qzpk-wheel-box { overflow: visible; break-inside: avoid; }
}

/* 袖中天：金 → 青莲；五行与吉凶色不动 */
html[data-theme="xiu"] .qzpk-kv b { color: var(--zi-700); }
html[data-theme="xiu"] .qzpk-ck { fill: #584a85; }
html[data-theme="xiu"] .qzpk-shan.is-zuo { fill: rgba(127, 111, 174, 0.2); }

/* 触屏：输入框与下拉 16px 防缩放，可点目标不小于 36px（置末，免被前面同权规则反杀） */
@media (pointer: coarse) {
  .qzpk-field .select-line, .qzpk-field .input-line { font-size: 16px; }
  .qzpk-use, .qzpk-now { min-height: 36px; }
}
