    /* ============================================
       BusinessVance Client Portal — Modern Theme
       ============================================ */
    .bv-portal { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1a1a2e; width: 100vw; margin-left: calc(-50vw + 50%); max-width: none; background: #ffffff; overflow-x: hidden; }
    .bv-portal-login-message { padding: 60px 40px; text-align: center; background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%); border-radius: 12px; margin: 40px auto; max-width: 500px; border: 1px solid #e0e0e0; }
    .bv-portal-login-message a { color: var(--bv-primary); font-weight: 600; }

    /* Header */
    .bv-portal-header { background: linear-gradient(135deg, var(--bv-primary) 0%, var(--bv-primary-light) 50%, var(--bv-primary) 100%); color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
    .bv-portal-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; flex-wrap: wrap; gap: 12px; }
    .bv-portal-brand { display: flex; align-items: center; gap: 12px; }
    .bv-portal-brand h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
    .bv-portal-logo { font-size: 28px; color: var(--bv-accent); filter: drop-shadow(0 0 4px rgba(212,175,55,0.4)); }
    .bv-portal-user-info { font-size: 14px; color: rgba(255,255,255,0.85); text-align: right; }
    .bv-portal-user-info strong { color: #fff; }
    .bv-portal-company { display: block; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }

    /* Mobile hamburger */
    .bv-portal-mobile-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,0.3); border-radius: 6px; padding: 6px 10px; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
    .bv-portal-mobile-toggle:hover { border-color: var(--bv-accent); }

    /* Body */
    .bv-portal-body { display: flex; min-height: calc(100vh - 120px); }

    /* Sidebar */
    .bv-portal-sidebar { width: 300px; background: linear-gradient(180deg, #f8f9fb 0%, #f0f2f5 100%); border-right: 1px solid #e5e7eb; padding: 24px 20px; flex-shrink: 0; overflow-y: auto; }
    .bv-portal-sidebar h3 { margin: 0 0 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #6b7280; padding: 0 4px; }
    .bv-portal-project-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-bottom: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: #1a1a2e; font-size: 14px; transition: all 0.25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
    .bv-portal-project-item:hover { border-color: var(--bv-primary); background: #f0f4f8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,43,92,0.1); }
    .bv-portal-project-item.active { border-color: var(--bv-primary); background: linear-gradient(135deg, var(--bv-primary) 0%, var(--bv-primary-light) 100%); color: #fff; box-shadow: 0 4px 16px rgba(0,43,92,0.25); }
    .bv-portal-project-item.active .bv-portal-project-num { color: #fff; }
    .bv-portal-project-item.active .bv-portal-project-status-badge { background: rgba(255,255,255,0.2); color: #fff; }
    .bv-portal-project-num { font-weight: 600; font-size: 13px; color: var(--bv-primary); }

    /* Main Content */
    .bv-portal-main { flex: 1; padding: 0; display: flex; flex-direction: column; }

    /* Tabs — underline style (default) */
    .bv-portal-tabs { display: flex; border-bottom: 2px solid #e5e7eb; padding: 0 28px; overflow-x: auto; background: #fff; flex-shrink: 0; -webkit-overflow-scrolling: touch; }
    .bv-portal-tab { padding: 14px 22px; text-decoration: none; color: #6b7280; font-size: 14px; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all 0.2s ease; position: relative; }
    .bv-portal-tab:hover { color: var(--bv-primary); background: rgba(0,43,92,0.03); }
    .bv-portal-tab.active { border-bottom-color: var(--bv-primary); color: var(--bv-primary); font-weight: 600; }

    /* Pill tab style */
    .bv-portal[data-tab-style="pill"] .bv-portal-tabs { border-bottom: none; }
    .bv-portal[data-tab-style="pill"] .bv-portal-tab { border-bottom: none; margin-bottom: 0; border-radius: 8px 8px 0 0; }
    .bv-portal[data-tab-style="pill"] .bv-portal-tab.active { background: var(--bv-primary); color: #fff; border: none; }

    /* Content */
    .bv-portal-content { padding: 28px; flex: 1; }

    /* Status Badges */
    .bv-portal-project-status-badge, .bv-status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
    .bv-status-awaiting-agreement { background: #FEF3C7; color: #92400E; }
    .bv-status-awaiting-questionnaire { background: #FEF3C7; color: #92400E; }
    .bv-status-awaiting-documents { background: #F3E8FF; color: #6B21A8; }
    .bv-status-in-progress { background: #DBEAFE; color: #1E40AF; }
    .bv-status-quality-check { background: #D1FAE5; color: #065F46; }
    .bv-status-completed { background: #D1FAE5; color: #065F46; }
    .bv-status-delivered { background: #059669; color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
    .bv-status-archived { background: #F3F4F6; color: #6B7280; }

    /* Overview */
    .bv-overview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
    .bv-overview-header h2 { margin: 0; color: var(--bv-primary); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
    .bv-subtitle { color: #6b7280; font-size: 14px; margin: 4px 0 0; }

    /* Progress */
    .bv-progress-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .bv-progress-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: #374151; }
    .bv-progress-percent { color: var(--bv-primary); font-size: 16px; font-weight: 700; }
    .bv-progress-bar { height: 10px; background: #e5e7eb; border-radius: 10px; overflow: hidden; }
    .bv-progress-fill { height: 100%; background: linear-gradient(90deg, var(--bv-secondary), var(--bv-primary)); border-radius: 10px; transition: width 0.6s ease; position: relative; }
    .bv-progress-fill::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmer 2s infinite; }
    @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
    @keyframes bv-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

    /* Steps Indicator */
    .bv-steps { display: flex; justify-content: space-between; margin-top: 20px; padding: 0 8px; }
    .bv-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
    .bv-step::before { content: ""; position: absolute; top: 16px; left: -50%; right: 50%; height: 2px; background: #e5e7eb; z-index: 0; }
    .bv-step:first-child::before { display: none; }
    .bv-step-dot { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #9CA3AF; position: relative; z-index: 1; transition: all 0.3s ease; }
    .bv-step-dot.done { background: #059669; color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
    .bv-step-dot.active { background: var(--bv-primary); color: #fff; box-shadow: 0 2px 8px rgba(0,43,92,0.3); }
    .bv-step-label { font-size: 11px; color: #9CA3AF; margin-top: 8px; font-weight: 500; text-align: center; }
    .bv-step-label.done { color: #059669; font-weight: 600; }
    .bv-step-label.active { color: var(--bv-primary); font-weight: 600; }

    /* Guidance Banners */
    .bv-guidance-banner { display: flex; gap: 20px; align-items: flex-start; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
    .bv-guidance-icon { font-size: 32px; flex-shrink: 0; line-height: 1; }
    .bv-guidance-content { flex: 1; min-width: 0; }
    .bv-guidance-content h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
    .bv-guidance-content p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #374151; }
    .bv-guidance-btn { display: inline-block; padding: 10px 24px; background: var(--bv-primary); color: #fff !important; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
    .bv-guidance-btn:hover { opacity: 0.9; transform: translateY(-1px); }
    .bv-guidance-contact { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.1); }
    .bv-guidance-contact h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #374151; }
    .bv-guidance-contact p { margin: 4px 0; font-size: 13px; color: #4b5563; }
    .bv-guidance-contact a { color: var(--bv-primary); text-decoration: underline; }

    .bv-guidance-action { background: #EFF6FF; border: 1px solid #BFDBFE; }
    .bv-guidance-action .bv-guidance-icon { margin-top: 2px; }
    .bv-guidance-action h3 { color: #1E40AF; }

    .bv-guidance-complete { background: #F0FDF4; border: 1px solid #BBF7D0; }
    .bv-guidance-complete h3 { color: #166534; }

    /* Always-visible Contact Card */
    .bv-contact-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .bv-contact-card h4 { margin: 0 0 12px; color: var(--bv-primary); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
    .bv-contact-card-body { display: flex; flex-wrap: wrap; gap: 12px 24px; }
    .bv-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; }
    .bv-contact-icon { font-size: 16px; line-height: 1; }
    .bv-contact-item a { color: var(--bv-primary); text-decoration: none; font-weight: 500; }
    .bv-contact-item a:hover { text-decoration: underline; }

    @media (max-width: 768px) {
        .bv-guidance-banner { flex-direction: column; gap: 12px; padding: 18px; }
        .bv-info-grid { grid-template-columns: 1fr; }
        .bv-contact-card-body { flex-direction: column; gap: 8px; }
    }
    .bv-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
    .bv-info-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: box-shadow 0.2s ease; }
    .bv-info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
    .bv-info-card h4 { margin: 0 0 14px; color: var(--bv-primary); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
    .bv-info-card p { margin: 8px 0; font-size: 14px; color: #4b5563; line-height: 1.5; }
    .bv-info-card p strong { color: #1a1a2e; }
    .bv-service-list { margin: 0; padding-left: 20px; }
    .bv-service-list li { margin: 6px 0; font-size: 14px; color: #4b5563; position: relative; }
    .bv-service-list li::before { content: "\2022"; color: var(--bv-secondary); font-weight: 700; margin-right: 8px; }

    /* Notes */
    .bv-notes-section { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border: 1px solid #FDE68A; border-radius: 12px; padding: 20px 24px; }
    .bv-notes-section h4 { margin: 0 0 10px; color: #92400E; font-size: 15px; font-weight: 600; }
    .bv-notes-content { font-size: 14px; color: #78350F; line-height: 1.7; }

    /* Agreement */
    .bv-agreement-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; margin: 20px 0; max-height: 500px; overflow-y: auto; font-size: 14px; line-height: 1.7; color: #374151; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .bv-agreement-signed { text-align: center; padding: 32px; background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); border: 1px solid #6EE7B7; border-radius: 12px; margin-bottom: 20px; }
    .bv-check-icon { font-size: 40px; color: #059669; display: inline-block; animation: checkPop 0.5s ease; }
    @keyframes checkPop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
    .bv-agreement-signed h3 { margin: 12px 0 8px; color: #065F46; font-size: 20px; }
    .bv-agreement-signed p { margin: 0; color: #047857; font-size: 15px; }
    .bv-agreement-warning { padding: 14px 20px; background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); border: 1px solid #FCD34D; border-radius: 10px; margin-bottom: 20px; color: #92400E; font-size: 14px; }
    .bv-agreement-sign-form { background: #f8f9fb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; margin-top: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .bv-agreement-sign-form h3 { margin: 0 0 8px; color: var(--bv-primary); }
    .bv-agreement-sign-form > p { color: #6b7280; font-size: 14px; margin: 0 0 20px; }

    /* Forms */
    .bv-form-group { margin-bottom: 20px; }
    .bv-form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #374151; }
    .bv-form-group input, .bv-form-group select, .bv-form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: all 0.2s ease; background: #fff; color: #1a1a2e; }
    .bv-form-group input:focus, .bv-form-group select:focus, .bv-form-group textarea:focus { outline: none; border-color: var(--bv-primary); box-shadow: 0 0 0 3px rgba(0,43,92,0.1); }
    .bv-form-group input:focus-visible, .bv-form-group select:focus-visible, .bv-form-group textarea:focus-visible { outline: 2px solid var(--bv-accent, #D4AF37); outline-offset: 2px; }
    .bv-form-group .description { font-size: 12px; color: #9CA3AF; margin-top: 6px; }

    /* Buttons */
    .bv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s ease; }
    .bv-btn-primary { background: var(--bv-primary); color: #fff; }
    .bv-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    .bv-btn-accent { background: var(--bv-accent); color: var(--bv-primary); }
    .bv-btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }
    .bv-btn-success { background: #059669; color: #fff; }
    .bv-btn-success:hover { background: #047857; }
    .bv-btn-outline { background: transparent; color: var(--bv-primary); border: 2px solid var(--bv-primary); }
    .bv-btn-outline:hover { background: var(--bv-primary); color: #fff; }
    .bv-btn-danger { background: #DC2626; color: #fff; }
    .bv-btn-danger:hover { background: #B91C1C; }
    .bv-btn-danger-outline { background: transparent; color: #DC2626; border: 2px solid #DC2626; }
    .bv-btn-danger-outline:hover { background: #DC2626; color: #fff; }
    .bv-btn-sm { padding: 6px 14px; font-size: 12px; }

    /* Upload area */
    .bv-upload-area { border: 2px dashed #d1d5db; border-radius: 12px; padding: 32px; text-align: center; background: #f9fafb; transition: all 0.2s ease; cursor: pointer; }
    .bv-upload-area:hover, .bv-upload-area.dragover { border-color: var(--bv-primary); background: rgba(0,43,92,0.03); }
    .bv-upload-icon { font-size: 40px; margin-bottom: 12px; }

    /* ============================================
       Questionnaire
       ============================================ */
    .bv-questionnaire-section { max-width: 100%; }
    .bv-q-intro { margin-bottom: 28px; }
    .bv-q-intro h2 { margin: 0 0 6px; color: var(--bv-primary); font-size: 24px; font-weight: 700; }
    .bv-q-intro p { margin: 0; color: #6b7280; font-size: 15px; line-height: 1.5; }

    /* Section Card */
    .bv-q-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); overflow: hidden; transition: box-shadow 0.2s ease; }
    .bv-q-section:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

    /* Section Header */
    .bv-q-section-header { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px 16px; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-bottom: 1px solid #e5e7eb; }
    .bv-q-section-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bv-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,43,92,0.2); }
    .bv-q-section-info { flex: 1; min-width: 0; }
    .bv-q-section-info h3 { margin: 0 0 4px; color: var(--bv-primary); font-size: 18px; font-weight: 700; line-height: 1.3; }
    .bv-q-source { display: inline-block; font-size: 12px; color: #9CA3AF; font-style: italic; margin: 0 0 4px; padding: 2px 10px; background: #f3f4f6; border-radius: 12px; }
    .bv-q-desc { margin: 6px 0 0; color: #6b7280; font-size: 13px; line-height: 1.5; }

    /* Section Body */
    .bv-q-section-body { padding: 20px 24px 24px; }

    /* Field */
    .bv-q-field { margin-bottom: 22px; }
    .bv-q-field:last-child { margin-bottom: 0; }
    .bv-q-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #374151; line-height: 1.4; }
    .bv-q-field input[type="text"], .bv-q-field input[type="number"], .bv-q-field input[type="email"], .bv-q-field input[type="tel"], .bv-q-field input[type="date"], .bv-q-field input[type="url"], .bv-q-field input[type="file"], .bv-q-field select, .bv-q-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: all 0.2s ease; background: #fff; color: #1a1a2e; font-family: inherit; }
    .bv-q-field input:focus, .bv-q-field select:focus, .bv-q-field textarea:focus { outline: none; border-color: var(--bv-primary); box-shadow: 0 0 0 3px rgba(0,43,92,0.1); }
    .bv-q-field input:focus-visible, .bv-q-field select:focus-visible, .bv-q-field textarea:focus-visible { outline: 2px solid var(--bv-accent, #D4AF37); outline-offset: 2px; }
    .bv-q-field textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
    .bv-q-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
    .bv-q-field input[type="date"] { cursor: text; }
    .bv-q-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
    .bv-q-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

    /* Help Text */
    .bv-q-help { display: block; margin: 4px 0 8px; font-size: 12px; color: #9CA3AF; line-height: 1.4; font-style: italic; }

    /* Headings & Paragraphs */
    .bv-q-heading { padding: 12px 0 6px; margin-bottom: 10px; border-bottom: 1px solid #f0f0f1; }
    .bv-q-heading h4 { margin: 0; color: var(--bv-primary); font-size: 15px; font-weight: 700; }
    .bv-q-paragraph p { margin: 8px 0; color: #6b7280; font-size: 14px; line-height: 1.6; background: #f8f9fb; padding: 12px 16px; border-radius: 8px; border-left: 3px solid var(--bv-secondary); }

    /* Radio Group — pill/tag style with clean wrapping */
    .bv-q-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
    .bv-q-radio { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; font-size: 14px; color: #374151; cursor: pointer; transition: all 0.15s ease; background: #f3f4f6; border: 1.5px solid #e5e7eb; border-radius: 8px; user-select: none; }
    .bv-q-radio:hover { background: #e8edf2; border-color: #c8cdd3; }
    .bv-q-radio input[type="radio"] { accent-color: var(--bv-primary); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; margin: 0; }
    .bv-q-radio input[type="radio"]:checked + span { color: var(--bv-primary); font-weight: 600; }
    .bv-q-radio:has(input:checked) { background: #e0ecf8; border-color: var(--bv-primary); }

    /* Checkbox Group — pill/tag style with clean wrapping */
    .bv-q-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
    .bv-q-checkbox { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; font-size: 14px; color: #374151; cursor: pointer; transition: all 0.15s ease; background: #f3f4f6; border: 1.5px solid #e5e7eb; border-radius: 8px; user-select: none; }
    .bv-q-checkbox:hover { background: #e8edf2; border-color: #c8cdd3; }
    .bv-q-checkbox input[type="checkbox"] { accent-color: var(--bv-primary); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; margin: 0; }
    .bv-q-checkbox input[type="checkbox"]:checked + span { color: var(--bv-primary); font-weight: 600; }
    .bv-q-checkbox:has(input:checked) { background: #e0ecf8; border-color: var(--bv-primary); }

    /* File Upload */
    .bv-q-file-area { position: relative; border: 2px dashed #d1d5db; border-radius: 10px; padding: 20px; text-align: center; background: #f9fafb; cursor: pointer; transition: all 0.2s ease; }
    .bv-q-file-area:hover { border-color: var(--bv-primary); background: rgba(0,43,92,0.02); }
    .bv-q-file-area input[type="file"] { width: 100%; cursor: pointer; }
    .bv-q-file-saved { display: inline-block; margin-top: 8px; padding: 4px 12px; background: #D1FAE5; color: #065F46; border-radius: 6px; font-size: 13px; font-weight: 600; }

    /* Actions */
    .bv-q-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding: 24px 0 0; border-top: 2px solid #e5e7eb; }
    .bv-q-actions-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .bv-q-actions .bv-btn { padding: 14px 28px; font-size: 15px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .bv-q-actions .bv-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }
    .bv-q-actions .bv-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    #bv-q-status { flex-basis: 100%; text-align: center; font-size: 14px; min-height: 20px; }
    .bv-q-saving { color: #6b7280; font-size: 14px; font-style: italic; }
    .bv-q-saved { color: #059669; font-size: 14px; font-weight: 600; }
    .bv-q-error { color: #DC2626; font-size: 14px; font-weight: 600; }

    /* Questionnaire Responsive */
    @media (max-width: 768px) {
        .bv-q-section-header { flex-direction: column; gap: 10px; padding: 16px 18px 12px; }
        .bv-q-section-num { width: 30px; height: 30px; font-size: 13px; }
        .bv-q-section-body { padding: 16px 18px 20px; }
        .bv-q-radio, .bv-q-checkbox { padding: 8px 14px; font-size: 13px; }
        .bv-q-actions { flex-direction: column; align-items: stretch; gap: 10px; }
        .bv-q-actions-main { flex-direction: column; }
        .bv-q-actions .bv-btn { width: 100%; text-align: center; justify-content: center; }
        .bv-questionnaire-section { max-width: 100%; }
    }

    /* ============================================
       Reset Confirmation Modal
       ============================================ */
    .bv-q-reset-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99999; display: flex; align-items: center; justify-content: center; animation: bvResetFadeIn 0.2s ease; }
    @keyframes bvResetFadeIn { from { opacity: 0; } to { opacity: 1; } }
    .bv-q-reset-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 440px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); text-align: center; animation: bvResetSlideIn 0.25s ease; }
    @keyframes bvResetSlideIn { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
    .bv-q-reset-modal-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
    .bv-q-reset-modal h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #111827; }
    .bv-q-reset-modal p { margin: 0 0 24px; font-size: 15px; color: #6b7280; line-height: 1.6; }
    .bv-q-reset-modal-actions { display: flex; gap: 12px; justify-content: center; }
    .bv-q-reset-modal-actions .bv-btn { min-width: 140px; padding: 12px 24px; font-size: 15px; }
    @media (max-width: 768px) {
        .bv-q-reset-modal { margin: 16px; width: calc(100% - 32px); }
        .bv-q-reset-modal-actions { flex-direction: column-reverse; }
        .bv-q-reset-modal-actions .bv-btn { width: 100%; }
    }

    /* ============================================
       Star Rating
       ============================================ */
    .bv-q-rating-wrap { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
    .bv-q-star { display: inline-block; font-size: 32px; line-height: 1; cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; -webkit-tap-highlight-color: transparent; user-select: none; padding: 2px 3px; }
    .bv-q-star:hover { transform: scale(1.2); }
    .bv-q-star:active { transform: scale(0.95); }
    .bv-q-star-filled { color: #f59e0b !important; }
    .bv-q-star-empty { color: #d1d5db !important; }
    @media (max-width: 600px) {
        .bv-q-star { font-size: 28px; padding: 2px 2px; }
    }

    /* ============================================
       Repeatable Table
       ============================================ */
    .bv-q-repeatable-wrap { width: 100%; }
    .bv-q-rep-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; border: 1.5px solid #e5e7eb; }
    .bv-q-rep-table table { width: 100%; border-collapse: collapse; min-width: 400px; }
    .bv-q-rep-table thead { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); }
    .bv-q-rep-table th { padding: 10px 12px; font-size: 13px; font-weight: 600; color: #374151; text-align: left; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
    .bv-q-rep-table td { padding: 4px 6px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
    .bv-q-rep-table tr:last-child td { border-bottom: none; }
    .bv-q-rep-table tr:hover td { background: #f8fafc; }
    .bv-q-rep-cell { width: 100%; padding: 8px 10px !important; border: 1.5px solid #e5e7eb !important; border-radius: 6px !important; font-size: 13px !important; box-sizing: border-box !important; min-width: 80px; transition: border-color 0.2s ease; }
    .bv-q-rep-cell:focus { outline: none; border-color: var(--bv-primary) !important; box-shadow: 0 0 0 2px rgba(0,43,92,0.1) !important; }
    .bv-q-rep-remove { background: none; border: none; color: #9CA3AF; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.15s ease; line-height: 1; }
    .bv-q-rep-remove:hover { color: #DC2626; background: #FEF2F2; }
    .bv-q-rep-add-row { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }

    @media (max-width: 600px) {
        .bv-q-rep-table { border-radius: 6px; }
        .bv-q-rep-table table { min-width: 300px; font-size: 12px; }
        .bv-q-rep-table th { padding: 8px 8px; font-size: 12px; }
        .bv-q-rep-table td { padding: 3px 4px; }
        .bv-q-rep-cell { padding: 6px 8px !important; font-size: 12px !important; min-width: 60px; }
    }

    /* ============================================
       Multi-File Upload
       ============================================ */
    .bv-q-multifile-wrap { width: 100%; }
    .bv-q-multifile-dropzone { border: 2px dashed #d1d5db; border-radius: 10px; padding: 24px 16px; text-align: center; background: #f9fafb; cursor: pointer; transition: all 0.2s ease; margin-bottom: 12px; }
    .bv-q-multifile-dropzone:hover, .bv-q-multifile-dropzone.dragover { border-color: var(--bv-primary); background: rgba(0,43,92,0.03); }
    .bv-q-multifile-dropzone-icon { font-size: 32px; margin-bottom: 8px; display: block; color: #9CA3AF; }
    .bv-q-multifile-dropzone-text { font-size: 14px; color: #6b7280; }
    .bv-q-multifile-dropzone-text strong { color: var(--bv-primary); }
    .bv-q-multifile-input { display: none; }
    .bv-q-multifile-list { display: flex; flex-direction: column; gap: 8px; }
    .bv-q-mf-file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; color: #374151; }
    .bv-q-mf-file-icon { font-size: 18px; flex-shrink: 0; }
    .bv-q-mf-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bv-q-mf-file-size { color: #9CA3AF; font-size: 12px; flex-shrink: 0; }
    .bv-q-mf-remove { background: none; border: none; color: #9CA3AF; cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 4px; transition: all 0.15s; flex-shrink: 0; }
    .bv-q-mf-remove:hover { color: #DC2626; background: #FEF2F2; }

    /* ============================================
       Static Text & Static Image (display-only)
       ============================================ */
    .bv-q-static-text { background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%); border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; margin: 0; color: #374151; font-size: 14px; line-height: 1.7; }
    .bv-q-static-text p { margin: 0 0 10px; }
    .bv-q-static-text p:last-child { margin-bottom: 0; }
    .bv-q-static-image { text-align: center; }
    .bv-q-static-image img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .bv-q-static-image figcaption { margin-top: 8px; font-size: 13px; color: #6b7280; font-style: italic; }

    /* ============================================
       Signature Pad
       ============================================ */
    .bv-q-signature-wrap { border: 2px solid #d1d5db; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color 0.2s ease; touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; position: relative; }
    .bv-q-signature-wrap:hover { border-color: #c8cdd3; }
    .bv-q-signature-wrap.bv-q-sig-confirmed { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
    .bv-q-signature-canvas { display: block; width: 100%; height: 160px; cursor: crosshair; touch-action: none; background: repeating-linear-gradient(0deg, transparent, transparent 39px, #f3f4f6 39px, #f3f4f6 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, #f3f4f6 39px, #f3f4f6 40px); background-size: 40px 40px; }
    .bv-q-signature-canvas[style*="pointer-events: none"] { cursor: default; }
    .bv-q-sig-actions { display: flex; gap: 8px; padding: 10px 14px; background: #f8f9fb; border-top: 1px solid #e5e7eb; }
    .bv-q-sig-confirm, .bv-q-sig-clear { padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s ease; min-height: 36px; min-width: 44px; }
    .bv-q-sig-confirm { background: #059669; color: #fff; display: none; }
    .bv-q-sig-confirm:hover { background: #047857; }
    .bv-q-sig-clear { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; display: none; }
    .bv-q-sig-clear:hover { background: #fee2e2; color: #DC2626; border-color: #fca5a5; }
    .bv-q-sig-hint { font-size: 12px; color: #9CA3AF; font-style: italic; margin-top: 6px; }

    @media (max-width: 600px) {
        .bv-q-signature-canvas { height: 120px; }
        .bv-q-sig-actions { padding: 8px 10px; gap: 6px; }
        .bv-q-sig-confirm, .bv-q-sig-clear { padding: 8px 14px; font-size: 14px; }
    }

    /* Messages */
    .bv-messages-list { display: flex; flex-direction: column; gap: 12px; }
    .bv-message-bubble { padding: 14px 18px; border-radius: 12px; max-width: 80%; font-size: 14px; line-height: 1.6; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
    .bv-message-sent { background: linear-gradient(135deg, var(--bv-primary), var(--bv-primary-light-20)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
    .bv-message-received { background: #f3f4f6; color: #1a1a2e; align-self: flex-start; border-bottom-left-radius: 4px; }
    .bv-message-meta { font-size: 11px; color: rgba(255,255,255,0.85); margin-top: 6px; }
    .bv-message-received .bv-message-meta { color: #9CA3AF; }

    /* Reports */
    .bv-report-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.2s; }
    .bv-report-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

    /* Timeline */
    .bv-timeline { position: relative; padding-left: 28px; }
    .bv-timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
    .bv-timeline-item { position: relative; margin-bottom: 20px; }
    .bv-timeline-dot { position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bv-secondary); border: 2px solid #fff; box-shadow: 0 0 0 2px #e5e7eb; }

    /* Empty State */
    .bv-portal-empty-state { text-align: center; padding: 60px 40px; }
    .bv-portal-empty-icon { font-size: 56px; margin-bottom: 16px; }
    .bv-portal-empty-state h2 { color: var(--bv-primary); font-size: 24px; margin-bottom: 8px; }
    .bv-portal-empty-state p { color: #6b7280; font-size: 15px; line-height: 1.6; max-width: 460px; margin: 0 auto 16px; }
    .bv-portal-empty-state a { color: var(--bv-primary); font-weight: 600; }

    /* Required asterisk */
    .bv-required { color: #DC2626; font-weight: 600; }

    /* Responsive */
    @media (max-width: 768px) {
        .bv-portal-body { flex-direction: column; }
        .bv-portal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; padding: 16px; }
        .bv-portal-sidebar h3 { display: none; }
        .bv-portal-mobile-toggle { display: inline-block; }
        .bv-portal-main { width: 100%; }
        .bv-portal-tabs { padding: 0 16px; }
        .bv-portal-tab { padding: 12px 16px; font-size: 13px; }
        .bv-portal-content { padding: 20px 16px; }
        .bv-info-grid { grid-template-columns: 1fr; }
        .bv-overview-header { flex-direction: column; }
        .bv-portal-header-inner { padding: 12px 16px; }
    }

    /* ============================================
       Focus visible styles for accessibility
       ============================================ */
    .bv-portal *:focus-visible {
        outline: 2px solid var(--bv-accent, #D4AF37);
        outline-offset: 2px;
    }

    /* ============================================
       Prefers reduced motion
       ============================================ */
    @media (prefers-reduced-motion: reduce) {
        .bv-portal * {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
