/* ---
 * generated_by: kimi-k2.8 (Track C3 手动录盘前端)
 * date: 2026-09-17
 * core_logic: #page-custom-new 录入表单（cn-* 字段组：称呼/日期/时刻/城市搜索 +
 *   隐私说明/字段错误行/提交）与 #page-custom 报告页（Big Three 面板 / 完整盘位网格 /
 *   locked 购买区 / 两步删除区 / 离场块）。视觉令牌全取 styles/tokens.css（纸墨/苔绿/陶锈），
 *   与全站 D26 语言一致；触控目标 ≥44px；:focus-visible 指示；本文件零 transition/animation
 *   （reduced-motion 下行为无差异）；390/1280 双断点。
 * --- */

/* === #page-custom-new：录入表单（形态照 #page-birth-edit .be-*，独立 cn-* 命名空间
   保证 birth-picker 滚轮零误绑） === */
#page-custom-new .cn-form {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-16, 16px);
  margin-top: var(--reflect-space-16, 16px);
  max-width: 560px;
}

#page-custom-new .cn-field {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-4, 4px);
}

#page-custom-new .cn-label {
  font-family: var(--reflect-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reflect-ink-soft);
}

#page-custom-new .cn-field > input[type="text"],
#page-custom-new .cn-field > input[type="date"],
#page-custom-new .cn-field > input[type="time"] {
  font-family: var(--reflect-sans);
  font-size: 16px;
  color: var(--reflect-ink);
  background: var(--reflect-paper-light);
  border: 1px solid var(--reflect-line);
  border-radius: var(--reflect-radius-md, 6px);
  padding: 12px 14px;
  min-height: 44px; /* 触控目标 */
  width: 100%;
}

#page-custom-new .cn-field > input:focus-visible {
  outline: 2px solid var(--reflect-moss);
  outline-offset: 2px;
}

#page-custom-new .cn-status {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 12px;
  color: var(--reflect-ink-soft);
  min-height: 16px;
}

#page-custom-new .cn-place-results {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--reflect-line);
  border-radius: var(--reflect-radius-md, 6px);
  background: var(--reflect-paper-light);
  box-shadow: var(--reflect-shadow-flat, 0 4px 16px rgba(17, 24, 20, .08));
  overflow: hidden;
}

#page-custom-new .cn-place-results button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--reflect-hairline);
  background: transparent;
  text-align: left;
  font-family: var(--reflect-sans);
  font-size: 15px;
  color: var(--reflect-ink);
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
}

#page-custom-new .cn-place-results button:last-child {
  border-bottom: 0;
}

#page-custom-new .cn-place-results button:hover,
#page-custom-new .cn-place-results button:focus-visible {
  background: var(--reflect-paper-deep);
  outline: none;
}

/* 他人数据隐私说明（GC4）：表单下恒显，苔绿洗提示面板 */
#page-custom-new .cn-privacy {
  margin: 0;
  padding: var(--reflect-space-12, 12px) var(--reflect-space-14, 14px);
  border: 1px solid var(--reflect-hairline);
  border-radius: var(--reflect-radius-md, 6px);
  background: var(--reflect-moss-wash);
  font-size: 13px;
  line-height: 20px;
  color: var(--reflect-ink-soft);
}

#page-custom-new .cn-field-error,
#page-custom-new .cn-error {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 13px;
  line-height: 19px;
  color: var(--reflect-rust);
}

#page-custom-new .cn-submit {
  align-self: flex-start;
  min-height: 44px;
}

/* 页态块（guest / unavailable / error）：纵向排列 + 触控目标 */
#page-custom-new [data-cn-state]:not(form),
#page-custom-new .cn-form[data-cn-state] {
  margin-top: var(--reflect-space-16, 16px);
}

#page-custom-new [data-cn-state]:not(form) {
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
  align-items: flex-start;
}

#page-custom-new [data-cn-state] .section-h,
#page-custom-new [data-cn-state] .body-p {
  margin: 0;
}

/* head 内联 flex 类会压过 UA [hidden]，状态块需作者级赢回（同既有先例） */
#page-custom-new [data-cn-state][hidden],
#page-custom-new .cn-place-results[hidden],
#page-custom-new .cn-field-error[hidden],
#page-custom-new .cn-error[hidden] {
  display: none !important;
}

