/* /tools/agent-config/: the Claude Code config checker. Loaded after fr.css, whose loading, summary and
   about styles it reuses; builds on base.css tokens only, so light and dark both work. */

/* ---------- paste ---------- */
.ac-paste { margin-top: 1rem; border: 1px solid var(--edge-soft); border-radius: 10px; background: var(--panel); padding: .2rem clamp(.8rem, 3vw, 1.2rem); }
.ac-paste[open] { padding-bottom: 1rem; }
.ac-paste summary { cursor: pointer; padding: .7rem 0; color: var(--bright); font-weight: 500; }
.ac-paste summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ac-kind-h { margin: .2rem 0 .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--faint); }
/* base.css turns a 4-button .seg into a 3-column grid on phones; these are file names, so they wrap as pills instead */
.seg.ac-kind, .seg.ac-kind:has(> button:nth-child(4)) { display: flex; flex-wrap: wrap; gap: .35rem; border: 0; border-radius: 0; overflow: visible; margin-bottom: .7rem; background: none; width: auto; }
.seg.ac-kind button, .seg.ac-kind button + button, .seg.ac-kind:has(> button:nth-child(4)) button {
  border: 1px solid var(--edge); border-radius: 6px; min-height: 32px; padding: .4em .85em; background: transparent; max-width: 100%; overflow-wrap: anywhere;
}
.seg.ac-kind button.on, .seg.ac-kind:has(> button:nth-child(4)) button.on { background: var(--panel-2); }
.seg.ac-kind button.on { border-color: color-mix(in srgb, var(--gold) 55%, var(--edge)); }
.ac-paste textarea { display: block; min-width: 0; }
.ac-paste-go { margin: .7rem 0 0; }

/* ---------- what is loaded ---------- */
.ac-set { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0 0; padding: 0; }
.ac-set li { font-family: var(--mono); font-size: .72rem; color: var(--dim); background: var(--panel); border: 1px solid var(--edge-soft); border-radius: 6px; padding: .15rem .55rem; overflow-wrap: anywhere; min-width: 0; }

/* ---------- findings ---------- */
.ac-findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge-soft); }
.ac-f { padding: .85rem 0; border-bottom: 1px solid var(--edge-soft); min-width: 0; }
.ac-f p { margin: .25rem 0 0; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ac .f-head { display: flex; align-items: baseline; gap: .55rem; font-weight: 600; color: var(--bright); margin: 0; }
.ac .f-head .sev { flex: none; }
.ac .f-head .ac-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ac .sev {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: .05em .6em; white-space: nowrap;
}
.ac .sev.hi { color: var(--rust); }
.ac .sev.mid { color: var(--gold); }
.ac .sev.lo { color: var(--blue); }
.ac .sev.info { color: var(--dim); }
.ac-loc { font-family: var(--mono); font-size: .76rem !important; color: var(--faint); }
.ac-rule { color: var(--dim); font-size: .7rem; }
.ac-fix b { color: var(--bright); font-weight: 600; }

/* ---------- rule documentation ---------- */
.ac-rules { margin: 0; max-width: var(--measure); }
.ac-rules dt { margin: 1.4rem 0 .35rem; color: var(--bright); font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; scroll-margin-top: 5rem; }
.ac-rules dt code { font-size: .72rem; font-weight: 400; color: var(--faint); }
.ac-rules dd { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.6; }
.ac-rules dt:target { color: var(--gold); }

@media print {
  .ac-paste, .ac-set { display: none; }
}
