:root {
    /* Surfaces */
    --bg:        #f6f7fb;
    --card:      #ffffff;
    --card-2:    #f8f9fc;
    --border:    #e6e8ef;
    --border-2:  #eef0f6;

    /* Type */
    --text:      #11141d;
    --text-2:    #353b4a;
    --muted:     #6b7280;
    --muted-2:   #9aa2b4;

    /* Brand / accents */
    --accent:        #2b7fff;
    --accent-bg:     #e8f1ff;
    --warn:          #f5a623;
    --warn-bg:       #fff7e0;

    /* Per-parent pill colours are injected at runtime as
       .child-pill.parent-<slug> / .parent-group.parent-<slug>. */

    --radius:     12px;
    --radius-sm:  8px;
    --radius-xs:  6px;
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, .04);
    --shadow:     0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-lg:  0 8px 24px rgba(15, 23, 42, .08);

    /* Legacy aliases kept for chrome that still references --kevin / --chloe. */
    --kevin:     #2b7fff;
    --kevin-bg:  #e8f1ff;
    --chloe:     #e85aad;
    --chloe-bg:  #fde7f3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
                   "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

.app { max-width: 1200px; margin: 0 auto; padding: 16px; }
@media (min-width: 768px) { .app { padding: 24px; } }

/* ----------  Topbar (chrome)  ---------- */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.topbar .brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 600;
    color: var(--text);
}
.topbar .brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
}
.topbar .nav-links {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.topbar .nav-links a {
    color: var(--text-2);
    padding: 6px 10px; border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 500;
}
.topbar .nav-links a:hover { background: var(--border-2); text-decoration: none; }
.topbar .nav-links a.current {
    background: var(--accent-bg); color: var(--accent);
}
.topbar .nav-links a.subscribe-link {
    color: var(--accent); font-weight: 600;
}
.topbar .nav-links a.subscribe-link:hover {
    background: var(--accent-bg);
}
.topbar .brand { color: var(--text); text-decoration: none; }
.topbar .brand:hover { text-decoration: none; }

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin: 8px 0 14px;
}
.page-header h1 { margin: 0; font-size: 19px; font-weight: 600; }
.page-header .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar .user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 20px; background: var(--card);
    border: 1px solid var(--border); font-size: 13px;
}
.topbar .user-chip .role {
    font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--muted); padding: 2px 6px; background: var(--border-2); border-radius: 4px;
}
.topbar .user-chip button {
    background: none; border: none; color: var(--muted);
    cursor: pointer; padding: 0 4px;
}
.topbar .user-chip button:hover { color: var(--accent); }

.menu-btn {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xs); padding: 8px 10px;
    font-size: 18px; cursor: pointer; color: var(--text);
    display: none;
}

/* ----------  Slide-out mobile menu  ---------- */
.menu-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
    z-index: 90; opacity: 0; pointer-events: none;
    transition: opacity .18s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.menu-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 86vw);
    background: var(--card); z-index: 91;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .22s ease;
    overflow-y: auto;
    padding: 20px 18px env(safe-area-inset-bottom, 16px);
}
.menu-panel.open { transform: translateX(0); }
.menu-panel h4 {
    font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
    color: var(--muted); margin: 18px 0 6px;
}
.menu-panel .menu-item {
    display: block; padding: 10px 12px;
    border-radius: var(--radius-xs); color: var(--text-2);
    font-size: 15px; font-weight: 500;
}
.menu-panel .menu-item:hover { background: var(--border-2); text-decoration: none; }
.menu-panel .close {
    background: none; border: none; font-size: 22px; color: var(--muted);
    cursor: pointer; float: right; line-height: 1;
}
.menu-panel .ident {
    margin-top: 4px; padding: 12px; background: var(--card-2);
    border-radius: var(--radius-sm);
}
.menu-panel .ident .who { font-weight: 600; }
.menu-panel .ident .sub {
    font-size: 12px; color: var(--muted); margin-top: 2px;
}

/* ----------  Calendar header (title + view tabs + nav)  ---------- */
.cal-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cal-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.cal-title { margin: 0; font-size: 19px; font-weight: 600; }
.cal-title .sub { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }

