/* KOS Components */
.chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.action-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s; }
.action-card:hover { box-shadow: var(--shadow); border-color: var(--brass); text-decoration: none; }
.action-card h3 { margin: 0 0 8px; font-size: 1rem; }
.action-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

.wizard-steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.wizard-step { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; }
.wizard-step.active { background: var(--navy); color: #fff; }
.wizard-step.done { background: rgba(45, 106, 79, 0.15); color: var(--success); }

.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.status-item { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.status-item.pass { border-color: var(--success); background: rgba(45, 106, 79, 0.06); }
.status-item.fail { border-color: var(--danger); background: rgba(155, 35, 53, 0.06); }

.ai-output { padding: 16px; background: var(--surface-2); border-radius: var(--radius); border-left: 4px solid var(--brass); white-space: pre-wrap; font-size: 0.9rem; max-height: 400px; overflow-y: auto; }
.ai-label { display: inline-block; padding: 4px 10px; background: var(--warning); color: #000; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.ai-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.assistant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.assistant-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.assistant-card:hover { border-color: var(--accent); }
.assistant-card.selected { border-color: var(--brass); background: rgba(184, 149, 106, 0.08); }

.intake-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.record-list { list-style: none; padding: 0; margin: 0; }
.record-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

.search-result { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.search-result:hover { background: var(--surface-2); }
.search-result-type { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }

.hash-display { font-family: monospace; font-size: 0.8rem; word-break: break-all; padding: 12px; background: var(--surface-2); border-radius: var(--radius); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day { min-height: 80px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.calendar-day.has-events { background: rgba(30, 77, 123, 0.06); }
.calendar-event { font-size: 0.75rem; padding: 2px 4px; margin-top: 4px; background: var(--navy); color: #fff; border-radius: 4px; }

.matrix-table td.support { background: rgba(45, 106, 79, 0.1); }
.matrix-table td.contradict { background: rgba(155, 35, 53, 0.1); }
.matrix-table td.gap { background: rgba(184, 134, 11, 0.1); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 16px; border: none; background: none; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.progress-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--brass)); border-radius: 999px; transition: width 0.3s; }

.accessible-alt { margin-top: 24px; }
.accessible-alt h2 { font-size: 1rem; color: var(--text-muted); }

.footer-meta { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); text-align: center; }
