:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2440;
    background: #ffffdc;
    accent-color: #7c92ff;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

#logo {
    animation: rotation 20s linear infinite;
    display: inline-block;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.screen-shell {
    min-height: 100vh;
    height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-shell {
    width: min(1160px, 100%);
    display: grid;
    gap: 22px;
    padding: 24px;
    margin: auto;
    max-height: 100vh;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 10px;
}

.brand-block {
    max-width: 580px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffe0f2, #ffd6c0, #e0f2ff);
    color: #3b1d64;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(141, 75, 134, 0.12);
    margin-bottom: 14px;
}

.top-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
    text-align: right;
}

.auth-button {
    appearance: none;
    border: none;
    padding: 12px 22px;
    border-radius: 1000px;
    background: #010203;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(84, 88, 122, 0.14);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(84, 88, 122, 0.2);
}

.auth-status {
    margin: 0;
    color: rgba(246, 247, 251, 0.72);
    font-size: 0.95rem;
}

.brand-label {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1f2440;
}

.brand-subtitle {
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.7;
}

.clock-display {
    min-width: 170px;
    padding: 16px 22px;
    text-align: right;
    border-radius: 24px;
    background: #edc58b;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 182, 193, 0.2);
    font-size: 1.1rem;
    font-weight: 700;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hero-panel {
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 228, 225, 0.08));
    border: 1px solid rgba(255, 182, 193, 0.25);
    box-shadow: 0 30px 80px rgba(13, 7, 36, 0.22);
    padding: 36px;
    display: grid;
    gap: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(420px, 1fr);
    gap: 24px;
}

.dashboard>.upcoming-list-card {
    grid-column: 1 / -1;
}

.next-event-card,
.upcoming-list-card,
.weather-card {
    border-radius: 28px;
    background: #dce6ff;
    border: 1px solid rgba(37, 48, 72, 0.08);
    box-shadow: 0 20px 40px rgba(92, 108, 143, 0.08);
    padding: 28px;
}

.next-event-card {
    display: grid;
    gap: 22px;
    background: #dce6ff;
    border: 1px solid rgba(173, 216, 230, 0.2);
}

.weather-card {
    min-height: 250px;
    background: #dcffeb;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.weather-body {
    display: grid;
    gap: 10px;
    align-items: start;
}

.weather-temp {
    margin: 0;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2440;
}

.weather-temp::after {
    content: attr(data-icon);
    font-size: 1.6rem;
}

.weather-desc {
    margin: 0;
    color: #4d5b7e;
    font-size: 1rem;
    font-weight: 700;
}

.weather-location {
    margin: 0;
    color: #000f2f;
    font-size: 0.95rem;
}

.weather-local-time {
    margin: 0;
    color: black;
    font-size: 0.95rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3662ff, #ff2a2a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.event-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.event-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.event-meta {
    margin: 14px 0 0;
    color: black;
    font-size: 1rem;
}

#next-meeting-title {
    font-weight: 600;
}

.action-link {
    align-self: start;
    display: inline-flex;
    padding: 14px 24px;
    border-radius: 999px;
    background: #193c95;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(25, 60, 149, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.action-link:hover {
    transform: translateY(-2px);
    background-color: #2a52d1;
    box-shadow: 0 14px 28px rgba(25, 60, 149, 0.3);
}

.action-link.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.countdown-segment {
    min-height: 120px;
    padding: 22px;
    border-radius: 28px;
    background: #b7ccff !important;
    display: grid;
    place-items: center;
    border: 1px solid #7194ed !important;
}

.countdown-segment span {
    display: block;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.countdown-segment small {
    margin-top: 8px;
    display: block;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
}

.event-note {
    margin: 0;
    color: #5a637f;
    line-height: 1.7;
}

.upcoming-list-card {
    display: grid;
    gap: 20px;
    background: #f5e3e3;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 520px);
    overflow-y: auto;
}

.events-list-item {
    padding: 18px 22px;
    border-radius: 28px;
    background: #edcaca;
    border: 1px solid rgba(255, 182, 193, 0.2);
    display: grid;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(20, 12, 47, 0.08);
}

.events-list-item strong {
    display: block;
    font-size: 1rem;
}

.events-list-item span {
    color: black;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .dashboard {
        gap: 18px;
    }

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

    .clock-display {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .screen-shell {
        padding: 20px;
    }

    .event-headline {
        flex-direction: column;
        align-items: stretch;
    }

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

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(14px, -10px);
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.98;
    }

    50% {
        transform: translate(12px, -8px);
        opacity: 0.92;
    }
}