* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

header {
    margin-bottom: 30px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.page-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 14px;
    background: white;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: #333;
    border-color: #333;
    color: white;
}

.load-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background: #f44336;
}

.reset-btn:hover {
    background: #d7372d;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-selector label {
    font-weight: 600;
    color: #555;
}

.year-selector select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.year-selector select:hover,
.year-selector select:focus {
    border-color: #667eea;
    outline: none;
}

.mode-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-selector label {
    font-weight: 600;
    color: #555;
}

.mode-btn {
    padding: 8px 16px;
    background: white;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.mode-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mode-btn[data-mode="vacation"].active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.mode-btn[data-mode="holiday"].active {
    background: #FF5722;
    border-color: #FF5722;
}

.mode-btn[data-mode="regular-off"].active {
    background: #2196F3;
    border-color: #2196F3;
}

.mode-btn[data-mode="overtime"].active {
    background: #FF9800;
    border-color: #FF9800;
}

.vacation-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vacation-counter label {
    font-weight: 600;
    color: #555;
}

.vacation-counter input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.vacation-stats {
    display: flex;
    gap: 20px;
}

.stat {
    color: #555;
    font-size: 16px;
}

.stat strong {
    color: #667eea;
    font-size: 18px;
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.color-box.vacation {
    background: #4CAF50;
}

.color-box.holiday {
    background: #FF5722;
}

.color-box.regular-off {
    background: #2196F3;
}

.color-box.overtime {
    background: #FF9800;
}

.color-box.weekend {
    background: #f0f0f0;
}

.color-box.school-vacation {
    background: #ffd54f;
    border-color: #e0b83a;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.manage-header h2 {
    color: #333;
    font-size: 22px;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.manage-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.manage-card h3 {
    margin-bottom: 12px;
    color: #333;
}

.manage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: #444;
}

.manage-item button {
    background: #f44336;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
}

.manage-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.field-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.manage-form input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
}

.manage-form input[type="text"].date-input {
    font-family: inherit;
    cursor: pointer;
    background: white;
}


.date-picker {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px;
    width: 260px;
    z-index: 2000;
    display: none;
}

.date-picker.open {
    display: block;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.date-picker-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.date-picker-nav {
    display: flex;
    gap: 6px;
}

.date-picker-nav button {
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: 700;
}

.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-picker-day-name {
    text-align: center;
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

.date-picker-day {
    text-align: center;
    border-radius: 6px;
    padding: 6px 0;
    font-size: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    color: #333;
}

.date-picker-day:hover {
    border-color: #667eea;
    background: #f2f4ff;
}

.date-picker-day.disabled {
    visibility: hidden;
    pointer-events: none;
}

.date-picker-day.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.month {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.month-name {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 5px;
}

.day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 5px 0;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.day:not(.empty):hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.day.empty {
    cursor: default;
}

.day.weekend {
    background: #f0f0f0;
    color: #999;
}

.day.regular-off {
    background: #2196F3;
    color: white;
    font-weight: 600;
}

.day.overtime {
    background: #FF9800;
    color: white;
    font-weight: 600;
}

.day.holiday {
    background: #FF5722;
    color: white;
    font-weight: 600;
}

.day.vacation {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.day.today {
    border: 3px solid #FF4081 !important;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
    font-weight: bold;
}

.day.vacation.holiday {
    background: linear-gradient(135deg, #FF5722 50%, #4CAF50 50%);
}

.day.school-vacation,
.day.studiedag {
    font-weight: 700;
    color: #5d4b00;
}

.school-vacation-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 3px;
    border-radius: 3px;
    background: #ffd54f;
    color: #5d4b00;
    z-index: 1;
}

.day:not(.empty):not(.weekend):not(.holiday):not(.vacation):not(.regular-off):not(.overtime) {
    background: white;
    border: 1px solid #e0e0e0;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 16px 12px;
        border-radius: 8px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .page-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }

    .header-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .header-actions .load-btn {
        flex: 1;
        padding: 10px 6px;
        font-size: 13px;
    }

    .year-selector {
        width: 100%;
        justify-content: space-between;
    }

    .year-selector select {
        flex: 1;
    }

    .mode-selector {
        width: 100%;
        flex-wrap: wrap;
    }

    .mode-btn {
        flex: 1 1 calc(50% - 4px);
        text-align: center;
        min-height: 40px;
    }

    .vacation-counter {
        width: 100%;
        justify-content: space-between;
    }

    .vacation-counter input {
        flex: 1;
        width: auto;
    }

    .vacation-stats {
        width: 100%;
        justify-content: space-around;
    }

    .legend {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    .legend-item {
        font-size: 13px;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .month {
        padding: 12px 10px;
    }

    .month-name {
        font-size: 16px;
    }

    .day {
        font-size: 13px;
        min-height: 36px;
    }

    .school-vacation-badge {
        font-size: 8px;
    }

    .manage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .manage-header .year-selector {
        width: 100%;
    }

    .manage-grid {
        grid-template-columns: 1fr;
    }

    .manage-form {
        grid-template-columns: 1fr;
    }

    .manage-form input,
    .manage-form .load-btn {
        width: 100%;
    }

    .manage-item {
        flex-wrap: wrap;
        gap: 6px;
    }

    .manage-item button {
        min-width: 70px;
        min-height: 36px;
        font-size: 13px;
    }

    .date-picker {
        width: calc(100vw - 24px);
        left: 12px !important;
    }
}

/* Tablet: 2-column calendar */
@media (min-width: 641px) and (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .controls {
        gap: 12px;
    }
}

.day:not(.empty):not(.weekend):not(.holiday):not(.vacation):not(.regular-off):not(.overtime):hover {
    background: #f8f9fa;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .manage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html,
    body {
        height: 100%;
    }

    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .container {
        max-width: 100%;
        height: 100%;
        padding: 2mm;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #overviewPage {
        flex: 1;
        display: flex;
    }

    header {
        margin-bottom: 2mm;
    }

    h1 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .controls {
        padding: 2px 4px;
        margin-bottom: 4px;
        gap: 8px;
    }

    .load-btn,
    .vacation-counter,
    .mode-selector,
    .year-selector {
        display: none;
    }

    .page-tabs,
    #managePage {
        display: none !important;
    }

    .vacation-stats {
        font-size: 10px;
        gap: 10px;
    }

    .legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 9px;
    }

    .color-box {
        width: 12px;
        height: 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 6px;
        flex: 1 1 auto;
        height: 100%;
        align-content: stretch;
    }

    .month {
        padding: 7px;
        page-break-inside: avoid;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .month-name {
        font-size: 12px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .days-header {
        margin-bottom: 3px;
    }

    .day-name {
        font-size: 8px;
        padding: 2px 0;
    }

    .days {
        gap: 1px;
        flex: 1;
        grid-auto-rows: minmax(0, 1fr);
    }

    .day {
        font-size: 9px;
        min-height: 0;
        aspect-ratio: auto;
    }

    .school-vacation-badge {
        font-size: 7px;
        padding: 1px 2px;
    }

    .day:hover {
        transform: none;
        box-shadow: none;
    }

    @page {
        size: A4 landscape;
        margin: 2mm;
    }
}

/* ── Backups button ── */
.backups-btn {
    background: #455a64;
}

.backups-btn:hover {
    background: #37474f;
    box-shadow: 0 4px 8px rgba(69, 90, 100, 0.3);
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.modal-x-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.modal-x-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.modal-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.modal-close-btn {
    padding: 9px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-close-btn:hover {
    background: #5568d3;
}

.modal-secondary-btn {
    padding: 9px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-secondary-btn:hover {
    background: #e0e0e0;
}

.modal-danger-btn {
    padding: 9px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-danger-btn:hover {
    background: #d32f2f;
}

/* ── Backup list items ── */
.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.backup-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.backup-date {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.backup-meta {
    font-size: 11px;
    color: #888;
}

.btn-restore {
    padding: 6px 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-restore:hover {
    background: #5568d3;
}

/* ══════════════════════════════════════════════════════════
   Mobile-first header redesign
   ══════════════════════════════════════════════════════════ */

/* ── Compact top bar ── */
.header-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#appTitle {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.year-select-compact {
    padding: 5px 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 68px;
    text-align: center;
    flex-shrink: 0;
}

.year-select-compact option {
    background: #5568d3;
    color: white;
}

.stats-compact {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.stat-chip {
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
    line-height: 1.3;
}

.remaining-chip {
    background: rgba(76,175,80,0.45);
}

.total-chip {
    background: rgba(255,255,255,0.12);
    opacity: 0.85;
}

.stat-chip strong {
    font-size: 14px;
}

.controls-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.controls-toggle-btn:hover,
.controls-toggle-btn.active {
    background: rgba(255,255,255,0.35);
}

/* ── Tabs bar ── */
.tabs-bar {
    display: flex;
    background: white;
    border-bottom: 2px solid #e8e8e8;
}

.tabs-bar .tab-btn {
    flex: 1;
    padding: 11px 12px;
    background: transparent;
    color: #999;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
}

.tabs-bar .tab-btn:hover {
    color: #667eea;
    background: #f8f8ff;
    transform: none;
    box-shadow: none;
}

.tabs-bar .tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

/* ── Legend strip (always visible) ── */
.legend-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 14px;
    background: #f9f9ff;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.legend-strip::-webkit-scrollbar {
    display: none;
}

.legend-strip .legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.legend-strip .color-box {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
}

/* ── Collapsible controls panel ── */
.controls-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.controls-panel.open {
    max-height: 2000px;
}

/* Remove old h1 margin that's no longer needed */
header > h1 { display: none; }  /* hidden fallback — real title is #appTitle */

/* ── Desktop: panel always open, toggle hidden ── */
@media (min-width: 768px) {
    .controls-panel {
        max-height: none !important;
        overflow: visible;
    }

    .controls-toggle-btn {
        display: none;
    }

    #appTitle {
        font-size: 20px;
    }

    .stat-chip {
        font-size: 13px;
        padding: 5px 12px;
    }

    .stat-chip strong {
        font-size: 15px;
    }
}

/* ── Mobile: sticky header, flush container ── */
@media (max-width: 767px) {
    body {
        padding: 0;
        background: #f0f0f0;
    }

    .container {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        min-height: 100vh;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 200;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    header > h1 {
        display: none;
    }

    /* Give page sections some breathing room */
    #overviewPage,
    #managePage {
        padding: 12px;
    }

    .manage-header {
        padding-top: 4px;
    }

    /* Account for sticky header (header-bar + tabs + legend strip) */
    .month {
        scroll-margin-top: 145px;
    }

    /* Slightly larger touch targets for day cells */
    .day {
        min-height: 38px;
        font-size: 13px;
    }
}
