/* ==========================================================================
   OriginRealm Creator Studio & Publishing Stylesheet
   Routes: /author-studio, /author-studio/*
   Dark Mode & Light Theme Colocated
   ========================================================================== */

/* ─── 1. STUDIO DASHBOARD SHELL & GRID ─── */
.author-studio-shell {
    max-width: 1240px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
}

.author-studio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.author-studio-card {
    background: rgba(31, 41, 55, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.author-studio-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
}

.author-studio-card-inner {
    padding: 1.25rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.author-studio-poster {
    width: 85px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.author-studio-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.author-studio-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-studio-actions {
    display: flex;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.25rem;
}

.btn-studio-manage {
    flex: 1;
    text-align: center;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-studio-manage:hover {
    background: rgba(99, 102, 241, 0.28);
    color: #ffffff;
}

.btn-studio-new-chapter {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-studio-new-chapter:hover {
    transform: translateY(-1px);
}

/* Light Theme Overrides for Dashboard */
[data-theme="light"] .author-studio-card {
    background: #f4f7fa !important;
    border-color: #dde3ea !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .author-studio-title {
    color: #1e293b !important;
}

[data-theme="light"] .author-studio-poster {
    background: #f8fafc !important;
    border-color: #dde3ea !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .author-studio-actions {
    background: #f8fafc !important;
    border-top-color: #dde3ea !important;
}

[data-theme="light"] .btn-studio-manage {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #4338ca !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

[data-theme="light"] .btn-studio-manage:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

[data-theme="light"] .author-studio-page-title {
    color: #1e293b !important;
}

/* ─── 2. SERIES CHAPTER MANAGEMENT PANEL ─── */
.author-studio-chapter-panel {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.author-studio-chapter-panel-header {
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-studio-chapter-row {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
}

.author-studio-chapter-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.author-studio-chapter-row:last-child {
    border-bottom: none;
}

[data-theme="light"] .author-studio-chapter-panel {
    background: #f4f7fa !important;
    border-color: #dde3ea !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: none !important;
}

[data-theme="light"] .author-studio-chapter-panel-header {
    background: #f8fafc !important;
    border-bottom-color: #dde3ea !important;
}

[data-theme="light"] .author-studio-chapter-panel-header h2 {
    color: #1e293b !important;
}

[data-theme="light"] .author-studio-chapter-row {
    border-bottom-color: #e8edf3 !important;
}

[data-theme="light"] .author-studio-chapter-row:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .author-studio-series-heading {
    color: #1e293b !important;
}

/* ─── 3. PENDING STUDIO APPROVAL VIEW ─── */
.pending-shell {
    max-width: 640px;
    margin: 6rem auto 4rem;
    padding: 0 1.5rem;
    text-align: center;
}

.pending-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pending-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pending-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.pending-sub {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pending-note {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.88rem;
    color: #94a3b8;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.pending-steps {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.pending-steps li {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.8;
    list-style: none;
    padding-left: 0;
}

.pending-steps li::before {
    content: '→ ';
    color: #6366f1;
    font-weight: 700;
}

.pending-back {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pending-back:hover {
    background: rgba(99, 102, 241, 0.28);
    color: #a5b4fc;
}

[data-theme="light"] .pending-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .pending-title {
    color: #0f172a !important;
}

[data-theme="light"] .pending-sub {
    color: #475569 !important;
}

[data-theme="light"] .pending-note {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

/* ─── 4. CHAPTER UPLOAD & FORM CONTROLS ─── */
.format-hidden {
    display: none !important;
}

.chapter-form-section {
    margin-bottom: 1.5rem;
}

.chapter-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.chapter-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
}

html[data-theme="light"] .chapter-form-label {
    color: #1e293b !important;
}

.chapter-word-count-badge {
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

html[data-theme="light"] .chapter-word-count-badge {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.chapter-body-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f1f5f9;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

html[data-theme="light"] .chapter-body-textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.chapter-image-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

html[data-theme="light"] .chapter-image-dropzone {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.chapter-image-dropzone-icon {
    margin: 0 auto 0.75rem;
    display: block;
}

.chapter-image-dropzone-title {
    color: #e2e8f0;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

html[data-theme="light"] .chapter-image-dropzone-title {
    color: #1e293b !important;
}

.chapter-image-dropzone-hint {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}

html[data-theme="light"] .chapter-image-dropzone-hint {
    color: #64748b !important;
}

.chapter-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.chapter-warranty-box {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
}

html[data-theme="light"] .chapter-warranty-box {
    background: #f8fafc !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

.chapter-warranty-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

html[data-theme="light"] .chapter-warranty-label {
    color: #334155 !important;
}

.chapter-warranty-checkbox {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    flex-shrink: 0;
}

.chapter-warranty-title {
    color: #f1f5f9;
}

html[data-theme="light"] .chapter-warranty-title {
    color: #0f172a !important;
}

.author-studio-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

html[data-theme="light"] .author-studio-form-actions {
    border-top-color: #e2e8f0 !important;
}

.author-studio-btn-draft {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.author-studio-btn-draft:hover {
    background: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .author-studio-btn-draft {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .author-studio-btn-draft:hover {
    background: #e2e8f0 !important;
}

.author-studio-btn-review {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.author-studio-btn-review:hover {
    background: rgba(245, 158, 11, 0.3);
}

html[data-theme="light"] .author-studio-btn-review {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(217, 119, 6, 0.4) !important;
    color: #b45309 !important;
}

.author-studio-btn-publish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}

.author-studio-btn-publish:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.chapter-upload-preview {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

html[data-theme="light"] .chapter-upload-preview {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.chapter-upload-preview-zip {
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.chapter-upload-preview-zip-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-top: 0.3rem;
}

.chapter-upload-preview-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.chapter-upload-preview-name {
    font-size: 0.72rem;
    color: #94a3b8;
    padding: 4px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #090d16;
}

html[data-theme="light"] .chapter-upload-preview-name {
    background: #e2e8f0;
    color: #334155;
}

.author-studio-chapter-form {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .author-studio-chapter-form {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.author-studio-form-errors {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

html[data-theme="light"] .author-studio-form-errors {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.author-studio-form-errors-list {
    margin: 0;
    padding-left: 1.25rem;
}

.chapter-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.chapter-form-field {
    min-width: 0;
}

.chapter-form-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

html[data-theme="light"] .chapter-form-field-label {
    color: #1e293b !important;
}

.chapter-form-required-star {
    color: #ef4444;
}

.chapter-form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.chapter-form-control:focus {
    border-color: #6366f1;
}

html[data-theme="light"] .chapter-form-control {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.upload-field-help {
    color: #9ca3af;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.35rem;
}

html[data-theme="light"] .upload-field-help {
    color: #64748b;
}

.series-info-label-with-icon {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    color: #818cf8;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}

html[data-theme="light"] .series-info-label-with-icon {
    color: #4f46e5;
}

.series-info-tooltip-icon {
    cursor: help;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
}

.series-info-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    word-break: break-word;
}

html[data-theme="light"] .series-info-val {
    color: #0f172a;
}

/* ─── 5. AUTHOR RIGHTS SHOWCASE ─── */
.author-rights-showcase {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    margin-bottom: 5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .author-rights-showcase {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.author-rights-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-rights-icon {
    font-size: 1.5rem;
}

.author-rights-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

html[data-theme="light"] .author-rights-title {
    color: #0f172a;
}

.author-rights-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 800px;
}

html[data-theme="light"] .author-rights-subtitle {
    color: #475569;
}

.author-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.author-rights-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

html[data-theme="light"] .author-rights-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.author-rights-card-title-blue {
    color: #60a5fa;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

html[data-theme="light"] .author-rights-card-title-blue {
    color: #2563eb;
}

.author-rights-card-title-green {
    color: #34d399;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

html[data-theme="light"] .author-rights-card-title-green {
    color: #059669;
}

.author-rights-card-title-amber {
    color: #f59e0b;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

html[data-theme="light"] .author-rights-card-title-amber {
    color: #d97706;
}

.author-rights-card-title-pink {
    color: #f472b6;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

html[data-theme="light"] .author-rights-card-title-pink {
    color: #db2777;
}

.author-rights-card-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

html[data-theme="light"] .author-rights-card-desc {
    color: #475569;
}

/* ─── 6. MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
    .author-studio-shell {
        margin: 1.25rem auto 3rem !important;
        padding: 0 0.75rem !important;
    }

    .author-studio-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }

    .author-studio-card {
        border-radius: 12px !important;
    }

    .author-studio-card-inner {
        padding: 0.65rem 0.5rem !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .author-studio-poster {
        width: 70px !important;
        height: 98px !important;
        border-radius: 6px !important;
    }

    .author-studio-info {
        width: 100% !important;
    }

    .author-studio-info-meta {
        justify-content: center !important;
        gap: 0.25rem !important;
        margin-bottom: 0.35rem !important;
    }

    .author-studio-info-meta span {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.35rem !important;
    }

    .author-studio-title {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        min-height: 2.5em !important;
        margin-bottom: 0.25rem !important;
    }

    .author-studio-author {
        display: none !important;
    }

    .author-studio-actions {
        padding: 0.45rem 0.5rem !important;
        gap: 0.3rem !important;
        flex-direction: column !important;
    }

    .btn-studio-manage,
    .btn-studio-new-chapter {
        width: 100% !important;
        padding: 0.4rem 0.25rem !important;
        font-size: 0.74rem !important;
        border-radius: 6px !important;
    }
}


/* ==========================================================================
   Author Studio Extended Light Theme Overrides
   ========================================================================== */
[data-theme="light"] .author-studio-page-title,
[data-theme="light"] .author-studio-series-heading,
[data-theme="light"] .author-studio-chapter-editor > h1 {
    color: #1e293b !important;
}

[data-theme="light"] .author-studio-page-subtitle,
[data-theme="light"] .author-studio-author,
[data-theme="light"] .author-studio-empty-copy,
[data-theme="light"] .author-studio-breadcrumb,
[data-theme="light"] .author-studio-breadcrumb-current,
[data-theme="light"] .author-studio-chapter-meta,
[data-theme="light"] .author-studio-empty-chapters {
    color: #475569 !important;
}

[data-theme="light"] .author-studio-card,
[data-theme="light"] .author-studio-empty,
[data-theme="light"] .author-studio-chapter-panel,
[data-theme="light"] .author-studio-chapter-form {
    background: #edf2f7 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: none !important;
}

[data-theme="light"] .author-studio-poster,
[data-theme="light"] .author-studio-series-cover {
    background: #d0dbe6 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .author-studio-title,
[data-theme="light"] .author-studio-title-link,
[data-theme="light"] .author-studio-empty-title,
[data-theme="light"] .author-studio-author-name,
[data-theme="light"] .author-studio-chapter-panel-header h2,
[data-theme="light"] .author-studio-chapter-title {
    color: #1e293b !important;
}

[data-theme="light"] .author-studio-actions,
[data-theme="light"] .author-studio-chapter-panel-header {
    background: #dde3ea !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

[data-theme="light"] .author-studio-chapter-row {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .author-studio-chapter-row:hover {
    background: rgba(79, 70, 229, 0.05) !important;
}

[data-theme="light"] .btn-studio-manage,
[data-theme="light"] .author-studio-secondary-link,
[data-theme="light"] .author-studio-public-link {
    background: #e0e7ff !important;
    border-color: rgba(79, 70, 229, 0.24) !important;
    color: #312e81 !important;
}

[data-theme="light"] .author-studio-alert-success,
[data-theme="light"] .author-studio-published-badge {
    background: #d1fae5 !important;
    border-color: rgba(5, 150, 105, 0.24) !important;
    color: #047857 !important;
}

[data-theme="light"] .author-studio-type-badge {
    background: #e0e7ff !important;
    border-color: rgba(79, 70, 229, 0.24) !important;
    color: #312e81 !important;
}

[data-theme="light"] .author-studio-chapter-form label { color: #334155 !important; }
[data-theme="light"] .author-studio-chapter-form input:not([type="file"]),
[data-theme="light"] .author-studio-chapter-form select,
[data-theme="light"] .author-studio-chapter-form textarea {
    background: #dde3ea !important;
    border-color: #c7cfda !important;
    color: #1e293b !important;
}

[data-theme="light"] .author-studio-chapter-form #wordCountBadge {
    background: transparent !important;
    color: #475569 !important;
}

[data-theme="light"] .author-studio-chapter-form #imageDropzone {
    background: #dde3ea !important;
    border-color: rgba(79, 70, 229, 0.32) !important;
}
[data-theme="light"] .author-studio-chapter-form #imageDropzone p:first-of-type { color: #334155 !important; }
[data-theme="light"] .author-studio-chapter-form #imageDropzone p:last-of-type { color: #64748b !important; }
[data-theme="light"] .author-studio-form-actions { border-top-color: rgba(15, 23, 42, 0.10) !important; }
[data-theme="light"] .author-studio-draft-btn {
    background: #dde3ea !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #334155 !important;
}
[data-theme="light"] .chapter-upload-preview {
    background: #edf2f7 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}
[data-theme="light"] .chapter-upload-preview-zip { background: #e0e7ff !important; color: #4338ca !important; }
[data-theme="light"] .chapter-upload-preview-name { background: #dde3ea !important; color: #475569 !important; }