/* === #page-custom：报告页 === */
#page-custom .custom-for {
  margin: var(--reflect-space-16, 16px) 0 0;
  font-family: var(--reflect-serif);
  font-size: 20px;
  line-height: 28px;
  color: var(--reflect-ink);
}

/* 页级状态块（safe/guest） */
#page-custom [data-custom-state] {
  margin-top: var(--reflect-space-16, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
  align-items: flex-start;
}

#page-custom [data-custom-state] .section-h,
#page-custom [data-custom-state] .body-p {
  margin: 0;
}

/* head 内联 flex 类会压过 UA [hidden]，状态块需作者级赢回（同既有先例） */
#page-custom [data-custom-state][hidden],
#page-custom #custom-app[hidden],
#page-custom [data-custom-chart-state][hidden],
#page-custom [data-custom-full-state][hidden],
#page-custom #custom-placements-empty[hidden],
#page-custom #custom-purchase-status[hidden],
#page-custom #custom-delete-idle[hidden],
#page-custom #custom-delete-confirm[hidden],
#page-custom #custom-delete-status[hidden],
#page-custom #custom-exit-deleted[hidden],
#page-custom #custom-exit-gone[hidden] {
  display: none !important;
}

/* 应用区：Big Three / 完整盘位 / 删除 三面板 */
#page-custom #custom-app {
  margin-top: var(--reflect-space-16, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-16, 16px);
}

#page-custom .custom-panel {
  padding: var(--reflect-space-16, 16px);
  border: 1px solid var(--reflect-line);
  border-radius: var(--reflect-radius-md, 6px);
  background: var(--reflect-paper-light);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
}

#page-custom .custom-panel .section-h,
#page-custom .custom-panel .body-p {
  margin: 0;
}

#page-custom .custom-three {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 14px;
  line-height: 21px;
  color: var(--reflect-ink);
}

/* 盘位网格：事实命名 mono 行（body · sign · House n · deg°） */
#page-custom .custom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--reflect-space-8, 8px);
}

#page-custom .custom-placement {
  font-family: var(--reflect-mono, monospace);
  font-size: 13px;
  line-height: 19px;
  color: var(--reflect-ink);
  padding: var(--reflect-space-8, 8px) var(--reflect-space-12, 12px);
  border: 1px solid var(--reflect-hairline);
  border-radius: var(--reflect-radius-md, 6px);
  background: var(--reflect-paper-wash);
}

#page-custom .custom-empty {
  font-size: 13px;
  color: var(--reflect-ink-soft);
}

/* locked 购买区：CTA 零价格（R3）；状态行（成功打开/暂不可用/可重试错） */
#page-custom .custom-purchase-status {
  margin: 0;
  font-family: var(--reflect-sans);
  font-size: 13px;
  line-height: 19px;
  color: var(--reflect-ink-soft);
}

/* 删除区（危险语境：陶锈洗面板 + 两步确认） */
#page-custom .custom-danger {
  background: var(--reflect-rust-wash);
  border-color: var(--reflect-line);
}

#page-custom .custom-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--reflect-space-8, 8px);
}

/* 离场块（删除成功 / 档案已不在）：温和提示，自动离场由视图层定时器驱动 */
#page-custom #custom-exit-deleted,
#page-custom #custom-exit-gone {
  margin-top: var(--reflect-space-16, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--reflect-space-12, 12px);
  align-items: flex-start;
}

/* 触控目标与焦点指示（全页统一） */
#page-custom .btn-primary,
#page-custom .btn-ghost,
#page-custom-new .btn-primary,
#page-custom-new .btn-ghost {
  min-height: 44px;
}

#page-custom .btn-primary:focus-visible,
#page-custom .btn-ghost:focus-visible,
#page-custom-new .btn-primary:focus-visible,
#page-custom-new .btn-ghost:focus-visible {
  outline: 2px solid var(--reflect-moss);
  outline-offset: 2px;
}

/* 390 窄屏：面板内边距收紧 */
@media (max-width: 390px) {
  #page-custom .custom-panel {
    padding: var(--reflect-space-12, 12px);
  }
}

/* 1280 宽屏：面板与网格限阅读列宽；盘位行双列 */
@media (min-width: 1280px) {
  #page-custom .custom-panel,
  #page-custom .custom-list,
  #page-custom-new .cn-form {
    max-width: 640px;
  }

  #page-custom .custom-list {
    grid-template-columns: 1fr 1fr;
  }
}
