/* variables.css komt binnen via de tamrank-variables-late dependency (zie register_common_styles). */

/* WP admin page background + WP padding reset */
.toplevel_page_tam-rank-dashboard #wpcontent,
.toplevel_page_tam-rank-dashboard #wpbody,
.toplevel_page_tam-rank-dashboard #wpbody-content {
    background: var(--tr-color-base);
}

.toplevel_page_tam-rank-dashboard #wpcontent,
.toplevel_page_tam-rank-dashboard #wpbody-content {
    padding: 0 !important;
}

/* Centering wrapper: overflow:hidden maakt nieuwe BFC zodat margin:auto werkt */
.tam-dashboard-wrap {
    width: 100%;
    overflow: hidden;
}

/* Focus Dashboard Base */
.tam-focus-dashboard {
    font-family: var(--tr-font-family);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: var(--tr-space-8) var(--tr-space-6);
    box-sizing: border-box;
}

/* Header Widget (New Replace for Score Hero & GSC Quick Widget) */
.tam-header-widget {
    background: var(--tr-color-white);
    border-radius: var(--tr-radius-2xl);
    box-shadow: var(--tr-shadow-sm);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Widget: Top Row */
.tam-header-top {
    display: flex;
    align-items: center;
    padding: 32px 40px;
    gap: 40px;
}

.tam-header-score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* space between circle and label */
    flex-shrink: 0;
}

.tam-header-score-circle-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tam-header-score-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.tam-score-bg {
    stroke: var(--tr-color-slate-100);
}

.tam-score-fill {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tam-header-score-value {
    position: relative;
    z-index: 2;
}

.tam-header-score-number {
    font-size: var(--tr-text-5xl);
    /* Assuming 48-56px is in --tr-text-5xl range based on theme sizes */
    font-weight: var(--tr-font-extrabold);
    color: var(--tr-color-slate-800);
    line-height: 1;
}

.tam-header-score-label {
    font-size: var(--tr-text-base);
    font-weight: var(--tr-font-bold);
    letter-spacing: 0.05em;
    color: var(--tr-color-slate-500);
}

.tam-header-stats-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tam-header-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tam-header-chip {
    padding: 8px 16px;
    background: var(--tr-color-white);
    border: 1px solid var(--tr-color-slate-200);
    border-radius: 20px;
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-medium);
    color: var(--tr-color-slate-600);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tam-header-action-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.tam-btn-scan-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--tr-radius-lg);
    font-weight: var(--tr-font-semibold);
    font-size: var(--tr-text-base);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
    /* Note: Cannot use CSS var hex for rgba unless var is rgb parts. Keeping as rgba for specific hue */
}

.tam-btn-scan-refresh:hover {
    background: var(--tr-color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--tr-shadow-sm);
    text-decoration: none;
}

.tam-header-action-meta {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-400);
}

/* Header Widget: Bottom Row (GSC) */
.tam-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid var(--tr-color-slate-100);
    background: var(--tr-color-slate-50);
}

.tam-header-gsc-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tam-header-gsc-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-600);
}

.tam-header-gsc-metric svg {
    color: var(--tr-color-slate-400);
}

.tam-header-gsc-metric strong {
    color: var(--tr-color-slate-800);
    font-size: var(--tr-text-base);
    font-weight: var(--tr-font-bold);
}

.tam-gsc-label-text {
    color: var(--tr-color-slate-500);
}

.tam-gsc-trend {
    display: inline-flex;
    align-items: center;
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    margin-left: 2px;
}

.tam-gsc-trend.tam-trend-up {
    color: var(--tr-color-status-excellent);
}

.tam-gsc-trend.tam-trend-down {
    color: var(--tr-color-status-improve);
}

.tam-header-gsc-separator {
    width: 1px;
    height: 24px;
    background: var(--tr-color-slate-200);
}

.tam-header-gsc-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.tam-header-gsc-link:hover {
    color: var(--tr-color-primary-hover);
}

/* Responsive Header adjustments */
@media (max-width: 1024px) {
    .tam-header-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 24px;
    }

    .tam-header-action-section {
        align-items: flex-start;
        width: 100%;
    }

    .tam-header-score-section {
        margin: 0 auto;
    }

    .tam-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 32px;
    }

}

/* Sections */
.tam-section {
    margin-bottom: var(--tr-space-8);
}

.tam-section:last-of-type {
    margin-bottom: 0;
}

