* { box-sizing: border-box; }

body {
    margin: 0;
    height: 100vh;
    background: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}



.window, .child-window {
    position: fixed;
    width: 380px;
    min-width: 320px;
    min-height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    resize: both;
}

.titlebar, .child-titlebar {
    height: 38px;
    padding: 0 14px;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    font-weight: bold;
    font-size: 15px;
}

.content {
    padding: 40px 24px;
    min-height: 260px;
}

.dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f0f0;
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.navbtn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
}

.navbtn img { width: 42px; height: 42px; }

.child-window iframe {
    width: 100%;
    height: calc(100% - 38px);
    border: none;
    background: white;
}

.closebtn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0 8px;
}

#copy-popup {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    transition: 0.25s;
}