/* Agenda TV : ces valeurs constituent le gabarit historique, à conserver.
   Conteneur : 960 px de contenu + 2 × 20 px ; tuile : 135 + 2 × 10 + 2 px.
   Ne pas appliquer de reset global border-box ou remplacer les inline-block. */
html {
    color-scheme: light;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #edf2f5;
    color: #253342;
    text-align: left;
}
.calendar {
    box-sizing: content-box;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}
.day {
    box-sizing: content-box;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border: 1px solid #d6e0e7;
    padding: 10px;
    background: #fff;
    min-width: 135px;
    max-width: 135px;
    min-height: 170px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(32, 57, 78, .055);
}
.day::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #c9d7e3;
}
.day h4 {
    margin: 1.33em 0;
    font-size: 1em;
    color: #435466;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.day-today {
    border-color: #68a99b;
    background: #fcfffe;
    box-shadow: 0 3px 12px rgba(31, 102, 86, .09), inset 0 0 0 1px #d3e9e3;
}
.day-today::before {
    background: #218571;
}
.day-today h4 {
    color: #176c5c;
}
.event {
    margin: 5px 0;
    padding: 1px;
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.event p {
    margin: 1em 0;
}
.event-time {
    font-variant-numeric: tabular-nums;
    opacity: .95;
}
.green {
    background: linear-gradient(135deg, #1c8657, #177247);
}
.blue {
    background: linear-gradient(135deg, #2177bc, #185e9b);
}
.purple {
    background: linear-gradient(135deg, #8b4eb3, #733b9c);
}
.beige {
    background: linear-gradient(135deg, #ead2a6, #ddbd85);
    color: #49391f;
}
.sync-status {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    max-width: calc(100vw - 48px);
    padding: 7px 10px;
    border: 1px solid #d9cbaa;
    border-radius: 20px;
    background: #fff9ed;
    color: #71582b;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(43, 48, 53, .06);
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #b77b24;
    vertical-align: 1px;
}
.empty-state {
    margin: 40px auto;
    max-width: 480px;
    padding: 28px 24px;
    border: 1px solid #d6e0e7;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 4px 16px rgba(32, 57, 78, .05);
}
.empty-symbol {
    font-size: 32px;
    color: #438d7d;
}
.empty-state h2 {
    font-size: 19px;
    color: #2d4254;
}
.empty-state p {
    font-size: 14px;
    line-height: 1.6;
    color: #637587;
}
