.closebutton {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #c8b0d8;
    }

.window {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(240, 218, 255, 0.92);
    border: 2px solid rgba(225, 224, 255, 0.95);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
    }

.windowheader {
    margin: 0;
    cursor: move;
    font-size: 16px;
    font-weight: 700;
    color: #c8b0d8;
    }

#stormyIcon,
#pipIcon,
#pusheenIcon {
    width: 90px;
}

#stormyIcon p,
#pipIcon p,
#pusheenIcon p {
    white-space: normal;
    overflow-wrap: break-word;
}

.stormy-content p {
    font-weight: 400;
}

.pip-content h2,
.pip-content p,
.pip-content ol {
    font-weight: 400;
}

.notes-content textarea {
    border: 2px solid #e1e0ff;
    border-radius: 8px;
    box-sizing: border-box;
    color: #a2b9c9;
    font-family: 'Sniglet';
    font-size: 16px;
    min-height: 180px;
    padding: 10px;
    resize: vertical;
    width: 100%;
}

.notes-content textarea:focus {
    border-color: #c8b0d8;
    outline: none;
}

.notes-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

#notesSave {
    background-color: #fff;
    border: 2px solid #e1e0ff;
    border-radius: 8px;
    color: #c8b0d8;
    cursor: pointer;
    font-family: 'Sniglet';
    padding: 8px 14px;
}

#notesSave:hover {
    background-color: #f0daff;
}

#notesStatus {
    color: #a2b9c9;
    font-size: 13px;
}

.calculator-display {
    display: block;
    background-color: #f0daff;
    border-radius: 8px;
    color: #c8b0d8;
    font-size: 24px;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 10px;
    text-align: right;
}

#calculatorWindow {
    flex-direction: column;
}

#calculatorWindow > div:last-child {
    flex: 1;
}

#notesWindow {
    flex-direction: column;
}

#notesWindow > div:last-child {
    flex: 1;
}

.calculator-buttons {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, 1fr);
}

.calculator-buttons button {
    background-color: #e1e0ff;
    border: none;
    border-radius: 8px;
    color: #a2b9c9;
    cursor: pointer;
    font-family: 'Sniglet';
    font-size: 16px;
    min-height: 38px;
}

.calculator-buttons button:hover {
    background-color: #d6d4f5;
}

@media (max-width: 560px) {
    #calculatorWindow {
        width: min(92%, 420px) !important;
    }

    .calculator-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}