/* Terms Change Risk Diff — tool-specific styles only; shared primitives live in ai-tools.css, tools.css and ds.css. */
.ait-stack { display: grid; gap: 18px; min-width: 0; }
.ait-input, .ait-select { width: 100%; max-width: 100%; min-height: 44px; padding: 8px 10px; font: 600 15px/1.4 var(--font-ui); color: var(--ink); background: #fff; border: 2px solid var(--line-2); border-radius: 0; }
.ait-select { min-width: 220px; }
.ait-input:focus-visible, .ait-select:focus-visible, .ait-ta:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.ait-bar .field { margin-bottom: 0; }
.ait-stack .ait-bar { margin-top: 0; }
#out .stats { margin-bottom: 0; }

.rec-list { display: grid; gap: 14px; min-width: 0; }
.rec { border: 2px solid var(--line-2); background: #fff; padding: 12px 14px; min-width: 0; }
.rec-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rec p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 4px 0; overflow-wrap: anywhere; }
.rec-hit { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.rec-hit:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.rec-text { font: 500 13.5px/1.6 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--page-2); padding: 8px 10px; }
.rec-more { margin-top: 8px; }
.rec-more > summary { cursor: pointer; font-weight: 800; color: var(--ink); min-height: 40px; display: flex; align-items: center; }
.ait-clause + .ait-clause { margin-top: 10px; }
.ait-clause .ait-meta { margin: 0 0 4px; }
.ait-del { background: var(--bad-soft); color: #7a1d17; text-decoration: line-through; }
.ait-ins { background: var(--ok-soft); color: #0f5a2c; text-decoration: none; }
.tbl td { white-space: normal; vertical-align: top; min-width: 7ch; }
.tbl td:last-child { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .ait-select { min-width: 0; width: 100%; }
  #out .tbl th, #out .tbl td { padding: 8px 9px; }
  .rec { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ait-ta, .ait-input, .ait-select { transition: none; }
}
