.nevv-overlay-user-tools { position: fixed; top: 14px; right: 14px; z-index: 2147482000; display: flex; align-items: center; gap: 9px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.nevv-overlay-avatar-button { width: 50px; height: 50px; padding: 0; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #101820; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); overflow: hidden; cursor: pointer; }
.nevv-overlay-avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.nevv-overlay-page-settings { min-height: 43px; padding: 0 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: #101820; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); font: 750 12px/1 inherit; cursor: pointer; }
.nevv-overlay-page-settings span { margin-left: 4px; }
.nevv-overlay-user-menu { position: absolute; top: 60px; right: 0; width: 230px; padding: 14px; border: 1px solid rgba(20,35,50,.16); border-radius: 12px; background: #fff; color: #17202a; box-shadow: 0 16px 45px rgba(0,0,0,.24); }
.nevv-overlay-user-menu strong,
.nevv-overlay-user-menu small { display: block; }
.nevv-overlay-user-menu small { margin: 3px 0 12px; color: #6b7886; }
.nevv-overlay-user-menu a { display: block; margin-top: 6px; padding: 9px 10px; border-radius: 7px; background: #eef3f8; color: #17202a; text-decoration: none; }
.nevv-block--editable { outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .15s ease; }
.nevv-block--editable:hover { outline-color: rgba(47,128,237,.66); }
.nevv-overlay-block-tools { position: absolute; left: 50%; right: auto; bottom: 0; z-index: 2147481900; display: flex; align-items: center; gap: 4px; padding: 3px 3px 3px 9px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(16,24,32,.92); color: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.2); opacity: .82; transform: translate(-50%, 50%); transition: opacity .15s ease, transform .15s ease; font: 700 10px/1 ui-sans-serif, system-ui, sans-serif; }
.nevv-block--editable:hover > .nevv-overlay-block-tools,
.nevv-overlay-block-tools:focus-within { opacity: 1; transform: translate(-50%, calc(50% - 3px)); }
.nevv-overlay-block-tools button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #2f80ed; color: #fff; font-size: 17px; cursor: pointer; }
@media (max-width: 640px) {
    .nevv-overlay-page-settings span { display: none; }
    .nevv-overlay-page-settings { width: 43px; padding: 0; }
    .nevv-overlay-user-tools { top: 8px; right: 8px; }
    .nevv-overlay-block-tools { left: 50%; right: auto; bottom: 0; }
}

.nevv-overlay-block-tools button svg { width: 18px; height: 18px; display: block; }
.nevv-overlay-block-tools .nevv-overlay-fotobaza-button { background: #0f8b8d; }
.nevv-overlay-block-tools .nevv-overlay-fotobaza-button:hover,
.nevv-overlay-block-tools .nevv-overlay-fotobaza-button:focus-visible { background: #0b6f71; }
html.nevv-fotobaza-admin-open,
body.nevv-fotobaza-admin-open { overflow: hidden !important; overscroll-behavior: none; }
.nevv-fotobaza-admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(5, 11, 18, .78);
    backdrop-filter: blur(4px);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.nevv-fotobaza-admin-dialog {
    position: relative;
    width: min(92vw, 1500px);
    height: min(88dvh, 980px);
    min-width: min(620px, calc(100vw - 32px));
    min-height: min(420px, calc(100dvh - 32px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 100px rgba(0,0,0,.48);
}
.nevv-fotobaza-admin-dialog.is-maximized {
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 20px) !important;
    min-width: 0;
    min-height: 0;
    border-radius: 10px;
}
.nevv-fotobaza-admin-dialog.is-resizing { user-select: none; }
.nevv-fotobaza-admin-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px 8px 18px;
    background: #101820;
    color: #fff;
}
.nevv-fotobaza-admin-header > div { min-width: 0; }
.nevv-fotobaza-admin-header strong,
.nevv-fotobaza-admin-header small { display: block; }
.nevv-fotobaza-admin-header strong { font-size: 17px; line-height: 1.2; }
.nevv-fotobaza-admin-header small {
    margin-top: 3px;
    overflow: hidden;
    color: #b9c5d1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nevv-fotobaza-admin-header nav { display: flex; align-items: center; gap: 6px; }
.nevv-fotobaza-admin-header button {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: 800 20px/1 ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
}
.nevv-fotobaza-admin-header button:hover,
.nevv-fotobaza-admin-header button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.nevv-fotobaza-admin-frame-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #eef2f6; }
.nevv-fotobaza-admin-frame-wrap iframe { position: relative; z-index: 2; width: 100%; height: 100%; display: block; border: 0; background: #fff; }
.nevv-fotobaza-admin-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4b5d6f;
    font-size: 13px;
    font-weight: 750;
}
.nevv-fotobaza-admin-loading[hidden] { display: none; }
.nevv-fotobaza-admin-loading span {
    width: 20px;
    height: 20px;
    border: 3px solid #c5d1dc;
    border-top-color: #2f80ed;
    border-radius: 50%;
    animation: nevv-fotobaza-admin-spin .7s linear infinite;
}
.nevv-fotobaza-admin-resize {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 12px 0 14px 0;
    background: linear-gradient(135deg, transparent 0 45%, rgba(16,24,32,.32) 46% 53%, transparent 54% 61%, rgba(16,24,32,.54) 62% 69%, transparent 70%);
    cursor: nwse-resize;
    touch-action: none;
}
.nevv-fotobaza-admin-dialog.is-maximized .nevv-fotobaza-admin-resize { display: none; }
@keyframes nevv-fotobaza-admin-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
    .nevv-fotobaza-admin-backdrop { padding: 6px; }
    .nevv-fotobaza-admin-dialog,
    .nevv-fotobaza-admin-dialog.is-maximized {
        width: calc(100vw - 12px) !important;
        height: calc(100dvh - 12px) !important;
        min-width: 0;
        min-height: 0;
        border-radius: 10px;
    }
    .nevv-fotobaza-admin-header { min-height: 54px; padding-left: 12px; }
    .nevv-fotobaza-admin-header small { max-width: 45vw; }
    .nevv-fotobaza-admin-header button { width: 36px; height: 36px; }
    .nevv-fotobaza-admin-resize { display: none; }
}
