/* My Tools Dashboard */
.sfc-my-tools {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Login Prompt */
.sfc-mt-login-prompt {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
}
.sfc-mt-login-prompt__icon {
    margin-bottom: 16px;
}
.sfc-mt-login-prompt h1 {
    font-size: 22px;
    color: #0f172a;
    margin: 0 0 8px;
}
.sfc-mt-login-prompt p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Dashboard Header */
.sfc-mt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.sfc-mt-header__title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
.sfc-mt-header__subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.sfc-mt-header__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Notice */
.sfc-mt-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}
.sfc-mt-notice--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Stats */
.sfc-mt-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.sfc-mt-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    min-width: 100px;
}
.sfc-mt-stat__num {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}
.sfc-mt-stat__label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Tool Cards Grid */
.sfc-mt-grid {
    display: grid;
    gap: 12px;
}

.sfc-mt-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: box-shadow .15s, border-color .15s;
}
.sfc-mt-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99,102,241,.08);
}

.sfc-mt-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sfc-mt-card__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}
.sfc-mt-card__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-mt-card__info {
    flex: 1;
    min-width: 0;
}
.sfc-mt-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sfc-mt-card__url {
    font-size: 12px;
    color: #94a3b8;
}
.sfc-mt-card__status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--status-color) 12%, transparent);
    color: var(--status-color);
    flex-shrink: 0;
}

.sfc-mt-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}
.sfc-mt-card__tier {
    background: #eff6ff;
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}
.sfc-mt-card__pending-edit {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.sfc-mt-card__actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.sfc-mt-card__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
}
.sfc-mt-card__action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Empty State */
.sfc-mt-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.sfc-mt-empty__icon {
    margin-bottom: 16px;
}
.sfc-mt-empty h2 {
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 8px;
}
.sfc-mt-empty p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Modal */
.sfc-mt-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sfc-mt-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
}
.sfc-mt-modal__content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.sfc-mt-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sfc-mt-modal__header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.sfc-mt-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.sfc-mt-modal__close:hover {
    color: #475569;
}

/* Claim search results */
.sfc-mt-claim-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 4px;
}
.sfc-mt-claim-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .1s;
    border-bottom: 1px solid #f1f5f9;
}
.sfc-mt-claim-result:last-child {
    border-bottom: none;
}
.sfc-mt-claim-result:hover {
    background: #f8fafc;
}
.sfc-mt-claim-result img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.sfc-mt-claim-result span {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.sfc-mt-claim-selected-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

/* Pending submission card */
.sfc-mt-card--pending {
    border-left: 3px solid #6366f1;
}
.sfc-mt-card__progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media (max-width: 640px) {
    .sfc-my-tools {
        padding: 20px 12px;
    }
    .sfc-mt-header {
        flex-direction: column;
    }
    .sfc-mt-header__actions {
        width: 100%;
    }
    .sfc-mt-header__actions .sfc-btn {
        flex: 1;
        justify-content: center;
    }
    .sfc-mt-card__actions {
        flex-wrap: wrap;
    }
}
