/* 設定のセルフチェック（Claude Code 用・非公式。/tools/claude-code-selfcheck/ だけで読む）。色は style.css の変数を使う */
.sc [hidden] { display: none !important; }
.sc-notes { list-style: none; padding: 0.8rem 1rem; margin: 1rem 0 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; max-width: 44rem; }
.sc-notes li { margin: 0.25rem 0; padding-left: 1.1em; text-indent: -1.1em; line-height: 1.7; }
.sc-notes li::before { content: "・"; }
.sc-field { margin: 1.1rem 0; max-width: 44rem; }
.sc-field label { display: block; font-weight: 700; font-size: 1.02rem; }
.sc-field .small { margin: 0.15rem 0 0.4rem; }
.sc-field textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 9rem; padding: 0.6rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; line-height: 1.5;
  color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; resize: vertical;
}
.sc-field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0.6rem; }
.sc-actions .button, .sc-warn .button { cursor: pointer; font: inherit; font-weight: 700; }
.sc .button:disabled { opacity: 0.5; cursor: not-allowed; }
.sc .button.sc-sub { background: transparent; color: var(--primary); }
.sc-msg { padding: 0.6rem 0.9rem; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); max-width: 44rem; }
.sc-warn { margin: 1.4rem 0; padding: 0.9rem 1.1rem; max-width: 44rem; background: var(--ng-bg); color: var(--ng-fg); border: 2px solid var(--ng-fg); border-radius: 8px; }
.sc-warn h2 { color: var(--ng-fg); margin-top: 0.2rem; font-size: 1.15rem; }
.sc-warn ul { padding-left: 1.2rem; }
.sc-warn li { margin: 0.2rem 0; font-weight: 700; }
.sc-warn .button.sc-sub { color: var(--ng-fg); border-color: var(--ng-fg); }
.sc-result { margin: 1.6rem 0; max-width: 44rem; }
.sc-result:focus, .sc-warn:focus { outline: none; }
.sc-summary { font-weight: 700; font-size: 1.02rem; padding: 0.5rem 0.8rem; background: var(--panel); border-radius: 6px; }
.sc-items { list-style: none; padding: 0; margin: 0.4rem 0 1.2rem; }
.sc-item { padding: 0.65rem 0.2rem; border-bottom: 1px solid var(--line); }
.sc-line { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; }
.sc-no { flex: 0 0 1.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-title { flex: 1 1 auto; font-weight: 700; }
.sc-mark { flex: 0 0 auto; min-width: 2.2rem; text-align: center; padding: 0.05rem 0.45rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; background: var(--panel); color: var(--fg); }
.sc-mark.m-ok { background: var(--ok-bg); color: var(--ok-fg); }
.sc-mark.m-warn { background: var(--pr-bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--pr-line); }
.sc-mark.m-ng { background: var(--ng-bg); color: var(--ng-fg); box-shadow: inset 0 0 0 1px var(--ng-fg); }
.sc-mark.m-na, .sc-mark.m-empty { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.sc-mark.m-paid { background: var(--primary-deep); color: var(--surface); font-size: 0.85rem; }
.sc-reason { margin: 0.3rem 0 0.1rem 2.3rem; line-height: 1.7; overflow-wrap: anywhere; }
.sc-doc { margin: 0.1rem 0 0 2.3rem; }
/* 当社の実測の記事（△・× の行だけに出す） */
.sc-art { display: none; margin: 0.2rem 0 0 2.3rem; }
.sc-item[data-result="warn"] .sc-art, .sc-item[data-result="ng"] .sc-art { display: block; }
.sc-next { margin: 2rem 0 1.4rem; padding: 1rem 1.1rem; max-width: 44rem; border: 2px solid var(--primary); border-radius: 8px; background: var(--surface); }
.sc-next h2 { margin-top: 0.2rem; }
.sc-soon { font-weight: 700; }
.sc-next-buttons .button { text-align: center; line-height: 1.5; }
@media (max-width: 480px) { .sc-next-buttons .button { width: 100%; } }
/* hooks の区画（20項目とは別の見出し） */
.sc-hooks { margin: 1.8rem 0 1.2rem; padding-top: 1rem; border-top: 2px solid var(--primary); }
.sc-hooks h3 { margin-top: 0.2rem; }
.sc-hooks .sc-no { flex-basis: 2.4rem; }
.sc-hooks .sc-reason, .sc-hooks .sc-doc { margin-left: 2.9rem; }
