
.ai-step-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(21, 83, 74, 0.06);
    color: #516158;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-step-pill.is-active {
    color: #113f3b;
    background: rgba(21, 83, 74, 0.12);
    transform: translateY(-1px);
}

.ai-step-pill.is-done {
    color: #0e4940;
    background: rgba(215, 180, 106, 0.18);
}

.ai-step-index {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
}

.ai-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.ai-resume-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.ai-resume-panel[hidden],
.ai-clarification-panel[hidden] {
    display: none !important;
}

.ai-clarification-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 248, 235, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(215, 180, 106, 0.34);
    box-shadow: 0 18px 36px rgba(148, 107, 31, 0.08);
}

.ai-clarification-panel strong {
    color: #163f39;
}

.ai-clarification-panel p {
    margin: 0;
    color: #5e665d;
    line-height: 1.6;
}

.ai-clarification-intro {
    font-weight: 700;
    color: #15534a !important;
}

.ai-clarification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-clarification-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(21, 83, 74, 0.16);
    background: #fff;
    color: #15534a;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.ai-clarification-chip:hover {
    background: rgba(21, 83, 74, 0.06);
}

.ai-resume-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #163f39;
}

.ai-resume-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ai-step-grid,
.ai-review-layout {
    display: grid;
    gap: 18px;
}

.ai-step {
    min-height: 0;
}

#ai-step-1 {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.ai-step-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.95fr);
    min-height: 0;
}

.ai-chat-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: min(560px, calc(92vh - 210px));
}

.ai-chat-thread {
    flex: 1 1 auto;
    min-height: 260px;
    max-height: min(560px, calc(92vh - 300px));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(21, 83, 74, 0.1);
    border-radius: 8px;
    background:
        radial-gradient(circle at top left, rgba(215, 180, 106, 0.12), transparent 26%),
        rgba(255, 255, 255, 0.72);
}

.ai-chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    max-width: min(680px, 92%);
}
