.cafe_page {
    width: 100%;
}

.cafe_page_intro {
    border: 1px solid #d9dee5;
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cafe_page_kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 89, 195, 0.08);
    color: #1259c3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.cafe_page_intro h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    line-height: 1.15;
    color: #16263d;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.cafe_page_intro p {
    margin: 0;
    font-size: 15px;
    color: #627487;
    line-height: 1.8;
}

.cafe_page_actions {
    margin-top: 18px;
    text-align: center;
}

.cafe_window_layer {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
}

.cafe_window_layer.is_open {
    display: block;
}

.cafe_window_dim {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 26, 0.42);
    backdrop-filter: blur(4px);
}

.cafe_window {
    position: fixed;
    top: 70px;
    left: 70px;
    width: min(1100px, calc(100vw - 80px));
    height: min(900px, calc(100vh - 80px));
    min-width: 420px;
    min-height: 320px;
    background: #ffffff;
    border: 1px solid rgba(12, 20, 31, 0.08);
    border-radius: 15px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cafe_window.is_dragging,
.cafe_window.is_resizing {
    user-select: none;
}

.cafe_window.is_fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.cafe_window_header {
    position: relative;
    z-index: 2;
    min-height: 66px;
    padding: 14px 16px 14px 18px;
    background: linear-gradient(180deg, #1d2a36 0%, #15212d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: move;
}

.cafe_window_title_group {
    min-width: 0;
}

.cafe_window_kicker {
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.68);
    margin-bottom: 6px;
}

.cafe_window_title_group h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cafe_window_controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cafe_window_btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cafe_window_btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.cafe_window_btn_close {
    font-size: 26px;
}

.cafe_window_body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #ffffff;
}

.cafe_window_body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

.cafe_window_resize_handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    cursor: nwse-resize;
    z-index: 5;
    background:
        linear-gradient(135deg, transparent 0 40%, rgba(18, 89, 195, 0.0) 40% 100%),
        linear-gradient(135deg, transparent 0 55%, rgba(18, 89, 195, 0.32) 55% 60%, transparent 60% 100%),
        linear-gradient(135deg, transparent 0 70%, rgba(18, 89, 195, 0.40) 70% 75%, transparent 75% 100%),
        linear-gradient(135deg, transparent 0 85%, rgba(18, 89, 195, 0.50) 85% 90%, transparent 90% 100%);
}

.btn_primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 0;
    background: #1259c3;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(18, 89, 195, 0.18);
    cursor: pointer;
}

.btn_primary:hover {
    transform: translateY(-1px);
}

@media (max-width: 920px) {
    .cafe_window {
        top: 40px;
        left: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 90px);
        min-width: 300px;
        min-height: 260px;
        border-radius: 14px;
    }

    .cafe_window_header {
        min-height: 60px;
        padding: 12px 12px 12px 14px;
    }

    .cafe_page_intro {
        padding: 22px 20px;
    }

    .cafe_page_intro h2 {
        font-size: 26px;
    }
}

@media (max-width: 560px) {
    .cafe_window {
        top: 32px;
        left: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - 78px);
    }

    .cafe_window_btn {
        width: 34px;
        height: 34px;
    }

    .cafe_window_title_group h3 {
        font-size: 16px;
    }
}