body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
}

.page-shell {
    padding: 2rem 0 3rem;
}

.btn-outline-dark {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark.active {
    color: #000000;
    background-color: #ffffff;
    border-color: #ffffff;
}

.x-content {
    white-space: pre-wrap;
    word-break: break-all;
    overflow: auto;
}

.x-photo {
    display: flex;
    overflow: auto;
}

.x-photo img {
    display: flex;
}

.x-photo-item {
    min-width: 50%;
    width: 100%;
}

.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #2a2a2a;
}

.calendar-header,
.calendar-cell {
    min-height: 48px;
    padding: 8px;
    background-color: #141414;
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.calendar-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    background-color: #111111;
    color: #d1d5db;
}

.day-number {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 6px;
}

.day-blank {
    background-color: #0d0d0d;
    color: #4b5563;
}

.day-sun .day-number {
    color: #ff6b6b;
}

.day-sat .day-number {
    color: #4dabf7;
}

.day-today {
    border: 2px solid #4f8ff7;
    box-shadow: inset 0 0 0 1px rgba(79, 143, 247, 0.25);
}

.event-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    background-color: #1a1a1a;
    border-radius: 14px;
    border: 1px solid #2e2e2e;
    min-height: 100px;
}

.event-card img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.event-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.event-sub {
    font-size: 0.82rem;
    color: #9ca3af;
}

.event-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #1e2a4a;
    color: #7ba3ff;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    align-items: center;
}

.event-meta span {
    font-size: 0.74rem;
    color: #9ca3af;
    background-color: #1c1c1c;
    padding: 3px 8px;
    border-radius: 999px;
}

.event-count {
    background-color: #3d2a14;
    color: #ffa94d;
    font-weight: 700;
}

.calendar-cell.has-event {
    cursor: pointer;
}

.calendar-cell.has-event:hover {
    background-color: #1c2333;
}

.modal-image-slider {
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 12px;
    background: #141414;
}

.modal-image-slider img {
    width: 100%;
    display: block;
    border-radius: 12px;
    max-height: 420px;
    object-fit: contain;
}

.modal-image-slider .slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.modal-image-slider button {
    pointer-events: all;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-image-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.calendar-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .calendar-grid,
    .calendar-header-row {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .calendar-cell {
        min-height: 130px;
    }

    .event-card {
        min-height: 120px;
    }
}
