.np-internal-window {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    isolation: isolate;
}

.np-internal-window-backdrop {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.np-internal-window-frame {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr);
    width: min(var(--np-window-width), calc(100vw - 32px));
    height: min(var(--np-window-height), calc(100vh - 32px));
    overflow: hidden;
    background: var(--np-surface, #fff);
    border: 1px solid var(--np-accent, #0078d7);
    border-radius: 7px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.np-internal-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding-left: 12px;
    background: var(--np-surface, #f2f2f2);
    border-bottom: 1px solid color-mix(in srgb, var(--np-accent, #0078d7) 55%, transparent);
    color: var(--np-text, #111);
    font: 600 13px/1 Arial, sans-serif;
}

.np-internal-window-close {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 44px;
    color: inherit;
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
}

.np-internal-window-close:hover,
.np-internal-window-close:focus-visible {
    background: #c42b1c;
    color: #fff;
    outline: none;
}

.np-internal-window-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--np-surface, #fff);
}
