/* 凌云鸽 v6 — phone-first loft records (A 鸽档, the 挑鸽子 picker, shared form pieces). */

.lingyun-ui .action-dialog.v6-wide { width: min(860px, calc(100% - 24px)); }
/* v6 forms: the header stays, the body scrolls, the main button stays in reach. */
.lingyun-ui .action-dialog.v6-sheet .dialog-surface { display: flex; flex-direction: column; overflow: hidden; max-height: min(90dvh, 860px); padding: 0; }
.lingyun-ui .action-dialog.v6-sheet .dialog-surface > header { flex: none; padding: 18px 20px 14px; }
.lingyun-ui .action-dialog.v6-sheet .dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 18px 20px 0; }
.lingyun-ui .action-dialog.v6-sheet .dialog-actions { position: sticky; bottom: 0; z-index: 4; margin: 18px -20px 0; padding: 12px 20px; background: rgba(250, 251, 252, .97); border-top: 1px solid var(--line); }
.v6-hint, .field label small { color: var(--quiet); font-size: 12px; font-weight: 400; margin-left: 4px; }
.v6-form-error { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: #f9e7e8; color: var(--danger); font-size: 13px; }

/* chips */
.v6-chiprow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.v6-chiprow .v6-label { flex: none; white-space: nowrap; font-size: 12px; color: var(--quiet); margin-right: 2px; }
.v6-chip { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; white-space: nowrap; cursor: pointer; }
.v6-chip b { font-weight: 500; color: var(--quiet); font-size: 12px; }
.v6-chip.is-active { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.v6-chip.is-active b { color: var(--accent-strong); }
.v6-chip-radio { position: relative; display: inline-flex; }
.v6-chip-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.v6-chip-radio span { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; }
.v6-chip-radio input:checked + span { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.v6-chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* archive cards: usage and status tags */
.archive-meta em.v6-usage-tag { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; }
.archive-meta em.v6-usage-tag.is-breeder { color: #7a5a14; background: #f7efdc; }
.archive-meta em.v6-usage-tag.is-for_sale { color: #8b3f57; background: #f8e9ee; }
.archive-meta em.v6-status-tag { color: var(--warning); background: #fbf1e2; border-color: transparent; }
.archive-meta em.v6-status-tag.is-gone { color: #fff; background: #8a9099; }
.archive-card.v6-gone { opacity: .64; }
.archive-card.v6-gone .archive-photo { filter: grayscale(1); }

/* form pieces */
.v6-question { grid-column: 1 / -1; margin: 0; padding: 14px; border: 0; border-radius: var(--radius); background: var(--accent-soft); display: grid; gap: 10px; }
.v6-question legend { float: left; padding: 0; font-size: 14px; font-weight: 700; }
.v6-question legend small { font-weight: 400; color: var(--quiet); font-size: 12px; margin-left: 6px; }
.v6-question .v6-chiprow { clear: both; margin: 0; }
.v6-sexfield { margin: 0; padding: 0; border: 0; }
.v6-sexfield legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.v6-sexseg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: var(--radius); background: var(--surface-soft); }
.v6-sexseg label { position: relative; }
.v6-sexseg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.v6-sexseg span { min-height: 39px; display: grid; place-items: center; border-radius: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.v6-sexseg input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px #0000001a; }
.v6-sexseg input:focus-visible + span { outline: 2px solid var(--accent); }
.v6-picker-field { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--muted); font-size: 13px; text-align: left; cursor: pointer; }
.v6-picker-field svg { width: 16px; height: 16px; color: var(--icon); flex: none; }
.v6-picked { min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border: 1px solid var(--line-strong); border-left: 3px solid var(--sex-male); border-radius: var(--radius); background: #fff; font-size: 13px; }
.v6-picked.is-female { border-left-color: var(--sex-female); }
.v6-picked-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.v6-picked-ring { font-family: "SF Mono", Menlo, monospace; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-picked strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-picked .v6-badge { flex: none; }
.v6-picked-clear { margin-left: auto; width: 36px; height: 36px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--icon); display: grid; place-items: center; cursor: pointer; }
.v6-picked-clear svg { width: 16px; height: 16px; }
.v6-inline-card { grid-column: 1 / -1; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fbfcfd; display: grid; gap: 10px; }
.v6-inline-card > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.v6-inline-card > header svg { width: 16px; height: 16px; color: var(--icon); }
.v6-inline-card > header em { font-style: normal; color: var(--quiet); font-size: 12px; }
.v6-inline-card .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v6-disclosure { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.v6-disclosure > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.v6-disclosure > summary::-webkit-details-marker { display: none; }
.v6-disclosure > summary svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.v6-disclosure[open] > summary svg { transform: rotate(90deg); }
.v6-disclosure > summary small { margin-left: auto; color: var(--quiet); font-size: 12px; }
.v6-disclosure > .form-grid { padding: 0 12px 12px; }
.v6-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.v6-quick button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12.5px; cursor: pointer; }

/* review before write */
.v6-preview { display: grid; gap: 16px; }
.v6-preview-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.v6-preview-group h3 b { font-weight: 500; color: var(--quiet); }
.v6-preview-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 8px; }
.v6-preview-row .v6-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-soft); color: var(--icon); }
.v6-preview-row .v6-ico svg { width: 17px; height: 17px; }
.v6-preview-row strong { font-size: 14px; display: block; overflow-wrap: anywhere; }
.v6-preview-row small { color: var(--quiet); font-size: 12px; }
.v6-badge { font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.v6-badge.is-warn { background: #fbf1e2; color: var(--warning); }
.v6-badge.is-ok { background: #e6f3ec; color: var(--success); }
.v6-badge.is-muted { background: var(--surface-soft); color: var(--muted); }
.v6-badge.is-danger { background: #f9e7e8; color: var(--danger); }
.v6-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-soft); color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.v6-callout svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--icon); }
.v6-callout.is-warn { background: #fbf4e8; color: #7d5317; }
.v6-callout.is-warn svg { color: var(--warning); }
.assistant-draft-fields dd.is-warning { color: var(--warning); }

/* 挑鸽子 */
.v6-picker-dialog { width: min(560px, calc(100% - 24px)); max-width: none; max-height: none; margin: 9vh auto auto; padding: 0; border: 0; background: transparent; }
.v6-picker-dialog::backdrop { background: rgba(24, 47, 67, .22); }
.v6-picker-dialog.is-overlay { position: fixed; inset: 0; z-index: 50; width: auto; margin: 0; padding: 9vh 12px 0; display: block; background: rgba(24, 47, 67, .22); }
.v6-picker-dialog.is-overlay > .v6-picker-panel { width: min(560px, 100%); margin: 0 auto; }
.v6-picker-panel { max-height: min(72vh, 680px); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 80px #1d293740; }
.v6-picker-panel > header { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.v6-picker-search { flex: 1; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: 0 0 0 3px #2563d91f; }
.v6-picker-search svg { width: 17px; height: 17px; color: var(--icon); }
.v6-picker-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.v6-picker-cancel { border: 0; background: none; color: var(--accent-strong); font-size: 15px; padding: 0 6px; min-height: 44px; cursor: pointer; }
.v6-picker-lock { flex: none; display: flex; gap: 8px; align-items: center; padding: 9px 16px; font-size: 12.5px; color: var(--muted); background: #f8f9fa; border-bottom: 1px solid var(--line); }
.v6-picker-lock svg { width: 14px; height: 14px; }
.v6-picker-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.v6-picker-list h4 { margin: 0; padding: 12px 16px 6px; font-size: 12px; color: var(--quiet); font-weight: 600; }
.v6-pick-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; min-height: 62px; padding: 9px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.v6-pick-row:hover, .v6-pick-row.is-active { background: var(--accent-soft); }
.v6-pick-main { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.v6-pick-main strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-pick-main em { font-style: normal; font-weight: 700; }
.v6-sex-male { color: var(--sex-male); } .v6-sex-female { color: var(--sex-female); }
.v6-pick-ring { grid-column: 1; font-family: "SF Mono", Menlo, monospace; font-size: 13px; color: var(--muted); }
.v6-pick-row small { grid-column: 1; color: var(--quiet); font-size: 12px; }
.v6-pick-row > svg { grid-column: 2; grid-row: 1 / span 3; width: 18px; height: 18px; color: var(--icon); }
.v6-pick-row mark { background: #fff1b8; color: inherit; padding: 0; }
.v6-picker-empty { margin: 0; padding: 26px 16px; color: var(--quiet); font-size: 13px; text-align: center; }
.v6-picker-panel > footer { flex: none; padding: 10px 12px; border-top: 1px solid var(--line); }
.v6-picker-panel > footer button { width: 100%; min-height: 46px; justify-content: center; }

@media (max-width: 760px) {
  /* 贴底按钮需要祖先不是滚动容器 */
  .lingyun-ui #main-content { overflow-x: clip; overflow-y: visible; }
  .v6-chiprow.v6-scroll { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .v6-chiprow.v6-scroll::-webkit-scrollbar { display: none; }
  .v6-chip { min-height: 38px; font-size: 14px; }
  /* 选项看起来 38 高（设计：筛选选项紧凑），可点区域上下各补 3px 到 44；横滑行留出这 3px 不被裁掉。 */
  .v6-chip, .v6-chip-radio span { position: relative; }
  .v6-chip::before, .v6-chip-radio span::before { content: ""; position: absolute; inset: -4px -1px; } /* 定位从内边距框算，含 1px 边框 */
  .v6-chiprow.v6-scroll { padding-block: 3px; }

  /* 表单：全屏，标题在顶，主按钮贴底 */
  .lingyun-ui .action-dialog.v6-sheet { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-surface { height: 100dvh; max-height: 100dvh; padding: 0; border-radius: 0; display: flex; flex-direction: column; overflow: hidden; background: #f8f9fa; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-surface > header { flex: none; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; background: #fff; align-items: center; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-surface > header h2 { font-size: 17px; margin: 2px 0 0; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 16px 16px 0; }
  .lingyun-ui .action-dialog.v6-sheet .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lingyun-ui .action-dialog.v6-sheet .form-grid > :not(.v6-half) { grid-column: 1 / -1; }
  .lingyun-ui .action-dialog.v6-sheet .v6-inline-card .form-grid > * { grid-column: auto; }
  .lingyun-ui .action-dialog.v6-sheet .v6-inline-card .form-grid > :not(.v6-half) { grid-column: 1 / -1; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-actions { position: sticky; bottom: 0; z-index: 4; display: flex; margin: 20px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .lingyun-ui .action-dialog.v6-sheet .dialog-actions button { min-height: 48px; justify-content: center; }
  .lingyun-ui .action-dialog.v6-sheet .dialog-actions .primary-button { flex: 1; font-size: 15px; }
  .lingyun-ui .action-dialog.v6-sheet .field input, .lingyun-ui .action-dialog.v6-sheet .field select,
  .lingyun-ui .action-dialog.v6-sheet .field textarea { font-size: 16px; min-height: 48px; }
  .v6-chip-radio span { min-height: 38px; font-size: 14px; }
  .v6-sexseg span { min-height: 42px; font-size: 15px; }
  .v6-picked, .v6-picker-field { min-height: 52px; font-size: 14px; }
  .lingyun-ui .action-dialog.v6-sheet .form-grid > .v6-parent { grid-column: 1 / -1; }
  .v6-preview-row { grid-template-columns: 34px minmax(0, 1fr); }
  .v6-preview-row .v6-badge { grid-column: 2; justify-self: start; }

  /* 挑鸽子在手机上占满整屏 */
  .v6-picker-dialog { width: 100%; height: 100dvh; margin: 0; }
  .v6-picker-dialog.is-overlay { padding: 0; }
  .v6-picker-dialog.is-overlay > .v6-picker-panel { width: 100%; }
  .v6-picker-panel { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .v6-picker-panel > header { padding-top: calc(10px + env(safe-area-inset-top)); }
  .v6-picker-search input { font-size: 16px; }
  .v6-pick-row { min-height: 66px; }
  .v6-picker-panel > footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .v6-picker-panel > footer button { min-height: 48px; font-size: 15px; }
}

/* Form rows that span the grid (actions, errors, wide notes) — also fixes older dialogs whose buttons sat in the first column. */
.form-grid > .span-all, .form-grid > .dialog-actions { grid-column: 1 / -1; }

/* 鸽档工具条在手机上：搜索一行；性别 + 两个开关一行，可横滑；数量放在用途行上方 */
@media (max-width: 760px) {
  .lingyun-ui .filter-toolbar > .filter-group { grid-column: 1 / -1; overflow-x: auto; scrollbar-width: none; }
  .lingyun-ui .filter-toolbar > .filter-group::-webkit-scrollbar { display: none; }
  .lingyun-ui .filter-toolbar > .filter-group > .segmented { flex: none; }
  .lingyun-ui .filter-toolbar > .filter-group > .segmented button { min-width: 44px; }
}

/* C. 种鸽配对 */
.v6-pair-field > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.v6-pairing .pairing-evidence { min-height: 0; padding: 16px 0 4px; }
.v6-coi { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.v6-coi-main { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.v6-k { font-size: 12px; color: var(--quiet); }
.v6-coi-value { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.v6-coi-value small { font-size: 18px; font-weight: 600; margin-left: 2px; }
.v6-coi-level { display: inline-flex; justify-self: start; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #e6f3ec; color: var(--success); }
.v6-coi-level svg { width: 16px; height: 16px; }
.v6-coi.is-close .v6-coi-level { background: #fbf1e2; color: var(--warning); }
.v6-coi.is-severe .v6-coi-level { background: #f9e7e8; color: var(--danger); }
.v6-coi.is-none .v6-coi-level { background: var(--surface-soft); color: var(--muted); }
.v6-bands { display: grid; grid-template-columns: 12.5fr 37.5fr 50fr 50fr; gap: 3px; position: relative; padding-top: 12px; }
.v6-bands i { height: 8px; border-radius: 2px; }
.v6-bands i:nth-child(1) { background: #cfe6da; } .v6-bands i:nth-child(2) { background: #8fc6a8; }
.v6-bands i:nth-child(3) { background: #e9b765; } .v6-bands i:nth-child(4) { background: #d9787b; }
.v6-bands em { position: absolute; top: 0; width: 2px; height: 22px; background: var(--ink); }
.v6-bands-labels { display: grid; grid-template-columns: 12.5fr 37.5fr 50fr 50fr; gap: 3px; font-size: 10.5px; color: var(--quiet); white-space: nowrap; }
.v6-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.v6-coi-side { padding: 20px 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.v6-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v6-kv > div { padding: 12px; border-radius: var(--radius); background: var(--surface-soft); min-width: 0; }
.v6-kv small { display: block; font-size: 11.5px; color: var(--quiet); margin-bottom: 4px; }
.v6-kv strong { font-size: 15px; }
.v6-meter { display: block; height: 6px; border-radius: 3px; background: #dfe3e8; margin-top: 8px; overflow: hidden; }
.v6-meter i { display: block; height: 100%; background: var(--accent); }
.v6-anc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.v6-anc > header { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; background: var(--surface-soft); }
.v6-anc-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: #fff; font-size: 13px; text-align: left; cursor: pointer; }
.v6-anc-row:hover { background: var(--accent-soft); }
.v6-anc-row small { display: block; color: var(--quiet); font-size: 11.5px; margin-top: 2px; font-family: "SF Mono", Menlo, monospace; }
.v6-anc-row em { font-style: normal; font-weight: 700; }
.v6-path { font-size: 12px; color: var(--muted); }
.v6-pairs { margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.v6-pairs > header { padding: 16px 18px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.v6-pairs > header h3 { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.v6-pairs > header h3 svg { width: 18px; height: 18px; }
.v6-pairs > header h3 small { font-size: 12px; color: var(--quiet); font-weight: 400; }
.v6-pairs .v6-chiprow { margin: 0; }
.v6-pair-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 110px 76px auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.v6-pair-rows > .v6-pair-row:first-child { border-top: 0; }
.v6-who { display: grid; gap: 1px; padding-left: 10px; border-left: 3px solid var(--sex-male); min-width: 0; }
.v6-who.is-female { border-left-color: var(--sex-female); }
.v6-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-who small { color: var(--quiet); font-size: 11.5px; font-family: "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v6-coi-chip { font-weight: 700; font-size: 14px; text-align: right; }
.v6-coi-chip.is-severe { color: var(--danger); } .v6-coi-chip.is-close { color: var(--warning); }
.v6-coi-chip.is-low { color: var(--success); } .v6-coi-chip.is-none { color: var(--muted); }
.v6-pair-rows > footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--quiet); }
.v6-pager { display: flex; gap: 8px; }
.v6-pad { padding: 16px 18px; margin: 0; }

@media (max-width: 760px) {
  .v6-coi { grid-template-columns: minmax(0, 1fr); }
  .v6-coi-main { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .v6-coi-side { padding: 16px 14px; }
  .v6-kv { gap: 8px; } .v6-kv > div { padding: 10px; } .v6-kv strong { font-size: 14px; }
  .v6-anc > header .v6-hint { display: none; }
  .v6-anc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .v6-anc-row .v6-path { grid-column: 1; grid-row: 2; }
  .v6-anc-row .v6-contrib { grid-column: 2; grid-row: 1 / 3; }
  .v6-pairs { margin-left: 0; margin-right: 0; }
  .v6-pairs > header { padding: 14px; }
  .v6-pair-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; }
  .v6-pair-row .v6-badge { justify-self: start; }
  .v6-pair-row .secondary-button { grid-column: 1 / -1; justify-content: center; min-height: 44px; }
  .v6-pair-rows > footer { padding: 12px 14px; }
  .pairing-pickers { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  /* 主操作贴在底部导航上方 */
  .v6-pagebar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4; margin: 12px -18px 0; padding: 10px 18px; background: rgba(248, 249, 250, .96); border-top: 1px solid var(--line); }
  .v6-pagebar .primary-button { flex: 1; min-height: 48px; justify-content: center; }
  .v6-pagebar .secondary-button { min-height: 48px; }
}
.v6-anc-more { margin: 0; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--quiet); }
.v6-pairing .pairing-evidence { background: transparent; }

/* assistant cards */
.assistant-coi-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.assistant-coi-head strong { font-size: 30px; line-height: 1; }
.assistant-coi-level { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e6f3ec; color: var(--success); }
.assistant-pair-coi.is-close .assistant-coi-level { background: #fbf1e2; color: var(--warning); }
.assistant-pair-coi.is-severe .assistant-coi-level { background: #f9e7e8; color: var(--danger); }
.assistant-pair-coi.is-none .assistant-coi-level { background: var(--surface-soft); color: var(--muted); }
.assistant-coi-ancestor, .assistant-coi-note { margin: 4px 0; font-size: 12.5px; color: var(--muted); }

/* B. 作育单 */
.nest-toolbar { gap: 10px; }
.nest-toolbar .v6-new-nest { margin-left: auto; }
.v6-step { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 -2px; font-size: 14px; font-weight: 700; }
.v6-step > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.v6-step small { font-weight: 400; color: var(--quiet); font-size: 12px; }
.v6-youngsters { display: grid; gap: 8px; }
.v6-young { display: grid; grid-template-columns: 22px 1.4fr .9fr .8fr 1.2fr 40px; gap: 8px; align-items: center; }
.v6-young > input, .v6-young select { width: 100%; min-height: 45px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 13px; }
.v6-young .select-control { min-width: 0; }
.v6-young-no { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.v6-young-remove { width: 40px; height: 45px; }
.v6-add-young { justify-self: start; }
@media (max-width: 760px) {
  .nest-toolbar { flex-wrap: wrap; }
  .nest-toolbar .v6-new-nest { order: 3; width: 100%; justify-content: center; min-height: 46px; margin-left: 0; }
  .v6-young { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 40px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .v6-young > [name="young_ring"] { grid-column: 2 / 4; grid-row: 1; }
  .v6-young > .v6-young-remove { grid-column: 4; grid-row: 1; }
  .v6-young > .select-control { grid-column: 2; }
  .v6-young > [name="young_color"] { grid-column: 3; }
  .v6-young > [name="young_notes"] { grid-column: 2 / 4; }
  .v6-young > input, .v6-young select { font-size: 16px; min-height: 48px; }
}

/* ───────── D. 赛鸽记事本 */
.v6-composer { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: #fff; padding: 14px 16px 12px; display: grid; gap: 10px; }
.v6-composer textarea { width: 100%; min-height: 84px; resize: vertical; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 15px; line-height: 1.75; color: var(--ink); }
.v6-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #2563d91a; }
.v6-composer footer { display: flex; align-items: center; gap: 8px; }
.v6-composer footer small { color: var(--quiet); font-size: 12px; margin-right: auto; }
.v6-composer .v6-callout { align-items: center; flex-wrap: wrap; }
.v6-composer .v6-callout span { flex: 1 1 200px; }
.v6-mic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; transition: box-shadow .15s, transform .15s; }
.v6-mic svg { width: 20px; height: 20px; }
.v6-mic.is-recording { background: var(--danger); transform: scale(1.06); box-shadow: 0 0 0 8px #d9363e22, 0 0 0 18px #d9363e10; }

.v6-draft { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: clip; }
.v6-draft > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.v6-draft > header svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.v6-draft > header strong { font-size: 15px; white-space: nowrap; }
.v6-draft > header small { color: var(--quiet); font-size: 12px; }
.v6-draft > header .v6-badge { margin-left: auto; }
.v6-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); transition: opacity .15s; }
.v6-draft > header + .v6-item { border-top: 0; }
.v6-item.is-off .v6-item-body { opacity: .45; }
.v6-check-wrap { position: relative; display: block; width: 26px; height: 26px; cursor: pointer; }
.v6-check-wrap input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v6-check { width: 20px; height: 20px; margin: 3px; border-radius: 5px; background: var(--accent); display: grid; place-items: center; color: #fff; pointer-events: none; }
.v6-check svg { width: 14px; height: 14px; stroke-width: 3; }
.v6-check-wrap input:not(:checked) + .v6-check { background: #fff; border: 1.5px solid var(--line-strong); }
.v6-check-wrap input:not(:checked) + .v6-check svg { visibility: hidden; }
.v6-check-wrap input:focus-visible + .v6-check { outline: 2px solid var(--accent); outline-offset: 2px; }
.v6-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.v6-cat-select { position: relative; display: inline-flex; align-items: center; width: auto; }
.v6-cat-select select { appearance: none; height: 30px; min-height: 30px; padding: 0 26px 0 10px; border: 1px solid transparent; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.v6-cat-select select:hover, .v6-cat-select select:focus { border-color: var(--accent); }
.v6-cat-select svg { position: absolute; right: 7px; width: 13px; height: 13px; color: var(--accent-strong); pointer-events: none; }
.v6-date-input { height: 30px; min-height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 12.5px; width: auto; }
.v6-date { font-size: 12px; color: var(--quiet); }
.lingyun-ui .v6-item-text, .v6-item-text { display: block; width: 100%; min-height: 0; resize: none; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; margin: 2px 0 0; background: #fff; box-shadow: none; font: inherit; font-size: 14px; line-height: 1.65; color: var(--ink); }
.v6-item-text:hover { border-color: var(--line-strong); }
.v6-choice-more { min-height: 36px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--accent-strong); font-size: 13px; cursor: pointer; }
.v6-item-text:focus { outline: 0; border-color: var(--accent); background: #fff; }
.v6-item-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: flex-start; }
.v6-pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--surface-soft); font-size: 12.5px; color: var(--ink); }
.v6-pchip svg { width: 13px; height: 13px; color: var(--success); flex: none; }
.v6-pchip.is-ambiguous { background: #fbf1e2; color: #7d5317; }
.v6-pchip.is-ambiguous svg { color: var(--warning); }
.v6-ambig { flex-basis: 100%; display: grid; gap: 8px; }
.v6-ambig .v6-pchip { justify-self: start; }
.v6-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.v6-choice { position: relative; display: inline-flex; }
.v6-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.v6-choice span { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; pointer-events: none; }
.v6-choice input:checked + span { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.v6-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.v6-follow { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; line-height: 1.5; }
.v6-follow svg, .v6-also svg { width: 14px; height: 14px; flex: none; }
.v6-also { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.v6-also svg { color: var(--icon); }
.v6-also b { color: var(--ink); font-weight: 600; }
.v6-lost-check { cursor: pointer; }
.v6-lost-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--danger); }
.v6-amount { font-weight: 700; font-size: 13px; white-space: nowrap; align-self: center; }
.v6-amount.is-out { color: var(--danger); }
.v6-amount.is-in { color: var(--success); }
.v6-edited { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--warning); font-size: 12px; }
.v6-edited svg { width: 13px; height: 13px; }
.v6-draft > footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfd; }
.v6-draft > footer small { margin-right: auto; color: var(--quiet); font-size: 12px; }

.v6-raw-notes { margin-top: 22px; }
.v6-raw-notes h2 small { font-size: 13px; color: var(--quiet); font-weight: 500; margin-left: 4px; }
.v6-raw-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; margin-top: 8px; }
.v6-raw-row p { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.v6-notes-list { margin-top: 26px; }
.v6-notes-list .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v6-notes-list .v6-chiprow { margin-bottom: 6px; }
.v6-ask-hint { color: var(--quiet); font-size: 12px; }
.v6-nrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.v6-notes-list .v6-chiprow + .v6-nrow { border-top: 0; }
.v6-nrow time { font-size: 20px; font-weight: 700; line-height: 1; color: var(--ink); }
.v6-nrow time small { display: block; font-size: 11.5px; font-weight: 400; color: var(--quiet); margin-top: 4px; }
.v6-nrow p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.v6-cat { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #f1f1f1; color: #666; }
.v6-cat.c-medication { background: #e8f1fb; color: #2a5d9a; }
.v6-cat.c-training { background: #e7f4ee; color: #21704f; }
.v6-cat.c-race { background: #fdf0e1; color: #9a5a12; }
.v6-cat.c-breeding { background: #f6ebf0; color: #934a67; }
.v6-cat.c-feeding { background: #eef3e4; color: #56702a; }
.v6-cat.c-loft { background: #eceff3; color: #4b5562; }
.v6-cat.c-trade { background: #f3ecdf; color: #7a5a14; }
.v6-todo { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; color: var(--accent-strong); }
.v6-todo svg { width: 12px; height: 12px; }

.v6-quicknote { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 6px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; box-shadow: 0 6px 18px #1d29370d; }
.v6-quicknote-open { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; background: transparent; color: var(--quiet); font-size: 15px; text-align: left; cursor: pointer; border-radius: 999px; }
.v6-quicknote-open svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.v6-quicknote-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .v6-composer { padding: 12px 14px 10px; }
  .v6-composer textarea { font-size: 16px; }
  .v6-composer footer .primary-button { min-height: 44px; }
  .v6-draft > header { flex-wrap: wrap; padding: 12px 14px; }
  .v6-draft > header small { order: 3; flex-basis: 100%; }
  .v6-item { padding: 12px 14px; gap: 10px; }
  .lingyun-ui .v6-item-text, .v6-item-text { font-size: 16px; }
  .v6-cat-select select, .v6-date-input { height: 36px; min-height: 36px; font-size: 14px; }
  .v6-choice span, .v6-choice-more { min-height: 44px; font-size: 14px; }
  .v6-also, .v6-follow { font-size: 13px; }
  .v6-lost-check { min-height: 44px; }
  .v6-draft > footer { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 4; flex-wrap: wrap; padding: 10px 14px; box-shadow: 0 -6px 18px #1d29370f; }
  .v6-draft > footer small { width: 100%; }
  .v6-draft > footer .primary-button { flex: 1; min-height: 48px; justify-content: center; }
  .v6-draft > footer .secondary-button { min-height: 48px; }
  .v6-raw-row { flex-wrap: wrap; }
  .v6-raw-row .secondary-button { min-height: 44px; }
  .v6-nrow { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .v6-nrow > .v6-amount { grid-column: 2; justify-self: start; }
  .v6-ask-hint { display: none; }
}

/* B2 补填 */
.v6-sheet-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.v6-fill { min-height: 36px; }
.v6-known-value { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-soft); color: var(--ink); font-size: 14px; }
.v6-known-value svg { width: 15px; height: 15px; color: var(--success); flex: none; }
.v6-known-value small { margin-left: auto; color: var(--quiet); font-size: 12px; }
@media (max-width: 760px) {
  .nest-sheet > header { flex-wrap: wrap; }
  .v6-sheet-actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .v6-fill { min-height: 44px; flex: 1; justify-content: center; }
  .v6-known-value { min-height: 48px; font-size: 16px; }
}
.v6-young .select-control { position: relative; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line-strong); background: #fff; min-height: 45px; }
.v6-young .select-control select { border: 0; min-height: 43px; padding: 0 28px 0 10px !important; background: transparent !important; }
.v6-young .select-control > svg { position: absolute; right: 8px; width: 14px; height: 14px; }
.v6-known-value span { white-space: nowrap; }
@media (max-width: 760px) {
  .v6-young .select-control { min-height: 48px; }
  .v6-young .select-control select { min-height: 46px; }
  .v6-known-value small { display: none; }
}

/* QA fixes */
.v6-select-picker { width: 100%; }
@media (max-width: 820px) {
  /* 编辑 was hidden on phones, leaving no way to edit a pigeon; show it as an icon next to 添加照片. */
  .lingyun-ui .detail-header .page-actions [data-detail-action="edit"] { display: inline-flex; width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
  .lingyun-ui .detail-header .page-actions [data-detail-action="edit"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lingyun-ui .detail-header .page-actions { display: flex; gap: 8px; }
}
@media (max-width: 760px) {
  /* Egg rows: six action buttons squeezed 「第 3 枚蛋」 into one character per line; put the actions under it. */
  .lingyun-ui .data-row[data-select-egg] { grid-template-columns: minmax(0, 1fr); flex-wrap: wrap; row-gap: 8px; }
  .lingyun-ui .data-row[data-select-egg] > .row-title { flex: 1 1 100%; min-width: 0; }
  .lingyun-ui .data-row[data-select-egg] > .inline-actions { justify-content: flex-start; }
  .v6-quick button { min-height: 38px; padding: 0 14px; font-size: 14px; }
}

.v6-pick-row.is-blocked { opacity: .55; cursor: not-allowed; }
.v6-pick-why { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); }
.v6-pick-why svg { width: 12px; height: 12px; }

/* E. 待补录 cells */
.kinship-node.v6-fillable { cursor: pointer; border-style: dashed; }
.kinship-node.v6-fillable em { color: var(--accent-strong); }
.kinship-node.v6-fillable:hover, .kinship-node.v6-fillable:focus-visible { border-color: var(--accent); background: var(--accent-soft); }

/* G. 寄养托管 */
.v6-boarding .section-heading { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.v6-boarding .section-heading p { margin: 4px 0 0; font-size: 12.5px; }
.v6-board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.v6-board-row.is-soon { border-color: #e9c27a; background: #fffaf0; }
.v6-board-row.is-closed { opacity: .7; }
.v6-board-main { display: grid; gap: 3px; min-width: 0; }
.v6-board-main strong { font-size: 15px; overflow-wrap: anywhere; }
.v6-board-main span { font-size: 13px; color: var(--muted); }
.v6-board-main small { font-size: 12px; color: var(--quiet); }
.v6-board-actions { display: flex; gap: 6px; }
.v6-board-remind { align-self: end; min-height: 45px; cursor: pointer; }
.v6-board-remind input { width: 18px; height: 18px; margin: 0; }
@media (max-width: 760px) {
  .v6-board-row { grid-template-columns: minmax(0, 1fr) auto; }
  .v6-board-row .v6-badge { justify-self: end; align-self: start; }
  .v6-board-actions { grid-column: 1 / -1; }
  .v6-board-actions .secondary-button { flex: 1; min-height: 44px; justify-content: center; }
  .v6-board-actions .icon-button { width: 44px; height: 44px; }
  .v6-boarding .section-heading .primary-button { width: 100%; justify-content: center; min-height: 46px; }
}

/* H: 数据导出与导入 */
.v6-data-title { margin: 6px 0 16px; font-size: 22px; }
.v6-export-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v6-export-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.v6-export-card h3 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15.5px; }
.v6-export-card h3 svg { width: 18px; height: 18px; color: var(--muted); }
.v6-export-card p { flex: 1; margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.v6-export-card .secondary-button { align-self: flex-start; min-height: 42px; }
.v6-data-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: 28px 0 12px; }
.v6-data-head h2 { margin: 0; font-size: 18px; }
.v6-data-head span { font-size: 13px; color: var(--muted); font-weight: 600; }
.v6-import-drop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.v6-import-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.v6-import-drop > svg { width: 22px; height: 22px; color: var(--muted); }
.v6-import-file { display: grid; gap: 4px; min-width: 0; }
.v6-import-file strong { font-size: 15px; overflow-wrap: anywhere; }
.v6-import-file small { font-size: 12.5px; color: var(--muted); }
.v6-import-file .is-warn { color: var(--warning); font-weight: 600; }
.v6-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.v6-stat { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.v6-stat b { font-size: 24px; font-weight: 600; }
.v6-stat span { font-size: 12.5px; color: var(--muted); }
.v6-stat.is-ok b { color: var(--success); }
.v6-stat.is-warn b { color: var(--warning); }
.v6-import-links { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.v6-import-links svg { width: 16px; height: 16px; flex: none; }
.v6-issues { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.v6-issue { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(90px, .8fr) minmax(0, 2.2fr) 110px; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.v6-issue:first-child { border-top: 0; }
.v6-issue-head { font-size: 12px; color: var(--muted); background: var(--surface-soft); }
.v6-issue-ring { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.v6-issue-why { color: var(--text); overflow-wrap: anywhere; }
.v6-issues > p { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); }
.v6-import-notes { margin: 12px 0 0; padding: 12px 16px 12px 32px; border-radius: var(--radius-lg); background: #fffaf0; font-size: 13px; line-height: 1.7; color: var(--text); }
.v6-import-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--surface-soft); font-size: 13px; line-height: 1.65; color: var(--muted); }
.v6-import-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.v6-import-bar { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.v6-import-bar .primary-button, .v6-import-bar .secondary-button { min-height: 44px; }
.v6-import-done { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid #bfe0cc; border-radius: var(--radius-lg); background: #f1f9f4; }
.v6-import-done > svg { width: 22px; height: 22px; color: var(--success); }
.v6-import-done p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .v6-export-grid { grid-template-columns: minmax(0, 1fr); }
  .v6-export-card .secondary-button { min-height: 46px; }
  .v6-import-drop { grid-template-columns: auto minmax(0, 1fr); }
  .v6-import-drop .secondary-button { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  .v6-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v6-issue-head { display: none; }
  .v6-issue { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 16px; }
  .v6-issue-ring { grid-column: 1; font-size: 14px; }
  .v6-issue > span:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .v6-issue-name { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
  .v6-issue-why { grid-column: 1 / -1; font-size: 13px; }
  .v6-import-bar .primary-button { flex: 1; justify-content: center; }
  .v6-import-done { grid-template-columns: auto minmax(0, 1fr); }
  .v6-import-done .secondary-button { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
}

/* F: 血统证书 */
.v6-cert-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.v6-cert-actions .secondary-button { min-height: 36px; padding-block: 0; }
.v6-form-error:empty { display: none; }
body.v6-cert-open { overflow: hidden; }
.v6-cert-shell { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #e9ebee; }
.v6-cert-shell[hidden] { display: none; }
.v6-cert-loading { margin: auto; color: var(--muted); }
.v6-cert-bar { display: flex; gap: 12px; align-items: center; padding: 10px 18px; padding-top: calc(10px + env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.v6-cert-heading { display: grid; gap: 2px; min-width: 0; flex: 1; }
.v6-cert-heading strong { font-size: 16px; }
.v6-cert-heading small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v6-cert-downloads { display: flex; gap: 8px; }
.v6-cert-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.v6-cert-stage { min-width: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 16px; }
.v6-cert-scale { position: relative; flex: none; }
.v6-cert-scale > .v6-cert-sheet { transform: scale(var(--cert-scale, 1)); transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.v6-cert-panel { overflow: auto; padding: 16px 18px 28px; background: #fff; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.v6-cert-panel section { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.v6-cert-panel h3 { margin: 0; font-size: 14.5px; }
.v6-cert-panel h3 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.v6-cert-panel h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.v6-cert-panel .field { display: grid; gap: 5px; font-size: 13px; }
.v6-cert-panel .field small { color: var(--muted); }
.v6-cert-panel textarea, .v6-cert-panel input:not([type=checkbox]) { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.v6-cert-panel .secondary-button { justify-self: start; min-height: 40px; }
.v6-cert-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v6-cert-profile .span-all { grid-column: 1 / -1; }
.v6-cert-toggle { display: flex; gap: 8px; align-items: center; min-height: 40px; font-size: 13px; cursor: pointer; }
.v6-cert-toggle input { width: 18px; height: 18px; margin: 0; }
.v6-cert-gens { justify-self: start; }
.v6-cert-gens button { min-width: 64px; min-height: 38px; }
.v6-cert-hint { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); font-size: 13px; line-height: 1.6; }
.v6-cert-hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.v6-cert-hint b { color: var(--warning); font-weight: 600; }
.v6-cert-hidden { display: flex; flex-wrap: wrap; gap: 6px; }
.v6-cert-hidden h4 { flex-basis: 100%; }
.v6-cert-foot { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.v6-cert-draftnote { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--muted); }
.v6-cert-draftnote svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
[data-note-count].is-warn { color: var(--warning); font-weight: 600; }

/* The sheet: same proportions as the downloaded A4 page (794 × 1123 css px). */
.v6-cert-sheet { --ink: #1f2328; --c-muted: #5d6570; --c-line: #c9ced6; --male: #1f5fa8; --female: #b4386b; --c-accent: #8a6a2f;
  width: 794px; height: 1123px; background: #fffdf8; padding: 34px 36px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
.v6-cert-sheet .frame { position: absolute; inset: 14px; border: 1.5px solid var(--c-accent); pointer-events: none; }
.v6-cert-sheet .frame::after { content: ""; position: absolute; inset: 4px; border: .5px solid var(--c-accent); }
.v6-cert-sheet header { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.v6-cert-sheet .loft { font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.v6-cert-sheet .loft small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .5px; color: var(--c-muted); margin-top: 4px; }
.v6-cert-sheet .title { text-align: right; }
.v6-cert-sheet .title b { display: block; font-size: 20px; letter-spacing: 6px; }
.v6-cert-sheet .title span { font-size: 10px; letter-spacing: 3px; color: var(--c-muted); }
.v6-cert-sheet .subject { display: grid; grid-template-columns: 1fr 120px; gap: 14px; padding: 12px 0 10px; border-bottom: .5px solid var(--c-line); }
.v6-cert-sheet .subject.no-photo { grid-template-columns: 1fr; }
.v6-cert-sheet .sring { font: 700 22px/1.2 "SF Mono", Menlo, monospace; letter-spacing: .5px; }
.v6-cert-sheet .sex { font-weight: 700; margin-left: 6px; }
.v6-cert-sheet .sex.male { color: var(--male); } .v6-cert-sheet .sex.female { color: var(--female); }
.v6-cert-sheet .name { font-size: 18px; font-weight: 600; margin-top: 2px; }
.v6-cert-sheet .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 11px; color: var(--c-muted); }
.v6-cert-sheet .facts b { color: var(--ink); font-weight: 500; margin-left: 4px; }
.v6-cert-sheet .intro { margin-top: 8px; font-size: 11.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v6-cert-sheet .photo { width: 120px; height: 96px; object-fit: cover; border: .5px solid var(--c-line); }
.v6-cert-sheet .tree { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1.05fr .95fr; gap: 0 12px; padding-top: 12px; }
.v6-cert-sheet.gens-3 .tree { grid-template-columns: 1.2fr 1fr; }
.v6-cert-sheet.gens-5 .tree { grid-template-columns: 1.1fr 1fr .9fr .82fr; gap: 0 9px; }
.v6-cert-sheet .col { display: grid; gap: 8px; min-height: 0; }
.v6-cert-sheet .col.g2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.v6-cert-sheet .col.g3 { grid-template-rows: repeat(4, minmax(0, 1fr)); }
.v6-cert-sheet .col.g4 { grid-template-rows: repeat(8, minmax(0, 1fr)); gap: 5px; }
.v6-cert-sheet .col.g5 { grid-template-rows: repeat(16, minmax(0, 1fr)); gap: 3px; }
.v6-cc { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 0; overflow: hidden; padding: 5px 7px; text-align: left; font: inherit; color: var(--ink);
  border: .75px solid var(--c-line); border-top: 2px solid var(--ink); background: #fff; cursor: pointer; border-radius: 0; }
.v6-cc:hover, .v6-cc:focus-visible { outline: 2px solid #2f6fdf; outline-offset: 1px; z-index: 1; }
.v6-cc.male { border-top-color: var(--male); } .v6-cc.female { border-top-color: var(--female); }
.v6-cc .role { font-size: 9px; color: var(--c-muted); letter-spacing: 1px; }
.v6-cc .ring { font: 600 11.5px/1.3 "SF Mono", Menlo, monospace; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.v6-cc .ring > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.v6-cc .nm { font-size: 12px; font-weight: 600; margin: 1px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v6-cc .meta { font-size: 9.5px; color: var(--c-muted); }
.v6-cc .note { margin-top: 3px; font-size: 10px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 14; white-space: pre-line; }
.v6-cc .note.is-draft { color: #3d4652; }
.g3 .v6-cc .note { -webkit-line-clamp: 6; }
.g4 .v6-cc { padding: 3px 6px; } .g4 .v6-cc .nm { font-size: 11px; margin: 0; } .g4 .v6-cc .ring { font-size: 10.5px; }
.g4 .v6-cc .note { -webkit-line-clamp: 2; font-size: 9.5px; }
.g5 .v6-cc { padding: 2px 5px; } .g5 .v6-cc .ring { font-size: 9.5px; } .g5 .v6-cc .nm { font-size: 10px; margin: 0; }
.v6-cc.missing { border-style: dashed; background: transparent; }
.v6-cc.missing .blank { margin-top: 6px; border-bottom: .5px solid var(--c-line); height: 12px; }
.v6-cc.missing.is-blank { opacity: .45; }
.v6-cc.is-hidden { border: 1px dashed #d5d9df; background: repeating-linear-gradient(45deg, #fafafa, #fafafa 6px, #f2f3f5 6px, #f2f3f5 12px); color: var(--c-muted); }
.v6-cc.is-hidden small { font-size: 10px; margin-top: 2px; }
.v6-cc-tip, .v6-cc-cut { position: absolute; right: 6px; bottom: 4px; font-size: 9px; padding: 1px 5px; border-radius: 3px; }
.v6-cc-tip { color: #2f6fdf; background: #eaf1fd; }
.v6-cc-cut { color: #9a5b00; background: #fbf1e2; }
.v6-cc.is-cut { box-shadow: inset 0 -2px 0 #e9c27a; }
.v6-cert-sheet footer { border-top: .5px solid var(--c-line); margin-top: 12px; padding-top: 8px; display: grid; grid-template-columns: 1fr 150px; gap: 16px; font-size: 10px; color: var(--c-muted); line-height: 1.6; }
.v6-cert-sheet .sign { text-align: right; color: var(--ink); font-size: 11px; align-self: end; }
.v6-cert-sheet .seal { display: inline-grid; place-items: center; width: 62px; height: 62px; padding: 6px; border: 1.5px solid #b23a2a; color: #b23a2a; border-radius: 50%; font-size: 10px; margin-bottom: 4px; text-align: center; line-height: 1.3; }
@media (max-width: 760px) {
  .v6-cert-bar { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 8px; flex-wrap: wrap; }
  .v6-cert-bar .icon-button { width: 44px; height: 44px; }
  .v6-cert-downloads { flex-basis: 100%; }
  .v6-cert-downloads button { flex: 1; justify-content: center; min-height: 44px; }
  .v6-cert-body { display: block; overflow: auto; -webkit-overflow-scrolling: touch; }
  .v6-cert-stage { padding: 12px 16px 4px; overflow: visible; }
  .v6-cert-panel { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); }
  .v6-cert-profile { grid-template-columns: minmax(0, 1fr); }
  .v6-cert-panel .secondary-button { min-height: 44px; }
  .v6-cert-toggle { min-height: 44px; }
  .v6-cert-gens button { min-height: 44px; }
  .v6-cert-actions { justify-content: stretch; }
  .v6-cert-actions .secondary-button { flex: 1; justify-content: center; min-height: 42px; }
}

/* I: 典藏海报与短视频 */
.showcase-make { display: flex; gap: 8px; margin: 4px 0 6px; }
.showcase-make .secondary-button { flex: 1; justify-content: center; min-height: 44px; padding-inline: 10px; font-size: 13.5px; }
.v6-media-result { display: grid; gap: 12px; justify-items: center; }
.v6-media-result img, .v6-media-result video { width: min(100%, 360px); aspect-ratio: 9 / 16; height: auto; border-radius: 10px; background: #111a24; box-shadow: 0 6px 24px rgba(0,0,0,.18); object-fit: contain; }
.v6-media-result p { margin: 0; text-align: center; font-size: 13px; }
.v6-media-note { color: var(--warning); }
.v6-media-result .dialog-actions { width: 100%; justify-content: center; }
.v6-media-result a.primary-button { text-decoration: none; }
.v6-media-progress { display: grid; gap: 10px; }
.v6-media-progress progress { width: 100%; height: 10px; }
@media (max-width: 760px) {
  .v6-media-result img, .v6-media-result video { width: min(100%, 300px); }
  .v6-media-result .dialog-actions > * { flex: 1; justify-content: center; min-height: 46px; }
}

/* J: 血统书拍照识别 */
.v6-ocr-consent { display: grid; gap: 12px; }
.v6-ocr-consent p { margin: 0; line-height: 1.65; }
.v6-ocr-warn { display: flex; gap: 8px; padding: 10px 12px; border-radius: 8px; background: #fbf1e2; color: #7a4a00; font-size: 13.5px; }
.v6-ocr-warn svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.v6-ocr-rules { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.v6-ocr-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px 32px; }
.v6-ocr-body > p { max-width: 1200px; margin: 0 auto 12px; }
.v6-ocr-alert { display: flex; gap: 8px; padding: 10px 12px; border-radius: 8px; background: #f9e7e8; color: var(--danger); font-size: 13.5px; }
.v6-ocr-alert svg { width: 18px; height: 18px; flex: none; }
.v6-ocr-alert { flex-wrap: wrap; align-items: flex-start; }
.v6-ocr-alert > span { flex: 1 1 220px; }
.v6-ocr-alert .secondary-button { min-height: 44px; margin-left: auto; }
.v6-ocr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1200px; margin: 0 auto; }
.v6-ocr-col { display: grid; gap: 10px; align-content: start; }
.v6-ocr-col h3 { margin: 0; font-size: 14px; color: var(--muted); }
.v6-ocr-cell { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-top: 3px solid #1f5fa8; border-radius: 8px; background: #fff; }
.v6-ocr-cell.dam { border-top-color: #b4386b; }
.v6-ocr-cell.is-skip { opacity: .62; }
.v6-ocr-cell header { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; }
.v6-ocr-cell header b.male { color: #1f5fa8; } .v6-ocr-cell header b.female { color: #b4386b; }
.v6-ocr-current { margin: 0; font-size: 12.5px; color: var(--muted); }
.v6-ocr-current.is-diff { color: var(--warning); font-weight: 600; }
.v6-ocr-fields { display: grid; grid-template-columns: 1fr; gap: 6px; }
.v6-ocr-fields input { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 14px; }
.v6-ocr-fields input[data-ocr-field="ring"] { font-family: "SF Mono", Menlo, monospace; }
.v6-ocr-fields input:disabled { background: var(--surface-soft); color: var(--muted); }
.v6-ocr-match { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 12.5px; color: var(--success); }
.v6-ocr-match.is-warn { color: var(--warning); }
.v6-ocr-match svg { width: 14px; height: 14px; flex: none; }
.v6-ocr-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.v6-ocr-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.v6-ocr-actions button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.v6-ocr-preview { display: grid; gap: 12px; }
.v6-ocr-preview > p { margin: 0; }
.v6-ocr-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v6-ocr-rows li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--success); border-radius: 6px; font-size: 13.5px; }
.v6-ocr-rows li.is-link { border-left-color: var(--accent); }
.v6-ocr-rows li small { color: var(--warning); }
@media (max-width: 760px) {
  .v6-ocr-body { padding: 12px 14px calc(28px + env(safe-area-inset-bottom)); }
  .v6-ocr-grid { grid-template-columns: minmax(0, 1fr); }
  .v6-ocr-fields input { min-height: 44px; font-size: 16px; }
  .v6-ocr-actions button { min-height: 42px; flex: 1; }
  .v6-cert-actions { flex-wrap: wrap; }
  .v6-cert-actions [data-ocr-open] { flex-basis: 100%; }
}

/* 饲料配方（健康与饲养 → 饲料配方）：原料成格；比例合计不是 100% 时整张卡提示核对。 */
.feed-formula-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.feed-formula-card { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feed-formula-card.is-warning { border-color: #e2c08f; }
.feed-formula-card header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.feed-formula-card header > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); color: var(--accent-strong); background: var(--accent-soft); }
.feed-formula-card header svg { width: 18px; height: 18px; }
.feed-formula-card header strong { display: block; font-size: 15px; }
.feed-formula-card header small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.feed-formula-card header b { color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.formula-ingredients { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.formula-ingredients span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; min-width: 0; padding: 7px 10px; border-radius: 6px; background: var(--surface-soft); }
.formula-ingredients strong { overflow: hidden; font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.formula-ingredients small { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.feed-formula-card footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.feed-formula-card footer strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.feed-formula-card footer strong.is-warning { color: var(--warning); }
.feed-formula-card footer small { flex-basis: 100%; color: var(--warning); font-size: 12.5px; }
@media (max-width: 760px) {
  .feed-formula-grid { grid-template-columns: minmax(0, 1fr); }
  .formula-ingredients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 常见疾病 / 饲养资料：左对齐的资料卡，摘要三行，整卡可点。 */
.knowledge-reference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.knowledge-reference-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 12px; align-items: start; width: 100%; min-height: 44px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--motion-quick) var(--motion-ease), background var(--motion-quick) var(--motion-ease); }
.knowledge-reference-card:hover { border-color: var(--line-strong); background: #fff; }
.knowledge-reference-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.knowledge-reference-card > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); color: var(--accent-strong); background: var(--accent-soft); }
.knowledge-reference-card > span svg { width: 18px; height: 18px; }
.knowledge-reference-card > svg { align-self: center; width: 18px; height: 18px; color: var(--quiet); }
.knowledge-reference-card strong { display: block; font-size: 15px; line-height: 1.4; }
.knowledge-reference-card p { display: -webkit-box; margin: 4px 0 6px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.knowledge-reference-card small { color: var(--quiet); font-size: 12px; }
@media (max-width: 760px) {
  .knowledge-reference-grid { grid-template-columns: minmax(0, 1fr); }
}