.tam-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: var(--tr-space-4);
}

.tam-section-header h3 {
    font-size: var(--tr-text-xl);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
    margin: 0;
}

.tam-section-subtitle {
    font-size: 14px;
    color: var(--tr-color-slate-400);
}

/* Section title with icon */
.tam-section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tam-section-icon {
    width: 40px;
    height: 40px;
    background: var(--tr-color-warning-light);
    border-radius: var(--tr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Filters */
.tam-action-filters {
    display: flex;
    gap: 8px;
}

.tam-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--tr-color-slate-200);
    background: var(--tr-color-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tr-color-slate-500);
    cursor: pointer;
    transition: all var(--tr-transition-base);
}

.tam-filter-btn:hover {
    border-color: var(--tr-color-slate-300);
    color: var(--tr-color-slate-700);
}

.tam-filter-btn.active {
    background: var(--tr-color-slate-800);
    border-color: var(--tr-color-slate-800);
    color: var(--tr-color-white);
}



/* Coming Soon Cards */
.tam-coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.tam-coming-soon-card {
    background: var(--tr-color-slate-100);
    border-radius: var(--tr-radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.7;
    position: relative;
    border: 2px dashed var(--tr-color-slate-200);
}

.tam-coming-soon-icon {
    width: 56px;
    height: 56px;
    background: var(--tr-color-slate-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tam-coming-soon-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tr-color-slate-500);
    margin: 0 0 4px 0;
}

.tam-coming-soon-content p {
    font-size: 13px;
    color: var(--tr-color-slate-400);
    margin: 0;
}

.tam-coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--tr-color-slate-200);
    color: var(--tr-color-slate-500);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* All Actions (Volledig view) */
.tam-all-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tam-all-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--tr-color-white);
    border-radius: var(--tr-radius-lg);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--tr-transition-base);
}

.tam-all-action-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tam-all-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tam-all-action-content {
    flex: 1;
}

.tam-all-action-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--tr-color-slate-800);
    margin: 0 0 2px 0;
}

.tam-all-action-content p {
    font-size: 12px;
    color: var(--tr-color-slate-500);
    margin: 0;
}

.tam-all-action-count {
    padding: 4px 12px;
    border-radius: 16px;
    color: var(--tr-color-white);
    font-weight: 600;
    font-size: 13px;
}

.tam-no-actions-full {
    background: var(--tr-color-slate-100);
    border-radius: var(--tr-radius-lg);
    padding: 24px;
    text-align: center;
}

.tam-no-actions-full p {
    color: var(--tr-color-slate-500);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tam-score-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .tam-score-meta {
        justify-content: center;
    }

    .tam-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tam-action-filters {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tam-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .tam-action-card-new {
        padding: 20px;
    }

    .tam-action-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tam-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tam-coming-soon-grid {
        grid-template-columns: 1fr;
    }

    .tam-section-title-group h3 {
        font-size: 16px;
    }

    .tam-action-card-body h4 {
        font-size: 15px;
    }
}

/* Preview Cards - Coming Soon Features */
.tam-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.tam-preview-card {
    background: var(--tr-color-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--tr-shadow-sm);
    position: relative;
    overflow: hidden;
}

.tam-preview-disabled {
    opacity: 0.75;
}

.tam-preview-disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.tam-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tam-preview-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tam-preview-icon {
    width: 40px;
    height: 40px;
    background: var(--tr-color-slate-100);
    border-radius: var(--tr-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tam-preview-icon-blue {
    background: var(--tr-color-info-light);
}

.tam-preview-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tr-color-slate-500);
    margin: 0;
}

/* Toggle Switch (disabled state) */
.tam-preview-toggle {
    width: 48px;
    height: 26px;
    background: var(--tr-color-slate-200);
    border-radius: 13px;
    position: relative;
    cursor: not-allowed;
}

.tam-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--tr-color-white);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.tam-toggle-disabled {
    opacity: 0.6;
}

/* Preview Stats Grid */
.tam-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.tam-preview-stat {
    background: var(--tr-color-slate-100);
    border-radius: var(--tr-radius-lg);
    padding: 16px 12px;
    text-align: center;
}

.tam-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--tr-color-slate-400);
    line-height: 1;
    margin-bottom: 6px;
}

.tam-stat-label {
    display: block;
    font-size: 11px;
    color: var(--tr-color-slate-400);
    line-height: 1.3;
}

