.legacy-tool-root[data-legacy-tool="anthony-qr"] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: calc(100vh - 12rem);
}

.anthony-qr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.85rem;
    background: #fff;
}

.anthony-qr-toolbar__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.anthony-qr-toolbar__text strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.anthony-qr-toolbar__text span {
    font-size: 0.8rem;
    color: #64748b;
}

.anthony-qr-toolbar__link {
    white-space: nowrap;
    text-decoration: none;
}

.anthony-qr-frame-wrap {
    position: relative;
    flex: 1;
    min-height: min(78vh, 920px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.85rem;
    background: #0b1220;
}

.anthony-qr-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: min(78vh, 920px);
    border: 0;
    background: #fff;
}

.anthony-qr-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #e2e8f0;
    background: rgba(11, 18, 32, 0.92);
}

.anthony-qr-loading[hidden] {
    display: none !important;
}

.anthony-qr-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(226, 232, 240, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: anthony-qr-spin 0.8s linear infinite;
}

@keyframes anthony-qr-spin {
    to {
        transform: rotate(360deg);
    }
}

[data-tool-layout="iframe"] .tool-workspace-inner,
[data-tool-page="anthony-qr"] .tool-workspace-inner {
    max-width: none;
}

@media (max-width: 900px) {
    .legacy-tool-root[data-legacy-tool="anthony-qr"] {
        min-height: calc(100vh - 8rem);
    }

    .anthony-qr-frame-wrap,
    .anthony-qr-frame {
        min-height: 70vh;
    }
}
