.dll-ia-button {
    color: #6d28d9;
}

.dll-ia-button svg {
    stroke: currentColor;
}

.dll-ia-instruction {
    min-height: 66px;
    max-height: 180px;
    resize: vertical;
}

.dll-ia-composer {
    grid-row: 3;
    min-height: 138px;
    max-height: 240px;
    padding: .5rem .75rem .6rem;
    overflow: auto;
    background: #f8f9fb;
    box-shadow: 0 -4px 14px rgba(15, 23, 42, .08);
}

.dll-ia-composer-header,
.dll-ia-composer-footer,
.dll-ia-composer-actions,
.dll-ia-selection {
    align-items: center;
    display: flex;
}

.dll-ia-composer-header { gap: .65rem; margin-bottom: .4rem; }
.dll-ia-composer-header > strong { color: #5b21b6; font-size: .9rem; }
.dll-ia-composer-actions { gap: .35rem; margin-left: auto; }
.dll-ia-composer-body { margin-left: 1.8rem; }
.dll-ia-composer-footer { gap: .65rem; margin-top: .4rem; }
.dll-ia-composer-footer .dll-ia-progress { margin-right: 0; }
.dll-ia-composer-hint { color: #687386; font-size: .75rem; margin-left: auto; }

.dll-ia-selection {
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: .3rem;
    min-width: 0;
}

.dll-ia-selection-empty,
.dll-ia-voice-status { color: #687386; font-size: .78rem; }

.dll-ia-selection-chip {
    align-items: center;
    display: inline-flex;
    gap: .3rem;
    max-width: 220px;
    padding: .18rem .3rem .18rem .48rem;
    color: #4c1d95;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 999px;
    font-size: .75rem;
}

.dll-ia-selection-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dll-ia-selection-remove { border: 0; color: inherit; background: transparent; font-size: 1rem; line-height: 1; padding: 0 .1rem; }
.dll-ia-clear-selection { color: #687386; font-size: .78rem; padding-left: .25rem; padding-right: .25rem; text-decoration: none; }
.dll-ia-microphone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dll-ia-microphone.is-listening { color: #fff; background: #dc3545; border-color: #dc3545; }

@media (max-width: 820px) {
    .dll-ia-composer-header { align-items: flex-start; flex-wrap: wrap; }
    .dll-ia-selection { order: 3; flex-basis: 100%; }
    .dll-ia-composer-body { margin-left: 0; }
    .dll-ia-composer-hint { display: none; }
}

.dll-ia-mode-choice {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: left;
}

.dll-ia-mode-choice.active {
    background: #eef2ff;
    border-color: #6d28d9;
    color: #4c1d95;
}

.dll-ia-mode-choice span {
    font-size: .8rem;
    opacity: .75;
}

.dll-ia-manual-message {
    margin-bottom: .35rem;
}

.dll-ia-manual-response {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-height: 320px;
    resize: vertical;
}

.dll-ia-progress {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: .875rem;
    gap: .5rem;
    margin-right: auto;
}

.dll-ia-progress .spinner-border {
    height: 1rem;
    width: 1rem;
}

.dll-ia-inspection-summary dd {
    overflow-wrap: anywhere;
}

.dll-ia-inspection-response {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-height: 360px;
    resize: vertical;
    white-space: pre;
}

.dll-ia-inspection-metrics {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    max-height: 220px;
    overflow: auto;
    padding: .75rem;
}

.dll-ia-inspection-request {
    display: grid;
    gap: .75rem;
}

.dll-ia-inspection-technical-header {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .35rem;
}

.dll-ia-inspection-technical-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    margin: 0;
    max-height: 220px;
    overflow: auto;
    padding: .75rem;
    white-space: pre-wrap;
}