/* Preview Action Row */
.tam-preview-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tr-color-warning-light);
    border-radius: var(--tr-radius-lg);
    padding: 14px 16px;
}

.tam-preview-action-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--tr-color-slate-400);
}

.tam-preview-action-text svg {
    color: var(--tr-color-slate-300);
}

.tam-preview-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--tr-color-slate-300);
    cursor: not-allowed;
}

/* Comparison Bars */
.tam-preview-comparison {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.tam-comparison-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tam-comparison-label {
    width: 100px;
    font-size: 13px;
    color: var(--tr-color-slate-500);
    flex-shrink: 0;
}

.tam-comparison-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tam-comparison-bar {
    height: 10px;
    border-radius: 5px;
    transition: width 0.8s ease-out;
}

.tam-bar-orange {
    background: linear-gradient(90deg, var(--tr-color-warning) 0%, var(--tr-color-warning) 100%);
}

.tam-bar-green {
    background: linear-gradient(90deg, var(--tr-color-primary) 0%, #34d399 100%);
}

.tam-bar-green-dark {
    background: linear-gradient(90deg, #166534 0%, #15803d 100%);
}

.tam-comparison-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--tr-color-slate-400);
    min-width: 30px;
}

/* Preview Insight */
.tam-preview-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--tr-color-info-light);
    border-radius: var(--tr-radius-lg);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--tr-color-slate-400);
    line-height: 1.5;
}

.tam-preview-insight svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--tr-color-slate-300);
}

/* Preview Overlay */
.tam-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.tam-preview-badge {
    background: rgba(31, 41, 55, 0.9);
    color: var(--tr-color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive for Preview Cards */
@media (max-width: 768px) {
    .tam-preview-grid {
        grid-template-columns: 1fr;
    }

    .tam-preview-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .tam-preview-stat {
        padding: 12px 8px;
    }

    .tam-stat-number {
        font-size: 22px;
    }

    .tam-stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tam-preview-card {
        padding: 20px 16px;
    }

    .tam-preview-header h4 {
        font-size: 16px;
    }

    .tam-comparison-label {
        width: 80px;
        font-size: 12px;
    }

    .tam-preview-action {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================================
   JOUW SEO TAKEN — Task List Section
   ============================================================ */

.tam-seo-tasks-section .tam-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tr-space-3);
    margin-bottom: var(--tr-space-4);
}

.tam-seo-tasks-section .tam-section-header h3 {
    font-size: var(--tr-text-lg);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
    letter-spacing: -0.02em;
    margin: 0;
}

.tam-seo-tasks-header-actions {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    flex-shrink: 0;
}

/* "+ Taak toevoegen" button — transparent, hover = #ECEAE7 */
.tam-focus-dashboard .tam-btn-add-task,
.tam-focus-dashboard .tam-btn-add-task:visited {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    box-shadow: none !important;
    text-shadow: none;
    line-height: 1.4;
    height: auto;
    text-decoration: none;
}

.tam-focus-dashboard .tam-btn-add-task:hover,
.tam-focus-dashboard .tam-btn-add-task:focus,
.tam-focus-dashboard .tam-btn-add-task:active {
    background: #ECEAE7 !important;
    border: none !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.tam-seo-tasks-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.tam-seo-tasks-view-all:hover {
    color: #059669;
}

/* Task list — cards with 6px gap */
.tam-seo-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Card */
.tam-task-card {
    background: var(--tr-color-white);
    border: 1px solid var(--tr-color-slate-200);
    border-radius: var(--tr-radius-lg);
    box-shadow: var(--tr-shadow-sm);
    overflow: hidden;
    transition: border-color var(--tr-transition-base), box-shadow var(--tr-transition-base);
}

/* Active state: green border + glow */
.tam-task-card.is-open {
    border-color: var(--tr-color-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), var(--tr-shadow-sm);
}

/* Completed state */
.tam-task-card.is-completed {
    opacity: 0.6;
}

.tam-task-card.is-completed .tam-task-title {
    color: var(--tr-color-slate-400);
    text-decoration: line-through;
}

/* Header row */
.tam-task-card-header {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    padding: var(--tr-space-3) var(--tr-space-4);
    cursor: pointer;
    user-select: none;
}

/* Progress counter (grouped) */
.tam-task-progress {
    flex-shrink: 0;
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    background: var(--tr-color-primary-light);
    color: var(--tr-color-primary);
    border-radius: var(--tr-radius-full);
    font-size: var(--tr-text-xs);
    font-weight: var(--tr-font-bold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Checkbox wrapper */
.tam-task-checkbox-wrap {
    flex-shrink: 0;
}

.tam-task-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tam-task-checkbox input[type="checkbox"] {
    display: none;
}

.tam-task-checkbox-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--tr-color-slate-200);
    background: var(--tr-color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tr-transition-base), border-color var(--tr-transition-base);
    color: transparent;
    flex-shrink: 0;
}

.tam-task-checkbox input[type="checkbox"]:checked ~ .tam-task-checkbox-icon {
    background: var(--tr-color-primary);
    border-color: var(--tr-color-primary);
    color: var(--tr-color-white);
    animation: trPop 0.25s ease;
}

/* Piek-moment: actie afvinken — check tekent zich in (keyframes in
   common/motion.css, Branding §Motion & Feedback). */
.tam-task-checkbox input[type="checkbox"]:checked ~ .tam-task-checkbox-icon svg polyline {
    stroke-dasharray: 24;
    animation: trCheckDraw 0.3s ease-out 0.05s backwards;
}

@media (prefers-reduced-motion: reduce) {
    .tam-task-checkbox input[type="checkbox"]:checked ~ .tam-task-checkbox-icon,
    .tam-task-checkbox input[type="checkbox"]:checked ~ .tam-task-checkbox-icon svg polyline {
        animation: none !important;
    }
}

/* Card body */
.tam-task-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
}

/* Category label — subtle inline text */
.tam-task-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--tr-color-slate-400);
    font-size: 12px;
    font-weight: var(--tr-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.tam-task-category-badge::after {
    content: '·';
    margin-left: var(--tr-space-2);
    color: var(--tr-color-slate-300);
}

/* Task title */
.tam-task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tr-color-slate-800);
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card meta (right side) */
.tam-task-card-meta {
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
    flex-shrink: 0;
    margin-left: auto;
}

/* Priority badge */
.tam-task-priority {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--tr-radius-sm);
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.tam-priority-hoog {
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
}

.tam-priority-middel {
    color: #475569;
}

.tam-priority-laag {
    color: #64748b;
}

/* Time */
.tam-task-time {
    font-size: 12px;
    color: var(--tr-color-slate-400);
    white-space: nowrap;
}

/* Chevron */
.tam-task-chevron {
    color: var(--tr-color-slate-400);
    transition: transform var(--tr-transition-base);
    flex-shrink: 0;
}

.tam-task-card.is-open .tam-task-chevron {
    transform: rotate(180deg);
}

/* Expandable panel */
.tam-task-card-panel {
    display: none;
    background: var(--tr-color-base);
    border-top: 1px solid var(--tr-color-slate-200);
    padding: var(--tr-space-4);
}

.tam-task-card.is-open .tam-task-card-panel {
    display: block;
}

/* Description */
.tam-task-card-desc {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-600);
    line-height: 1.5;
    margin: 0 0 var(--tr-space-3);
}

