/* ══════════════════════════════════════════════════════════
   Teacher Labs Dashboard — Shared CSS
   Used by all tool pages with the Ada/Sage dashboard pattern
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.bp-hero {
            background: linear-gradient(150deg, #2B4C8C 0%, #3567B5 40%, #4A7FCA 75%, #5B8FD4 100%);
            padding: 48px 28px 52px;
            position: relative;
            overflow: hidden;
        }

        .bp-hero-pattern {
            position: absolute; inset: 0;
            background-image:
                radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
            pointer-events: none;
        }

        .bp-hero-inner {
            position: relative; z-index: 2;
            max-width: 1200px; margin: 0 auto; padding: 0 28px;
        }

        .bp-hero-bc {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 12px;
        }
        .bp-hero-bc a { color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 500; }

        .bp-hero-text { padding-bottom: 32px; }

        .bp-hero-badge {
            font-family: 'Plus Jakarta Sans', sans-serif;
            display: inline-flex; align-items: center; gap: 6px;
            background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.07em;
            padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
        }

        .bp-hero-h1 {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 2.2rem !important; font-weight: 900 !important;
            color: #fff !important; line-height: 1.15 !important;
            margin-bottom: 8px !important; letter-spacing: -0.02em !important;
            text-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
        }

        .bp-hero-sub {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: rgba(255,255,255,0.8); font-size: 1.05rem;
            line-height: 1.6; max-width: 480px; font-weight: 500; margin-bottom: 18px;
        }

        .bp-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }

        .bp-tag {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
            color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 600;
            padding: 4px 11px; border-radius: 20px;
        }

        /* Hero choice cards */
        .bp-hero-cards {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 12px; padding: 20px 0 28px; position: relative; z-index: 2;
        }
            grid-template-columns: 1fr 1fr 1fr;
        }



        /* ── Mini hero ── */


        /* ── Form section ── */
        #bpFormSection .container { max-width: 1200px; margin: 0 auto; padding: 48px 20px 40px; }

        .bp-form-wrap { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(47,93,159,0.08); overflow: hidden; margin-bottom: 0; }

        /* Form section cards — each panel-card inside builder-layout */
        #bpFormSection .panel-card {
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            background: #fff; border: none !important;
            box-shadow: none !important; border-radius: 0 !important;
            padding: 20px 24px 8px;
        }

        #bpFormSection .panel-card .panel-card {
            padding: 0 !important;
        }

        /* Section headings — gradient bars */
        #bpFormSection .panel-card h3 {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 12px !important; font-weight: 800 !important;
            text-transform: uppercase !important; letter-spacing: 0.07em !important;
            color: #fff !important;
            background: linear-gradient(135deg, #2B4C8C, #3567B5) !important;
            margin: 16px -24px 14px !important;
            padding: 9px 24px !important;
            border: none !important; border-bottom: none !important;
        }

        #bpFormSection .panel-card h3:first-of-type {
            margin-top: -20px !important;
        }

        /* Fields */
        #bpFormSection .field { margin-bottom: 14px; }

        #bpFormSection .field label {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12px; font-weight: 700;
            color: #64748b; text-transform: uppercase; letter-spacing: 0.06em;
            display: block; margin-bottom: 5px;
        }

        #bpFormSection .field input,
        #bpFormSection .field textarea,
        #bpFormSection .field select {
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            border: 1.5px solid #E6EDF6 !important;
            border-radius: 10px !important;
            padding: 10px 13px !important;
            font-size: 14px !important;
            color: #0F172A !important;
            background: #FAFBFE !important;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        #bpFormSection .field input:focus,
        #bpFormSection .field textarea:focus {
            outline: none !important;
            border-color: #2F5D9F !important;
            box-shadow: 0 0 0 3px rgba(47,93,159,0.08) !important;
            background: #fff !important;
        }

        #bpFormSection .field input::placeholder,
        #bpFormSection .field textarea::placeholder {
            color: #b8c5d4 !important; font-size: 13px !important;
        }

        /* Segmented buttons */
        #bpFormSection .segbtn {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 13.5px !important; font-weight: 500 !important;
            padding: 8px 15px !important; border-radius: 20px !important;
            border: 1.5px solid #E6EDF6 !important;
            background: #fff !important; color: #475569 !important;
            transition: all 0.12s !important; cursor: pointer !important;
        }
        #bpFormSection .segbtn:hover { border-color: #2F5D9F !important; color: #2F5D9F !important; }
        #bpFormSection .segbtn.active {
            background: #EEF3FF !important; border-color: #2F5D9F !important;
            color: #2F5D9F !important; font-weight: 700 !important;
        }

        /* Chips */
        #bpFormSection .chip {
            font-family: 'Plus Jakarta Sans', sans-serif !important;
            font-size: 13.5px !important; font-weight: 500 !important;
            padding: 7px 14px !important; border-radius: 20px !important;
            border: 1.5px solid #E6EDF6 !important;
            background: #fff !important; color: #475569 !important;
            transition: all 0.12s !important; cursor: pointer !important;
        }
        #bpFormSection .chip:hover { border-color: #2F5D9F !important; color: #2F5D9F !important; }
        #bpFormSection .chip.active {
            background: #EEF3FF !important; border-color: #2F5D9F !important;
            color: #2F5D9F !important; font-weight: 700 !important;
        }

        /* ── White body — always visible ── */
        .bp-white-body {
            background: #F5F7FB;
            padding: 40px 28px 60px;
        }

        .bp-white-inner {
            max-width: 1200px; margin: 0 auto;
        }

        /* Resume bar */
        .bp-resume-bar {
            text-align: center; font-size: 12px; color: #94a3b8;
            font-family: 'Plus Jakarta Sans', sans-serif;
            margin-bottom: 18px;
        }
        .bp-resume-bar a { color: #2F5D9F; font-weight: 600; text-decoration: none; }

        /* Preview intro */
        .bp-preview-intro {
            font-family: 'Plus Jakarta Sans', sans-serif;
            display: flex; align-items: flex-start; gap: 12px;
            background: linear-gradient(135deg, rgba(43,76,140,0.06), rgba(53,103,181,0.04));
            border: 1px solid rgba(47,93,159,0.15);
            border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
            position: relative; overflow: hidden;
        }
        .bp-preview-intro::before {
            content: ''; position: absolute; top: -20px; right: -20px;
            width: 80px; height: 80px; border-radius: 50%;
            background: radial-gradient(circle, rgba(91,143,212,0.12), transparent 70%);
        }
        .bp-preview-intro-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
        .bp-preview-intro-text h4 { font-size: 13px; font-weight: 700; color: #2B4C8C; margin-bottom: 3px; }
        .bp-preview-intro-text p { font-size: 12px; color: #475569; line-height: 1.6; }

        /* Preview card */
        .bp-pc {
            background: #fff; border-radius: 0 0 14px 14px;
            box-shadow: 0 4px 24px rgba(43,76,140,0.10);
            overflow: hidden; border: 1px solid rgba(47,93,159,0.12);
            border-top: none;
        }

        .bp-pch {
            background: linear-gradient(135deg, #2B4C8C 0%, #3567B5 60%, #4A7FCA 100%);
            padding: 11px 18px; display: flex; align-items: center; justify-content: space-between;
            position: relative; overflow: hidden;
        }
        .bp-pch::before {
            content: ''; position: absolute; top: -10px; right: 20px;
            width: 60px; height: 60px; border-radius: 50%;
            background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
        }
        .bp-pch-left { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
        .bp-pch-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
        .bp-pch-title {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px; font-weight: 700; color: #fff;
        }
        .bp-pch-sub {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 2px;
        }
        .bp-pch small { font-size: 10.5px; color: rgba(255,255,255,0.6); position: relative; z-index: 1; }

        /* Override base .preview inside bp-pc */
        .bp-pc .preview {
            position: static !important; width: auto !important;
            border: none !important; border-radius: 0 !important;
            border-top: 1px solid rgba(47,93,159,0.08) !important;
            background: linear-gradient(180deg, #F8FAFF 0%, #fff 100%) !important;
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
            font-size: 12.5px !important; line-height: 1.85 !important;
            color: #334155 !important; padding: 18px 20px !important;
            min-height: 100px !important; display: block !important;
            box-shadow: none !important;
        }

        /* Preview actions */
        .bp-pa {
            padding: 12px 18px;
            background: linear-gradient(135deg, rgba(43,76,140,0.05), rgba(74,127,202,0.03));
            border-bottom: 1px solid rgba(47,93,159,0.08);
            display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
        }

        .bp-ba {
            font-family: 'Plus Jakarta Sans', sans-serif;
            padding: 9px 18px; border-radius: 20px;
            font-size: 13.5px; font-weight: 700; cursor: pointer;
            border: none; display: inline-flex; align-items: center; gap: 6px;
            transition: filter 0.15s;
        }
        .bp-ba:hover { filter: brightness(1.06); }
        .bp-ba-sage {
            background: linear-gradient(135deg, #2B4C8C, #3567B5);
            color: #fff; box-shadow: 0 2px 8px rgba(43,76,140,0.25);
        }
        .bp-ba-ol {
            background: #fff; color: #2F5D9F;
            border: 1.5px solid rgba(47,93,159,0.2) !important;
        }
        .bp-ba-ol.active { background: #EEF3FF; border-color: #2F5D9F !important; }

        /* Copy panel */
        .bp-copy-panel {
            border-top: 1px solid rgba(47,93,159,0.08);
            padding: 16px 18px; background: #fff;
        }
        .bp-copy-panel h5 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 11px; font-weight: 700; color: #64748b;
            text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px;
        }
        .bp-ai-tools { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
        .bp-ai-tool {
            font-family: 'Plus Jakarta Sans', sans-serif;
            display: flex; flex-direction: column; align-items: center; gap: 5px;
            padding: 11px 8px; border-radius: 12px;
            border: 1.5px solid #E6EDF6; background: #FAFBFE;
            cursor: pointer; transition: all 0.15s; text-decoration: none;
        }
        .bp-ai-tool:hover { border-color: #2F5D9F; background: #EEF3FF; transform: translateY(-1px); }
        .bp-ai-tool-icon { font-size: 1.3rem; }
        .bp-ai-tool-name { font-size: 11px; font-weight: 700; color: #334155; text-align: center; }


        /* ── Upload section inside preview card ── */
        .bp-upload-section {
            font-family: 'Plus Jakarta Sans', sans-serif;
            padding: 14px 18px;
            border-top: 1px solid rgba(47,93,159,0.08);
            background: linear-gradient(135deg, rgba(43,76,140,0.03), rgba(53,103,181,0.02));
        }

        .bp-upload-label {
            font-size: 12px; font-weight: 700; color: #2B4C8C; margin-bottom: 3px;
        }

        .bp-upload-hint {
            font-size: 11.5px; color: #64748b; margin-bottom: 10px; line-height: 1.5;
        }

        .bp-upload-section .file-upload-dropzone {
            border: 2px dashed rgba(47,93,159,0.25);
            border-radius: 10px; padding: 12px; text-align: center;
            cursor: pointer; transition: all 0.15s;
            background: #FAFBFE;
        }

        .bp-upload-section .file-upload-dropzone:hover {
            border-color: #2F5D9F; background: #EEF3FF;
        }

        .bp-upload-section .file-upload-icon { font-size: 1.2rem; }

        .bp-upload-section .file-upload-instructions {
            font-size: 12px; color: #334155; margin-top: 4px;
        }

        .bp-upload-section .file-upload-types {
            font-size: 11px; color: #94a3b8; margin-top: 3px;
        }


        /* Preview hidden on load, scrollable when shown */
        #bpPreview { display: block; }
        #bpPreview {
            display: block !important;
            max-height: 400px !important;
            overflow-y: auto !important;
            border-top: 1px solid rgba(47,93,159,0.08) !important;
        }

        
        /* ── Section intro ── */
        .bp-section-intro {
            font-family: 'Plus Jakarta Sans', sans-serif;
            padding: 20px 22px 20px;
            background: linear-gradient(135deg, rgba(43,76,140,0.04), rgba(74,127,202,0.02));
            border: 1px solid rgba(47,93,159,0.12);
            border-radius: 14px 14px 0 0;
            border-bottom: none;
            margin-bottom: 0;
        }

        .bp-section-intro-text {
            font-size: 13px;
            color: #475569;
            line-height: 1.6;
        }

        .bp-section-intro-text strong {
            color: #1a2535;
            font-weight: 700;
            display: block;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .bp-section-intro-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .bp-intro-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: white;
            border: 1px solid rgba(47,93,159,0.15);
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 12px;
            color: #475569;
        }

        .bp-intro-pill strong {
            display: inline;
            font-size: 12px;
            color: #2B4C8C;
            font-weight: 700;
            margin: 0;
        }


        /* Card explanation */
        .bp-card-explain {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 15px;
            color: #475569;
            line-height: 1.65;
            padding: 16px 20px 0;
            background: #fff;
        }
        .bp-card-explain strong {
            color: #2B4C8C;
            font-weight: 700;
        }


        /* Step 2 label */
        .bp-step2-label {
            font-family: 'Plus Jakarta Sans', sans-serif;
            margin-bottom: 16px;
        }
        .bp-step2-num {
            display: inline-flex;
            align-items: center;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #2B4C8C;
            background: rgba(43,76,140,0.08);
            border: 1px solid rgba(43,76,140,0.15);
            padding: 3px 9px;
            border-radius: 20px;
            margin-bottom: 5px;
        }
        .bp-step2-title {
            font-size: 18px;
            font-weight: 700;
            color: #1a2535;
            margin-bottom: 4px;
        }
        .bp-step2-desc {
            font-size: 15px;
            color: #64748b;
            line-height: 1.6;
            max-width: 700px;
        }

        /* Quick Fill button + guide-me banners hidden — quick-chat.js handles everything */
        #guideMeButton { display: none !important; }
        #guideWelcomeBanner { display: none !important; }
        #guideMePopover { display: none !important; }


        /* Form section reveal */
        #bpFormSection {
            animation: bp-reveal 0.4s cubic-bezier(0.4,0,0.2,1);
            padding-top: 16px;
        }


        /* ── Form accordion ── */
        #bpFormSection .panel-card h3 {
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0 !important;
            padding-bottom: 6px !important;
            font-size: 15px !important;
            font-weight: 800 !important;
            letter-spacing: 0.03em !important;
        }
        #bpFormSection .panel-card h3::after {
            content: '▼';
            font-size: 10px;
            font-weight: 400;
            color: rgba(255,255,255,0.7);
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }
        #bpFormSection .panel-card h3.bp-acc-closed::after {
            transform: rotate(-90deg);
        }
        .bp-acc-body {
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
            max-height: 2000px;
            opacity: 1;
            padding-top: 16px;
        }
        .bp-acc-body.bp-acc-collapsed {
            max-height: 0;
            opacity: 0;
            padding-top: 0;
        }


        /* ── Hero redesign ── */
        .bp-hero-layout {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 40px;
            align-items: center;
        }
        .bp-hero-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }
        .bp-hero-tag {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: rgba(255,255,255,0.9);
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 4px 12px;
            border-radius: 20px;
        }
        /* Ada character card */
        .bp-hero-visual { flex-shrink: 0; }
        .bp-penn-card {
            background: rgba(255,255,255,0.1);
            border: 1.5px solid rgba(255,255,255,0.2);
            border-radius: 20px;
            padding: 24px 28px;
            text-align: center;
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
            min-width: 180px;
        }
        .bp-penn-avatar {
            font-size: 3rem;
            display: block;
            margin-bottom: 10px;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
            line-height: 1;
        }
        .bp-penn-name {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 1.2rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 3px;
            letter-spacing: -0.01em;
        }
        .bp-penn-role {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .bp-penn-divider {
            height: 1px;
            background: rgba(255,255,255,0.15);
            margin: 14px 0;
        }
        .bp-penn-tagline {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12px;
            color: rgba(255,255,255,0.8);
            line-height: 1.5;
            font-style: italic;
        }

        /* ── Welcome state ── */
        .bp-welcome-heading-row {
            max-width: 1200px;
            margin: 0 auto;
            padding: 36px 28px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        .bp-welcome-heading {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 22px;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.02em;
        }
        .bp-welcome-state {
            background: linear-gradient(180deg, #EEF3FF 0%, #E6EDF6 100%);
            border-bottom: 1px solid #dce6f5;
        }
        .bp-welcome-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px 28px 36px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            align-items: start;
        }
        .bp-wc {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: #fff;
            border: 1.5px solid #E6EDF6;
            border-radius: 16px;
            padding: 24px 20px;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s;
            display: flex;
            flex-direction: column;
            gap: 8px;
            box-shadow: 0 2px 12px rgba(47,93,159,0.06);
            align-self: stretch;
        }
        .bp-wc:hover {
            border-color: #2F5D9F;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(47,93,159,0.12);
        }
        .bp-wc-icon { font-size: 1.8rem; }
        .bp-wc-title {
            font-size: 15px;
            font-weight: 800;
            color: #0f172a;
        }
        .bp-wc-desc {
            font-size: 13.5px;
            color: #475569;
            line-height: 1.6;
            flex: 1;
            min-height: 60px;
        }
        .bp-wc-btn {
            font-size: 13px;
            font-weight: 700;
            color: #2F5D9F;
            margin-top: 4px;
        }
        .bp-wc:hover .bp-wc-btn { color: #1e3e6e; }
        .bp-how-toggle {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #2F5D9F;
            background: none;
            border: 1.5px solid rgba(47,93,159,0.2);
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .bp-how-toggle:hover, .bp-how-toggle.bp-how-open {
            background: #EEF3FF;
            border-color: #2F5D9F;
        }
        .bp-how-arrow {
            font-size: 10px;
            transition: transform 0.2s ease;
            display: inline-block;
        }
        .bp-how-body {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 28px;
            margin-top: 4px;
            animation: bp-reveal 0.25s ease;
        }
        .bp-how-inner {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 16px 0 8px;
        }
        .bp-how-step {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            color: #475569;
            line-height: 1.6;
        }
        .bp-how-step strong { color: #0f172a; display: block; margin-bottom: 3px; }
        .bp-how-num {
            font-size: 1.1rem;
            flex-shrink: 0;
            margin-top: 1px;
        }
        .bp-wc-expandable { cursor: default; }
        .bp-wc-expandable:hover { transform: none; box-shadow: 0 2px 12px rgba(47,93,159,0.06); }
        .bp-wc-expandable.bp-wc-expanded { border-color: #2F5D9F; }
        .bp-wc-sub {
            display: flex;
            gap: 8px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid #E6EDF6;
            flex-direction: column;
        }
        .bp-wc-sub-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            display: flex;
            align-items: center;
            gap: 12px;
            background: #F5F7FB;
            border: 1.5px solid #E6EDF6;
            border-radius: 12px;
            padding: 12px 14px;
            cursor: pointer;
            text-align: left;
            transition: all 0.15s;
            font-size: 1.2rem;
        }
        .bp-wc-sub-btn:hover {
            border-color: #2F5D9F;
            background: #EEF3FF;
        }
        .bp-wc-sub-title {
            font-size: 13px;
            font-weight: 700;
            color: #0f172a;
        }
        .bp-wc-sub-desc {
            font-size: 12px;
            color: #64748b;
            margin-top: 1px;
        }

        /* ── Action bar ── */
        .bp-action-bar {
            background: #fff;
            border-bottom: 1px solid #E6EDF6;
            box-shadow: 0 2px 12px rgba(47,93,159,0.07);
            position: sticky;
            top: 58px;
            z-index: 100;
        }
        .bp-action-bar-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 14px 28px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .bp-action-bar-label {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            white-space: nowrap;
            flex-shrink: 0;
        }
        /* ── Dashboard cards ── */
        .bp-dash-cards {
            display: flex;
            gap: 8px;
            flex: 1;
        }
        .bp-dc {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: #F5F7FB;
            border: 1.5px solid #E6EDF6;
            border-radius: 12px;
            padding: 10px 16px;
            cursor: pointer;
            text-align: center;
            transition: all 0.15s;
            color: #475569;
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }
        .bp-dc:hover {
            border-color: #2F5D9F;
            color: #2F5D9F;
            background: #EEF3FF;
            transform: translateY(-1px);
        }
        .bp-dc.bp-dc-active {
            background: #EEF3FF;
            border-color: #2F5D9F;
            color: #2B4C8C;
            box-shadow: 0 2px 8px rgba(47,93,159,0.15);
        }
        .bp-dc-icon { font-size: 1.1rem; flex-shrink: 0; }
        .bp-dc-title { font-size: 13px; font-weight: 700; }
        .bp-dc-desc  { display: none; }

        /* ── Progressive reveal ── */
        .bp-step-reveal {
            animation: bp-reveal 0.5s cubic-bezier(0.4,0,0.2,1);
        }
        @keyframes bp-reveal {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }


        /* Form top bar */
        .bp-form-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            background: #EEF3FF;
            border: 1px solid rgba(47,93,159,0.15);
            border-radius: 12px;
            padding: 13px 18px;
            margin-bottom: 20px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .bp-form-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 4px;
            flex-wrap: wrap;
        }
        .bp-form-save-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: #2F5D9F;
            background: #EEF3FF;
            border: 1.5px solid rgba(47,93,159,0.2);
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-save-btn:hover {
            background: #2F5D9F;
            color: #fff;
            border-color: #2F5D9F;
        }
        .bp-form-save-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: #2F5D9F;
            background: #EEF3FF;
            border: 1.5px solid rgba(47,93,159,0.2);
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-save-btn:hover {
            background: #2F5D9F;
            color: #fff;
            border-color: #2F5D9F;
        }
        .bp-form-clear-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: #64748b;
            background: #fff;
            border: 1.5px solid #E6EDF6;
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-clear-btn:hover {
            border-color: #ef4444;
            color: #ef4444;
        }
        .bp-section-hint {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #2B4C8C;
            line-height: 1.5;
        }
        .bp-form-save-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: #2F5D9F;
            background: #EEF3FF;
            border: 1.5px solid rgba(47,93,159,0.2);
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-save-btn:hover {
            background: #2F5D9F;
            color: #fff;
            border-color: #2F5D9F;
        }
        .bp-form-save-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 12.5px;
            font-weight: 600;
            color: #2F5D9F;
            background: #EEF3FF;
            border: 1.5px solid rgba(47,93,159,0.2);
            border-radius: 20px;
            padding: 6px 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-save-btn:hover {
            background: #2F5D9F;
            color: #fff;
            border-color: #2F5D9F;
        }
        .bp-form-clear-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            background: #fff;
            border: 1.5px solid #E6EDF6;
            border-radius: 20px;
            padding: 7px 16px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s;
            flex-shrink: 0;
        }
        .bp-form-clear-btn:hover {
            border-color: #2F5D9F;
            color: #2F5D9F;
        }


        /* Form done bar */
        .bp-form-done-bar {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            padding: 20px;
            margin-top: 20px;
            margin-bottom: 40px;
            background: linear-gradient(135deg, rgba(43,76,140,0.04), rgba(74,127,202,0.02));
            border: 1px solid rgba(47,93,159,0.1);
            border-radius: 12px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            flex-wrap: wrap;
        }
        .bp-form-done-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            font-weight: 700;
            border: none;
            border-radius: 20px;
            padding: 11px 22px;
            cursor: pointer;
            transition: filter 0.15s;
            white-space: nowrap;
        }
        .bp-form-done-btn:hover { filter: brightness(1.06); }
        .bp-form-done-review {
            background: #fff;
            color: #2F5D9F;
            border: 1.5px solid rgba(47,93,159,0.25) !important;
        }
        .bp-form-done-go {
            background: linear-gradient(135deg, #2B4C8C, #3567B5);
            color: #fff;
            box-shadow: 0 2px 10px rgba(43,76,140,0.25);
        }


        /* ── Action cards ── */
        .bp-action-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            padding: 8px 0 4px;
        }
        .bp-action-card {
            background: #fff;
            border-radius: 16px;
            padding: 24px;
            border: 1.5px solid #E6EDF6;
            display: flex;
            flex-direction: column;
            gap: 14px;
            box-shadow: 0 2px 12px rgba(47,93,159,0.06);
            font-family: 'Plus Jakarta Sans', sans-serif;
        }
        .bp-action-sage {
            border-color: rgba(47,93,159,0.2);
            background: linear-gradient(135deg, #FAFBFF, #F5F8FF);
        }
        .bp-action-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .bp-action-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #2B4C8C, #3567B5);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        .bp-action-copy .bp-action-avatar {
            background: linear-gradient(135deg, #475569, #64748b);
        }
        .bp-action-name {
            font-size: 16px;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.01em;
        }
        .bp-action-role {
            font-size: 11.5px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-top: 2px;
        }
        .bp-action-desc {
            font-size: 13.5px;
            color: #475569;
            line-height: 1.6;
            flex: 1;
        }
        .bp-action-btn {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            font-weight: 700;
            padding: 12px 20px;
            border-radius: 20px;
            border: none;
            cursor: pointer;
            transition: filter 0.15s;
            text-align: center;
        }
        .bp-action-btn:hover { filter: brightness(1.06); }
        .bp-action-btn-sage {
            background: linear-gradient(135deg, #2B4C8C, #3567B5);
            color: #fff;
            box-shadow: 0 3px 12px rgba(43,76,140,0.3);
        }
        .bp-action-btn-copy {
            background: #F1F5F9;
            color: #334155;
            border: 1.5px solid #E6EDF6 !important;
        }
        .bp-action-btn-copy:hover {
            background: #E6EDF6;
            filter: none;
        }
        @media (max-width: 768px) {
            .bp-action-cards { grid-template-columns: 1fr; }
        }

        /* ── Footer ── */
        footer {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(180deg, #EEF3FF 0%, #E6EDF6 100%);
            border-top: 2px solid #E6EDF6;
            margin-top: 0;
        }

        .footer-inner {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 48px;
            padding: 48px 20px 36px;
            align-items: start;
            max-width: 1100px;
            margin: 0 auto;
        }

        .footer-brand { display: flex; flex-direction: column; gap: 16px; }

        .footer-brand-logo {
            display: flex; align-items: center; gap: 10px;
            font-weight: 800; font-size: 1.1rem; color: #2F5D9F;
        }
        .footer-brand-logo img { width: 36px; height: 36px; }

        .footer-brand-desc {
            font-size: 0.88rem; color: #475569;
            line-height: 1.6; margin: 0;
        }

        .footer-social {
            display: grid;
            grid-template-columns: repeat(3, auto);
            gap: 8px; margin-top: 4px;
            justify-content: start;
        }
        .footer-social a {
            color: #475569; text-decoration: none;
            padding: 6px 10px; border: 1px solid #E6EDF6;
            border-radius: 8px; font-size: 0.78rem; font-weight: 500;
            background: #fff; transition: all 0.2s;
        }
        .footer-social a:hover { background: #2F5D9F; color: #fff; border-color: #2F5D9F; }

        .footer-links {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .footer-col h4 {
            color: #2F5D9F; font-weight: 700;
            font-size: 0.9rem; text-transform: uppercase;
            letter-spacing: 0.05em; margin: 0 0 14px;
            padding-bottom: 8px; border-bottom: 2px solid #E6EDF6;
        }
        .footer-col ul { list-style: none; margin: 0; padding: 0; }
        .footer-col ul li { margin-bottom: 9px; }
        .footer-col ul li a {
            color: #475569; text-decoration: none;
            font-size: 0.88rem; transition: color 0.2s;
        }
        .footer-col ul li a:hover { color: #2F5D9F; }

        .footer-bottom-bar {
            border-top: 1px solid #E6EDF6;
            background: rgba(255,255,255,0.5);
            padding: 16px 20px;
            text-align: center;
            font-size: 0.82rem;
            color: #475569;
            line-height: 1.6;
        }
        .footer-bottom-bar a { color: #2F5D9F; text-decoration: none; }
        .footer-bottom-bar a:hover { text-decoration: underline; }

        @media (max-width: 960px) {
            .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 28px; }
            .footer-links { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 768px) {
            .footer-inner { padding: 28px 16px 20px; }
            .footer-links { grid-template-columns: repeat(2, 1fr); gap: 20px; }
            .footer-col h4 { font-size: 0.82rem; }
        }
        @media (max-width: 480px) {
            .footer-links { grid-template-columns: 1fr 1fr; gap: 16px; }
        }

        /* ── Responsive ── */
        @media (max-width: 768px) {
            /* Account for sticky nav + action bar on mobile */
            #bpFormSection { padding-top: 12px; }
            /* Hero */
            .bp-hero { padding: 24px 16px 28px; }
            .bp-hero-h1 { font-size: 1.5rem !important; }
            .bp-hero-layout { grid-template-columns: 1fr; }
            .bp-hero-visual { display: none; }
            .bp-hero-tags { gap: 6px; }
            .bp-hero-tag { font-size: 11px; padding: 3px 10px; }

            /* Action bar — horizontal scroll on mobile */
            .bp-action-bar-inner { padding: 8px 12px; gap: 8px; }
            .bp-action-bar-label { display: none; }
            .bp-dash-cards { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
            .bp-dash-cards::-webkit-scrollbar { display: none; }
            .bp-dc { padding: 8px 12px; flex-shrink: 0; min-width: auto; gap: 6px; }
            .bp-dc-title { font-size: 12px; white-space: nowrap; }
            .bp-dc-icon { font-size: 1rem; }

            /* Form spacing below sticky bars */
            #bpFormSection { scroll-margin-top: 120px; }
            #bpFormSection .container { padding-top: 20px; }

            /* Welcome section */
            .bp-welcome-heading-row { padding: 24px 16px 0; }
            .bp-welcome-heading { font-size: 18px; }
            .bp-welcome-inner { grid-template-columns: 1fr; padding: 16px 16px 28px; gap: 10px; }
            .bp-wc { padding: 18px 16px; }
            .bp-how-body { padding: 0 16px; }
            .bp-how-inner { grid-template-columns: 1fr; gap: 12px; }

            /* Form */
            .bp-white-inner { padding: 16px; }
            .bp-ai-tools { grid-template-columns: repeat(2,1fr); }
            .bp-form-top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
            .bp-form-done-bar { padding: 14px 16px; }
            .bp-form-done-btn { width: 100%; justify-content: center; }

            /* Action cards */
            .bp-action-cards { grid-template-columns: 1fr; }
            .bp-action-card { padding: 18px 16px; }

            /* Prompt viewer */
            .bp-pc { border-radius: 12px; }
            .bp-white-inner { padding: 12px 16px 24px; }
        }

        @media (max-width: 480px) {
            .bp-hero { padding: 20px 14px 24px; }
            .bp-hero-h1 { font-size: 1.3rem !important; }
            .bp-hero-sub { font-size: 13.5px !important; }
            .bp-dash-cards { grid-template-columns: 1fr 1fr; }
            .bp-dc-title { font-size: 11px; }
        }

        .chip-preview {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            padding: 20px;
            max-width: 600px;
            width: 90%;
            z-index: 20000;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translate(-50%, -50%) scale(0.9); 
            }
            to { 
                opacity: 1; 
                transform: translate(-50%, -50%) scale(1); 
            }
        }

        .hint-inline {
            font-size: 0.85rem;
        }
        
    

/* ── Save to Prompts Modal ─────────────────────────────────────────────── */
/* ── Save to Prompts Modal ────────────────────────────────────────── */
.spm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.spm-overlay.open { display: flex; }
.spm-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 620px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15,23,42,0.2);
    animation: spm-in 0.2s cubic-bezier(0.4,0,0.2,1);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@keyframes spm-in {
    from { opacity:0; transform:translateY(12px) scale(0.98); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.spm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}
.spm-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}
.spm-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}
.spm-close {
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.spm-close:hover { background: var(--border); color: var(--ink); }
.spm-field { margin-bottom: 18px; }
.spm-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    display: block;
    margin-bottom: 7px;
}
.spm-input,
.spm-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: #FAFBFE;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}
.spm-textarea { font-size: 13px; line-height: 1.65; resize: vertical; }
.spm-input:focus,
.spm-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47,93,159,0.1);
}
.spm-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.spm-btn-cancel {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.spm-btn-cancel:hover { background: var(--bg); border-color: #cbd5e1; color: var(--ink); }
.spm-btn-save {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2B4C8C, #3567B5);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.15s;
}
.spm-btn-save:hover { filter: brightness(1.08); }
