/* =================================================================
   SENTENCE BUILDER V2 EDITOR STYLES
   Styles for the Sentence Builder V2 Editor in Deck Builder
   ================================================================= */

/* =================================================================
   HEADER CONTROLS
   ================================================================= */

.sb2-header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.sb2-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb2-control-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb2-lesson-control {
    flex: 1;
    min-width: 200px;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.sb2-lesson-control select {
    flex: 1;
}

.sb2-header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* =================================================================
   NO LESSON MESSAGE
   ================================================================= */

.sb2-no-lesson-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, #6b7280);
}

.sb2-no-lesson-message i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.sb2-no-lesson-message p {
    margin: 8px 0;
}

.sb2-no-lesson-message .hint {
    font-size: 13px;
    opacity: 0.8;
}

/* =================================================================
   SETTINGS PREVIEW
   ================================================================= */

.sb2-settings-preview {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.sb2-settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sb2-settings-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
}

.sb2-settings-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.sb2-setting-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-primary, #374151);
}

.sb2-setting-chip i {
    font-size: 10px;
    color: var(--primary, #4f46e5);
}

/* =================================================================
   SEQUENCES SECTION
   ================================================================= */

.sb2-sequences-section {
    margin-bottom: 24px;
}

.sb2-sequences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sb2-sequences-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb2-sequence-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary, #6b7280);
    margin-left: 8px;
}

.sb2-sequences-list {
    min-height: 100px;
}

/* =================================================================
   SEQUENCE ITEM
   ================================================================= */

