/* LLM Context Passport — page-specific styles; shared primitives live in /assets/css/ai-tools.css */
.ait fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 18px; }
.ait fieldset > .field:last-child { margin-bottom: 0; }
.ait .legend { display: block; margin-bottom: 8px; }
.ait .hint { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.ait input[type="text"], .ait input[type="number"], .ait select, .ait textarea { min-height: 40px; max-width: 100%; }
.ait input[type="text"], .ait input[type="number"] { width: 100%; }
.ait input[type="checkbox"] { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.ait input[type="file"] { max-width: 100%; font-size: 14px; }
.ait .btn { min-height: 40px; }
.ait .card label { display: inline; }
.ait .field > label:not(.ait-row-label) { display: block; }
.ait code { font: 600 0.88em/1.4 var(--code); background: var(--m-soft); color: var(--m-ink); padding: 1px 5px; overflow-wrap: anywhere; }

.ait-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.ait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ait-row > label { font-size: 13px; font-weight: 750; color: var(--ink); }
.ait-row > input[type="text"] { flex: 1 1 220px; min-width: 0; width: auto; }
.ait-row > select { min-width: 9.5em; }

.ait-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ait-finding { border: 2px solid var(--line-2); background: #fff; padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.ait-finding-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ait-finding-h strong { font: 800 0.98rem/1.3 var(--font-ui); color: var(--ink); }
.ait-finding .ait-meta { margin: 6px 0 0; }
.ait-finding .ait-row { margin-top: 10px; }

.ait-out { display: block; font: 500 13px/1.6 var(--code); color: var(--ink); background: #fff; border: 2px solid var(--line-2); padding: 12px 14px; max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
pre.ait-out { font-size: 12.5px; }
.ait mark.ait-hl { background: color-mix(in srgb, var(--sand) 55%, #fff); color: var(--ink); padding: 0 2px; }
#out-panel { min-width: 0; }
#out-panel:focus-visible { outline: 3px solid var(--m); outline-offset: 3px; }
.ait-box { margin-bottom: 16px; min-width: 0; }
.ait-box:last-child { margin-bottom: 0; }
.ait-box-h { font: 850 1rem/1.25 var(--display); margin: 0 0 6px; color: var(--ink); }
.ait-box .ait-meta { margin-top: 6px; }

.ait-details { margin-top: 16px; border-top: 2px solid var(--line); padding-top: 10px; }
.ait-details > summary { font: 800 0.95rem/1.3 var(--font-ui); color: var(--ink); cursor: pointer; padding: 8px 0; min-height: 40px; display: flex; align-items: center; }
.ait-details > div { margin-top: 8px; }
#safe ul { margin-top: 8px; }
#safe .plain li { font-size: 13.5px; padding-left: 20px; overflow-wrap: anywhere; }
#safe .plain li::before { top: 0.7em; }
#limit { max-width: 12em; }
