body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #0f172a;
    color: #fff;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
}

.legend {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    font-size: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}

.dot-airbnb {
    background: #e91e63;
}

.dot-manual {
    background: #111111;
}

#ec {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.ec-day-head,
.ec-resource,
.ec-time,
.ec-title,
.ec-button {
    color: #111 !important;
}

.ec-button {
    border-radius: 10px !important;
}

.ec-event {
    cursor: pointer;
    border-radius: 8px !important;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
}

.modal__dialog {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100vw - 32px));
    margin: 80px auto;
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.modal__close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.modal__grid div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal__full {
    grid-column: 1 / -1;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

@media (max-width: 768px) {
    .app {
        padding: 16px;
    }

    .modal__grid {
        grid-template-columns: 1fr;
    }
}