/* Page list (grouped) */
.tam-task-page-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tam-task-page-item {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    background: var(--tr-color-white);
    border: 1px solid var(--tr-color-slate-200);
    border-radius: var(--tr-radius-md);
    padding: var(--tr-space-2) var(--tr-space-3);
    transition: opacity var(--tr-transition-base);
}

.tam-task-page-item .tam-task-checkbox-icon {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

.tam-task-checkbox-icon svg {
    display: block;
}

.tam-task-page-item .tam-task-checkbox-icon svg {
    width: 10px;
    height: 10px;
}

.tam-task-page-item.is-completed {
    opacity: 0.5;
}

.tam-task-page-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
}

.tam-task-page-name {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tam-task-page-path {
    font-size: var(--tr-text-xs);
    color: var(--tr-color-slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tam-task-page-detail {
    font-size: var(--tr-text-xs);
    color: var(--tr-color-slate-500);
    white-space: nowrap;
    flex-shrink: 0;
}

.tam-task-page-fix {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.tam-task-page-fix:hover {
    color: var(--tr-color-primary-hover);
}

/* Card footer */
.tam-task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--tr-space-4);
    padding-top: var(--tr-space-3);
    border-top: 1px solid var(--tr-color-slate-200);
}

.tam-task-card-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--tr-color-slate-400);
}

