/* エラー辞書（Claude Code 用・非公式。/tools/claude-code-errors/ と各エラーのページだけで読む）。色は style.css の変数を使う */
.ce [hidden] { display: none !important; }
.ce section, .ce > p, .ce-notes, .ce-filter { max-width: 44rem; }
.ce code { overflow-wrap: anywhere; }
.ce-notes { list-style: none; padding: 0.8rem 1rem; margin: 1rem 0 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ce-notes li { margin: 0.25rem 0; padding-left: 1.1em; text-indent: -1.1em; line-height: 1.7; }
.ce-notes li::before { content: "・"; }
.ce-filter { margin: 1rem 0 1.2rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ce-filter label { display: block; font-weight: 700; margin-top: 0.4rem; }
.ce-filter input, .ce-filter select {
  display: block; width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; font-size: 16px; line-height: 1.5; margin: 0.3rem 0;
  color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.ce-filter input:focus, .ce-filter select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.ce-filter .small { margin: 0.1rem 0 0.3rem; }
.ce-count { font-weight: 700; }
.ce-group h2 { margin-top: 1.8rem; }
.ce-list { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.6rem; }
.ce-item { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ce-item h3 { margin: 0 0 0.3rem; font-size: 1.02rem; line-height: 1.5; }
.ce-item p { margin: 0.25rem 0; line-height: 1.65; }
.ce-msg code, .ce-msgs code { display: inline-block; padding: 0.1rem 0.35rem; background: var(--panel); border-radius: 4px; font-size: 0.86rem; line-height: 1.5; }
.ce-sum { color: var(--muted); font-size: 0.94rem; }
.ce .badge { white-space: normal; }
.ce-kind-wait { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-fg); }
.ce-kind-fix { background: var(--pr-bg); border-color: var(--pr-line); }
.ce-none { padding: 0.7rem 0.9rem; border: 1px dashed var(--line); border-radius: 8px; }
.ce-table th, .ce-table td { vertical-align: top; line-height: 1.6; }
.ce-table th[scope="row"] { min-width: 9rem; }
.ce-msgs { list-style: none; padding: 0; }
.ce-msgs li { margin: 0.35rem 0; }
.ce-steps li { margin: 0.45rem 0; line-height: 1.75; }
.ce-order { padding: 0.8rem 1rem; border: 2px solid var(--primary); border-radius: 8px; background: var(--surface); margin: 1.4rem 0; }
.ce-order h2 { margin-top: 0.2rem; }
.ce-own { padding: 0.8rem 1rem; border-left: 4px solid var(--pr-line); background: var(--pr-bg); border-radius: 4px; margin: 1.4rem 0; }
.ce-exit { margin: 1.6rem 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.ce-exit-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ce .button.ce-sub { background: transparent; color: var(--primary); }
.ce-sources li { margin: 0.3rem 0; line-height: 1.7; overflow-wrap: anywhere; }

/* 分類へのジャンプ・各エラーの固定リンク・更新履歴（2026-11-23） */
.ce-jump { max-width: 44rem; margin: 1rem 0 1.2rem; padding: 0.7rem 1rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.ce-jump-title { margin: 0 0 0.3rem; font-weight: 700; }
.ce-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ce-jump li { margin: 0; }
.ce-jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.2rem 0.8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); line-height: 1.4; text-decoration: none; }
.ce-jump a:hover { border-color: var(--primary); }
.ce-jump .ce-jump-n { margin-left: 0.25em; color: var(--muted); font-size: 0.85em; }
.ce-item:target { outline: 3px solid var(--focus); outline-offset: 2px; }
.ce-group, .ce-log { scroll-margin-top: 4rem; }
.ce-item { scroll-margin-top: 4rem; }
.ce-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.8rem; margin: 0.2rem 0 0; }
.ce-link a, .ce-copy { display: inline-flex; align-items: center; min-height: 2.75rem; }
.ce-copy { padding: 0.2rem 0.8rem; font: inherit; font-size: 0.9rem; color: var(--primary); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ce-copy:hover { border-color: var(--primary); }
.ce-log { max-width: 44rem; margin: 1.6rem 0; }
.ce-log ul { margin: 0.4rem 0; padding-left: 1.2rem; }
.ce-log li { margin: 0.4rem 0; line-height: 1.75; overflow-wrap: anywhere; }

/* 一覧の見出しリンクのタップ範囲を 44px 以上にする（見た目の余白は変えない。2026-11-23） */
.ce-item h3 a { display: inline-block; padding: 0.7rem 0; margin: -0.7rem 0; }
/* 各エラーの末尾の「直らないとき」（2026-11-23。cc-errors.js の stuckBlock。色は変数だけ） */
.ce-stuck { margin: 1.6rem 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-left: 6px solid var(--primary-deep); border-radius: 0 8px 8px 0; background: var(--surface); }
.ce-stuck h2 { margin-top: 0; }
.ce-stuck-list { list-style: none; margin: 0; padding: 0; }
.ce-stuck-list li { margin: 0; padding: 0.1rem 0; }
.ce-stuck-list li + li { border-top: 1px dashed var(--line); }
.ce-stuck-list a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
