/* Recent route checks: self-contained so report cards keep their own layout. */
.tt-home-recent-checks {
    --tt-check-surface: #fff;
    --tt-check-ink: #18212a;
    --tt-check-muted: #667085;
    --tt-check-border: #e5e9ec;
    --tt-check-soft: #f5f7f8;
    --tt-check-green: #276345;
    --tt-check-green-soft: #eaf4e9;
    --tt-check-amber: #85501b;
    --tt-check-amber-soft: #fff2dd;
    --tt-check-red: #a33632;
    --tt-check-red-soft: #fff0ed;
    --tt-check-recent-surface: #fffaf1;
    --tt-check-recent-border: #eadcc7;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--tt-check-border);
    border-radius: 24px;
    background: var(--tt-check-surface);
    color: var(--tt-check-ink);
    box-shadow: 0 8px 30px rgb(25 42 52 / 5%);
    font-family: var(--tt-font-family, inherit);
}

.tt-home-recent-checks,
.tt-home-recent-checks * {
    box-sizing: border-box;
}

.tt-home-recent-checks__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.tt-home-recent-checks__head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    color: var(--tt-check-ink);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.tt-home-recent-checks__heading-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    color: var(--tt-check-green);
    object-fit: contain;
    filter: invert(35%) sepia(33%) saturate(1042%) hue-rotate(97deg) brightness(91%) contrast(89%);
}

.tt-home-recent-checks__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid var(--tt-check-border);
    border-radius: 12px;
    background: var(--tt-check-soft);
    color: var(--tt-check-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.tt-home-recent-checks__all :is(img, svg) {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

.tt-home-recent-checks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    align-items: stretch;
    gap: 16px;
    min-width: 0;
}

.tt-home-recent-checks__card {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--tt-check-border);
    border-radius: 18px;
    background: var(--tt-check-surface);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.tt-home-recent-checks__photo-link {
    position: relative;
    display: grid;
    min-width: 0;
    align-self: start;
    height: 132px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--tt-check-soft);
    color: var(--tt-check-muted);
    text-decoration: none;
}

.tt-home-recent-checks__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tt-home-recent-checks__photo-placeholder {
    display: block;
    align-self: center;
    justify-self: center;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tt-home-recent-checks__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.tt-home-recent-checks__title {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--tt-check-ink);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tt-home-recent-checks__title a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

.tt-home-recent-checks__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.tt-home-recent-checks__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 7px;
    border-radius: 7px;
    background: var(--tt-check-soft);
    color: var(--tt-check-muted);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.tt-home-recent-checks__status :is(img, svg),
.tt-home-recent-checks__recent :is(img, svg) {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
}

.tt-home-recent-checks__card--clear .tt-home-recent-checks__status,
.tt-home-recent-checks__card--passable .tt-home-recent-checks__status {
    background: var(--tt-check-green-soft);
    color: var(--tt-check-green);
}

.tt-home-recent-checks__card--difficult .tt-home-recent-checks__status {
    background: var(--tt-check-amber-soft);
    color: var(--tt-check-amber);
}

.tt-home-recent-checks__card--blocked .tt-home-recent-checks__status {
    background: var(--tt-check-red-soft);
    color: var(--tt-check-red);
}

.tt-home-recent-checks__date {
    color: var(--tt-check-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tt-home-recent-checks__author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.tt-home-recent-checks__avatar {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--tt-check-border);
    border-radius: 50%;
    background: var(--tt-check-soft);
    object-fit: cover;
}

.tt-home-recent-checks__author-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 32px;
    color: var(--tt-check-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.tt-home-recent-checks__comment {
    display: -webkit-box;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--tt-check-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tt-home-recent-checks__card--recent {
    border-color: var(--tt-check-recent-border);
    background: var(--tt-check-recent-surface);
}

.tt-home-recent-checks__card--recent .tt-home-recent-checks__body {
    padding-top: 24px;
}

.tt-home-recent-checks__recent {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--tt-check-amber-soft);
    color: var(--tt-check-amber);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
}

.tt-home-recent-checks__recent img {
    filter: invert(52%) sepia(64%) saturate(717%) hue-rotate(359deg) brightness(97%) contrast(96%);
}

.tt-home-recent-checks :is(a, button):focus-visible {
    outline: 3px solid var(--tt-home-orange, #ff671d);
    outline-offset: 3px;
}

.tt-home-recent-checks__photo-link:focus-visible {
    outline-offset: 2px;
}

@media (hover: hover) {
    .tt-home-recent-checks__all:hover {
        border-color: #b9c7bf;
        background: var(--tt-check-green-soft);
        color: var(--tt-check-green);
    }

    .tt-home-recent-checks__card:hover,
    .tt-home-recent-checks__card:focus-within {
        border-color: #c2cec8;
        box-shadow: 0 5px 18px rgb(25 42 52 / 5%);
    }

    .tt-home-recent-checks__title a:hover,
    .tt-home-recent-checks__author-name:hover {
        text-decoration: underline;
    }
}

html[data-theme="dark"] .tt-home-recent-checks {
    --tt-check-surface: #14202b;
    --tt-check-ink: #f1f5f9;
    --tt-check-muted: #a5b4c3;
    --tt-check-border: #34424e;
    --tt-check-soft: #1d2b36;
    --tt-check-green: #b6dfb5;
    --tt-check-green-soft: #243d30;
    --tt-check-amber: #f0ca96;
    --tt-check-amber-soft: #453320;
    --tt-check-red: #ffc0b9;
    --tt-check-red-soft: #462b2c;
    --tt-check-recent-surface: #29261f;
    --tt-check-recent-border: #67533b;
    box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
}

html[data-theme="dark"] .tt-home-recent-checks__heading-icon {
    filter: invert(89%) sepia(17%) saturate(471%) hue-rotate(70deg) brightness(94%) contrast(86%);
}

html[data-theme="dark"] .tt-home-recent-checks__all img,
html[data-theme="dark"] .tt-home-recent-checks__photo-placeholder {
    filter: invert(86%);
}

@media (max-width: 1099px) {
    .tt-home-recent-checks__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    }
}

@media (max-width: 760px) {
    .tt-home-recent-checks {
        padding: 18px;
        border-radius: 20px;
    }

    .tt-home-recent-checks__head {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
    }

    .tt-home-recent-checks__head h3 {
        font-size: 21px;
    }

    .tt-home-recent-checks__all {
        min-height: 44px;
    }

    .tt-home-recent-checks__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tt-home-recent-checks__author-name {
        min-height: 40px;
    }
}

@media (max-width: 400px) {
    .tt-home-recent-checks {
        padding: 14px;
        border-radius: 18px;
    }

    .tt-home-recent-checks__head h3 {
        gap: 8px;
        font-size: 19px;
    }

    .tt-home-recent-checks__heading-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .tt-home-recent-checks__card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
    }

    .tt-home-recent-checks__title {
        font-size: 16px;
    }

    .tt-home-recent-checks__body {
        gap: 8px;
    }

    .tt-home-recent-checks__card--recent .tt-home-recent-checks__body {
        padding-top: 26px;
    }

    .tt-home-recent-checks__recent {
        top: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-home-recent-checks__all,
    .tt-home-recent-checks__card {
        transition: none;
    }
}
