/* settings.json ビルダー（Claude Code 用・非公式。/tools/claude-code-settings-builder/ だけで読む）。色は style.css の変数を使う */
.sb [hidden] { display: none !important; }
.sb section { max-width: 44rem; }
.sb-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; }
.sb-notes li { margin: 0.25rem 0; padding-left: 1.1em; text-indent: -1.1em; line-height: 1.7; }
.sb-notes li::before { content: "・"; }
.sb-form h2 { margin-top: 2rem; }
.sb code { overflow-wrap: anywhere; }
.sb-choices, .sb-checks { display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.sb-choice, .sb-check { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; line-height: 1.6; margin: 0.45rem 0; }
.sb-choice input, .sb-check input { margin-top: 0.35rem; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; }
.sb-choice:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.sb-ops { display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.sb-op { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem 0.6rem; margin: 0; background: var(--surface); }
.sb-op legend { font-weight: 700; padding: 0 0.2rem; line-height: 1.6; }
.sb-op legend code { font-weight: 400; font-size: 0.9em; }
.sb-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 0.3rem; margin-top: 0.3rem; max-width: 30rem; }
.sb-pill { display: flex; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.3rem 0.2rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; min-height: 2.4rem; box-sizing: border-box; white-space: nowrap; font-size: 0.92rem; }
.sb-pill input { margin: 0; }
.sb-pill:has(input:checked) { border-color: var(--primary); background: var(--panel); font-weight: 700; }
.sb-field { margin: 0.9rem 0; }
.sb-field label { display: block; font-weight: 700; }
.sb-field .small { margin: 0.15rem 0 0.4rem; }
.sb-field textarea, .sb-field input[type="text"], .sb-field select {
  display: block; width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; font-size: 16px; line-height: 1.5;
  color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.sb-field textarea, .sb-field input[type="text"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sb-field textarea { resize: vertical; min-height: 4.5rem; }
.sb-field textarea:focus, .sb-field input:focus, .sb-field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.sb-indent { margin-left: 1.8rem; }
.sb-custom { border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.8rem 0.2rem; margin: 1rem 0; }
.sb-custom legend { font-weight: 700; padding: 0 0.2rem; }
.sb-doc { margin-top: 0.4rem; }
.sb-result { margin: 2.2rem 0 1.4rem; padding: 1rem 1.1rem; border: 2px solid var(--primary); border-radius: 8px; background: var(--surface); }
.sb-result h2 { margin-top: 0.2rem; }
.sb-json { margin: 0.6rem 0; padding: 0.8rem 0.9rem; max-height: 32rem; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; line-height: 1.55; white-space: pre; }
.sb-json:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 0.3rem; }
.sb-actions .button { cursor: pointer; font: inherit; font-weight: 700; }
.sb .button.sb-sub { background: transparent; color: var(--primary); }
.sb-summary { font-weight: 700; padding: 0.45rem 0.8rem; background: var(--panel); border-radius: 6px; }
.sb-warn-list { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.sb-w { padding: 0.5rem 0.2rem 0.5rem 2.1rem; text-indent: -1.9rem; border-bottom: 1px solid var(--line); line-height: 1.7; overflow-wrap: anywhere; }
.sb-w-mark { display: inline-block; min-width: 1.5rem; text-indent: 0; text-align: center; margin-right: 0.2rem; border-radius: 999px; font-weight: 700; }
.sb-w-ng .sb-w-mark { background: var(--ng-bg); color: var(--ng-fg); box-shadow: inset 0 0 0 1px var(--ng-fg); }
.sb-w-warn .sb-w-mark { background: var(--pr-bg); color: var(--fg); box-shadow: inset 0 0 0 1px var(--pr-line); }
.sb-w-info .sb-w-mark { color: var(--muted); }
.sb-steps li { margin: 0.3rem 0; line-height: 1.7; }
.sb-next { margin: 2rem 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.sb-next h2 { margin-top: 0.2rem; }
.sb-next-buttons .button { text-align: center; line-height: 1.5; }
.sb-sources ul { padding-left: 1.2rem; }
.sb-msg { padding: 0.6rem 0.9rem; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
@media (max-width: 480px) {
  .sb-next-buttons .button, .sb-actions .button { width: 100%; }
  .sb-indent { margin-left: 0; }
}
