.cycle-canvas {
            width: 100%;
            height: auto;
            background-color: #fef9f0;
            border-radius: 16px;
            border: 1px solid #f0d5c5;
            margin: 1rem 0;
            display: block;
        }
        .phase-legend {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
            margin: 1rem 0 0.5rem;
        }
        .calendar-wrapper {
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            padding: 1rem;
            margin: 1.5rem 0;
            border: 1px solid #f0d5c5;
        }
        .calendar-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        .calendar-nav button {
            background: none;
            border: none;
            font-size: 1.3rem;
            color: #2c7da0;
            cursor: pointer;
            padding: 0 0.8rem;
            transition: 0.2s;
        }
        .calendar-nav button:hover { color: #e35f5f; transform: scale(1.1); }
        .calendar-month-title {
            font-weight: 700;
            font-size: 1.3rem;
            color: #2c7da0;
            margin: 0;
        }
        .calendar-legend {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }
        .cal-legend-color {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            text-align: center;
        }
        .calendar-weekday {
            font-weight: 600;
            color: #5a6e7a;
            font-size: 0.85rem;
            padding: 0.5rem 0;
        }
        .calendar-day {
            background-color: #fefaf5;
            border-radius: 40px;
            padding: 0.6rem 0.2rem;
            font-size: 0.9rem;
            transition: all 0.1s;
            cursor: default;
            position: relative;
        }
        .calendar-day.other-month {
            color: #bbb;
            background-color: #fcf8f2;
        }
        .calendar-day.menstruation {
            background-color: #e35f5f;
            color: white;
            font-weight: bold;
        }
        .calendar-day.fertile {
            background-color: #f3b33d;
            color: #2c2c2c;
        }
        .calendar-day.ovulation {
            background-color: #c4450c;
            color: white;
            font-weight: bold;
            box-shadow: 0 0 0 2px #ffbc6e;
        }
        .calendar-day.next-period {
            background-color: #8b9bb4;
            color: white;
            border: 2px solid #2c7da0;
        }
        @media (max-width: 576px) {
            .calendar-day { padding: 0.3rem 0; font-size: 0.7rem; }
            .calendar-weekday { font-size: 0.7rem; }
            .calendar-nav button { font-size: 1rem; }
        }
        .clinical-note {
            background-color: #f0f7fc;
            border-left: 4px solid #2c7da0;
            padding: 1rem 1.2rem;
            border-radius: 0 12px 12px 0;
            margin: 1.5rem 0;
        }