/**
 * Writers Dashboard - Clean CPP-Style CSS
 * Using !important to override theme conflicts
 */

/* ═══════════════════════════════════════════════════════════════
   BASE / RESET
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1f2937 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
}

.wd-wrap *, .wd-wrap *::before, .wd-wrap *::after {
    box-sizing: border-box !important;
}

.wd-wrap a {
    color: #f59e0b !important;
    text-decoration: none !important;
}

.wd-wrap a:hover {
    color: #d97706 !important;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HEADER
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-dash-header {
    margin-bottom: 28px !important;
}

.wd-wrap .wd-dash-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.wd-wrap .wd-dash-title {
    font-size: 38px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #1f2937 !important;
}

.wd-wrap .wd-title-accent {
    background: linear-gradient(135deg, #f59e0b, #f97316, #f59e0b) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: wd-shimmer 3s ease-in-out infinite !important;
}
@keyframes wd-shimmer {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.wd-wrap .wd-dash-welcome {
    color: #6b7280 !important;
    margin: 8px 0 0 !important;
    font-size: 16px !important;
}

.wd-wrap .wd-dash-actions {
    display: flex !important;
    gap: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}

.wd-wrap .wd-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35) !important;
    color: #fff !important;
}

.wd-wrap .wd-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: #fff !important;
    color: #374151 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-btn-secondary:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

.wd-wrap .wd-btn-sm {
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #374151 !important;
}

.wd-wrap .wd-btn-sm:hover {
    background: #f3f4f6 !important;
}

.wd-wrap .wd-btn-sm.wd-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border: none !important;
}

.wd-wrap .wd-btn-full {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════
   STATUS CARDS
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-status-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.wd-wrap .wd-scard {
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    text-align: center !important;
}

.wd-wrap .wd-scard-val {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    line-height: 1 !important;
}

.wd-wrap .wd-scard-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    margin-top: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wd-wrap .wd-scard-draft .wd-scard-val { color: #6b7280 !important; }
.wd-wrap .wd-scard-pending .wd-scard-val { color: #f59e0b !important; }
.wd-wrap .wd-scard-published .wd-scard-val { color: #10b981 !important; }

/* ═══════════════════════════════════════════════════════════════
   ARTICLES SECTION
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-articles-section {
    margin-bottom: 32px !important;
}

/* ═══════════════════════════════════════════════════════════════
   WRITING TOOLS SECTION
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-tools-section {
    margin-top: 32px !important;
}

.wd-wrap .wd-tools-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 0 16px 0 !important;
}

.wd-wrap .wd-tools-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    padding: 24px !important;
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
}

.wd-wrap .wd-tool-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #fafbfc, #f3f4f6) !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.wd-wrap .wd-tool-item:hover {
    background: #fff !important;
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
}

.wd-wrap .wd-tool-item span:first-child {
    font-size: 22px !important;
}

/* ═══════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-tabs {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 28px !important;
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 30px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    transition: all 0.2s !important;
}

.wd-wrap .wd-tab:hover {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.wd-wrap .wd-tab.active {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.wd-wrap .wd-tab-num {
    background: rgba(0,0,0,0.08) !important;
    padding: 5px 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.wd-wrap .wd-tab.active .wd-tab-num {
    background: rgba(255,255,255,0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-table-wrap {
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.wd-wrap .wd-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.wd-wrap .wd-table th {
    text-align: left !important;
    padding: 20px 24px !important;
    background: #fafbfc !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #eaedf2 !important;
}

.wd-wrap .wd-table td {
    padding: 22px 24px !important;
    border-bottom: 1px solid #f0f1f3 !important;
    font-size: 17px !important;
    color: #4b5563 !important;
}

.wd-wrap .wd-table tr:last-child td {
    border-bottom: none !important;
}

.wd-wrap .wd-table tr:hover td {
    background: #fafbfc !important;
}

.wd-wrap .wd-td-title {
    font-weight: 800 !important;
    font-size: 22px !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.wd-wrap .wd-td-title a {
    color: #1f2937 !important;
    word-break: break-word !important;
}

.wd-wrap .wd-td-title a:hover {
    color: #f59e0b !important;
}

.wd-wrap .wd-td-title span {
    color: #6b7280 !important;
    word-break: break-word !important;
}

/* Status Badges */
.wd-wrap .wd-status-badge {
    display: inline-block !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.wd-wrap .wd-st-draft {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}

.wd-wrap .wd-st-pending {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

.wd-wrap .wd-st-published {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.wd-wrap .wd-st-reedit {
    background: #fce7f3 !important;
    color: #be185d !important;
}

.wd-wrap .wd-st-ready {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.wd-wrap .wd-st-rejected {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Actions */
.wd-wrap .wd-td-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Edit Button with Text */
.wd-wrap .wd-edit-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.wd-wrap .wd-edit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
    color: #fff !important;
}

.wd-wrap .wd-edit-btn.wd-btn-view {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.wd-wrap .wd-edit-btn.wd-btn-view:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Delete Button */
.wd-wrap .wd-del-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: #fff !important;
    border: 2px solid #fecaca !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.wd-wrap .wd-del-btn:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}

/* Pending Note */
.wd-wrap .wd-pending-note {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 16px !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Old action buttons (keep for compatibility) */
.wd-wrap .wd-act-btn {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    border: 2px solid #eaedf2 !important;
    background: #fff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-act-edit:hover {
    background: #eef2ff !important;
    border-color: #6366f1 !important;
}

.wd-wrap .wd-act-del:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}

.wd-wrap .wd-act-view:hover {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 18px !important;
    background: #fafbfc !important;
    border-top: 1px solid #eaedf2 !important;
}

.wd-wrap .wd-pg-btn {
    min-width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    border: 2px solid #e5e7eb !important;
    background: #fff !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-pg-btn:hover {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.wd-wrap .wd-pg-btn.active {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-empty {
    text-align: center !important;
    padding: 70px 24px !important;
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 16px !important;
}

.wd-wrap .wd-empty-icon {
    font-size: 64px !important;
    margin-bottom: 16px !important;
}

.wd-wrap .wd-empty h3 {
    color: #1f2937 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
}

.wd-wrap .wd-empty p {
    color: #6b7280 !important;
    font-size: 16px !important;
    margin: 0 0 28px !important;
}

/* ═══════════════════════════════════════════════════════════════
   EDITOR VIEW
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-ed-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-back-link {
    color: #6b7280 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.wd-wrap .wd-back-link:hover {
    color: #f59e0b !important;
}

.wd-wrap .wd-ed-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    flex: 1 !important;
}

.wd-wrap .wd-lock-badge {
    background: #d1fae5 !important;
    color: #059669 !important;
    padding: 10px 20px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Editor Body Grid */
.wd-wrap .wd-ed-body {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    gap: 24px !important;
    align-items: start !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.wd-wrap .wd-ed-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.wd-wrap .wd-ed-side {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    position: sticky !important;
    top: 20px !important;
}

/* Cards */
.wd-wrap .wd-card {
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 16px !important;
    padding: 20px !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.wd-wrap .wd-card-head {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #9ca3af !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.wd-wrap .wd-card-publish {
    border: 3px solid #f59e0b !important;
}

/* Title Input */
.wd-wrap .wd-title-input {
    width: 100% !important;
    border: none !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    padding: 0 !important;
    outline: none !important;
    background: transparent !important;
}

.wd-wrap .wd-title-input::placeholder {
    color: #d1d5db !important;
}

.wd-wrap .wd-title-count {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-top: 10px !important;
    font-weight: 600 !important;
}

/* Toolbar */
.wd-wrap .wd-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 12px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
}

.wd-wrap .wd-toolbar button {
    padding: 8px 12px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-toolbar button:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

.wd-wrap .wd-toolbar button.active,
.wd-wrap .wd-toolbar button.wd-tb-active {
    background: #f59e0b !important;
    color: #fff !important;
}

.wd-wrap .wd-tb-sep {
    width: 1px !important;
    height: 28px !important;
    background: #e5e7eb !important;
    margin: 0 6px !important;
}

/* Content Editable */
.wd-wrap .wd-content-editable {
    min-height: 380px !important;
    max-height: 520px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
    padding: 18px !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    max-width: 100% !important;
}

.wd-wrap .wd-content-editable:focus {
    border-color: #f59e0b !important;
}

.wd-wrap .wd-content-editable h2 { font-size: 1.5em !important; margin: 1em 0 0.5em !important; font-weight: 700 !important; }
.wd-wrap .wd-content-editable h3 { font-size: 1.3em !important; margin: 0.8em 0 0.4em !important; font-weight: 700 !important; }
.wd-wrap .wd-content-editable h4 { font-size: 1.15em !important; margin: 0.6em 0 0.3em !important; font-weight: 700 !important; }
.wd-wrap .wd-content-editable p { margin: 0 0 1em !important; }
.wd-wrap .wd-content-editable ul, .wd-wrap .wd-content-editable ol { margin: 0 0 1em !important; padding-left: 1.5em !important; }
.wd-wrap .wd-content-editable blockquote { margin: 1em 0 !important; padding: 14px 18px !important; border-left: 4px solid #f59e0b !important; background: #fffbeb !important; }
.wd-wrap .wd-content-editable a { color: #f59e0b !important; }
.wd-wrap .wd-content-editable img { max-width: 100% !important; height: auto !important; border-radius: 8px !important; cursor: pointer !important; transition: outline 0.15s !important; }
.wd-wrap .wd-content-editable img.wd-el-selected,
.wd-wrap .wd-content-editable table.wd-el-selected { outline: 3px solid #f59e0b !important; outline-offset: 2px !important; }

/* Element Tooltip (Image & Table) */
.wd-el-tooltip {
    position: absolute !important;
    z-index: 9999999 !important;
    background: #1f2937 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    display: flex !important;
    gap: 3px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}
.wd-el-tooltip button {
    padding: 6px 12px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #374151 !important;
    color: #e5e7eb !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: background 0.15s !important;
    white-space: nowrap !important;
    font-family: inherit !important;
}
.wd-el-tooltip button:hover { background: #4b5563 !important; color: #fff !important; }
.wd-el-tooltip .wd-elt-delete { background: #991b1b !important; color: #fecaca !important; }
.wd-el-tooltip .wd-elt-delete:hover { background: #dc2626 !important; color: #fff !important; }

.wd-wrap .wd-content-source {
    width: 100% !important;
    min-height: 380px !important;
    padding: 18px !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 12px !important;
    font-family: 'Monaco', 'Menlo', monospace !important;
    font-size: 14px !important;
    resize: vertical !important;
}

/* Editor Footer */
.wd-wrap .wd-ed-footer {
    display: flex !important;
    gap: 24px !important;
    padding-top: 14px !important;
    border-top: 1px solid #eaedf2 !important;
    margin-top: 14px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

.wd-wrap .wd-ed-footer strong {
    color: #1f2937 !important;
    font-weight: 700 !important;
}

/* ═══ FOCUS MODE ═══ */
@keyframes wd-focus-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes wd-focus-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.97); }
}
.wd-focus-active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999998 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: wd-focus-in 0.3s ease-out !important;
}
.wd-focus-active.wd-focus-exiting {
    animation: wd-focus-out 0.2s ease-in forwards !important;
}
/* Hide focus button on mobile */
@media (max-width: 1024px) {
    #wd-focus-mode { display: none !important; }
}
.wd-focus-active .wd-focus-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    flex-shrink: 0 !important;
}
.wd-focus-active .wd-focus-toolbar .wd-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.wd-focus-active .wd-focus-toolbar .wd-toolbar button {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
}
.wd-focus-active .wd-focus-toolbar .wd-toolbar button:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}
.wd-focus-active .wd-focus-toolbar .wd-toolbar button.wd-tb-active {
    background: #f59e0b !important;
    color: #fff !important;
    border-color: #f59e0b !important;
}
.wd-focus-active .wd-focus-toolbar .wd-tb-sep {
    width: 1px !important;
    height: 18px !important;
    background: #d1d5db !important;
    margin: 0 3px !important;
}
.wd-focus-body {
    display: flex !important;
    flex: 1 !important;
    overflow: hidden !important;
    min-height: 0 !important;
}
.wd-focus-left {
    width: 340px !important;
    flex-shrink: 0 !important;
    border-right: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    background: #fafafa !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.wd-focus-center {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    justify-content: center !important;
    padding: 30px 16px !important;
    background: #fff !important;
}
.wd-focus-center .wd-content-editable {
    max-width: 100% !important;
    width: 100% !important;
    min-height: calc(100vh - 140px) !important;
    background: transparent !important;
    color: #1f2937 !important;
    border: none !important;
    font-size: 17px !important;
    line-height: 1.9 !important;
    outline: none !important;
    caret-color: #f59e0b !important;
}
.wd-focus-center .wd-content-editable h2,
.wd-focus-center .wd-content-editable h3,
.wd-focus-center .wd-content-editable h4 { color: #111827 !important; }
.wd-focus-center .wd-content-editable a { color: #2563eb !important; }
.wd-focus-center .wd-content-editable blockquote { border-left-color: #f59e0b !important; color: #6b7280 !important; }
.wd-focus-right {
    width: 340px !important;
    flex-shrink: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    background: #fafafa !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.wd-focus-active .wd-focus-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px !important;
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}
/* Sidebar panels in focus mode */
.wd-focus-left .wd-card,
.wd-focus-left .wd-ai-checker,
.wd-focus-right .wd-card,
.wd-focus-right .wd-ai-checker {
    background: #fff !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}
.wd-focus-left .wd-card > div:first-child,
.wd-focus-right .wd-card > div:first-child,
.wd-focus-left .wd-ai-checker .wd-ai-checker-header,
.wd-focus-right .wd-ai-checker .wd-ai-checker-header {
    padding: 10px 14px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.wd-focus-left #wd-integrity-body,
.wd-focus-left #wd-factcheck-body,
.wd-focus-right #wd-integrity-body,
.wd-focus-right #wd-factcheck-body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;
}
.wd-focus-left .wd-ai-checker-body,
.wd-focus-right .wd-ai-checker-body {
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;
}
.wd-focus-right .wd-submit-helper {
    display: none !important;
}
.wd-focus-done-btn {
    padding: 5px 18px !important;
    border: none !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: transform 0.15s !important;
}
.wd-focus-done-btn:hover { transform: scale(1.05) !important; }
@media (max-width: 1024px) {
    .wd-focus-left, .wd-focus-right { display: none !important; }
    .wd-focus-center { padding: 20px 16px !important; }
}

/* Link Tools */
.wd-wrap .wd-link-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
}

.wd-wrap .wd-link-box {
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
}

.wd-wrap .wd-link-box label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    margin-bottom: 10px !important;
}

.wd-wrap .wd-link-row {
    display: flex !important;
    gap: 10px !important;
}

.wd-wrap .wd-il-results {
    max-height: 130px !important;
    overflow-y: auto !important;
    margin-top: 10px !important;
}

.wd-wrap .wd-il-results .wd-il-item {
    padding: 10px !important;
    background: #fff !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
}

.wd-wrap .wd-il-results .wd-il-item:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}

.wd-wrap .wd-link-opts {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-link-opts label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* Inputs */
.wd-wrap .wd-input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
}

.wd-wrap .wd-input:focus {
    border-color: #f59e0b !important;
}

.wd-wrap .wd-select {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: #fff !important;
    cursor: pointer !important;
}

.wd-wrap .wd-textarea-sm {
    width: 100% !important;
    min-height: 80px !important;
    padding: 12px 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    resize: vertical !important;
}

.wd-wrap .wd-char-count {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-top: 6px !important;
    text-align: right !important;
    font-weight: 600 !important;
}

/* Publish Card */
.wd-wrap .wd-status-row {
    display: flex !important;
    justify-content: space-between !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #eaedf2 !important;
    font-size: 15px !important;
}

.wd-wrap .wd-published-box {
    text-align: center !important;
    padding: 14px !important;
    background: #d1fae5 !important;
    border-radius: 12px !important;
    color: #059669 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.wd-wrap .wd-blocked-box {
    margin-top: 14px !important;
    padding: 14px !important;
    background: #fef2f2 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #dc2626 !important;
}

.wd-wrap .wd-blocked-box ul {
    margin: 8px 0 0 !important;
    padding-left: 18px !important;
}

/* SEO Checklist */
.wd-wrap .wd-seo-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.wd-wrap .wd-seo-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.wd-wrap .wd-seo-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #e5e7eb !important;
    flex-shrink: 0 !important;
}

.wd-wrap .wd-seo-item.passed .wd-seo-dot {
    background: #10b981 !important;
}

.wd-wrap .wd-seo-item.passed {
    color: #059669 !important;
}

.wd-wrap .wd-seo-score {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #eaedf2 !important;
    font-size: 15px !important;
    color: #6b7280 !important;
}

.wd-wrap .wd-seo-score strong {
    color: #f59e0b !important;
    font-size: 20px !important;
}

/* Link Stats */
.wd-wrap .wd-link-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    text-align: center !important;
}

.wd-wrap .wd-link-stats div {
    padding: 14px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}

.wd-wrap .wd-link-stats span {
    display: block !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
    margin-bottom: 6px !important;
}

/* Featured Image */
.wd-wrap .wd-featured-preview {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    background: #f9fafb !important;
    border: 2px dashed #e5e7eb !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
}

.wd-wrap .wd-featured-preview.has-image {
    border-style: solid !important;
    border-color: transparent !important;
}

.wd-wrap .wd-featured-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wd-wrap .wd-featured-empty {
    font-size: 15px !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}

.wd-wrap .wd-remove-img {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.wd-wrap .wd-remove-img:hover {
    background: #ef4444 !important;
}

/* Notes Panel */
.wd-wrap .wd-toggle-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
}

.wd-wrap .wd-editor-notes {
    overflow: hidden !important;
    transition: max-height 0.3s !important;
}

.wd-wrap .wd-editor-notes.collapsed {
    max-height: 0 !important;
}

.wd-wrap .wd-notes-mini {
    max-height: 160px !important;
    overflow-y: auto !important;
    margin-bottom: 12px !important;
}

.wd-wrap .wd-note-mini {
    padding: 10px 12px !important;
    background: #f9fafb !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
    font-size: 13px !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
}

.wd-wrap .wd-note-mini:hover {
    background: #f3f4f6 !important;
}

.wd-wrap .wd-note-mini.selected {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

.wd-wrap .wd-notes-actions {
    display: flex !important;
    gap: 10px !important;
}

.wd-wrap .wd-notes-actions .wd-btn-sm {
    flex: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.55) !important;
    z-index: 99999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.wd-wrap .wd-modal.wd-modal-open {
    display: flex !important;
}

.wd-wrap .wd-modal-box {
    background: #fff !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 580px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.25) !important;
    animation: wdModalIn 0.2s ease !important;
}

@keyframes wdModalIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.wd-wrap .wd-modal-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 26px !important;
    background: #fafbfc !important;
    border-bottom: 1px solid #eaedf2 !important;
}

.wd-wrap .wd-modal-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.wd-wrap .wd-modal-close {
    width: 36px !important;
    height: 36px !important;
    background: none !important;
    border: none !important;
    font-size: 26px !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}

.wd-wrap .wd-modal-close:hover {
    background: #f3f4f6 !important;
    color: #ef4444 !important;
}

.wd-wrap .wd-modal-body {
    padding: 26px !important;
    overflow-y: auto !important;
}

/* Tool Content */
.wd-wrap .wd-tool-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.wd-wrap .wd-textarea {
    width: 100% !important;
    min-height: 150px !important;
    padding: 14px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

.wd-wrap .wd-textarea:focus {
    outline: none !important;
    border-color: #f59e0b !important;
}

/* Word Counter Results */
.wd-wrap .wd-wc-results {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
}

.wd-wrap .wd-wc-stat {
    text-align: center !important;
}

.wd-wrap .wd-wc-val {
    display: block !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
}

.wd-wrap .wd-wc-stat span:last-child {
    font-size: 12px !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}

/* Results Box */
.wd-wrap .wd-results-box {
    padding: 18px !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
}

.wd-wrap .wd-ra-score-box {
    text-align: center !important;
    margin-bottom: 18px !important;
}

.wd-wrap .wd-ra-score-box span {
    display: block !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
}

.wd-wrap .wd-ra-score-box small {
    color: #6b7280 !important;
    font-size: 14px !important;
}

.wd-wrap .wd-ra-details {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

.wd-wrap .wd-tips-box {
    margin-top: 14px !important;
    padding: 14px !important;
    background: #fffbeb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #92400e !important;
}

/* Headline Analyzer */
.wd-wrap .wd-ha-score {
    text-align: center !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
    margin-bottom: 14px !important;
}

.wd-wrap .wd-ha-feedback {
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* Tool Feedback Classes */
.wd-wrap .wd-fb-good,
.wd-wrap .wd-fb-warn,
.wd-wrap .wd-fb-info {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.wd-wrap .wd-fb-good {
    background: #ecfdf5 !important;
    color: #065f46 !important;
}

.wd-wrap .wd-fb-warn {
    background: #fffbeb !important;
    color: #92400e !important;
}

.wd-wrap .wd-fb-info {
    background: #eff6ff !important;
    color: #1e40af !important;
}

/* Readability tip lines */
.wd-wrap .wd-tip-line {
    padding: 8px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.wd-wrap .wd-tip-line:last-child {
    border-bottom: none !important;
}

/* Copy button inside suggestion items */
.wd-wrap .wd-copy-suggestion {
    padding: 8px 16px !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-copy-suggestion:hover {
    background: #f59e0b !important;
    color: #fff !important;
}

/* Suggestion item span (generated text) */
.wd-wrap .wd-suggestion-item > span {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    min-width: 0 !important;
    word-break: break-word !important;
}

/* Suggestions List */
.wd-wrap .wd-suggestions {
    margin-top: 14px !important;
}

.wd-wrap .wd-suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 2px solid #eaedf2 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-suggestion-item:hover {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}

.wd-wrap .wd-suggestion-text {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    min-width: 200px !important;
}

.wd-wrap .wd-suggestion-meta {
    font-size: 13px !important;
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.wd-wrap .wd-suggestion-actions {
    display: flex !important;
    gap: 10px !important;
}

.wd-wrap .wd-copy-btn {
    padding: 10px 16px !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.wd-wrap .wd-copy-btn:hover {
    background: #e5e7eb !important;
}

.wd-wrap .wd-start-article-btn {
    display: inline-flex !important;
    padding: 10px 16px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-start-article-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35) !important;
    color: #fff !important;
}

/* Text Formatter */
.wd-wrap .wd-tf-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* Writing Tips */
.wd-wrap .wd-tips-tabs {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-tip-cat {
    padding: 10px 18px !important;
    background: #f3f4f6 !important;
    border: none !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
}

.wd-wrap .wd-tip-cat:hover {
    background: #e5e7eb !important;
}

.wd-wrap .wd-tip-cat.active {
    background: #f59e0b !important;
    color: #fff !important;
}

.wd-wrap .wd-tips-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.wd-wrap .wd-tip-item {
    padding: 14px !important;
    background: #f9fafb !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 0 10px 10px 0 !important;
}

.wd-wrap .wd-tip-item h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 6px !important;
}

.wd-wrap .wd-tip-item p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Notes List */
.wd-wrap .wd-notes-list {
    margin-top: 14px !important;
}

.wd-wrap .wd-note-item {
    padding: 14px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

.wd-wrap .wd-note-item p {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    color: #374151 !important;
}

.wd-wrap .wd-note-meta {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}

.wd-wrap .wd-note-meta a {
    color: #ef4444 !important;
}

/* Info Box */
.wd-wrap .wd-info-box {
    padding: 14px !important;
    background: #eff6ff !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #1e40af !important;
}

/* ═══════════════════════════════════════════════════════════════
   PHOTOPEA GUIDE
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-pp-guide {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.wd-wrap .wd-pp-step {
    display: flex !important;
    gap: 16px !important;
    padding: 20px !important;
    background: #f9fafb !important;
    border-radius: 14px !important;
    border-left: 4px solid #f59e0b !important;
}

.wd-wrap .wd-pp-step-num {
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

.wd-wrap .wd-pp-step-content {
    flex: 1 !important;
}

.wd-wrap .wd-pp-step-content strong {
    display: block !important;
    font-size: 15px !important;
    color: #1f2937 !important;
    margin-bottom: 6px !important;
}

.wd-wrap .wd-pp-step-content p {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.wd-wrap .wd-pp-step-content code {
    background: #e5e7eb !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-family: monospace !important;
}

.wd-wrap .wd-pp-step-content kbd {
    background: #1f2937 !important;
    color: #fff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-family: monospace !important;
}

.wd-wrap .wd-pp-anim {
    height: 40px !important;
    margin-top: 12px !important;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), transparent) !important;
    background-size: 200% 100% !important;
    animation: wdPpShimmer 2s infinite !important;
    border-radius: 6px !important;
}

@keyframes wdPpShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.wd-wrap .wd-required-badge {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    padding: 2px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.wd-wrap .wd-warning-box {
    margin-top: 12px !important;
    padding: 12px !important;
    background: #fef2f2 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    color: #dc2626 !important;
    font-weight: 600 !important;
}

.wd-wrap .wd-pp-icon {
    font-size: 32px !important;
    display: block !important;
    margin-bottom: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════
   LINK MODAL TABS
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-lm-tabs {
    display: flex !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #eaedf2 !important;
}

.wd-wrap .wd-lm-tab {
    flex: 1 !important;
    padding: 14px !important;
    background: #fafbfc !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s !important;
}

.wd-wrap .wd-lm-tab:first-child {
    border-radius: 8px 0 0 0 !important;
}

.wd-wrap .wd-lm-tab:last-child {
    border-radius: 0 8px 0 0 !important;
}

.wd-wrap .wd-lm-tab:hover {
    background: #fff !important;
}

.wd-wrap .wd-lm-tab.active {
    background: #fff !important;
    color: #f59e0b !important;
    border-bottom-color: #f59e0b !important;
}

.wd-wrap .wd-lm-panel {
    padding: 4px 0 !important;
}

/* Link modal panel visibility — class-controlled */
#wd-lm-internal, #wd-lm-external {
    display: none !important;
}
#wd-lm-internal.wd-lm-panel-active, #wd-lm-external.wd-lm-panel-active {
    display: block !important;
}

.wd-wrap .wd-lm-results {
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: 12px !important;
}

.wd-wrap .wd-lm-selected {
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: #fffbeb !important;
    border: 2px solid #f59e0b !important;
    border-radius: 10px !important;
    margin-top: 12px !important;
}
.wd-wrap .wd-lm-selected.wd-lm-sel-visible {
    display: flex !important;
}

.wd-wrap .wd-link-opts {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
}

.wd-wrap .wd-link-opts label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    cursor: pointer !important;
}

/* Old responsive section removed — see CPP-style mobile section at bottom */

/* ═══════════════════════════════════════════════════════════════
   TABLE CONTEXT MENU
   ═══════════════════════════════════════════════════════════════ */
.wd-table-context-menu {
    display: none;
    position: fixed !important;
    z-index: 9999999 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    min-width: 180px !important;
    padding: 6px 0 !important;
    overflow: hidden !important;
}

.wd-table-context-menu button {
    display: block !important;
    width: 100% !important;
    padding: 10px 16px !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    font-size: 14px !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}

.wd-table-context-menu button:hover {
    background: #f3f4f6 !important;
}

.wd-table-context-menu button.wd-ctx-danger {
    color: #ef4444 !important;
}

.wd-table-context-menu button.wd-ctx-danger:hover {
    background: #fef2f2 !important;
}

.wd-table-context-menu hr {
    margin: 6px 0 !important;
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Editor Tables */
.wd-wrap .wd-content-editable table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 16px 0 !important;
    table-layout: fixed !important;
    word-wrap: break-word !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.wd-wrap .wd-content-editable td,
.wd-wrap .wd-content-editable th {
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
    min-width: 60px !important;
    cursor: pointer !important;
}

.wd-wrap .wd-content-editable th {
    background: #f5f5f5 !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════════════
   PHOTOPEA GUIDE MODAL
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-modal-lg {
    max-width: 650px !important;
}

.wd-wrap .wd-modal-sm {
    max-width: 400px !important;
}

.wd-wrap .wd-pp-guide {
    position: relative !important;
    min-height: 280px !important;
}

.wd-wrap .wd-pp-step {
    display: none !important;
    padding: 0 !important;
}

.wd-wrap .wd-pp-step.active {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

.wd-wrap .wd-pp-step-num {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.wd-wrap .wd-pp-step-content {
    flex: 1 !important;
}

.wd-wrap .wd-pp-step-content strong {
    display: block !important;
    font-size: 18px !important;
    margin-bottom: 8px !important;
    color: #1f2937 !important;
}

.wd-wrap .wd-pp-step-content p {
    color: #6b7280 !important;
    margin: 0 0 16px !important;
    line-height: 1.6 !important;
}

.wd-wrap .wd-pp-step-content kbd {
    background: #f3f4f6 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-size: 13px !important;
    border: 1px solid #e5e7eb !important;
}

/* Photopea Animations */
.wd-wrap .wd-pp-anim {
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 100px !important;
}

/* Click animation */
.wd-wrap .wd-anim-click {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.wd-wrap .wd-anim-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.wd-wrap .wd-anim-cursor {
    width: 20px !important;
    height: 20px !important;
    background: #1f2937 !important;
    border-radius: 50% !important;
    animation: cursorMove 1.5s ease-in-out infinite !important;
    position: relative !important;
}

.wd-wrap .wd-anim-cursor::after {
    content: '' !important;
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -4px !important;
    border: 2px solid rgba(31, 41, 55, 0.3) !important;
    border-radius: 50% !important;
    animation: cursorPulse 1.5s ease-in-out infinite !important;
}

@keyframes cursorMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 0); }
}

@keyframes cursorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0; }
}

/* Menu animation */
.wd-wrap .wd-anim-menu {
    text-align: left !important;
}

.wd-wrap .wd-anim-menubar {
    background: #374151 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    display: inline-block !important;
    border-radius: 6px 6px 0 0 !important;
    font-size: 13px !important;
}

.wd-wrap .wd-anim-dropdown {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 0 8px 8px !important;
    display: inline-block !important;
    padding: 6px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.wd-wrap .wd-anim-dropdown span {
    display: block !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    color: #374151 !important;
}

.wd-wrap .wd-anim-dropdown .wd-highlight {
    background: #fef3c7 !important;
    animation: highlightPulse 1.5s ease-in-out infinite !important;
}

@keyframes highlightPulse {
    0%, 100% { background: #fef3c7; }
    50% { background: #fcd34d; }
}

/* Text typing animation */
.wd-wrap .wd-anim-text {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.wd-wrap .wd-anim-canvas {
    flex: 1 !important;
    background: #fff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

.wd-wrap .wd-typing-text {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.wd-wrap .wd-typing-text::after {
    content: 'Your Title Here|' !important;
    animation: typing 3s steps(15) infinite !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

@keyframes typing {
    0% { content: '|'; }
    10% { content: 'Y|'; }
    20% { content: 'Yo|'; }
    30% { content: 'You|'; }
    40% { content: 'Your|'; }
    50% { content: 'Your T|'; }
    60% { content: 'Your Ti|'; }
    70% { content: 'Your Tit|'; }
    80% { content: 'Your Titl|'; }
    90% { content: 'Your Title|'; }
    100% { content: 'Your Title|'; }
}

.wd-wrap .wd-anim-tool-icon {
    width: 40px !important;
    height: 40px !important;
    background: #374151 !important;
    color: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Export animation */
.wd-wrap .wd-anim-export {
    display: flex !important;
    justify-content: center !important;
}

.wd-wrap .wd-anim-export-box {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
}

.wd-wrap .wd-anim-preview-img {
    width: 120px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #fef3c7, #fcd34d) !important;
    border-radius: 6px !important;
    margin: 0 auto 12px !important;
}

.wd-wrap .wd-anim-save-btn {
    background: #10b981 !important;
    color: #fff !important;
    padding: 8px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    animation: savePulse 1.5s ease-in-out infinite !important;
}

@keyframes savePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Upload animation */
.wd-wrap .wd-anim-upload {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
}

.wd-wrap .wd-anim-file {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.wd-wrap .wd-anim-arrow {
    font-size: 24px !important;
    color: #f59e0b !important;
    animation: arrowMove 1s ease-in-out infinite !important;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.wd-wrap .wd-anim-result {
    font-size: 32px !important;
    animation: resultPop 1.5s ease-in-out infinite !important;
}

@keyframes resultPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Guide navigation */
.wd-wrap .wd-pp-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e5e7eb !important;
}

.wd-wrap #wd-pp-step-indicator {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED IMAGE PHOTOPEA SECTION
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-pp-hint {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 12px 0 !important;
    line-height: 1.5 !important;
}

.wd-wrap .wd-featured-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 30px !important;
    color: #9ca3af !important;
}

.wd-wrap .wd-pp-icon {
    font-size: 48px !important;
}

.wd-wrap .wd-required-badge {
    background: #fef3c7 !important;
    color: #d97706 !important;
    font-size: 11px !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
}

.wd-wrap .wd-warning-box {
    background: #fef3c7 !important;
    color: #92400e !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    margin-top: 12px !important;
}

.wd-wrap .wd-btn-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 10px 16px !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.wd-wrap .wd-btn-danger:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE MODAL
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-tm-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.wd-wrap .wd-tm-grid label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #374151 !important;
}

.wd-wrap .wd-tm-header-opt {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
    font-size: 14px !important;
    color: #374151 !important;
}

/* ═══════════════════════════════════════════════════════════════
   BLOCKER BOX (for submit requirements)
   ═══════════════════════════════════════════════════════════════ */
.wd-wrap .wd-blocker-box {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    padding: 14px !important;
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #dc2626 !important;
}

.wd-wrap .wd-blocker-box strong {
    display: block !important;
    margin-bottom: 6px !important;
}

.wd-wrap .wd-blocker-box ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.wd-wrap .wd-blocker-box li {
    margin: 4px 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE CONTROLS (NEW - replaces context menu)
   ═══════════════════════════════════════════════════════════════ */
.wd-table-controls {
    display: none;
    position: absolute !important;
    z-index: 9999 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    padding: 6px !important;
    gap: 4px !important;
}

.wd-table-controls button {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wd-table-controls button:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.wd-table-controls button.wd-ctrl-delete {
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.wd-table-controls button.wd-ctrl-delete:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
}

/* Selected table highlight */
.wd-wrap .wd-content-editable table.wd-table-selected {
    outline: 2px solid #f59e0b !important;
    outline-offset: 2px !important;
}

/* Table controls hint */
.wd-wrap .wd-table-hint {
    font-size: 12px !important;
    color: #9ca3af !important;
    text-align: center !important;
    padding: 8px !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
    margin-top: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════
   WRITER QUALIFICATION TEST - FULL STYLES
   ═══════════════════════════════════════════════════════════════ */
.wd-quiz-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.wd-quiz-overlay.active {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 20px !important;
}

.wd-quiz-container {
    width: 100% !important;
    max-width: 700px !important;
    margin: auto !important;
    position: relative !important;
    padding: 20px 0 !important;
}

.wd-quiz-screen {
    display: none !important;
    animation: wdQuizFadeIn 0.4s ease !important;
}

.wd-quiz-screen.active {
    display: block !important;
}

@keyframes wdQuizFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro Screen */
.wd-quiz-intro-content {
    text-align: center !important;
    padding: 40px !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.wd-quiz-logo {
    font-size: 64px !important;
    margin-bottom: 20px !important;
    animation: wdQuizBounce 2s infinite !important;
}

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

.wd-quiz-intro-content h1 {
    color: #fff !important;
    font-size: 32px !important;
    margin-bottom: 16px !important;
    font-weight: 700 !important;
}

.wd-quiz-intro-content p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

.wd-quiz-rules {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 30px !important;
}

.wd-rule {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: rgba(255,255,255,0.08) !important;
    padding: 16px !important;
    border-radius: 12px !important;
    text-align: left !important;
}

.wd-rule span:first-child {
    font-size: 24px !important;
}

.wd-rule div {
    color: #fff !important;
    font-size: 14px !important;
}

.wd-rule strong {
    color: #f59e0b !important;
}

.wd-quiz-start-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 48px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 40px rgba(245,158,11,0.3) !important;
}

.wd-quiz-start-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 50px rgba(245,158,11,0.4) !important;
}

.wd-btn-arrow {
    transition: transform 0.3s ease !important;
}

.wd-quiz-start-btn:hover .wd-btn-arrow {
    transform: translateX(5px) !important;
}

/* Question Screen */
.wd-quiz-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 16px !important;
}

.wd-quiz-progress {
    flex: 1 !important;
    margin-right: 20px !important;
}

.wd-quiz-progress-bar {
    height: 8px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

.wd-quiz-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #10b981, #34d399) !important;
    border-radius: 4px !important;
    transition: width 0.3s ease !important;
    width: 0% !important;
}

.wd-quiz-progress span {
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px !important;
}

.wd-quiz-timer {
    position: relative !important;
    width: 70px !important;
    height: 70px !important;
}

.wd-timer-svg {
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg) !important;
}

.wd-timer-bg {
    fill: none !important;
    stroke: rgba(255,255,255,0.1) !important;
    stroke-width: 6 !important;
}

.wd-timer-progress {
    fill: none !important;
    stroke: #10b981 !important;
    stroke-width: 6 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 283 !important;
    stroke-dashoffset: 0 !important;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease !important;
}

.wd-timer-progress.warning {
    stroke: #f59e0b !important;
}

.wd-timer-progress.danger {
    stroke: #ef4444 !important;
}

.wd-timer-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

.wd-quiz-question-wrap {
    background: rgba(255,255,255,0.05) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    margin-bottom: 24px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.wd-quiz-category {
    display: inline-block !important;
    background: rgba(245,158,11,0.2) !important;
    color: #f59e0b !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 16px !important;
}

.wd-quiz-question {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.wd-quiz-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.wd-quiz-option {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    padding: 18px 24px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    color: #fff !important;
    font-size: 16px !important;
}

.wd-quiz-option:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(245,158,11,0.5) !important;
    transform: translateX(5px) !important;
}

.wd-quiz-option.selected {
    background: rgba(245,158,11,0.2) !important;
    border-color: #f59e0b !important;
}

.wd-quiz-option.correct {
    background: rgba(16,185,129,0.2) !important;
    border-color: #10b981 !important;
}

.wd-quiz-option.wrong {
    background: rgba(239,68,68,0.2) !important;
    border-color: #ef4444 !important;
}

.wd-quiz-option.disabled {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.wd-option-letter {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.wd-quiz-option.selected .wd-option-letter {
    background: #f59e0b !important;
    color: #fff !important;
}

/* Results Screen */
.wd-quiz-results-content {
    text-align: center !important;
}

.wd-result-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.wd-result-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #f59e0b, #10b981, #3b82f6) !important;
}

.wd-result-badge {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    animation: wdBadgePop 0.6s ease !important;
}

@keyframes wdBadgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wd-result-badge.grade-a {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(16,185,129,0.4) !important;
}

.wd-result-badge.grade-b {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(59,130,246,0.4) !important;
}

.wd-result-badge.grade-c {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(245,158,11,0.4) !important;
}

.wd-result-badge.grade-f {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(239,68,68,0.4) !important;
}

.wd-result-congrats {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 8px !important;
}

.wd-result-name {
    font-size: 20px !important;
    color: #6b7280 !important;
    margin-bottom: 24px !important;
}

.wd-result-score {
    margin-bottom: 16px !important;
}

.wd-score-big {
    display: block !important;
    font-size: 56px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.wd-score-detail {
    display: block !important;
    font-size: 16px !important;
    color: #9ca3af !important;
}

.wd-result-grade-label {
    display: inline-block !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.wd-result-date {
    font-size: 13px !important;
    color: #9ca3af !important;
}

.wd-result-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.wd-result-actions button {
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.wd-share-panel {
    background: rgba(255,255,255,0.05) !important;
    padding: 24px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
}

.wd-share-panel h4 {
    color: #fff !important;
    margin-bottom: 16px !important;
    font-size: 16px !important;
}

.wd-share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
}

.wd-share-btn {
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #fff !important;
}

.wd-share-whatsapp { background: #25D366 !important; }
.wd-share-twitter { background: #1DA1F2 !important; }
.wd-share-facebook { background: #4267B2 !important; }
.wd-share-linkedin { background: #0077B5 !important; }
.wd-share-copy { background: #6b7280 !important; }

.wd-share-btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

#wd-continue-dashboard {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
}

/* Review Screen */
.wd-review-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.wd-back-btn {
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.wd-review-header h2 {
    color: #fff !important;
    font-size: 24px !important;
    margin: 0 !important;
}

.wd-review-summary {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
}

.wd-review-correct, .wd-review-wrong {
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.wd-review-correct {
    background: rgba(16,185,129,0.2) !important;
    color: #10b981 !important;
}

.wd-review-wrong {
    background: rgba(239,68,68,0.2) !important;
    color: #ef4444 !important;
}

.wd-review-list {
    max-height: 500px !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
}

.wd-review-item {
    background: rgba(255,255,255,0.05) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 12px !important;
    border-left: 4px solid !important;
}

.wd-review-item.correct {
    border-color: #10b981 !important;
}

.wd-review-item.wrong {
    border-color: #ef4444 !important;
}

.wd-review-q-num {
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    margin-bottom: 8px !important;
}

.wd-review-q-text {
    color: #fff !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
}

.wd-review-answers {
    font-size: 14px !important;
}

.wd-review-your-answer {
    color: #ef4444 !important;
    margin-bottom: 4px !important;
}

.wd-review-item.correct .wd-review-your-answer {
    color: #10b981 !important;
}

.wd-review-correct-answer {
    color: #10b981 !important;
}

/* Grade badge in dashboard */
.wd-grade-badge {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

.wd-grade-a {
    background: rgba(16,185,129,0.15) !important;
    color: #10b981 !important;
}

.wd-grade-b {
    background: rgba(59,130,246,0.15) !important;
    color: #3b82f6 !important;
}

.wd-grade-c {
    background: rgba(245,158,11,0.15) !important;
    color: #f59e0b !important;
}

.wd-grade-f {
    background: rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE CARDS — Hidden on desktop, shown on mobile
   ═══════════════════════════════════════════════════════════════ */
.wd-mob-card-row{display:none}
.wd-mob-card{padding:14px 16px;background:#fff;border-radius:0;margin:0}
.wd-mob-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px}
.wd-mob-card-title{flex:1;font-size:15px;font-weight:700;line-height:1.3;word-break:break-word}
.wd-mob-card-title a{text-decoration:none!important;color:#1d4ed8!important;font-weight:700!important}
.wd-mob-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:10px;font-weight:700;text-transform:uppercase;white-space:nowrap;flex-shrink:0}
.wd-mob-card-meta{display:flex;flex-wrap:wrap;gap:4px;font-size:12px;color:#9ca3af;margin-bottom:10px}
.wd-mob-card-actions{display:flex;gap:6px;flex-wrap:wrap}
.wd-mob-action-btn{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:7px 14px!important;border-radius:8px!important;font-size:12px!important;font-weight:600!important;text-decoration:none!important;border:none!important;font-family:inherit!important;cursor:pointer!important;width:auto!important;height:auto!important}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — CPP-STYLE
   ═══════════════════════════════════════════════════════════════ */

/* ═══ TABLET ═══ */
@media (max-width: 1024px) {
    .wd-wrap {
        padding: 20px 16px !important;
    }
    .wd-wrap .wd-ed-body {
        display: block !important;
    }
    .wd-wrap .wd-ed-main {
        margin-bottom: 16px !important;
    }
    .wd-wrap .wd-ed-side {
        position: static !important;
        width: 100% !important;
    }
    .wd-wrap .wd-status-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ═══ MOBILE — PHONE ═══ */
@media (max-width: 768px) {
    /* BASE */
    .wd-wrap {
        margin: 6px auto !important;
        padding: 0 6px !important;
        font-size: 14px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* DASHBOARD HEADER */
    .wd-wrap .wd-dash-header {
        text-align: center !important;
        padding: 28px 16px 22px !important;
        margin-bottom: 20px !important;
    }
    .wd-wrap .wd-dash-title {
        font-size: 32px !important;
        letter-spacing: -1px !important;
    }
    .wd-wrap .wd-dash-title-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .wd-wrap .wd-dash-welcome {
        font-size: 14px !important;
        margin-top: 8px !important;
    }
    .wd-wrap .wd-dash-actions {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .wd-wrap .wd-dash-actions .wd-btn-primary,
    .wd-wrap .wd-dash-actions .wd-btn-secondary {
        flex: 1 !important;
        justify-content: center !important;
        padding: 12px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
    }

    /* STATUS CARDS — hidden on mobile */
    .wd-wrap .wd-status-cards {
        display: none !important;
    }

    /* TABS — CPP-style pills */
    .wd-wrap .wd-tabs {
        flex-wrap: wrap !important;
        gap: 4px !important;
        padding: 0 6px 12px !important;
        margin-bottom: 12px !important;
    }
    .wd-wrap .wd-tab {
        font-size: 12px !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    .wd-wrap .wd-tab-num {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }

    /* ARTICLES — HIDE DESKTOP TABLE, SHOW MOBILE CARDS */
    .wd-wrap .wd-articles-section {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    .wd-wrap .wd-table-wrap {
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .wd-wrap .wd-table thead { display: none !important; }
    .wd-wrap .wd-article-row { display: none !important; }
    .wd-mob-card-row { display: table-row !important; }
    .wd-mob-card-row > td {
        padding: 0 !important;
        border-bottom: 1px solid #f0f1f3 !important;
        display: block !important;
    }
    .wd-mob-card { padding: 14px 16px !important; }
    .wd-wrap .wd-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    .wd-wrap .wd-table tbody {
        display: block !important;
    }

    /* PAGINATION */
    .wd-wrap .wd-pagination {
        padding: 16px 0 !important;
        gap: 4px !important;
    }
    .wd-wrap .wd-pg-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    /* EMPTY STATE */
    .wd-wrap .wd-empty {
        padding: 48px 20px !important;
    }

    /* TOOLS */
    .wd-wrap .wd-tools-section {
        margin: 20px 0 0 !important;
    }
    .wd-wrap .wd-tools-title {
        font-size: 18px !important;
        padding: 0 6px !important;
    }
    .wd-wrap .wd-tools-bar {
        padding: 10px !important;
        gap: 6px !important;
        border-radius: 12px !important;
    }
    .wd-wrap .wd-tool-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        flex: 1 1 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        justify-content: center !important;
    }
    .wd-wrap .wd-tool-item span:first-child {
        font-size: 16px !important;
    }
    .wd-wrap .wd-btn-primary,
    .wd-wrap .wd-btn-secondary {
        padding: 8px 14px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    /* ═══ EDITOR LAYOUT — CPP-style compact ═══ */
    .wd-wrap .wd-ed-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    .wd-wrap .wd-ed-head-l,
    .wd-wrap .wd-back-link {
        font-size: 13px !important;
    }
    .wd-wrap .wd-ed-title {
        font-size: 18px !important;
    }
    .wd-wrap .wd-lock-badge {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    .wd-wrap .wd-ed-body {
        display: block !important;
        gap: 0 !important;
    }
    .wd-wrap .wd-ed-main {
        margin-bottom: 16px !important;
    }
    .wd-wrap .wd-ed-side {
        position: static !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* TITLE INPUT */
    .wd-wrap .wd-title-input {
        font-size: 18px !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }
    .wd-wrap .wd-title-count {
        font-size: 11px !important;
        margin-top: 6px !important;
    }

    /* TOOLBAR — bigger for touch targets */
    .wd-wrap .wd-toolbar {
        flex-wrap: wrap !important;
        gap: 4px !important;
        padding: 10px !important;
    }
    .wd-wrap .wd-toolbar button {
        padding: 10px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
    .wd-wrap .wd-tb-sep {
        display: none !important;
    }

    /* CONTENT AREA — taller typing box */
    .wd-wrap .wd-content-editable {
        min-height: 420px !important;
        padding: 14px !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    .wd-wrap .wd-content-editable h2 { font-size: 18px !important; }
    .wd-wrap .wd-content-editable h3 { font-size: 16px !important; }
    .wd-wrap .wd-content-editable h4 { font-size: 15px !important; }

    .wd-wrap .wd-ed-footer {
        font-size: 11px !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    /* SIDEBAR CARDS — CPP-style */
    .wd-wrap .wd-card {
        padding: 14px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }
    .wd-wrap .wd-card-head {
        font-size: 10px !important;
        margin-bottom: 10px !important;
    }
    .wd-wrap .wd-select {
        font-size: 14px !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }
    .wd-wrap .wd-input {
        font-size: 14px !important;
        padding: 10px !important;
        border-radius: 8px !important;
    }
    .wd-wrap .wd-textarea-sm {
        font-size: 13px !important;
        padding: 10px !important;
        min-height: 60px !important;
    }
    .wd-wrap .wd-char-count {
        font-size: 11px !important;
    }
    .wd-wrap .wd-btn-full {
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    .wd-wrap .wd-status-row {
        font-size: 13px !important;
    }

    /* AI CHECKER — compact */
    .wd-wrap .wd-ai-checker-header {
        padding: 10px 12px !important;
    }
    .wd-wrap .wd-ai-checker-header h4 {
        font-size: 12px !important;
    }
    .wd-wrap .wd-ai-check-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    .wd-wrap .wd-ai-status {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
    .wd-wrap .wd-ai-issue {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    .wd-wrap .wd-submit-helper {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }

    /* MODALS */
    .wd-wrap .wd-modal-box {
        max-width: 100% !important;
        margin: 8px !important;
        border-radius: 14px !important;
        max-height: 90vh !important;
    }
    .wd-wrap .wd-modal-head {
        padding: 14px 16px !important;
    }
    .wd-wrap .wd-modal-title {
        font-size: 16px !important;
    }
    .wd-wrap .wd-modal-body {
        padding: 16px !important;
    }
    .wd-wrap .wd-textarea {
        min-height: 100px !important;
        font-size: 14px !important;
    }

    /* EDUCATION SECTION */
    .wd-wrap .wd-edu-tools {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 14px !important;
    }
    .wd-wrap .wd-edu-tool {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    .wd-wrap .wd-edu-header {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 14px !important;
    }
    .wd-wrap .wd-edu-subjects {
        padding: 10px 14px !important;
    }
    .wd-wrap .wd-edu-curriculum-list {
        grid-template-columns: 1fr !important;
    }
    .wd-wrap .wd-edu-docs-grid {
        grid-template-columns: 1fr !important;
    }
    .wd-wrap .wd-edu-docs-grid > div {
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding: 14px !important;
    }
    .wd-wrap .wd-edu-docs-grid > div:last-child {
        border-bottom: none !important;
    }
    .wd-wrap .wd-edu-editor-card .wd-edu-subjects {
        flex-wrap: wrap !important;
    }
    .wd-wrap .wd-edu-editor-card button {
        font-size: 12px !important;
        padding: 7px 8px !important;
    }

    /* QUIZ/ANNOUNCEMENT OVERLAYS */
    .wd-wrap .wd-quiz-container {
        padding: 16px !important;
    }
    .wd-wrap .wd-quiz-intro-content h1 {
        font-size: 22px !important;
    }
    .wd-wrap .wd-quiz-start-btn {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    /* SUGGESTION ITEMS */
    .wd-wrap .wd-suggestion-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* ═══ SMALL PHONE ═══ */
@media (max-width: 480px) {
    .wd-wrap { padding: 0 4px !important; }
    .wd-wrap .wd-dash-title { font-size: 26px !important; }
    .wd-wrap .wd-ed-title { font-size: 16px !important; }
    .wd-wrap .wd-title-input { font-size: 16px !important; padding: 10px !important; }
    .wd-wrap .wd-toolbar button { padding: 8px 10px !important; font-size: 12px !important; }
    .wd-wrap .wd-content-editable { min-height: 350px !important; padding: 12px !important; font-size: 14px !important; }
    .wd-wrap .wd-card { padding: 12px !important; border-radius: 10px !important; }
    .wd-wrap .wd-status-cards { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .wd-wrap .wd-scard { padding: 12px !important; }
    .wd-wrap .wd-scard-val { font-size: 26px !important; }
    .wd-wrap .wd-scard-label { font-size: 10px !important; }
    .wd-wrap .wd-tab { font-size: 11px !important; padding: 6px 10px !important; }
    .wd-wrap .wd-tool-item { flex: 1 1 100% !important; min-width: 100% !important; padding: 12px 16px !important; font-size: 14px !important; }
    .wd-wrap .wd-btn-full { font-size: 13px !important; }
    .wd-wrap .wd-select, .wd-wrap .wd-input { font-size: 13px !important; padding: 8px !important; }
    .wd-mob-card-title { font-size: 14px !important; }
    .wd-mob-card-meta { font-size: 11px !important; }
}

/* ═══ VERY SMALL PHONE ═══ */
@media (max-width: 360px) {
    .wd-wrap .wd-toolbar { padding: 4px !important; }
    .wd-wrap .wd-toolbar button { padding: 4px 5px !important; font-size: 9px !important; }
    .wd-wrap .wd-title-input { font-size: 15px !important; padding: 8px !important; }
    .wd-wrap .wd-content-editable { font-size: 13px !important; padding: 8px !important; }
    .wd-wrap .wd-dash-title { font-size: 22px !important; }
    .wd-wrap .wd-status-cards { grid-template-columns: 1fr !important; }
    .wd-wrap .wd-scard-val { font-size: 22px !important; }
    .wd-wrap .wd-card { padding: 10px !important; }
}


/* ═══ SPINNERS ═══ */
.wd-spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: wd-spin 0.6s linear infinite !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
}
.wd-spinner-lg {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid #eaedf2 !important;
    border-top-color: #f59e0b !important;
    border-radius: 50% !important;
    animation: wd-spin 0.7s linear infinite !important;
    margin: 0 auto !important;
}
@keyframes wd-spin { to { transform: rotate(360deg); } }
.wd-ai-check-btn .wd-spinner {
    border-color: rgba(0,0,0,0.15) !important;
    border-top-color: #f59e0b !important;
}
.wd-btn-secondary .wd-spinner {
    border-color: rgba(0,0,0,0.15) !important;
    border-top-color: #374151 !important;
}