.view-tabs {
    display: inline-flex; background: var(--border-2);
    border-radius: 999px; padding: 3px; gap: 2px;
}
.view-tabs button {
    appearance: none; background: none; border: none; cursor: pointer;
    padding: 6px 14px; border-radius: 999px; font-size: 13px;
    color: var(--muted); font-weight: 500;
}
.view-tabs button.active {
    background: var(--card); color: var(--text); box-shadow: var(--shadow-sm);
}

.cal-nav {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 18px 12px;
}
.cal-nav button, .cal-nav .btn {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 8px 12px; font-size: 14px; font-weight: 500;
    cursor: pointer; color: var(--text);
    line-height: 1; min-height: 36px;
}
.cal-nav button:hover, .cal-nav .btn:hover { background: var(--border-2); }
.cal-nav button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.cal-nav .spacer { flex: 1; }
.cal-nav .legend {
    display: inline-flex; flex-wrap: wrap; gap: 12px;
    color: var(--muted); font-size: 12px; align-items: center;
}
.cal-nav .legend .swatch {
    display: inline-block; width: 10px; height: 10px; border-radius: 2px;
    margin-right: 4px; vertical-align: -1px;
}

/* The body that holds the active view */
.cal-body { padding: 12px 18px 18px; position: relative; min-height: 200px; }

.loading-overlay {
    position: absolute; inset: 0; background: rgba(255, 255, 255, .6);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--muted); pointer-events: none;
}
.loading-overlay.hidden { display: none; }

/* ----------  Birthday markers  ---------- */
.birthdays {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin: 2px 0;
}
.birthday-pill {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 999px; line-height: 1.4;
    background: #fff3cd; color: #7a4f00;
}
.birthday-banner {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    border: 1px solid #f5d782; color: #6d4400;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 10px; font-size: 14px;
}

/* ----------  Bank holiday markers  ---------- */
.bank-holiday-pill {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 999px; line-height: 1.4;
    background: #e4f4ea; color: #1d6b3a;
}
.bank-holiday-banner {
    background: #e4f4ea; border: 1px solid #b9e0c6; color: #17552e;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 10px; font-size: 14px;
}

/* ----------  School holiday markers  ---------- */
.school-holiday-pill {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 999px; line-height: 1.4;
    background: #ece8fb; color: #4b3a99;
}
.school-holiday-banner {
    background: #f1eefc; border: 1px solid #d6cdf5; color: #3d2f80;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 10px; font-size: 14px;
}

/* ----------  Work leave (owner only)  ---------- */
.work-leave-pill {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 2px 7px; border-radius: 999px; line-height: 1.4;
    background: #dff1f4; color: #145f6b;
}
.work-leave-banner {
    background: #e6f4f6; border: 1px solid #bfe2e8; color: #124f59;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 10px; font-size: 14px;
}

