.track-report-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.track-report-page > .content {
    max-width: 760px;
    margin-inline: auto;
}

.track-report-page .page-title {
    margin-bottom: 0.75rem;
}

.track-report-intro {
    margin: 0 0 1.5rem;
    padding: 0 0.5rem;
    color: #565b66;
    line-height: 1.8;
}

.tracking-card {
    border: 1px solid #e2e7e8;
    border-radius: 12px;
}

.tracking-card .field-wrap:last-of-type {
    margin-bottom: 0;
}

.tracking-card .field input {
    direction: rtl;
    text-align: right;
}

.tracking-card .field input::placeholder {
    color: #8b9297;
    opacity: 1;
}

.tracking-submit {
    min-height: 54px;
    margin: 1.5rem 0 0;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 8px;
    background: #267478;
    color: #fff;
    flex-direction: row-reverse;
    gap: 0.65rem;
    font-weight: 700;
}

.tracking-submit:hover:not(:disabled) {
    background: #1f6468;
}

.tracking-submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.tracking-clear {
    display: block;
    margin: 1rem auto 0;
    padding: 0.4rem 0.25rem;
    border: 0;
    background: transparent;
    color: #58666b;
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tracking-submit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.tracking-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tracking-spin 0.75s linear infinite;
}

@keyframes tracking-spin {
    to { transform: rotate(360deg); }
}

.tracking-notice,
.tracking-message {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    line-height: 1.7;
}

.tracking-notice {
    background: #f1f7f7;
    color: #315d5f;
}

.tracking-message-error {
    border: 1px solid #f0d3d3;
    background: #fff7f7;
    color: #9b2929;
}

.tracking-back {
    display: inline-flex;
    min-height: 56px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 1.25rem 0 0;
    padding: 0.75rem 1.1rem;
    border: 1px solid #a9ccca;
    border-radius: 9px;
    background: #eaf6f5;
    color: #267478;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.tracking-back:hover {
    border-color: #267478;
    background: #dff0ef;
}

.tracking-back svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tracking-back:focus-visible {
    outline: 2px solid #267478;
    outline-offset: 3px;
}

.report-result {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e7e8;
}

.report-result h2,
.report-result h3 {
    margin: 0 0 1rem;
    color: #232a31;
    font-size: 1.15rem;
}

.report-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.report-details > div {
    min-width: 0;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid #edf0f1;
}

.report-details dt {
    margin-bottom: 0.35rem;
    color: #687278;
    font-size: 0.9rem;
}

.report-details dd {
    margin: 0;
    color: #232a31;
    overflow-wrap: anywhere;
}

.report-status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eef5f4;
    color: #267478;
    font-weight: 700;
}

.status-reviewing { background: #fff4d6; color: #735719; }
.status-needs_info { background: #fff6e5; color: #8a5b08; }
.status-completed { background: #eaf6ef; color: #267345; }

.report-result h3 {
    margin-top: 1.5rem;
}

.report-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 0.85rem;
    min-height: 76px;
    color: #7b858a;
}

.timeline-step:not(:last-child)::after {
    position: absolute;
    top: 28px;
    right: 13px;
    bottom: 0;
    width: 2px;
    background: #dfe5e6;
    content: "";
}

.timeline-step.step-completed,
.timeline-step.step-current {
    color: #267478;
}

.timeline-step.step-completed:not(:last-child)::after {
    background: #68a9a5;
}

.timeline-marker {
    z-index: 1;
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid #cbd3d5;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-completed .timeline-marker,
.step-current .timeline-marker {
    border-color: #267478;
    background: #267478;
}

.timeline-step h4 {
    margin: 0 0 0.2rem;
    color: #303a3f;
    font-size: 1rem;
}

.timeline-step p {
    margin: 0;
    color: #687278;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .track-report-page {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .tracking-card {
        padding: 1.1rem !important;
    }

    .tracking-submit {
        width: 100%;
    }

    .tracking-back {
        display: flex;
        width: 100%;
    }

    .report-details {
        grid-template-columns: 1fr;
    }
}
