/* HEXODRAMA V44.2 · Popup awal website · mobile-first, tanpa dependensi eksternal. */
.hexo-entry-overlay,
.hexo-entry-overlay * {
    box-sizing: border-box;
}

.hexo-entry-overlay[hidden] {
    display: none !important;
}

.hexo-entry-overlay {
    position: fixed;
    z-index: 2147480000;
    inset: 0;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: rgba(3, 4, 7, 0.83);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    isolation: isolate;
}

.hexo-entry-dialog {
    width: min(100%, var(--hexo-entry-width, 560px));
    min-width: 0;
    max-height: min(90dvh, 960px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 103, 120, 0.26);
    border-radius: 18px;
    background: #14141b;
    color: #f5f6fa;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.74), 0 0 52px rgba(207, 36, 66, 0.12);
}

.hexo-entry-dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 64px;
    padding: 12px 15px 12px 18px;
    border-bottom: 1px solid #292832;
    background: linear-gradient(110deg, #25141e 0%, #14141b 76%);
}

.hexo-entry-dialog-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #f4f5f9;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.1px;
}

.hexo-entry-dialog-label span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hexo-entry-dialog-mark {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: #ff7287;
    background: rgba(238, 66, 91, 0.12);
    border: 1px solid rgba(238, 66, 91, 0.25);
}

.hexo-entry-dialog-mark svg {
    width: 19px;
    height: 19px;
}

.hexo-entry-dialog-close {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #4a3440;
    border-radius: 11px;
    background: #2b202b;
    color: #f5f6fa;
    cursor: pointer;
    transition: background-color 130ms ease, border-color 130ms ease;
}

.hexo-entry-dialog-close:hover {
    border-color: #ef6476;
    background: #4a2535;
}

.hexo-entry-dialog-close:focus-visible {
    outline: 3px solid #ff8d9e;
    outline-offset: 2px;
}

.hexo-entry-dialog-close svg {
    width: 20px;
    height: 20px;
}

.hexo-entry-dialog-frame {
    display: block;
    width: 100%;
    min-height: min(240px, 45dvh);
    height: min(var(--hexo-entry-height, 440px), 67dvh);
    max-height: calc(90dvh - 65px);
    flex: 1 1 auto;
    border: 0;
    background: #f7f7f8;
    color-scheme: light;
}

@media (max-width: 600px) {
    .hexo-entry-overlay {
        padding: max(12px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }

    .hexo-entry-dialog {
        border-radius: 15px;
        max-height: 92dvh;
    }

    .hexo-entry-dialog-top {
        min-height: 58px;
        padding: 10px 11px 10px 13px;
    }

    .hexo-entry-dialog-frame {
        min-height: min(230px, 43dvh);
        height: min(var(--hexo-entry-height, 440px), 67dvh);
        max-height: calc(92dvh - 60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hexo-entry-dialog {
        animation: none;
    }

    .hexo-entry-dialog-close {
        transition: none;
    }
}