.tam-task-card-fix-all {
    display: inline-flex;
    align-items: center;
    padding: var(--tr-space-2) var(--tr-space-4);
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    border-radius: var(--tr-radius-md);
    font-weight: var(--tr-font-bold);
    font-size: var(--tr-text-sm);
    text-decoration: none;
    transition: background var(--tr-transition-base);
}

.tam-task-card-fix-all:hover {
    background: var(--tr-color-primary-hover);
    color: var(--tr-color-white);
}

/* Show/hide after 8th card (3 priority + divider + 4 other = 8) */
.tam-task-card:nth-child(n+9) {
    display: none;
}

.tam-seo-tasks-list.is-expanded .tam-task-card:nth-child(n+9) {
    display: block;
}

/* Empty state */
.tam-no-tasks {
    text-align: center;
    padding: var(--tr-space-10) var(--tr-space-6);
    color: var(--tr-color-slate-500);
}

.tam-no-tasks h4 {
    margin: var(--tr-space-3) 0 var(--tr-space-2);
    color: var(--tr-color-slate-700);
    font-size: var(--tr-text-base);
}

.tam-no-tasks p {
    font-size: var(--tr-text-sm);
    margin: 0;
}

.tam-no-tasks .tam-no-tasks-action {
    margin-top: var(--tr-space-4);
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .tam-task-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .tam-task-card-header {
        flex-wrap: wrap;
    }

    .tam-task-page-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .tam-task-page-detail {
        display: none;
    }
}

/* Responsive — Mobile */
@media (max-width: 480px) {
    .tam-task-card-header {
        padding: var(--tr-space-2) var(--tr-space-3);
    }

    .tam-task-card-meta {
        gap: var(--tr-space-1);
    }

    .tam-task-priority {
        font-size: 10px;
        padding: 1px 6px;
    }

    .tam-task-time {
        display: none;
    }

    .tam-task-card-panel {
        padding: var(--tr-space-3);
    }

    .tam-task-card-footer {
        flex-direction: column;
        gap: var(--tr-space-2);
        align-items: flex-start;
    }
}

/* ============================================================
   PRIORITY CARDS — Emerald border-left highlight
   ============================================================ */

.tam-task-card--priority {
    border-left: 3px solid var(--tr-color-primary);
}

/* Meta info row inside priority card expanded body */
.tam-task-card-meta-info {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    font-size: var(--tr-text-xs);
    color: var(--tr-color-slate-500);
    margin-bottom: var(--tr-space-3);
}

.tam-task-card-meta-info .sep {
    color: var(--tr-color-slate-300);
}

/* Fix-this link inside priority card */
.tam-fix-link {
    font-size: var(--tr-text-sm);
    font-weight: 600;
    color: var(--tr-color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--tr-space-2);
}
.tam-fix-link:hover {
    color: var(--tr-color-primary-hover, #059669);
}

/* ── Divider between priority and other tasks ── */

.tam-tasks-divider {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    margin: var(--tr-space-5) 0 var(--tr-space-3);
}

.tam-tasks-divider-line {
    flex: 1;
    height: 1px;
    background: var(--tr-color-slate-200);
}

.tam-tasks-divider-label {
    font-size: var(--tr-text-xs);
    font-weight: 600;
    color: var(--tr-color-slate-400);
    white-space: nowrap;
}

/* ── GSC upsell hint ── */

.tam-gsc-hint {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
    padding: var(--tr-space-2) var(--tr-space-4);
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--tr-radius-lg);
    margin: var(--tr-space-2) 0;
    font-size: var(--tr-text-xs);
    color: var(--tr-color-slate-600);
}

.tam-gsc-hint a {
    font-weight: 600;
    color: var(--tr-color-primary);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
}

.tam-gsc-hint a:hover {
    color: var(--tr-color-primary-hover, #059669);
}

/* Divider and GSC hint should not be hidden by nth-child(n+5) rule */
.tam-tasks-divider,
.tam-gsc-hint {
    display: flex !important;
}

/* ============================================================
   MODAL — Taak toevoegen
   ============================================================ */

.tam-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    /* slate-900 @ 40% — geen exacte var voor rgba */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: var(--tr-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tr-space-4);
}

.tam-modal-overlay[hidden] {
    display: none;
}

.tam-modal {
    background: var(--tr-color-white);
    border-radius: var(--tr-radius-xl);
    width: 480px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--tr-shadow-xl);
    animation: tam-modal-in 0.18s ease-out;
}