/* ----------  Shared cell/card styles  ---------- */
.child-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 999px;
    line-height: 1.2;
}
.child-pill .child-dot {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.parent-group {
    background: var(--card-2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    border-left: 3px solid var(--border);  /* fallback */
}
.parent-group .label {
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.event-row {
    display: flex; gap: 12px; padding: 8px 0;
    border-bottom: 1px solid var(--border-2);
}
.event-row:last-child { border-bottom: none; }
.event-time {
    flex: 0 0 84px; font-weight: 600; color: var(--accent);
}
.event-affects {
    color: var(--muted); font-size: 11px; margin-left: 6px;
}
.override-banner {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn);
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 13px; color: #8a5a00;
    margin-bottom: 14px;
}

/* ----------  Month view  ---------- */
.month-grid .weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
    margin-bottom: 6px;
}
.month-grid .weekday {
    text-align: center; font-size: 11px;
    font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: var(--muted); padding: 8px 0;
}
.month-grid .days {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.month-cell {
    min-height: 100px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px; cursor: pointer;
    display: flex; flex-direction: column;
    transition: transform .1s, box-shadow .1s;
    position: relative; overflow: hidden;
}
.month-cell:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.month-cell.other-month { opacity: 0.4; }
.month-cell.today { border: 2px solid var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.month-cell.has-override {
    background: linear-gradient(to bottom, var(--warn-bg) 0%, #fff 80%);
    border-color: var(--warn);
}
.month-cell .head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px;
}
.month-cell .num { font-weight: 700; font-size: 14px; }
.month-cell .week-tag {
    font-size: 9px; font-weight: 700; color: var(--muted);
    padding: 2px 6px; border-radius: 4px; background: var(--border-2);
    letter-spacing: .5px;
}
.month-cell .pills {
    display: flex; flex-direction: column; gap: 3px;
    margin-top: auto;
}
.month-cell .event-dot {
    position: absolute; top: 6px; right: 6px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--warn);
}

/* ----------  Week view  ---------- */
.week-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.week-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px; cursor: pointer;
    min-height: 160px;
    display: flex; flex-direction: column;
    transition: box-shadow .12s;
    position: relative; overflow: hidden;
}
.week-card:hover { box-shadow: var(--shadow); }
.week-card.today { border: 2px solid var(--accent); }
.week-card.has-override {
    background: linear-gradient(to bottom, var(--warn-bg) 0%, #fff 80%);
    border-color: var(--warn);
}
.week-card .day-name {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: var(--muted);
}
.week-card .day-num { font-size: 24px; font-weight: 700; margin-top: 2px; }
.week-card .week-tag {
    position: absolute; top: 10px; right: 10px;
    font-size: 9px; font-weight: 700; color: var(--muted);
    background: var(--border-2); padding: 2px 6px; border-radius: 4px;
}
.week-card .pills { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.week-card .events-mini {
    margin-top: 8px; font-size: 11px; color: var(--muted);
    display: flex; flex-direction: column; gap: 2px;
}
.week-card .events-mini .e { display: flex; gap: 4px; }
.week-card .events-mini .t { color: var(--accent); font-weight: 600; min-width: 38px; }

/* ----------  Day view  ---------- */
.day-view { padding: 4px 4px 4px; }
.day-view .day-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.day-view .day-head h2 {
    margin: 0; font-size: 26px; font-weight: 700;
}
.day-view .day-head .meta {
    color: var(--muted); font-size: 13px;
}
.day-view .events-block h4,
.day-view .notes-block h4 {
    margin: 16px 0 6px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.day-view .notes-block .body {
    background: var(--card-2); padding: 12px 14px;
    border-radius: var(--radius-sm); color: var(--text-2);
    white-space: pre-wrap;
}
.day-view .edit-action {
    margin-top: 18px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.day-view .edit-action a {
    display: inline-block; background: var(--accent); color: white;
    padding: 10px 16px; border-radius: var(--radius-xs); font-weight: 500;
    text-decoration: none; font-size: 14px;
}
.day-view .edit-action a:hover { opacity: 0.92; }

/* ----------  Mobile-specific tweaks  ---------- */
@media (max-width: 768px) {
    .app { padding: 12px; padding-bottom: 80px; }

    .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
    .topbar .nav-links,
    .topbar .user-chip { display: none; }

    .cal-header { padding: 12px 14px; }
    .cal-title { font-size: 17px; }
    .cal-title .sub { display: none; }
    .view-tabs { display: none; }     /* moved to bottom nav */
    .cal-nav { padding: 8px 14px 10px; }
    .cal-nav .legend { display: none; }
    .cal-body { padding: 10px 12px 14px; }

    .month-grid .weekday { font-size: 9px; }
    .month-cell { min-height: 64px; padding: 4px; }
    .month-cell .num { font-size: 13px; }
    .month-cell .week-tag { display: none; }
    .month-cell .child-pill {
        font-size: 9px; padding: 1px 5px; gap: 2px;
    }
    .month-cell .child-pill .child-dot { display: none; }

    .week-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .week-card { min-height: 0; padding: 10px 14px; }
    .week-card .day-name { display: inline; }
    .week-card .day-num {
        font-size: 17px; margin-top: 0; display: inline; margin-left: 6px;
    }
    .week-card .week-tag { top: 8px; right: 10px; }
    .week-card .pills { flex-direction: row; flex-wrap: wrap; margin-top: 6px; }
    .week-card .events-mini { margin-top: 4px; }

    .day-view .day-head h2 { font-size: 22px; }
}

/* ----------  Quick-peek modal (month/week click)  ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
    display: none; align-items: center; justify-content: center;
    z-index: 95; padding: 16px;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px; max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 22px 22px calc(env(safe-area-inset-bottom, 0px) + 28px);
    position: relative;
}
.modal .close {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none; color: var(--muted);
    cursor: pointer; padding: 8px; line-height: 1;
    font-size: 22px; border-radius: var(--radius-xs);
}
.modal .close:hover { background: var(--border-2); color: var(--text); }
.modal h3 {
    margin: 0 0 6px; font-size: 18px; font-weight: 700;
    padding-right: 28px;
}
.modal .modal-meta {
    color: var(--muted); font-size: 13px; margin-bottom: 14px;
}
.modal .modal-section { margin: 14px 0 0; }
.modal .modal-section h4 {
    margin: 0 0 6px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.modal .actions {
    margin-top: 18px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.modal .actions button, .modal .actions a {
    appearance: none; border: none; padding: 10px 16px;
    border-radius: var(--radius-xs); font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none;
}
.modal .actions .primary { background: var(--accent); color: white; }
.modal .actions .primary:hover { opacity: .92; }
.modal .actions .secondary { background: var(--border-2); color: var(--text); }
.modal .actions .secondary:hover { background: var(--border); }
@media (max-width: 768px) {
    .modal-backdrop { padding: 0; align-items: flex-end; }
    .modal { max-width: 100%; max-height: 88vh;
             border-radius: var(--radius) var(--radius) 0 0; }
}

/* ----------  Sticky bottom nav (mobile only)  ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--card); border-top: 1px solid var(--border);
    display: none;
    padding: 4px 6px env(safe-area-inset-bottom, 4px);
    z-index: 80;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, .05);
}
.bottom-nav button {
    flex: 1; appearance: none; background: none; border: none;
    padding: 8px 4px; color: var(--muted);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 500; cursor: pointer;
    border-radius: var(--radius-xs);
}
.bottom-nav button.active { color: var(--accent); }
.bottom-nav button .icon { font-size: 18px; line-height: 1; }
@media (max-width: 768px) { .bottom-nav { display: flex; } }

/* ---------- Proposals & view-as ---------- */

/* Count of changes waiting on a reviewer, next to the Review nav link. */
.nav-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: var(--warn, #d59a2a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  vertical-align: text-top;
}

/* Impossible-to-miss bar while viewing as someone else. The whole app renders
   as that person, so this is the only thing distinguishing it from your own
   account. */
.impersonation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: #7a2d8c;
  color: #fff;
  font-size: 13px;
}
.impersonation-bar strong { font-weight: 700; }
.impersonation-bar button {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.impersonation-bar button:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Override-form event rows ----------
   .event-row is also used by the calendar day modal, where a flex row is
   right. Inside an editing form the row must stack: inputs on one line, the
   "Affects" checkboxes underneath. These selectors are deliberately scoped to
   .events-list so they outrank the bare .event-row rule above regardless of
   which stylesheet loads last. */
.events-list .event-row {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--card-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  border-bottom: 1px solid var(--border-2);
}
.events-list .event-row:last-child { margin-bottom: 0; }

.events-list .event-row .top {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Fixed-width time, description takes everything left over. min-width:0 is
   what actually lets the description shrink and grow inside a flex row. */
.events-list .event-row .top input.t { flex: 0 0 122px; }
.events-list .event-row .top input.d { flex: 1 1 auto; min-width: 0; }
.events-list .event-row .top input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.events-list .event-row .top button.x {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.events-list .event-row .top button.x:hover { background: #fdeaea; color: #8c2020; }

.events-list .event-row .affects {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-2);
  font-size: 12px;
  color: var(--muted);
}
.events-list .event-row .affects label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text);
}

/* ---------- Buttons ----------
   .btn is used across the admin pages, propose.php and review.php, but until
   now was only styled inside .cal-nav - everywhere else it fell back to the
   browser default button, and <a class="btn"> rendered as a bare link. These
   are the base styles; a page may still override them locally. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover     { background: #1c6ae6; border-color: #1c6ae6; }
.btn:disabled  { opacity: .55; cursor: not-allowed; }

.btn.secondary {
  background: var(--card);
  color: var(--text-2);
  border-color: var(--border);
}
.btn.secondary:hover { background: var(--card-2); border-color: var(--muted-2); }

.btn.danger {
  background: #fff;
  color: #8c2020;
  border-color: #e7bcbc;
}
.btn.danger:hover { background: #fdeaea; border-color: #d98a8a; }

/* School holiday: a strip along the bottom edge, so a fortnight off reads as
   one band across the month without crowding each cell. Drawn as a
   pseudo-element so it doesn't fight .has-override's background or .today's
   ring. */
.month-cell.school-hol { position: relative; }
.month-cell.school-hol::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px; background: #b7a8ee;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    pointer-events: none;
}
