/* 10/24 all-R18 2回目。朝の .nx-peek と分け、人の記録だけを表示する。 */
.nx-spec-check { margin: 24px 0; padding: 18px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; scroll-margin-top: 100px; }
.nx-spec-check[hidden] { display: none; }
.nx-spec-check__head, .nx-spec-check__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nx-spec-check__head h2 { margin: 0; font-size: 18px; }
.nx-spec-check__row { border-top: 1px solid var(--line-2); padding: 16px 0; min-width: 0; }
.nx-spec-check__row { scroll-margin-top: 100px; }
/* 10/24・4回目: 準備・見積・商品の同じ記録への小さな参照。価格欄とは分ける。 */
.nx-spec-check__reference { margin: 12px 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.nx-spec-check__reference[hidden] { display: none; }
.nx-spec-check__reference h3 { margin: 0 0 8px; font-size: 16px; }
.nx-spec-check__reference ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nx-spec-check__reference p { margin: 4px 0; white-space: pre-wrap; }
.nx-spec-check__reference a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); }
.nx-spec-check__reference a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.nx-spec-check__grid { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.nx-spec-check__grid > *, .nx-spec-check__field { min-width: 0; }
.nx-spec-check__grid h3 { font-size: 16px; margin: 0; }
.nx-spec-check p, .nx-spec-check blockquote { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nx-spec-check blockquote { border-left: 3px solid var(--line-2); padding-left: 12px; }
.nx-spec-check__status { font-weight: 700; }
.nx-spec-check__meta, .nx-spec-check__ai { color: var(--ink-2); font-size: 14px; }
.nx-spec-check__notice { color: var(--ink-2); }
.nx-spec-check__error { color: var(--bad); }
.nx-spec-check__button { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.nx-spec-check__button:disabled { cursor: default; opacity: .65; }
.nx-spec-check__button:focus-visible, .nx-spec-check input:focus-visible, .nx-spec-check textarea:focus-visible, .nx-spec-check select:focus-visible, .nx-spec-check__row:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.nx-spec-check__form { margin-top: 16px; padding: 16px; background: var(--sheet-2); border: 1px solid var(--line-2); border-radius: 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.nx-spec-check__field:first-child, .nx-spec-check__message, .nx-spec-check__form > .nx-spec-check__actions { grid-column: 1 / -1; }
.nx-spec-check__field label { display: block; margin-bottom: 4px; font-size: 14px; }
.nx-spec-check__field :is(input, textarea, select) { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 16px; }
.nx-spec-check__field textarea { resize: vertical; }
.nx-spec-check__field [aria-invalid="true"] { border-color: var(--bad); }
.nx-spec-check__field .nx-spec-check__error:empty { display: none; }
.nx-spec-check__history { margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 6px; }
.nx-spec-check__history-entry + .nx-spec-check__history-entry { border-top: 1px solid var(--line-2); padding-top: 12px; }
/* 10/24・3回目: 比較は必要な時だけ開く。既存の明暗の色とスマホの縦並びを共用。 */
.nx-spec-check__comparison { margin: 12px 0; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 12px; }
.nx-spec-check__comparison > summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: var(--ink); }
.nx-spec-check__comparison > summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.nx-spec-check__comparison .nx-spec-check__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (hover: hover) { .nx-spec-check__button:not(:disabled):hover { background: var(--sheet); border-color: var(--ink-3); } }
@media (max-width: 760px) {
  .nx-spec-check__head .nx-q { min-width: 44px; min-height: 44px; }
  .nx-spec-check { padding: 14px; }
  .nx-spec-check__grid, .nx-spec-check__form { grid-template-columns: minmax(0, 1fr); }
  .nx-spec-check__comparison .nx-spec-check__grid { grid-template-columns: minmax(0, 1fr); }
  .nx-spec-check__grid { gap: 8px; }
  .nx-spec-check__form { padding: 12px; }
  .nx-spec-check__meta, .nx-spec-check__ai, .nx-spec-check__field label, .nx-spec-check__button { font-size: 14px; }
}

/* 10/25 W2: 安定した記録項目のない札は、Y5どおり残して点線で区別。 */
.nx-unk-chips > span[data-spec-unavailable] { border: 1px dashed var(--line-2); border-radius: 6px; background: transparent; color: var(--ink-2); cursor: default; }
.nx-unk-chips + [data-spec-unavailable-help] { min-width: 44px; min-height: 44px; margin-top: 8px; }
