.substitutions-box {
    margin-top: 8px;
    padding: 12px;
    background: #fff8f0;
    border: 1px solid #f0d9b5;
    border-radius: 4px;
}

.substitution-command {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.substitution-command:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.substitution-command-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.substitution-field {
    margin-bottom: 8px;
}

.substitution-field:last-child {
    margin-bottom: 0;
}

.combobox {
    position: relative;
}

.combobox-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin-top: 2px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.combobox-options[hidden] {
    display: none;
}

.combobox-option {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.combobox-option:hover,
.combobox-option.active {
    background: #f0f6ff;
}

.combobox-option.empty {
    color: #605e5c;
    cursor: default;
}

.combobox-option.empty:hover {
    background: #fff;
}

.profile-description {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.profile-description strong {
    color: var(--primary-color);
}

.profile-id {
    font-family: 'Consolas', monospace;
    font-size: 13px;
}

.profile-advanced {
    margin-top: 8px;
}

.profile-advanced summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    user-select: none;
}

.profile-advanced summary:hover {
    text-decoration: underline;
}

.profile-advanced-content {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.profile-advanced-content > div {
    margin-bottom: 8px;
}

.profile-advanced-content > div:last-child {
    margin-bottom: 0;
}

.profile-advanced-content pre {
    margin: 4px 0 0;
    padding: 8px;
    background: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