@keyframes tam-modal-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tam-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tr-space-6) var(--tr-space-6) var(--tr-space-5);
    border-bottom: 1px solid var(--tr-color-base);
}

.tam-modal-header h4 {
    margin: 0;
    font-size: var(--tr-text-lg);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
}

.tam-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--tr-radius-md);
    color: var(--tr-color-slate-400);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background var(--tr-transition-fast), color var(--tr-transition-fast);
}

.tam-modal-close:hover {
    background: var(--tr-color-slate-100);
    color: var(--tr-color-slate-600);
}

.tam-modal-body {
    padding: var(--tr-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-6);
}

/* Form groups */
.tam-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-2);
}

.tam-form-label {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
}

.tam-required {
    color: var(--tr-color-error);
    margin-left: 2px;
}

.tam-modal .tam-form-input,
.tam-modal .tam-form-textarea {
    width: 100% !important;
    padding: 13px var(--tr-space-4) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    /* geen exacte token — visueel lichter dan surface */
    border-radius: var(--tr-radius-lg) !important;
    font-size: 14px !important;
    color: var(--tr-color-slate-800) !important;
    background: var(--tr-color-white) !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
    box-sizing: border-box;
    min-height: unset;
    height: auto;
    line-height: var(--tr-leading-normal);
}

.tam-modal .tam-form-input:focus,
.tam-modal .tam-form-textarea:focus {
    border-color: var(--tr-color-primary) !important;
    box-shadow: var(--tr-shadow-focus) !important;
    outline: none !important;
}

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

/* Priority toggle — 3 buttons, context-sensitive active colors */
.tam-priority-toggle {
    display: flex;
    gap: var(--tr-space-2);
    align-items: center;
}

.tam-prio-btn {
    flex: 1;
    padding: 11px var(--tr-space-3);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--tr-radius-lg);
    background: var(--tr-color-white) !important;
    color: var(--tr-color-slate-500);
    font-size: 14px;
    font-weight: var(--tr-font-medium);
    cursor: pointer;
    transition: background var(--tr-transition-fast), border-color var(--tr-transition-fast), color var(--tr-transition-fast);
    font-family: inherit;
    text-align: center;
    box-shadow: none !important;
}

.tam-prio-btn:hover:not(.is-active) {
    border-color: var(--tr-color-slate-300) !important;
    color: var(--tr-color-slate-700);
}

/* Laag active → slate-800 (dark navy) */
.tam-prio-btn[data-value="laag"].is-active {
    background: var(--tr-color-slate-800) !important;
    border-color: var(--tr-color-slate-800) !important;
    color: var(--tr-color-white) !important;
    font-weight: var(--tr-font-semibold);
}

/* Middel active → amber tint */
.tam-prio-btn[data-value="middel"].is-active {
    background: var(--tr-color-warning-bg) !important;
    border-color: var(--tr-color-warning) !important;
    color: var(--tr-color-warning-hover) !important;
    font-weight: var(--tr-font-semibold);
}

/* Hoog active → primary green */
.tam-prio-btn[data-value="hoog"].is-active {
    background: var(--tr-color-primary) !important;
    border-color: var(--tr-color-primary) !important;
    color: var(--tr-color-white) !important;
    font-weight: var(--tr-font-semibold);
}

/* "Meer opties" toggle — plain text + chevron, no box */
.tam-more-options-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-1);
    cursor: pointer;
    color: var(--tr-color-slate-700);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    user-select: none;
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    transition: color var(--tr-transition-fast);
}

.tam-more-options-toggle:hover {
    color: var(--tr-color-slate-800);
}

.tam-more-options-chevron {
    transition: transform var(--tr-transition-base);
    flex-shrink: 0;
}

.tam-more-options-toggle.is-open .tam-more-options-chevron {
    transform: rotate(180deg);
}

/* "Meer opties" body — flows inline, hidden by default */
.tam-more-options-body {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-5);
}

.tam-more-options-body[hidden] {
    display: none;
}

/* Date input with calendar icon */
.tam-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tam-date-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tr-color-slate-400);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
}

.tam-modal .tam-date-input {
    padding-left: var(--tr-space-10) !important;
}

/* Modal footer */
.tam-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--tr-space-3);
    padding: var(--tr-space-4) var(--tr-space-6) var(--tr-space-6);
    border-top: 1px solid var(--tr-color-slate-100);
}

