        .edit-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 2rem;
        }

        .edit-header {
            margin-bottom: 2rem;
        }

        .edit-header h1 {
            font-size: 1.75rem;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .edit-header p {
            color: var(--text-secondary);
        }

        /* Provenance Line (for adapted resources) */
        .provenance-line {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            padding: 0.75rem 1rem;
            background: var(--background-warm);
            border-radius: var(--radius-md);
            border-left: 3px solid var(--primary-color);
        }

        .provenance-line a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .provenance-line a:hover {
            text-decoration: underline;
        }

        /* Section Cards */
        .section-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            cursor: pointer;
            border-bottom: 1px solid transparent;
            transition: background 0.2s;
        }

        .section-header:hover {
            background: var(--background-warm);
        }

        .section-card.expanded .section-header {
            border-bottom-color: var(--border-color);
        }

        .section-header h2 {
            font-size: 1rem;
            color: var(--text-primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .section-header .toggle-icon {
            font-size: 1.25rem;
            color: var(--text-secondary);
            transition: transform 0.2s;
        }

        .section-card.expanded .toggle-icon {
            transform: rotate(180deg);
        }

        .section-content {
            display: none;
            padding: 1.5rem;
        }

        .section-card.expanded .section-content {
            display: block;
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group:last-child {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .form-group label .required {
            color: var(--error-color);
        }

        .form-group .help-text {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            font-family: inherit;
            transition: border-color 0.2s;
            background: white;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-input::placeholder,
        .form-textarea::placeholder {
            color: #999;
        }

        .form-textarea {
            min-height: 100px;
            resize: vertical;
        }

        /* Grade Level and Subject Tag styles are in resource-form.css */

        /* Add Content Section */
        .add-content-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }

        .add-content-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .add-content-header h2 {
            font-size: 1rem;
            color: var(--text-primary);
            margin: 0;
        }

        /* Tabs */
        .tab-container {
            display: flex;
            border-bottom: 1px solid var(--border-color);
        }

        .tab-btn {
            flex: 1;
            padding: 1rem;
            background: none;
            border: none;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
        }

        .tab-btn:hover {
            color: var(--text-primary);
            background: var(--background-warm);
        }

        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        .tab-content {
            display: none;
            padding: 1.5rem;
        }

        .tab-content.active {
            display: block;
        }

        /* Upload Area */
        .upload-area {
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-md);
            padding: 3rem 2rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .upload-area:hover,
        .upload-area.dragover {
            border-color: var(--primary-color);
            background: var(--primary-light);
        }

        .upload-area .upload-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .upload-area h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
        }

        .upload-area p {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .upload-area input[type="file"] {
            display: none;
        }

        /* Paste Area */
        .paste-textarea {
            min-height: 200px;
            font-family: monospace;
        }

        /* URL Input */
        .url-input-group {
            display: flex;
            gap: 0.5rem;
        }

        .url-input-group input {
            flex: 1;
        }

        /* Content Type Selector */
        .content-type-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .content-type-row label {
            font-size: 0.875rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .content-type-row select {
            flex: 1;
            max-width: 200px;
        }

        .split-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            cursor: pointer;
            white-space: nowrap;
        }

        .split-checkbox input[type="checkbox"] {
            width: 1rem;
            height: 1rem;
            cursor: pointer;
        }

        .split-checkbox span {
            font-weight: normal;
            color: var(--text-secondary);
        }

        /* Items List */
        .items-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }

        .items-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .items-header h2 {
            font-size: 1rem;
            color: var(--text-primary);
            margin: 0;
        }

        .items-count {
            font-size: 0.875rem;
            color: var(--text-secondary);
            background: var(--background);
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
        }

        .items-list {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .items-list .empty {
            padding: 2rem 1.5rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        /* Add Existing Items Section */
        .add-existing-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }

        .add-existing-header h2 {
            font-size: 1rem;
            color: var(--text-primary);
            margin: 0 0 0.75rem 0;
        }

        .existing-search {
            position: relative;
        }

        .existing-search-input {
            width: 100%;
            padding: 0.75rem 1rem;
            padding-left: 2.5rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 0.875rem;
            transition: border-color 0.2s;
        }

        .existing-search-input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .existing-search-icon {
            position: absolute;
            left: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            pointer-events: none;
        }

        .existing-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            max-height: 300px;
            overflow-y: auto;
            z-index: 100;
            display: none;
            margin-top: 0.25rem;
        }

        .existing-search-results.visible {
            display: block;
        }

        .existing-result-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .existing-result-item:last-child {
            border-bottom: none;
        }

        .existing-result-item:hover {
            background: var(--background-warm);
        }

        .existing-result-icon {
            width: 32px;
            height: 32px;
            background: var(--background);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .existing-result-info {
            flex: 1;
            min-width: 0;
        }

        .existing-result-title {
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.875rem;
        }

        .existing-result-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .existing-result-add {
            color: var(--primary-color);
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .existing-no-results {
            padding: 1rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .existing-results-header {
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            background: var(--background);
            border-bottom: 1px solid var(--border-color);
        }

        .item-row {
            border-bottom: 1px solid var(--border-color);
        }

        .item-row:last-child {
            border-bottom: none;
        }

        .item-row.edited {
            background: rgba(37, 99, 235, 0.05);
            border-left: 3px solid var(--primary-color);
        }

        .item-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .item-header:hover {
            background: var(--background-warm);
        }

        .item-drag-handle {
            color: var(--text-secondary);
            cursor: grab;
            padding: 0.25rem;
            flex-shrink: 0;
        }

        .item-icon {
            width: 32px;
            height: 32px;
            background: var(--background);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }

        .item-info {
            flex: 1;
            min-width: 0;
        }

        .item-title {
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.9rem;
        }

        .item-meta {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.125rem;
        }

        .item-type-badge {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
            background: var(--primary-light);
            color: var(--primary-color);
            border-radius: 0.25rem;
            text-transform: uppercase;
        }

        .item-edited-badge {
            font-size: 0.65rem;
            padding: 0.15rem 0.4rem;
            background: #fef3c7;
            color: #f0a030;
            border-radius: 0.25rem;
        }

        .item-toggle {
            color: var(--text-secondary);
            font-size: 0.75rem;
            transition: transform 0.2s;
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }

        .item-row.expanded .item-toggle {
            transform: rotate(0deg);
        }

        .item-row:not(.expanded) .item-toggle {
            transform: rotate(-90deg);
        }

        .item-actions {
            display: flex;
            gap: 0.125rem;
            flex-shrink: 0;
        }

        .item-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.375rem;
            font-size: 0.9rem;
            line-height: 1;
            border-radius: var(--radius-sm);
            transition: all 0.2s;
        }

        .item-btn:hover {
            color: var(--primary-color);
            background: var(--primary-light);
        }

        .item-btn.delete:hover {
            color: var(--error-color);
            background: rgba(220, 53, 69, 0.1);
        }

        /* Expandable item content */
        .item-content {
            display: none;
            padding: 0 1rem 0.75rem 3.5rem;
        }

        .item-row.expanded .item-content {
            display: block;
        }

        .item-content-text {
            color: var(--text-secondary);
            font-size: 0.8rem;
            line-height: 1.5;
            white-space: pre-wrap;
            background: var(--background);
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius-md);
            max-height: 150px;
            overflow-y: auto;
        }

        .item-content-text:empty::before {
            content: "(No content)";
            color: var(--text-secondary);
            font-style: italic;
        }

        /* Collapse All / Expand All button */
        .items-header-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .items-toggle-btn {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
        }

        .items-toggle-btn:hover {
            background: var(--background-warm);
            color: var(--text-primary);
        }

        /* Item Edit Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .modal-overlay.hidden {
            display: none;
        }

        .modal {
            background: white;
            border-radius: var(--radius-lg);
            width: 95%;
            max-width: 900px;
            max-height: 90vh;
            overflow: auto;
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.125rem;
        }

        .modal-header-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modal-fullscreen {
            background: none;
            border: 1px solid var(--border-color);
            font-size: 1.125rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius-sm);
            line-height: 1;
        }

        .modal-fullscreen:hover {
            background: var(--background-warm);
            color: var(--text-primary);
        }

        .modal-fullscreen .fullscreen-collapse {
            display: none;
        }

        .modal.fullscreen .modal-fullscreen .fullscreen-expand {
            display: none;
        }

        .modal.fullscreen .modal-fullscreen .fullscreen-collapse {
            display: inline;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.25rem;
        }

        .modal-close:hover {
            color: var(--text-primary);
        }

        /* Fullscreen modal */
        .modal.fullscreen {
            width: 100%;
            max-width: 100%;
            height: 100%;
            max-height: 100%;
            border-radius: 0;
        }

        .modal.fullscreen .modal-body .form-textarea {
            min-height: calc(100vh - 220px);
        }

        .modal-body {
            padding: 1.5rem;
            flex: 1;
            overflow-y: auto;
        }

        .modal-body .form-textarea {
            min-height: 300px;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .modal-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        /* Actions */
        .page-actions {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.5rem 0;
        }

        .page-actions .btn {
            min-width: 140px;
        }

        /* Login Required */
        .login-required {
            text-align: center;
            padding: 4rem 2rem;
        }

        .login-required h2 {
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .login-required p {
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        /* Not Found */
        .not-found {
            text-align: center;
            padding: 4rem 2rem;
        }

        .not-found h2 {
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .not-found p {
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        /* Toast and Loading styles are in resource-form.css */

        /* Item checkboxes */
        .item-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
            flex-shrink: 0;
            accent-color: var(--primary-color);
        }

        .item-row.selected {
            background: rgba(194, 65, 12, 0.05);
        }

        .item-row.selected .item-header {
            background: rgba(194, 65, 12, 0.05);
        }

        /* Batch operations bar */
        .batch-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--card-bg);
            border: 1px solid var(--primary-color);
            border-radius: var(--radius-lg);
            padding: 0.75rem 1.25rem;
            margin-bottom: 1rem;
            position: sticky;
            top: 1rem;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .batch-bar-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .batch-select-all {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: var(--text-primary);
            cursor: pointer;
        }

        .batch-select-all input {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }

        .batch-bar-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-sm {
            padding: 0.375rem 0.75rem;
            font-size: 0.8rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .edit-container {
                padding: 1rem;
            }

            .version-banner {
                flex-direction: column;
                align-items: flex-start;
            }

            .grade-levels {
                gap: 0.25rem;
            }

            .grade-checkbox {
                padding: 0.4rem 0.6rem;
                font-size: 0.8rem;
            }

            .tab-btn {
                padding: 0.75rem 0.5rem;
                font-size: 0.8rem;
            }

            .url-input-group {
                flex-direction: column;
            }

            .content-type-row {
                flex-direction: column;
                align-items: stretch;
            }

            .content-type-row select {
                max-width: none;
            }

            .page-actions {
                flex-direction: column;
            }

            .page-actions .btn {
                width: 100%;
            }
        }

        /* Textarea Header with Fullscreen Button */
        .textarea-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .textarea-header label {
            margin-bottom: 0;
        }

        .fullscreen-btn {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            padding: 0.375rem 0.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.75rem;
            transition: all 0.2s;
        }

        .fullscreen-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: var(--background-warm);
        }

        /* Fullscreen Modal */
        .fullscreen-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 1000;
            display: none;
            flex-direction: column;
        }

        .fullscreen-modal.active {
            display: flex;
        }

        .fullscreen-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--background);
        }

        .fullscreen-title {
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-primary);
        }

        .fullscreen-close {
            background: none;
            border: none;
            padding: 0.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fullscreen-close:hover {
            background: var(--background-warm);
            color: var(--text-primary);
        }

        .fullscreen-textarea {
            flex: 1;
            width: 100%;
            border: none;
            padding: 1.5rem;
            font-size: 1rem;
            line-height: 1.6;
            resize: none;
            font-family: inherit;
        }

        .fullscreen-textarea:focus {
            outline: none;
        }

        .fullscreen-textarea::placeholder {
            color: #999;
        }

        .fullscreen-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-color);
            background: var(--background);
        }

        .fullscreen-actions {
            display: flex;
            gap: 0.75rem;
        }

        /* Marketplace Details Section */
        .marketplace-details-section {
            margin-top: 1rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
        }

        .marketplace-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            padding: 0.5rem 0;
            cursor: pointer;
            font-size: 0.875rem;
            color: var(--text-secondary);
            transition: color 0.2s;
        }

        .marketplace-toggle:hover {
            color: var(--text-primary);
        }

        .toggle-icon {
            font-size: 0.75rem;
            transition: transform 0.2s;
        }

        .optional-label {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        .marketplace-details-content {
            padding-top: 1rem;
        }

        .marketplace-details-content .form-group {
            margin-bottom: 1rem;
        }

        .marketplace-details-content .form-group:last-child {
            margin-bottom: 0;
        }

        .marketplace-details-content .form-group label {
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        /* Definitions Modal */
        .definitions-modal-content {
            max-width: 800px;
            max-height: 85vh;
        }

        .definitions-progress {
            padding: 2rem;
            text-align: center;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: var(--border-color);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .progress-fill {
            height: 100%;
            background: var(--primary-color);
            border-radius: 4px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .progress-text {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0;
        }

        .definitions-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .definition-card {
            background: var(--background);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .definition-card.not-found {
            background: #fef2f2;
            border-color: #fecaca;
        }

        .definition-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1rem;
            background: white;
            border-bottom: 1px solid var(--border-color);
        }

        .definition-card.not-found .definition-card-header {
            border-bottom: none;
        }

        .definition-term-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .definition-card-header h4 {
            margin: 0;
            font-size: 1rem;
            color: var(--text-primary);
        }

        .pronunciation {
            font-size: 0.875rem;
            color: var(--text-secondary);
            font-family: serif;
        }

        .audio-btn {
            background: none;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.25rem;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .audio-btn:hover {
            opacity: 1;
        }

        .not-found-badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            background: #fee2e2;
            color: #dc2626;
            border-radius: 0.25rem;
            font-weight: 500;
        }

        .not-found-message {
            padding: 0.75rem 1rem;
            margin: 0;
            font-size: 0.875rem;
            color: #991b1b;
        }

        .select-all-senses-btn {
            background: none;
            border: 1px solid var(--border-color);
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .select-all-senses-btn:hover {
            background: var(--primary-light);
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .senses-list {
            padding: 0.5rem;
        }

        .sense-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.75rem;
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: background 0.2s;
        }

        .sense-item:hover {
            background: rgba(0, 0, 0, 0.03);
        }

        .sense-checkbox {
            width: 18px;
            height: 18px;
            margin-top: 0.125rem;
            cursor: pointer;
            accent-color: var(--primary-color);
            flex-shrink: 0;
        }

        .sense-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .sense-pos {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .sense-definition {
            font-size: 0.875rem;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .sense-example {
            font-size: 0.8rem;
            color: var(--text-secondary);
            font-style: italic;
            margin-top: 0.25rem;
        }

        .definitions-stats {
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .definitions-actions {
            display: flex;
            gap: 0.5rem;
        }

        #definitions-modal .modal-footer {
            justify-content: space-between;
        }

        /* Responsive for definitions modal */
        @media (max-width: 768px) {
            .definitions-modal-content {
                max-height: 95vh;
            }

            .definition-card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .select-all-senses-btn {
                align-self: flex-end;
            }
        }
