.thatopen-viewer-host {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.thatopen-viewer-container {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.thatopen-viewer-container--active {
    touch-action: none;
}

.thatopen-viewer-label-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.thatopen-viewer-container--area-select {
    cursor: crosshair;
}

.thatopen-viewer-area-select-overlay {
    position: absolute;
    border: 2px dashed #1565c0;
    background: rgba(21, 101, 192, 0.12);
    pointer-events: none;
    z-index: 4;
    box-sizing: border-box;
}

.thatopen-viewer-label {
    position: absolute;
    transform: translate(-50%, -50%);
    max-width: 12rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thatopen-viewer-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted, #5c6370);
    background: rgba(255, 255, 255, 0.72);
    z-index: 2;
}

.thatopen-viewer-overlay--error {
    color: var(--color-danger, #b42318);
    background: rgba(255, 245, 245, 0.9);
}

.thatopen-viewer-overlay--idle {
    background: rgba(244, 245, 247, 0.85);
}