/* Annuleren — borderless plain text */
.tam-btn-modal-cancel {
    padding: 10px var(--tr-space-4);
    background: transparent;
    border: none;
    color: var(--tr-color-slate-600);
    font-size: 14px;
    font-weight: var(--tr-font-medium);
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--tr-radius-md);
    transition: color var(--tr-transition-fast), background var(--tr-transition-fast);
}

.tam-btn-modal-cancel:hover {
    color: var(--tr-color-slate-800);
    background: var(--tr-color-slate-100);
}

/* Taak toevoegen — primary green button */
.tam-btn-modal-submit {
    padding: 10px var(--tr-space-6);
    background: var(--tr-color-primary);
    border: none;
    border-radius: var(--tr-radius-lg);
    color: var(--tr-color-white);
    font-size: 14px;
    font-weight: var(--tr-font-bold);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--tr-transition-fast), transform var(--tr-transition-fast);
}

.tam-btn-modal-submit:hover {
    background: var(--tr-color-primary-hover);
    transform: translateY(-1px);
}

.tam-btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 600px) {
    .tam-seo-tasks-section .tam-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tam-task-card-header {
        gap: var(--tr-space-2);
        padding: var(--tr-space-2) var(--tr-space-3);
    }

    .tam-modal {
        width: 100%;
        margin: 0;
        border-radius: var(--tr-radius-lg) var(--tr-radius-lg) 0 0;
        max-height: 85vh;
    }

    .tam-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}

/* ── GSC Locked Widget (free users) ── */

/* ── Search Console connect empty-state ──────────────────── */
.tam-gsc-section--connect {
    border: 1px solid var(--tr-color-slate-200);
    border-radius: var(--tr-radius-xl);
    overflow: hidden;
    padding: 0;
}

.tam-gsc-connect-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--tr-color-slate-100);
}

.tam-gsc-connect-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tr-color-slate-900);
    margin: 0;
}

.tam-gsc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tr-color-slate-100);
    color: var(--tr-color-slate-600);
    border-radius: var(--tr-radius-full);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}

.tam-gsc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tr-color-slate-400);
}

.tam-gsc-connect-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.tam-gsc-connect-info {
    display: flex;
    align-items: center;
}

.tr-guide-card--connect {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
    width: 100%;
}

.tr-guide-card__pro-note {
    font-size: 11.5px;
    color: var(--tr-color-slate-400);
    line-height: 1.5;
    margin: 14px 0 0;
}

/* Connect-card action: keep microcopy + CTA grouped on the right with breathing room */
.tr-guide-card--connect .tr-guide-card__action {
    justify-content: flex-end;
    gap: var(--tr-space-4);
    flex-wrap: wrap;
}

/* Dismiss (×) — top-right of the connect card */
.tam-gsc-connect-dismiss {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--tr-color-slate-400);
    border-radius: var(--tr-radius-md);
    cursor: pointer;
    transition: color var(--tr-transition-fast), background var(--tr-transition-fast);
}

.tam-gsc-connect-dismiss:hover,
.tam-gsc-connect-dismiss:focus-visible {
    color: var(--tr-color-slate-600);
    background: var(--tr-color-slate-100);
    outline: none;
}

.tam-gsc-connect-dismiss svg {
    width: 16px;
    height: 16px;
}

/* Blurred preview teaser */
.tam-gsc-connect-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: var(--tr-radius-lg);
    background: var(--tr-color-slate-100);
}

.tam-gsc-connect-preview-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0.5;
    filter: blur(1.5px);
    pointer-events: none;
    user-select: none;
}

.tam-gsc-preview-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--tr-color-slate-200);
    box-shadow: var(--tr-shadow-md);
    border-radius: var(--tr-radius-full);
    padding: 7px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tr-color-slate-600);
}

.tam-gsc-preview-tag svg {
    width: 13px;
    height: 13px;
    color: var(--tr-color-slate-400);
    flex-shrink: 0;
}

.tam-gsc-preview-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tam-gsc-preview-metric {
    text-align: center;
}

.tam-gsc-preview-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--tr-color-slate-900);
    line-height: 1.2;
}

.tam-gsc-preview-label {
    display: block;
    font-size: 11px;
    color: var(--tr-color-slate-500);
    margin-top: 2px;
}

.tam-gsc-preview-chart {
    flex: 1 1 auto;
    min-height: 96px;
}

.tam-gsc-preview-chart svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .tam-gsc-connect-body {
        grid-template-columns: 1fr;
    }

    .tam-gsc-connect-preview {
        display: none;
    }
}