.sb2-sequence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sb2-sequence-item:hover {
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sb2-sequence-item.sb2-edited {
    background: #fffbeb;
    border-color: #f59e0b;
}

.sb2-sequence-drag-handle {
    cursor: grab;
    color: var(--text-secondary, #9ca3af);
    padding: 4px;
}

.sb2-sequence-drag-handle:hover {
    color: var(--text-primary, #374151);
}

.sb2-sequence-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #4f46e5);
    min-width: 32px;
}

.sb2-sequence-content {
    flex: 1;
    min-width: 0;
}

.sb2-sequence-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary, #1f2937);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb2-sequence-english {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb2-sequence-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sb2-sequence-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sb2-difficulty-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.sb2-difficulty-badge.sb2-difficulty-easy {
    background: #dcfce7;
    color: #166534;
}

.sb2-difficulty-badge.sb2-difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.sb2-difficulty-badge.sb2-difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.sb2-video-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.sb2-video-badge.has-video {
    background: #dcfce7;
    color: #166534;
}

.sb2-video-badge.no-video {
    background: #fef3c7;
    color: #92400e;
}

.sb2-sequence-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Sortable states */
.sb2-sequence-ghost {
    opacity: 0.4;
}

.sb2-sequence-chosen {
    background: var(--bg-secondary, #f3f4f6);
}

.sb2-sequence-drag {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Empty state */
.sb2-empty-sequences {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-empty-sequences i {
    font-size: 36px;
    opacity: 0.4;
    margin-bottom: 12px;
}

.sb2-empty-sequences .hint {
    font-size: 13px;
    opacity: 0.8;
}

/* =================================================================
   WORD BANK SECTION
   ================================================================= */

.sb2-wordbank-section {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.sb2-wordbank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary, #f9fafb);
    cursor: pointer;
}

.sb2-wordbank-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.sb2-wordbank-panel {
    padding: 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.sb2-wordbank-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sb2-wordbank-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: var(--bg-primary, white);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.sb2-wordbank-tab:hover {
    border-color: var(--primary, #4f46e5);
}

.sb2-wordbank-tab.active {
    background: var(--primary, #4f46e5);
    color: white;
    border-color: var(--primary, #4f46e5);
}

.sb2-wordbank-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 8px;
}

.sb2-wordbank-count {
    font-weight: 400;
    margin-left: 8px;
}

.sb2-wordbank-lessons-section,
.sb2-wordbank-preview-section,
.sb2-wordbank-excluded-section {
    margin-bottom: 16px;
}

.sb2-wordbank-lessons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb2-lesson-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.sb2-lesson-checkbox.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.sb2-lesson-checkbox .locked-hint {
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
    margin-left: 4px;
}

.sb2-wordbank-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 6px;
}

.sb2-word-chip {
    padding: 4px 10px;
    background: var(--bg-primary, white);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sb2-word-chip:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.sb2-wordbank-hint {
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
    margin-top: 8px;
}

.sb2-wordbank-excluded {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
}

.sb2-excluded-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fee2e2;
    border-radius: 4px;
    font-size: 12px;
    color: #991b1b;
}

.sb2-excluded-chip i {
    cursor: pointer;
    opacity: 0.7;
}

.sb2-excluded-chip i:hover {
    opacity: 1;
}

.sb2-no-excluded,
.sb2-no-words {
    font-size: 13px;
    color: var(--text-secondary, #9ca3af);
    font-style: italic;
}

.sb2-more-words {
    font-size: 12px;
    color: var(--text-secondary, #9ca3af);
    padding: 4px 8px;
}

.sb2-wordbank-advanced {
    padding-top: 12px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

/* =================================================================
   MODALS
   ================================================================= */

.sb2-modal .modal-content {
    max-width: 600px;
}

.sb2-modal-large .modal-content,
.sb2-modal-large.sb2-modal-content {
    max-width: 800px;
}

.sb2-modal-small .modal-content,
.sb2-modal-small.sb2-modal-content {
    max-width: 450px;
}

.sb2-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Form sections */
.sb2-form-section {
    margin-bottom: 20px;
}

.sb2-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #374151);
    margin-bottom: 8px;
}

.sb2-form-hint {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 8px;
}

.sb2-textarea {
    min-height: 80px;
    resize: vertical;
}

.sb2-readonly-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.sb2-divider {
    border: none;
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin: 24px 0;
}

.sb2-settings-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #374151);
    margin: 0 0 16px 0;
}

/* Mode toggle */
.sb2-mode-toggle {
    display: flex;
    gap: 8px;
}

.sb2-mode-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--bg-primary, white);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.sb2-mode-btn i {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.sb2-mode-btn span {
    font-size: 12px;
    font-weight: 500;
}

.sb2-mode-btn:hover {
    border-color: var(--primary, #4f46e5);
}

.sb2-mode-btn.active {
    border-color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary, #4f46e5);
}

/* Checkboxes */
.sb2-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sb2-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.sb2-checkbox-label input {
    width: 16px;
    height: 16px;
}

/* Sliders */
.sb2-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: var(--border-color, #e5e7eb);
    cursor: pointer;
}

.sb2-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary, #4f46e5);
    cursor: pointer;
}

.sb2-slider-value {
    font-weight: 600;
    color: var(--primary, #4f46e5);
}

/* Difficulty buttons */
.sb2-difficulty-buttons {
    display: flex;
    gap: 8px;
}

.sb2-difficulty-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--bg-primary, white);
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.sb2-difficulty-btn:hover {
    border-color: var(--primary, #4f46e5);
}

.sb2-difficulty-btn.active {
    border-color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.05);
}

.sb2-diff-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.sb2-diff-icon.easy { background: #22c55e; }
.sb2-diff-icon.medium { background: #f59e0b; }
.sb2-diff-icon.hard { background: #ef4444; }

.sb2-difficulty-hint {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    margin-top: 8px;
}

/* =================================================================
   SENTENCE PICKER
   ================================================================= */

.sb2-picker-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sb2-picker-filters input {
    flex: 1;
}

.sb2-picker-filters select {
    width: 150px;
}

.sb2-picker-list {
    max-height: 400px;
    overflow-y: auto;
}

.sb2-picker-item {
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sb2-picker-item:hover {
    border-color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.02);
}

.sb2-picker-item.sb2-picker-used {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-secondary, #f9fafb);
}

.sb2-picker-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sb2-picker-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #4f46e5);
}

.sb2-picker-used-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
}

.sb2-picker-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sb2-picker-english {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    margin-bottom: 8px;
}

.sb2-picker-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-picker-type {
    padding: 2px 8px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 4px;
}

.sb2-picker-audio.has-audio { color: #22c55e; }
.sb2-picker-audio.no-audio { color: #9ca3af; }

.sb2-empty-picker {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-empty-picker i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* =================================================================
   SEQUENCE EDITOR MODAL
   ================================================================= */

.sb2-sentence-preview {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    padding: 16px;
}

.sb2-sentence-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #4f46e5);
    margin-bottom: 6px;
}

.sb2-sentence-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sb2-sentence-english {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
    margin-bottom: 8px;
}

.sb2-sentence-meta {
    font-size: 11px;
    color: var(--text-secondary, #9ca3af);
}

/* Video preview */
.sb2-video-preview {
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.sb2-video-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb2-video-info i {
    font-size: 20px;
    color: #22c55e;
}

.sb2-video-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.sb2-no-video {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-video-actions {
    display: flex;
    gap: 8px;
}

/* Distractor chips */
.sb2-distractor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    margin-bottom: 12px;
}

.sb2-distractor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 16px;
    font-size: 13px;
}

.sb2-distractor-chip i {
    cursor: pointer;
    opacity: 0.6;
}

.sb2-distractor-chip i:hover {
    opacity: 1;
    color: #ef4444;
}

/* =================================================================
   PREVIEW MODAL
   ================================================================= */

.sb2-preview-body {
    background: var(--bg-secondary, #f3f4f6);
}

.sb2-preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-primary, white);
    border-radius: 8px;
    margin-bottom: 16px;
}

.sb2-preview-difficulty {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
}

.sb2-preview-difficulty span {
    font-weight: 600;
    text-transform: capitalize;
}

.sb2-preview-video {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    text-align: center;
}

.sb2-preview-video-player {
    max-width: 100%;
    max-height: 200px;
}

.sb2-preview-no-video {
    padding: 40px;
    color: #6b7280;
}

.sb2-preview-no-video i {
    font-size: 24px;
    margin-bottom: 8px;
}

.sb2-preview-slots {
    background: var(--bg-primary, white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.sb2-preview-slots-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 12px;
}

.sb2-preview-slots-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sb2-preview-slot {
    width: 60px;
    height: 60px;
    border: 2px dashed var(--border-color, #d1d5db);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary, #9ca3af);
}

.sb2-preview-pool {
    background: var(--bg-primary, white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.sb2-preview-pool-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 12px;
    text-align: center;
}

.sb2-preview-pool-words {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sb2-preview-word-btn {
    padding: 12px 20px;
    background: var(--bg-primary, white);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sb2-preview-word-btn:hover {
    border-color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.05);
}

.sb2-preview-word-card {
    width: 100px;
    background: var(--bg-primary, white);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sb2-preview-word-card:hover {
    border-color: var(--primary, #4f46e5);
}

.sb2-preview-word-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 6px;
}

.sb2-preview-word-label {
    font-size: 12px;
    font-weight: 500;
}

.sb2-preview-note {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    text-align: center;
    padding: 12px;
    background: var(--bg-primary, white);
    border-radius: 8px;
}

/* =================================================================
   VIDEO SELECTOR MODAL
   ================================================================= */

.sb2-video-actions-top {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sb2-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.sb2-video-item {
    background: var(--bg-secondary, #f3f4f6);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sb2-video-item:hover {
    border-color: var(--primary, #4f46e5);
}

.sb2-video-item.selected {
    border-color: var(--primary, #4f46e5);
    background: rgba(79, 70, 229, 0.05);
}

.sb2-video-thumbnail {
    width: 80px;
    height: 60px;
    margin: 0 auto 8px;
    background: #1f2937;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sb2-video-name {
    font-size: 11px;
    word-break: break-all;
}

.sb2-empty-videos {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary, #9ca3af);
}

.sb2-empty-videos i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.sb2-empty-videos .hint {
    font-size: 12px;
    opacity: 0.8;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .sb2-header-controls {
        flex-direction: column;
        gap: 12px;
    }

    .sb2-lesson-control {
        width: 100%;
    }

    .sb2-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .sb2-sequence-item {
        flex-wrap: wrap;
    }

    .sb2-sequence-content {
        order: 1;
        width: 100%;
        margin-top: 8px;
    }

    .sb2-sequence-badges {
        margin-left: auto;
    }

    .sb2-sequence-actions {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .sb2-picker-filters {
        flex-direction: column;
    }

    .sb2-picker-filters select {
        width: 100%;
    }

    .sb2-difficulty-buttons {
        flex-direction: column;
    }

    .sb2-mode-toggle {
        flex-direction: column;
    }
}

/* =================================================================
   DARK MODE
   ================================================================= */

@media (prefers-color-scheme: dark) {
    .sb2-sequence-item {
        background: var(--bg-secondary, #1f2937);
    }

    .sb2-sequence-item.sb2-edited {
        background: #422006;
    }

    .sb2-picker-item {
        background: var(--bg-secondary, #1f2937);
    }

    .sb2-picker-item.sb2-picker-used {
        background: var(--bg-primary, #111827);
    }

    .sb2-sentence-preview,
    .sb2-video-preview,
    .sb2-wordbank-preview {
        background: var(--bg-primary, #111827);
    }

    .sb2-word-chip,
    .sb2-distractor-chip {
        background: var(--bg-secondary, #1f2937);
    }
}
