/* HMI teaser for lang-top-rail. Prefix tc-qr- only. Width 280px. */

.tc-qr {
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
}

.tc-qr-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #64748b;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
}

a.tc-qr-card:hover,
a.tc-qr-card:focus {
    border-color: #2563eb;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
    color: #0f172a;
    outline: none;
}

.tc-qr-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
}

.tc-qr-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #dbeafe;
    color: #2563eb;
}

.tc-qr-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.tc-qr-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    color: #0f172a;
}

.tc-qr-scene {
    position: relative;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #3a414c;
    aspect-ratio: 800 / 450;
}

.tc-qr-still {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    vertical-align: top;
    pointer-events: none;
    user-select: none;
}

.tc-qr-live {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.tc-qr-scene.is-live .tc-qr-live {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tc-qr-scene.is-live .tc-qr-live {
        opacity: 0;
    }
}
