/* business_discovery.css — SIPOC Business Discovery */
/* LeanSpace · McKinsey Current State Assessment UX */

/* ─── Overlay & Container ─────────────────────────────────────────────────── */

.bd-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    animation: bd-fade-in 0.18s ease;
}

@keyframes bd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bd-container {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bd-slide-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bd-slide-in {
    from { transform: translateY(16px); opacity: 0.7; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.bd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    background: #0f172a;
    color: #f1f5f9;
    flex-shrink: 0;
}

.bd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bd-header-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bd-back-icon-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.bd-back-icon-btn:hover { color: #f1f5f9; background: rgba(255,255,255,0.08); }

.bd-close-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.bd-close-btn:hover { color: #f1f5f9; background: rgba(255,255,255,0.1); }

/* ─── SIPOC Progress Dots ─────────────────────────────────────────────────── */

.bd-sipoc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.bd-prog-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s;
}

.bd-prog-dot.bd-prog-done {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
    font-size: 13px;
}

.bd-prog-dot.bd-prog-active {
    color: #fff;
    font-size: 13px;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

.bd-prog-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    max-width: 52px;
    min-width: 12px;
}

/* ─── Scrollable body ─────────────────────────────────────────────────────── */

.bd-sipoc-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.bd-sipoc-body::-webkit-scrollbar { width: 6px; }
.bd-sipoc-body::-webkit-scrollbar-track { background: transparent; }
.bd-sipoc-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ─── Column Hero ─────────────────────────────────────────────────────────── */

.bd-col-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1.5px solid transparent;
}

.bd-col-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.bd-col-name {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.bd-col-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */

.bd-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bd-section-inline {}

.bd-inline-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-inline-input {
    width: 120px;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
    text-align: right;
}
.bd-inline-input:focus { border-color: #3b82f6; }

.bd-inline-unit {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* ─── Chip Input ──────────────────────────────────────────────────────────── */

.bd-chips-wrap {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 56px;
}

.bd-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}

.bd-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: color-mix(in srgb, var(--chip-color, #3b82f6) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--chip-color, #3b82f6) 30%, #fff);
    border-radius: 100px;
    font-size: 13px;
    color: color-mix(in srgb, var(--chip-color, #3b82f6) 80%, #1e293b);
    animation: bd-chip-in 0.15s ease;
}

@keyframes bd-chip-in {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.bd-chip-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--chip-color, #3b82f6);
    background: color-mix(in srgb, var(--chip-color, #3b82f6) 18%, #fff);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bd-chip-text { line-height: 1.3; }

.bd-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    border-radius: 50%;
    transition: color 0.12s, background 0.12s;
}
.bd-chip-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

.bd-chip-input-row {
    display: flex;
    gap: 8px;
}

.bd-chip-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
}
.bd-chip-input:focus { border-color: #3b82f6; }

.bd-chip-add-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.1s;
}
.bd-chip-add-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.bd-chip-add-btn:active { transform: translateY(0); }

/* ─── Photo zone ──────────────────────────────────────────────────────────── */

.bd-photo-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 100px;
}
.bd-photo-zone:hover { border-color: #3b82f6; background: #eff6ff; }
.bd-photo-hover { border-color: #3b82f6 !important; background: #eff6ff !important; }

.bd-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
}

.bd-photo-icon  { font-size: 28px; }
.bd-photo-label { font-size: 13px; font-weight: 500; color: #64748b; }
.bd-photo-hint  { font-size: 11px; color: #94a3b8; }

.bd-photo-preview { position: relative; }
.bd-photo-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.bd-photo-analysis {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.5;
    background: rgba(15,23,42,0.72);
    color: #e2e8f0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bd-photo-warn {
    background: rgba(217,119,6,0.12) !important;
    color: #92400e !important;
    font-size: 11px;
}

.bd-photo-uploading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    font-size: 13px;
    color: #64748b;
}

.bd-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: bd-spin 0.7s linear infinite;
}
@keyframes bd-spin { to { transform: rotate(360deg); } }

/* ─── Resource sample section ─────────────────────────────────────────────── */

.bd-resource-section {
    border: 1.5px dashed #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.bd-resource-section:hover { border-color: #94a3b8; }

.bd-resource-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    user-select: none;
    transition: background 0.1s;
}
.bd-resource-header:hover { background: #f8fafc; }

.bd-resource-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bd-resource-chevron {
    font-size: 16px;
    color: #94a3b8;
}

.bd-resource-body {
    padding: 12px 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
}

.bd-resource-hint {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 10px;
}

.bd-resource-hint-small {
    color: #9ca3af;
    font-size: 11px;
}

.bd-resource-photo-zone {
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.bd-resource-photo-zone:hover { border-color: #3b82f6; background: #eff6ff; }

.bd-resource-photo-label { font-size: 13px; color: #64748b; }

.bd-resource-loading {
    font-size: 12px;
    color: #64748b;
    padding: 8px 0;
    text-align: center;
}

.bd-resource-result-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
}

.bd-res-ok-name { font-weight: 600; color: #15803d; flex: 1; }
.bd-res-ok-dest { font-size: 11px; color: #6b7280; }
.bd-res-error   { font-size: 12px; color: #dc2626; margin-top: 6px; }

.bd-resource-captured {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    font-size: 13px;
    color: #15803d;
}

.bd-resource-captured-icon  { font-size: 16px; }
.bd-resource-captured-dest  { font-size: 11px; color: #6b7280; }
.bd-resource-captured-check { margin-left: auto; font-size: 15px; }

/* ─── МастерКухни Example ─────────────────────────────────────────────────── */

.bd-mk-example {
    border-radius: 12px;
    border: 1.5px solid #fde68a;
    background: #fffbeb;
    padding: 12px 14px 14px;
}

.bd-mk-header-static {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bd-mk-body-static {
    display: block;
}

.bd-mk-tag {
    font-size: 10px;
    font-weight: 700;
    color: #92400e;
    background: #fde68a;
    padding: 2px 7px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.bd-mk-title {
    font-size: 13px;
    font-weight: 500;
    color: #78350f;
    flex: 1;
}

.bd-mk-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    padding-top: 10px;
}

.bd-mk-chip {
    display: inline-flex;
    padding: 3px 10px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 100px;
    font-size: 12px;
    color: #92400e;
}

.bd-mk-problem-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 10px;
    background: rgba(217,119,6,0.07);
    border-radius: 8px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

.bd-mk-problem-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }

/* ─── Two-column layout ──────────────────────────────────────────────────── */

.bd-two-col {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;
}

.bd-two-col .bd-section {
    margin: 0;
}

.bd-hint-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 0;
}

.bd-hint-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #78350f;
    margin-bottom: 10px;
}

.bd-hint-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bd-hint-box-problem {
    margin-top: 0;
}

.bd-hint-problem-text {
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
    background: rgba(217,119,6,0.07);
    border-radius: 8px;
    padding: 8px 10px;
}

@media (max-width: 720px) {
    .bd-two-col {
        grid-template-columns: 1fr;
    }
    .bd-hint-box {
        display: none;
    }
}

/* ─── Textarea ────────────────────────────────────────────────────────────── */

.bd-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #0f172a;
    background: #fff;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
}
.bd-textarea:focus { border-color: #3b82f6; }
.bd-textarea::placeholder { color: #94a3b8; }

/* ─── Module Reveals ──────────────────────────────────────────────────────── */

.bd-modules-reveal {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.bd-modules-reveal-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.bd-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.bd-module-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
    position: relative;
}
.bd-module-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.12);
}
.bd-module-peek {
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}
.bd-module-card:hover .bd-module-peek { opacity: 1; }

/* ─── Module mini-preview ────────────────────────────────────────────────── */

.bd-mod-preview {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 360px;
    max-height: calc(100vh - 160px);
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9600;
    display: flex;
    flex-direction: column;
    animation: bd-fade-in 0.15s ease;
}
.bd-mod-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: #eff6ff;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    border-bottom: 1px solid #bfdbfe;
    flex-shrink: 0;
}
.bd-mod-preview-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #64748b;
    padding: 0 2px;
    line-height: 1;
}
.bd-mod-preview-scroll {
    overflow-y: auto;
    flex: 1;
}
.bd-mod-preview-section {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-mod-preview-section:last-child { border-bottom: none; }
.bd-mod-preview-section-why { background: #fffbeb; }
.bd-mod-preview-section-metric { background: #f0fdf4; }
.bd-mod-preview-section-data { background: #f8fafc; }
.bd-mod-preview-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 5px;
}
.bd-mod-preview-section-text {
    font-size: 12px;
    color: #334155;
    line-height: 1.6;
}
.bd-mod-preview-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bd-mod-preview-how-item {
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
}
.bd-mod-preview-metric-text {
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    line-height: 1.5;
}
.bd-mod-preview-list {
    list-style: none;
    margin: 6px 0 6px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bd-mod-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #1e293b;
}
.bd-mod-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bd-mod-preview-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 100px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.bd-mod-preview-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.bd-module-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.bd-module-name { font-size: 12px; font-weight: 600; color: #1e293b; line-height: 1.3; }
.bd-module-desc { font-size: 11px; color: #94a3b8; line-height: 1.3; margin-top: 2px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.bd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.bd-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.bd-btn:active { transform: translateY(0); opacity: 1; }

.bd-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
}
.bd-btn-secondary:hover { background: #e2e8f0; opacity: 1; }

.bd-btn-primary { flex: 1; font-size: 13px; }

.bd-btn-analyze {
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(239,68,68,0.25);
}

/* ─── Analyzing screen ────────────────────────────────────────────────────── */

.bd-analyzing-wrap { justify-content: center; }

.bd-analyzing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 48px 32px;
    gap: 20px;
    text-align: center;
}

.bd-analyzing-icon  { font-size: 56px; animation: bd-pulse 1.6s ease-in-out infinite; }
.bd-analyzing-title { margin: 0; font-size: 22px; font-weight: 700; color: #0f172a; }
.bd-analyzing-hint  { margin: 0; font-size: 13px; color: #94a3b8; }

@keyframes bd-pulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.bd-analyzing-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 360px;
}

.bd-az-step {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #94a3b8;
    background: #f1f5f9;
    transition: all 0.3s;
    text-align: left;
}

.bd-az-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    border-left: 3px solid #3b82f6;
}

.bd-az-bar-wrap {
    width: 100%;
    max-width: 360px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.bd-az-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 100px;
    transition: width 1.5s ease;
    width: 0%;
}

/* ─── Results ─────────────────────────────────────────────────────────────── */

.bd-results-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.bd-results-body::-webkit-scrollbar { width: 6px; }
.bd-results-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.bd-results-hero {
    text-align: center;
    padding: 24px 20px 16px;
}

.bd-results-hero-icon { font-size: 48px; margin-bottom: 10px; }
.bd-results-title   { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #0f172a; }
.bd-results-summary {
    margin: 0 0 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    max-width: 580px;
    margin-inline: auto;
}

.bd-key-insight {
    display: inline-block;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    font-size: 13px;
    color: #15803d;
    font-weight: 500;
}

/* SIPOC visual strip */
.bd-sipoc-visual {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.bd-sipoc-summary-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 6px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    min-width: 0;
}

.bd-sipoc-sum-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.bd-sipoc-sum-name  { font-size: 10px; font-weight: 600; color: #374151; }
.bd-sipoc-sum-count { font-size: 10px; color: #9ca3af; }

/* Maturity */
.bd-maturity-bar-wrap { padding: 0 4px; }
.bd-maturity-label    { font-size: 12px; color: #64748b; margin-bottom: 6px; }

.bd-maturity-track {
    height: 6px;
    border-radius: 100px;
    background: #e2e8f0;
    overflow: hidden;
}

.bd-maturity-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Result cards */
.bd-result-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.bd-result-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bd-result-card-icon  { font-size: 16px; }
.bd-result-card-title { font-size: 14px; font-weight: 600; color: #1e293b; }

/* Problems */
.bd-problem-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-problem-row:last-child { border-bottom: none; }

.bd-sev-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.bd-problem-title { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.bd-problem-desc  { font-size: 12px; color: #64748b; line-height: 1.4; margin-top: 3px; }
.bd-problem-stop  { font-size: 11px; color: #94a3b8; margin-top: 3px; }

/* Opportunities */
.bd-opp-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-opp-row:last-child { border-bottom: none; }

.bd-opp-impact {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.bd-opp-title { font-size: 13px; color: #1e293b; line-height: 1.4; font-weight: 500; }

/* Tools grid */
.bd-tools-grid {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.bd-tool-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.bd-tool-num {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #3b82f6;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bd-tool-name   { font-size: 12px; font-weight: 600; color: #1e293b; }
.bd-tool-reason { font-size: 11px; color: #6b7280; margin-top: 2px; line-height: 1.4; }

/* Resources in results */
.bd-res-result-row {
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 6px;
    align-items: center;
}
.bd-res-result-row:last-of-type { border-bottom: none; }

.bd-resources-hint {
    padding: 8px 16px 12px;
    font-size: 11px;
    color: #9ca3af;
}

/* Clickable tool card */
.bd-tool-card-clickable {
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.bd-tool-card-clickable:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
.bd-tool-arrow {
    font-size: 14px;
    color: #3b82f6;
    margin-left: auto;
    flex-shrink: 0;
}

/* Auto-created banner */
.bd-autocreated-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #166534;
    text-align: center;
}

/* CTA section */
.bd-results-cta {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.bd-results-cta-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.bd-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bd-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.bd-cta-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
    color: #1d4ed8;
}

.bd-cta-icon { font-size: 18px; flex-shrink: 0; }
.bd-cta-text { font-size: 12px; line-height: 1.3; }

/* Primary CTA button (Continue onboarding) */
.bd-cta-primary-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(15,23,42,0.25);
}
.bd-cta-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15,23,42,0.3);
}

.bd-cta-primary-icon { font-size: 22px; flex-shrink: 0; }

.bd-cta-primary-text { flex: 1; }
.bd-cta-primary-label { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.bd-cta-primary-sub   { font-size: 12px; color: rgba(255,255,255,0.6); }

.bd-cta-primary-arrow {
    font-size: 20px;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    transition: transform 0.15s;
}
.bd-cta-primary-btn:hover .bd-cta-primary-arrow { transform: translateX(4px); color: #fff; }

/* Module card arrow */
.bd-module-arrow {
    font-size: 13px;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.bd-module-card:hover .bd-module-arrow { color: #3b82f6; transform: translateX(3px); }

/* ─── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .bd-container  { max-width: 100%; }
    .bd-sipoc-body { padding: 16px; gap: 14px; }
    .bd-results-body { padding: 16px; }
    .bd-col-hero   { padding: 14px; }
    .bd-col-name   { font-size: 17px; }
    .bd-col-badge  { width: 36px; height: 36px; font-size: 18px; }
    .bd-modules-grid { grid-template-columns: 1fr 1fr; }
    .bd-prog-line  { max-width: 24px; min-width: 6px; }
    .bd-prog-dot   { width: 28px; height: 28px; font-size: 11px; }
    .bd-tools-grid { grid-template-columns: 1fr; }
    .bd-sipoc-visual { gap: 4px; }
    .bd-sipoc-sum-name { font-size: 9px; }
    .bd-footer     { padding: 12px 16px; }
    .bd-btn        { padding: 10px 14px; font-size: 13px; }
    .bd-cta-grid   { grid-template-columns: 1fr 1fr; }
}
