.resource-reader [hidden] { display: none; }
.resource-reader { min-width: 0; }

.resource-reader button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #cad6e2;
    border-radius: 4px;
    padding: 6px 10px;
    background: #fff;
    color: #243f58;
    cursor: pointer;
}

.resource-reader svg {
    width: 18px;
    height: 18px;
}

.resource-reader button:disabled {
    opacity: 0.45;
    cursor: default;
}

.resource-reader__tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.resource-reader__tools input { width: 64px; }
.resource-reader__tools select { max-width: 160px; }

.resource-reader__tools input,
.resource-reader__tools select {
    min-height: 36px;
    padding: 4px;
    border: 1px solid #cad6e2;
    border-radius: 4px;
    background: #fff;
    color: #243f58;
}

.resource-reader__stage {
    position: relative;
    height: min(72dvh, 800px);
    min-height: 320px;
    background: #e4e7eb;
}

.resource-reader__scroll {
    position: absolute;
    inset: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.resource-reader [data-reader-status] {
    min-height: 22px;
    margin: 8px 0;
    font-size: 13px;
    color: #526a7d;
}

.resource-reader__conflict {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.resource-reader:fullscreen {
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow: auto;
    background: #fff;
}

.resource-reader:fullscreen .resource-reader__stage {
    flex: 1;
    height: auto;
    min-height: 0;
}

@media (width <= 767px) {
    .resource-reader { order: 3; }
    .resource-reader__tools { gap: 6px; }
    .resource-reader__tools select { max-width: 118px; }
}
