/* v0.10.8 motivation toast */
.motivation-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px));
    z-index: 90;
    transform: translateX(-50%);
    max-width: min(520px, calc(100vw - 24px));
    padding: 13px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(15,42,79,.18);
}

.motivation-toast[hidden] {
    display: none;
}

@media(max-width: 820px) {
    .motivation-toast {
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
        text-align: center;
    }
}


/* v0.10.9 thanks author */
.thanks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 13px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.thanks-btn:hover {
    background: #fef3c7;
}

.thanks-btn:disabled {
    opacity: .75;
    cursor: default;
}

.queue-card .card-actions .thanks-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 43px;
}

.detail-actions .thanks-btn {
    min-height: 44px;
}

@media (max-width: 820px) {
    .queue-card .card-actions .thanks-btn,
    .detail-actions .thanks-btn {
        width: 100%;
        min-height: 46px;
        border-radius: 12px;
    }
}


/* v0.11.0 per-signal thanks and motivation completion */
.mark-head,
.report-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.thanks-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.thanks-mini:hover {
    background: #fef3c7;
}

.thanks-mini:disabled {
    opacity: .72;
}

.report-author-level {
    display: block;
    margin-top: 5px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.report-row .report-author-level {
    margin-bottom: 5px;
}

.mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.12.9 честные статусы сигналов */
.report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
}

.signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 5px 8px;
}

.badge-onsite {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.badge-nearby,
.badge-author-noticed {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.badge-remote {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.badge-author-reliable,
.badge-author-verified,
.badge-author-expert {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.badge-fresh {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.geo-confirm-box,
.geo-note {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 10px 12px;
}

.geo-note {
    color: #52657f;
    font-size: 13px;
    margin-top: -6px;
}

/* v0.12.11 антинакрутка сигналов */
.badge-supported {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.badge-disputed {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.badge-linked {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.badge-oldtimer {
    background: #fefce8;
    border-color: #fde68a;
    color: #854d0e;
}

.signal-votes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.signal-votes .thanks-mini {
    font-size: 12px;
    padding: 6px 8px;
}
