.tcx-gt-search-wrap,
.tcx-gt-result {
    --tcx-red: #D8262C;
    --tcx-red-dark: #B91D23;
    --tcx-blue: #114183;
    --tcx-blue-dark: #0B2F61;
    --tcx-ink: #101317;
    --tcx-dark: #171b20;
    --tcx-muted: #687180;
    --tcx-border: #d9dde4;
    --tcx-soft: #f4f6f8;
    --tcx-success-bg: #e7f7ef;
    --tcx-success: #0d7251;
    --tcx-danger-bg: #fff0f0;
    color: var(--tcx-ink);
    font-family: Montserrat, Poppins, Arial, sans-serif;
    letter-spacing: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 1120px;
    width: 100%;
}

.tcx-gt-search-wrap *,
.tcx-gt-result * {
    box-sizing: border-box;
}

.tcx-gt-search-form {
    align-items: end;
    background: #fff;
    border: 1px solid var(--tcx-border);
    box-shadow: 0 12px 32px rgba(16, 19, 23, .08);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto;
    margin: 0 0 28px;
    padding: 22px;
}

.tcx-gt-field {
    display: grid;
    gap: 9px;
    margin: 0;
}

.tcx-gt-field span {
    color: var(--tcx-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.tcx-gt-field input {
    background: #fff;
    border: 1.5px solid #b6bdc8;
    border-radius: 6px;
    color: var(--tcx-ink);
    font: inherit;
    font-size: 16px;
    min-height: 52px;
    padding: 11px 14px;
    width: 100%;
}

.tcx-gt-field input:focus {
    border-color: var(--tcx-red);
    box-shadow: 0 0 0 3px rgba(216, 38, 44, .14);
    outline: none;
}

.tcx-gt-submit,
.tcx-gt-button {
    align-items: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.tcx-gt-submit {
    background: var(--tcx-red);
    color: #fff;
    min-width: 190px;
}

.tcx-gt-submit svg {
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.tcx-gt-submit:hover,
.tcx-gt-submit:focus,
.tcx-gt-button--red:hover,
.tcx-gt-button--red:focus {
    background: var(--tcx-red-dark);
    color: #fff;
}

.tcx-gt-submit:active,
.tcx-gt-button:active {
    transform: translateY(1px);
}

.tcx-gt-result {
    margin-top: 22px;
}

.tcx-gt-panel {
    background: #fff;
    border: 1px solid var(--tcx-border);
    box-shadow: 0 14px 34px rgba(16, 19, 23, .09);
    overflow: hidden;
}

.tcx-gt-panel-header {
    align-items: center;
    background: var(--tcx-dark);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 126px;
    padding: 30px;
}

.tcx-gt-panel-header--missing {
    background: var(--tcx-red);
}

.tcx-gt-panel-header--empty {
    background: #262b33;
}

.tcx-gt-overline {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.tcx-gt-panel-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0;
}

.tcx-gt-meta-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px 30px 0;
}

.tcx-gt-meta-grid div {
    background: var(--tcx-soft);
    border-radius: 6px;
    min-height: 88px;
    padding: 15px;
}

.tcx-gt-meta-grid span {
    color: var(--tcx-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.tcx-gt-meta-grid strong {
    color: var(--tcx-ink);
    display: block;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tcx-gt-meta-grid--empty div {
    min-height: 98px;
}

.tcx-gt-skeleton-line {
    animation: tcxGtSkeleton 1.35s ease-in-out infinite;
    background: linear-gradient(90deg, #dfe3ea 0%, #f4f6f8 45%, #dfe3ea 100%);
    background-size: 220% 100%;
    border-radius: 999px;
    display: block;
    height: 24px;
    margin-top: 4px;
    max-width: 220px;
    width: 72%;
}

.tcx-gt-empty-viewer {
    align-items: center;
    background: #f0f2f5;
    border-top: 1px solid var(--tcx-border);
    color: var(--tcx-muted);
    display: grid;
    justify-items: center;
    margin-top: 26px;
    min-height: 380px;
    padding: 40px 24px;
    text-align: center;
}

.tcx-gt-empty-viewer svg {
    color: #9aa3b2;
    fill: currentColor;
    height: 64px;
    margin-bottom: 16px;
    width: 64px;
}

.tcx-gt-empty-viewer h3 {
    color: var(--tcx-ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
}

.tcx-gt-empty-viewer p {
    color: var(--tcx-muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}

.tcx-gt-viewer {
    background: #f0f2f5;
    border-top: 1px solid var(--tcx-border);
    margin-top: 26px;
    min-height: 420px;
    padding: 18px;
}

.tcx-gt-pdf {
    background: #fff;
    border: 0;
    display: block;
    height: min(78vh, 860px);
    min-height: 560px;
    width: 100%;
}

.tcx-gt-image {
    background: #fff;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: min(78vh, 860px);
    max-width: 100%;
    object-fit: contain;
}

.tcx-gt-file-fallback {
    align-items: center;
    background: #fff;
    display: grid;
    gap: 14px;
    justify-items: center;
    min-height: 320px;
    padding: 30px;
    text-align: center;
}

.tcx-gt-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px 28px;
}

.tcx-gt-actions--center {
    justify-content: center;
    padding: 0;
}

.tcx-gt-button--dark {
    background: var(--tcx-blue);
    color: #fff;
}

.tcx-gt-button--dark:hover,
.tcx-gt-button--dark:focus {
    background: var(--tcx-blue-dark);
    color: #fff;
}

.tcx-gt-button--red {
    background: var(--tcx-red);
    color: #fff;
}

.tcx-gt-missing-body {
    display: grid;
    justify-items: center;
    padding: 48px 30px;
    text-align: center;
}

.tcx-gt-missing-body svg {
    color: var(--tcx-red);
    fill: currentColor;
    height: 58px;
    margin-bottom: 16px;
    width: 58px;
}

.tcx-gt-missing-body h2 {
    color: var(--tcx-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.18;
    margin: 0 0 12px;
}

.tcx-gt-missing-body p {
    color: var(--tcx-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 660px;
}

@keyframes tcxGtSkeleton {
    0% {
        background-position: 220% 0;
    }

    100% {
        background-position: -220% 0;
    }
}

@media (max-width: 760px) {
    .tcx-gt-search-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tcx-gt-submit {
        min-width: 0;
        width: 100%;
    }

    .tcx-gt-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .tcx-gt-panel-header {
        padding: 24px 20px;
    }

    .tcx-gt-panel-header h2,
    .tcx-gt-missing-body h2 {
        font-size: 24px;
    }

    .tcx-gt-meta-grid {
        grid-template-columns: 1fr;
        padding: 18px 20px 0;
    }

    .tcx-gt-viewer {
        min-height: 320px;
        padding: 12px;
    }

    .tcx-gt-empty-viewer {
        min-height: 300px;
        padding: 34px 18px;
    }

    .tcx-gt-empty-viewer h3 {
        font-size: 21px;
    }

    .tcx-gt-pdf {
        height: 72vh;
        min-height: 420px;
    }

    .tcx-gt-actions {
        padding: 18px 20px 24px;
    }

    .tcx-gt-button {
        width: 100%;
    }

    .tcx-gt-missing-body {
        padding: 38px 20px;
    }
}
