:root {
    --blue: #4161a8;
    --blue-dark: #304b88;
    --yellow: #f7be3e;
    --page: #f5f7fa;
    --surface: #ffffff;
    --border: #dfe4eb;
    --text: #17202b;
    --muted: #66717d;
    --soft-blue: #edf2ff;
    --soft-yellow: #fff8e6;
    --green: #16804a;
    --red: #b93333;
    --orange: #aa6b00;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input {
    font: inherit;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1180px;
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: block;
    width: 174px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.brand-copy {
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.brand-title {
    font-size: 19px;
    font-weight: 700;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.secure-badge {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 38px auto 56px auto;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 32px rgba(30, 49, 79, 0.07);
    padding: 38px;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: var(--yellow);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-label {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.hero h1 {
    margin: 8px 0 10px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.hero p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.search-box {
    margin-top: 30px;
}

.search-box label {
    display: block;
    margin-bottom: 8px;
    color: #4b5562;
    font-size: 12px;
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 10px;
}

.search-row input {
    width: 100%;
    min-width: 0;
    height: 54px;
    border: 1px solid #cdd5df;
    border-radius: 10px;
    padding: 0 16px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    font-size: 16px;
}

.search-row input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(65, 97, 168, 0.12);
}

.search-row button {
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.search-row button:hover {
    background: var(--blue-dark);
}

.search-row button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.message-panel {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 18px 20px;
    color: var(--muted);
}

.message-panel.error {
    border-color: #edc7c7;
    background: #fff8f8;
    color: var(--red);
}

.result-panel {
    margin-top: 24px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 26px 28px;
}

.primary-id {
    margin-top: 7px;
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.package-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.current-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--soft-blue);
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.summary-card {
    min-height: 126px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 20px;
}

.summary-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.summary-value {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 800;
}

.summary-number {
    margin-top: 8px;
    color: var(--blue);
    font-size: 34px;
    font-weight: 800;
}

.summary-detail {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.timeline-header {
    margin: 32px 0 15px 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.timeline-header h2 {
    margin: 6px 0 0 0;
    font-size: 24px;
}

.timezone {
    color: var(--muted);
    font-size: 12px;
}

.timeline {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 8px 28px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 14px;
    min-height: 96px;
    padding: 21px 0;
    border-bottom: 1px solid #edf0f4;
}

.timeline-item:last-child {
    border-bottom: 0;
}

.timeline-marker {
    position: relative;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 15px;
    height: 15px;
    margin: 4px auto 0 auto;
    border-radius: 50%;
    border: 4px solid #d7deea;
    background: var(--blue);
}

.timeline-item:not(:last-child)
.timeline-marker::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 20px;
    bottom: -29px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: #e2e7ee;
}

.timeline-event {
    font-size: 15px;
    font-weight: 800;
}

.timeline-code {
    margin-left: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.timeline-place {
    margin-top: 6px;
    color: #45515e;
    font-size: 13px;
}

.timeline-source {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.timeline-time {
    padding-top: 2px;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.result-green .timeline-dot {
    background: var(--green);
}

.result-red .timeline-dot {
    background: var(--red);
}

.result-yellow .timeline-dot {
    background: var(--orange);
}

.hidden {
    display: none !important;
}

.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 30px auto;
    color: #818b97;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 760px) {

    .topbar-inner {
        min-height: 72px;
    }

    .brand-logo {
        width: 132px;
        height: 45px;
    }

    .brand-copy {
        display: none;
    }

    .page {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
    }

    .hero {
        padding: 25px 20px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        display: block;
        padding: 21px;
    }

    .current-status {
        display: inline-block;
        margin-top: 18px;
    }

    .timeline {
        padding: 6px 18px;
    }

    .timeline-item {
        grid-template-columns: 28px 1fr;
    }

    .timeline-time {
        grid-column: 2;
        text-align: left;
        padding-top: 0;
    }

    .timezone {
        display: none;
    }
}

/* CRISALI_TRACKING_R1H3_COMPACT */

.page {
    margin-top: 24px;
    margin-bottom: 38px;
}

.hero {
    padding: 28px 30px;
    border-radius: 16px;
}

.hero h1 {
    margin-top: 5px;
    margin-bottom: 7px;
    font-size: clamp(27px, 3vw, 36px);
}

.hero p {
    max-width: 760px;
    line-height: 1.42;
}

.search-box {
    margin-top: 22px;
}

.search-row {
    grid-template-columns: 1fr 110px;
}

.search-row input,
.search-row button {
    height: 46px;
}

.result-panel {
    margin-top: 18px;
}

.result-header {
    padding: 20px 22px;
    border-radius: 13px;
}

.primary-id {
    font-size: clamp(18px, 2.5vw, 24px);
}

.summary-grid {
    gap: 12px;
    margin-top: 12px;
}

.summary-card {
    min-height: 102px;
    padding: 16px;
    border-radius: 12px;
}

.summary-value {
    margin-top: 7px;
    font-size: 16px;
}

.summary-number {
    margin-top: 5px;
    font-size: 30px;
}

.timeline-header {
    margin-top: 24px;
    margin-bottom: 11px;
}

.timeline-header h2 {
    font-size: 21px;
}

.timeline {
    padding: 4px 22px;
    border-radius: 13px;
}

.timeline-item {
    min-height: 76px;
    padding: 15px 0;
}

.timeline-event {
    font-size: 14px;
}

.timeline-place {
    margin-top: 4px;
    font-size: 12px;
}

.timeline-source {
    margin-top: 3px;
}

.timeline-time {
    font-size: 10px;
}

.timeline-item:not(:last-child)
.timeline-marker::after {
    bottom: -23px;
}

.footer {
    margin-bottom: 20px;
}

@media (max-width: 760px) {

    .page {
        margin-top: 12px;
    }

    .hero {
        padding: 21px 18px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-row button {
        width: 100%;
    }

    .summary-card {
        min-height: 90px;
    }

    .timeline-item {
        min-height: 72px;
    }
}