/* ============================================================
   TASKS / CHANGES TABS
   ============================================================ */

.tam-tasks-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--tr-color-slate-200);
    margin-bottom: var(--tr-space-4);
}

.tam-tasks-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-2);
    padding: var(--tr-space-2) var(--tr-space-4) var(--tr-space-3);
    background: none;
    border: none;
    font-family: var(--tr-font-family);
    font-size: 15px;
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-400);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.tam-tasks-tab:hover {
    color: var(--tr-color-slate-600);
}

.tam-tasks-tab.is-active {
    color: var(--tr-color-slate-800);
    border-bottom-color: var(--tr-color-primary);
}

.tam-tasks-tab-count {
    font-size: 11px;
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-400);
    background: var(--tr-color-slate-100);
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    line-height: 1.4;
}

.tam-tasks-tab.is-active .tam-tasks-tab-count {
    background: var(--tr-color-primary-light);
    color: var(--tr-color-primary);
}

/* Tab panels */
.tam-tasks-panel {
    display: none;
}

.tam-tasks-panel.is-active {
    display: block;
}

/* ============================================================
   CHANGE TRACKER — Dashboard entries
   ============================================================ */

.tam-tasks-panel[data-panel="changes"] {
    background: var(--tr-color-white);
    border: 1px solid var(--tr-color-slate-200);
    border-radius: var(--tr-radius-lg, 12px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tam-change-list {
}

.tam-change-entry {
    display: flex;
    align-items: flex-start;
    gap: var(--tr-space-3);
    padding: 14px var(--tr-space-5);
    border-bottom: 1px solid var(--tr-color-slate-100);
    transition: background 0.15s;
}

.tam-change-entry:last-child {
    border-bottom: none;
}

.tam-change-entry:hover {
    background: var(--tr-color-slate-100);
}

.tam-change-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.tam-change-dot--positive { background: var(--tr-color-primary); }
.tam-change-dot--neutral { background: var(--tr-color-slate-300); }
.tam-change-dot--negative { background: var(--tr-color-error); }

.tam-change-body {
    flex: 1;
    min-width: 0;
}

.tam-change-post-title {
    font-size: 14px;
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-slate-800);
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.tam-change-post-title:hover {
    color: var(--tr-color-primary);
}

.tam-change-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: var(--tr-text-xs);
    color: var(--tr-color-slate-500);
}

.tam-change-type-badge {
    font-size: 10px;
    font-weight: var(--tr-font-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--tr-color-slate-100);
    color: var(--tr-color-slate-500);
}

.tam-change-sep {
    color: var(--tr-color-slate-300);
}

.tam-change-score {
    flex-shrink: 0;
    text-align: right;
    margin-top: 2px;
}

.tam-change-delta {
    font-size: 15px;
    font-weight: var(--tr-font-bold);
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    line-height: 1;
}

.tam-change-delta--positive { color: var(--tr-color-primary); }
.tam-change-delta--negative { color: var(--tr-color-error); }
.tam-change-delta--neutral { color: var(--tr-color-slate-400); }

.tam-change-score-range {
    font-size: 11px;
    color: var(--tr-color-slate-400);
    margin-top: 1px;
}

/* Empty / disabled / PRO gate states */
.tam-change-empty,
.tam-change-disabled {
    padding: var(--tr-space-8, 32px) var(--tr-space-5);
    text-align: center;
}

.tam-change-empty svg {
    margin-bottom: var(--tr-space-3);
}

.tam-change-empty p,
.tam-change-disabled p {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-400);
    margin-bottom: var(--tr-space-2);
}

.tam-change-disabled a {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-primary);
    text-decoration: none;
}

.tam-change-pro-gate {
    padding: var(--tr-space-6) var(--tr-space-5);
    text-align: center;
    background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(16,185,129,0.08));
}

.tam-change-pro-icon {
    width: 32px;
    height: 32px;
    background: var(--tr-color-primary-light);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--tr-space-3);
    color: var(--tr-color-primary);
}

.tam-change-pro-gate h4 {
    font-size: 14px;
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
    margin-bottom: 4px;
}

.tam-change-pro-gate p {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-500);
    margin-bottom: var(--tr-space-3);
}

.tam-change-pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--tr-space-2) var(--tr-space-4);
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

.tam-change-pro-btn:hover {
    background: var(--tr-color-primary-hover);
    color: var(--tr-color-white);
}