.ai-v4-answer {
    color: #4f463b;
}

.ai-v4-confirmation {
    padding: 14px;
    color: #4f463b;
    background: #fffdf8;
    border: 1px solid #cdb98f;
    border-radius: 7px;
}

.ai-v4-confirmation-copy {
    margin: 0 0 12px;
    color: #6f6254;
    font-size: 12px;
}

.ai-v4-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e4dac8;
    border-left: 1px solid #e4dac8;
}

.ai-v4-field-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-right: 1px solid #e4dac8;
    border-bottom: 1px solid #e4dac8;
}

.ai-v4-field-item.is-changed {
    background: #eef3f5;
    box-shadow: inset 3px 0 0 #4d7489;
}

.ai-v4-field-label {
    min-width: 0;
    color: #766b5d;
    font-size: 11px;
    line-height: 1.4;
}

.ai-v4-field-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    color: #31576a;
    background: #edf4f7;
    border: 1px solid #c4d8e1;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-v4-field-value {
    flex: 0 0 auto;
    color: #2e2923;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.ai-v4-field-item input,
.ai-v4-field-item select {
    flex: 0 1 170px;
    width: min(170px, 48%);
    min-width: 100px;
    height: 34px;
    padding: 0 9px;
    color: #2e2923;
    background: #fff;
    border: 1px solid #cdb98f;
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.ai-v4-field-item select {
    text-align: left;
}

.ai-v4-field-item input:focus,
.ai-v4-field-item select:focus {
    outline: 2px solid #4d7489;
    outline-offset: 1px;
    border-color: #4d7489;
}

.ai-v4-options {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.ai-v4-options button {
    width: auto;
    min-width: 88px;
    height: 38px;
    padding: 0 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.ai-v4-options button.primary {
    color: #fff;
    background: #2f5368;
    border: 1px solid #1f3442;
}

.ai-v4-options button.secondary {
    color: #5d5143;
    background: #fffdf8;
    border: 1px solid #cdb98f;
}

.ai-v4-options button:hover {
    filter: brightness(0.96);
}

.ai-v4-options button:focus-visible {
    outline: 2px solid #4d7489;
    outline-offset: 2px;
}

.ai-v4-input-help,
.ai-v4-source {
    margin: 10px 0 0;
    color: #776d60;
    font-size: 10px;
}

.ai-v4-knowledge-list {
    margin: 8px 0 12px;
}

.ai-v4-projection-conditions {
    margin-top: 0;
}

.ai-v4-projection-conditions ul {
    margin-bottom: 0;
}

.ai-v4-participant-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e4dac8;
}

.ai-v4-audit-table {
    width: 100%;
}

@media (max-width: 720px) {
    .ai-v4-field-grid {
        grid-template-columns: 1fr;
    }

    .ai-v4-options button {
        flex: 1 1 0;
        min-width: 0;
    }

    .ai-v4-field-item input,
    .ai-v4-field-item select {
        width: min(180px, 50%);
    }
}
