.employee-builder-shell {
    display: grid;
    gap: 20px;
}

.employee-builder-hero,
.employee-builder-current,
.employee-builder-test {
    overflow: hidden;
}

.employee-builder-kicker {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2563eb;
}

.employee-builder-lead {
    margin: 6px 0 4px;
    font-size: 18px;
    font-weight: 650;
}

.employee-builder-description {
    width: 100%;
    min-height: 150px;
    margin-top: 8px;
    resize: vertical;
    box-sizing: border-box;
}

.employee-builder-chips,
.employee-builder-missing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.employee-builder-chip,
.employee-builder-link-button {
    width: auto;
    border: 1px solid #dbe3ef !important;
    background: #fff !important;
    color: #1f2937 !important;
    box-shadow: none !important;
}

.employee-builder-chip {
    padding: 8px 11px !important;
    border-radius: 999px !important;
    font-size: 13px;
}

.employee-builder-chip:hover,
.employee-builder-link-button:hover {
    border-color: #93b4ff !important;
    color: #1d4ed8 !important;
}

.employee-builder-link-button {
    padding: 7px 10px !important;
    margin-bottom: 14px;
}

.employee-builder-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.employee-builder-actions button {
    width: auto;
    min-width: 180px;
}

.employee-builder-revision {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.employee-builder-revision textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
}

.employee-builder-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.employee-builder-principles > div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.employee-builder-principles span {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.employee-builder-review-grid,
.employee-builder-summary-grid,
.employee-builder-readiness {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.employee-builder-review-grid {
    margin-top: 20px;
}

.employee-builder-options {
    display: grid;
    gap: 8px;
}

.employee-builder-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
}

.employee-builder-option input {
    width: auto;
    margin: 0;
}

.employee-builder-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.employee-builder-readiness > div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.employee-builder-readiness-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}

.employee-builder-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.employee-builder-badge-ready {
    background: #ecfdf3;
    color: #047857;
}

.employee-builder-badge-setup {
    background: #fff7ed;
    color: #c2410c;
}

.employee-builder-badge-planned {
    background: #eff6ff;
    color: #1d4ed8;
}

.employee-builder-current-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.employee-builder-summary-grid {
    margin-top: 20px;
}

.employee-builder-success {
    padding: 13px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
}

.employee-builder-test-chat {
    min-height: 110px;
    max-height: 340px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 12px;
    margin: 14px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.employee-builder-test-row {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.employee-builder-test-row.is-user {
    justify-self: end;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.employee-builder-test-row.is-employee {
    justify-self: start;
}

.employee-builder-test-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.employee-builder-test-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.employee-builder-test-input button {
    width: auto;
    min-width: 90px;
}

.employee-builder-loading {
    padding: 20px 0;
    color: #6b7280;
}



.employee-builder-journey {
    display: grid;
    gap: 18px;
}

.employee-builder-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.employee-builder-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width .2s ease;
}

.employee-builder-journey-list {
    display: grid;
    gap: 10px;
}

.employee-builder-journey-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.employee-builder-journey-complete {
    border-color: #bbf7d0;
    background: #f8fffb;
}

.employee-builder-journey-action_required {
    border-color: #fed7aa;
    background: #fffaf5;
}

.employee-builder-journey-waiting {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.employee-builder-journey-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.employee-builder-journey-copy {
    min-width: 0;
}

.employee-builder-journey-copy p {
    margin: 7px 0 0;
}

.employee-builder-journey-actions {
    margin-top: 12px;
}

.employee-builder-journey-action {
    width: auto;
    min-width: 0 !important;
}

.employee-builder-setup-answer {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.employee-builder-setup-answer textarea,
.employee-builder-setup-answer input {
    width: 100%;
    box-sizing: border-box;
}

.employee-builder-setup-answer textarea {
    resize: vertical;
}

@media (max-width: 800px) {
    .employee-builder-principles,
    .employee-builder-review-grid,
    .employee-builder-summary-grid,
    .employee-builder-readiness {
        grid-template-columns: 1fr;
    }

    .employee-builder-current-head {
        display: grid;
    }

    .employee-builder-test-input {
        grid-template-columns: 1fr;
    }

    .employee-builder-actions button,
    .employee-builder-test-input button {
        width: 100%;
    }
}
