/* Plume — même apparence que l'app : fond dégradé lavande / rose / menthe, verre clair, violet iris.
   Toutes les tailles sont en rem : la « Taille du texte » change la taille de base (html). */
:root {
  --plume: #5A55D6;
  --plume-soft: rgba(90, 85, 214, .14);
  --tomato: #E0664F;
  --danger: #D9463B;
  --ok: #3FA66B;
  --warn: #E59A2F;
  --ink: #1d1d22;
  --ink2: #5f5f6b;
  --ink3: #9a9aa6;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .85);
  --shadow: 0 6px 22px rgba(90, 85, 214, .09);
  --radius: 18px;
  --scale: 1.4;
  --side: 15.5rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f1f5; --ink2: #b8b8c6; --ink3: #80808e;
    --glass: rgba(255, 255, 255, .07); --glass-strong: rgba(255, 255, 255, .11); --glass-line: rgba(255, 255, 255, .13);
    --shadow: none; --plume-soft: rgba(140, 135, 255, .22); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { font-size: calc(13px * var(--scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.35;
  background: #e8e6f5;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 0% 0%, #cfc9f7 0%, transparent 70%),
    radial-gradient(55% 50% at 100% 0%, #f5d1d9 0%, transparent 70%),
    radial-gradient(60% 55% at 0% 100%, #f2e3c7 0%, transparent 70%),
    radial-gradient(60% 55% at 100% 100%, #c4e6de 0%, transparent 70%),
    #eef0f6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: #101116; }
  :root:not([data-theme="light"]) body::before {
    background:
      radial-gradient(60% 55% at 0% 0%, #2e2961 0%, transparent 70%),
      radial-gradient(55% 50% at 100% 0%, #4a2333 0%, transparent 70%),
      radial-gradient(60% 55% at 0% 100%, #1f1a1a 0%, transparent 70%),
      radial-gradient(60% 55% at 100% 100%, #0f3833 0%, transparent 70%),
      #121318;
  }
}
body.has-photo::before { background: var(--photo) center/cover no-repeat; filter: blur(var(--photo-blur, 0px)); transform: scale(1.05); opacity: var(--photo-opacity, 1); }

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--plume); }
.hidden { display: none !important; }
.muted { color: var(--ink2); }
.faint { color: var(--ink3); }
.small { font-size: .77rem; }
.callout { font-size: .923rem; }
.title3 { font-size: 1.154rem; }
.big { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.danger { color: var(--danger); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Verre ---------- */
.glass, .panel {
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.glass.strong { background: var(--glass-strong); }
.panel { padding: 1.1rem; }
.tinted {
  --c: var(--plume);
  position: relative; overflow: hidden; padding: 1.05rem; border-radius: 22px;
  background:
    radial-gradient(9rem 9rem at 100% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 10%, transparent) 60%, color-mix(in srgb, var(--c) 4%, transparent)),
    rgba(255, 255, 255, .35);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--c) 15%, transparent);
}
.section-title { font-size: .77rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin: 0 0 .5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(0,0,0,.08); cursor: pointer;
  background: var(--glass-strong); padding: .42rem .8rem; border-radius: 10px; font-size: .923rem; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.95); }
.btn.primary { background: var(--plume); color: #fff; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.green { background: var(--ok); color: #fff; border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: .3rem; border-radius: 8px; color: var(--ink3); display: inline-flex; align-items: center; }
.icon-btn:hover { background: var(--plume-soft); color: var(--plume); }
.seg { display: inline-flex; background: rgba(0,0,0,.06); border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: .34rem .85rem; border-radius: 8px; cursor: pointer; font-size: .923rem; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: rgba(255,255,255,.18); } }
.toggle { position: relative; width: 2.6rem; height: 1.5rem; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: rgba(0,0,0,.18); border-radius: 1rem; transition: .2s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; width: 1.2rem; height: 1.2rem; left: .15rem; top: .15rem; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.toggle input:checked + span { background: var(--ok); }
.toggle input:checked + span::after { transform: translateX(1.1rem); }
input.field, select.field, textarea.field {
  width: 100%; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.75); border-radius: 10px; padding: .5rem .65rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(input.field, select.field, textarea.field) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); } }
textarea.field { min-height: 7rem; resize: vertical; line-height: 1.4; }
label.lbl { display: block; font-size: .85rem; color: var(--ink2); margin: .7rem 0 .25rem; }
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }

/* ---------- Mise en page ---------- */
#app { display: flex; min-height: 100vh; }
#side {
  width: var(--side); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: .8rem .6rem 1rem; display: flex; flex-direction: column;
  background: rgba(255,255,255,.5); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255,255,255,.7);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #side { background: rgba(20,20,28,.55); border-right-color: rgba(255,255,255,.08); } }
#side .brand { display: flex; align-items: center; gap: .55rem; padding: .2rem .5rem .8rem; font-weight: 700; font-size: 1.15rem; }
#side .brand img { width: 1.9rem; height: 1.9rem; border-radius: 22%; }
#side h4 { font-size: .77rem; color: var(--ink3); font-weight: 600; margin: .9rem .55rem .3rem; }
.nav-item {
  display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; border-radius: 9px; cursor: pointer; user-select: none;
  color: var(--ink); text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(90,85,214,.08); }
.nav-item.on { background: rgba(90,85,214,.18); }
.nav-item.drop { outline: 2px solid var(--plume); }
.nav-item .count { margin-left: auto; color: var(--ink3); font-size: .9rem; font-variant-numeric: tabular-nums; }
.nav-item .ico { width: 1.45rem; height: 1.45rem; display: grid; place-items: center; flex: none; color: var(--plume); }
.nav-item .ico.round { border-radius: 50%; color: #fff; }
.nav-item .ico svg { width: 1rem; height: 1rem; }
.nav-item .ico.round svg { width: .8rem; height: .8rem; }
.nav-item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#side .bottom { margin-top: auto; padding-top: .8rem; }
.mail-zone { border: 1.5px dashed rgba(90,85,214,.45); border-radius: 12px; padding: .6rem; text-align: center; color: var(--ink2); font-size: .85rem; margin-bottom: .4rem; }
.mail-zone.drop { background: var(--plume-soft); border-color: var(--plume); color: var(--plume); }
#main { flex: 1; min-width: 0; padding: 1.25rem 1.5rem 4rem; }
.page-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
#menu-btn { display: none; }

/* ---------- Tâches ---------- */
.check { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--c, var(--plume)); background: transparent; cursor: pointer; flex: none; display: grid; place-items: center; padding: 0; }
.check.done { background: var(--c, var(--plume)); }
.check.done::after { content: ""; width: .35rem; height: .65rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task {
  display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); cursor: grab;
}
.task + .task { margin-top: .5rem; }
.task .txt { flex: 1; min-width: 0; cursor: pointer; }
.task .t { overflow-wrap: anywhere; }
.task.done .t { text-decoration: line-through; color: var(--ink2); }
.task .meta { font-size: .77rem; color: var(--ink2); display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .1rem; }
.task .late { color: var(--danger); font-weight: 600; }
.task .proj { font-size: .77rem; font-weight: 600; display: flex; align-items: center; gap: .3rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .proj svg { width: .8rem; height: .8rem; flex: none; }
.prio-mark { font-weight: 800; }
.prio-3 { color: var(--danger); } .prio-2 { color: var(--warn); } .prio-1 { color: var(--ink2); }
.dragging { opacity: .45; }
.drop-on { outline: 2px dashed var(--plume); outline-offset: 2px; }

.cols { display: grid; gap: .9rem; align-items: start; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.group-head { display: flex; align-items: center; margin-bottom: .6rem; }
.group-head .gt { font-size: .77rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.badge { margin-left: auto; color: #fff; background: var(--c, var(--plume)); border-radius: 1rem; padding: .05rem .55rem; font-size: .77rem; font-weight: 700; }
.bundle { border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.bundle + .task, .task + .bundle, .bundle + .bundle { margin-top: .5rem; }
.bundle-head { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; cursor: pointer; }
.bundle-head svg.fold { width: 1.2rem; height: 1.2rem; flex: none; }
.bundle-head .chev { transition: transform .2s; color: var(--ink3); }
.bundle.open .chev { transform: rotate(90deg); }
.bundle .steps { display: none; padding: 0 .4rem .4rem 1.6rem; }
.bundle.open .steps { display: block; }
.bundle .steps .task { background: transparent; border: 0; border-top: 1px solid rgba(0,0,0,.06); border-radius: 0; margin: 0; }
.recap { display: flex; gap: 1rem; align-items: center; }
.ring { --v: 0; --c: var(--plume); width: 4.6rem; height: 4.6rem; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
  background: radial-gradient(closest-side, var(--glass-strong) 79%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), rgba(0,0,0,.09) 0); }

/* ---------- Calendrier ---------- */
.cal-wrap { display: flex; gap: 1rem; align-items: flex-start; }
.mini-col { width: 16rem; flex: none; padding: 1rem; }
.mini { margin-bottom: 1.2rem; }
.mini h5 { margin: 0 0 .35rem; font-size: .85rem; font-weight: 600; }
.mini .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini .l { font-size: .72rem; color: var(--ink3); }
.mini .d { border: 0; background: transparent; border-radius: 50%; aspect-ratio: 1; cursor: pointer; font-size: .8rem; position: relative; padding: 0; }
.mini .d.has::after { content: ""; position: absolute; bottom: 12%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--plume); }
.mini .d.today { color: var(--plume); font-weight: 700; }
.mini .d.sel { background: var(--plume); color: #fff; }
.mini .d.sel::after { background: #fff; }
.cal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.agenda h3 { margin: 0 0 .6rem; font-size: 1.154rem; }
.agenda .it { display: flex; gap: .65rem; align-items: center; padding: .45rem .3rem; border-top: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.agenda .it:first-of-type { border-top: 0; }
.agenda .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.agenda .time { width: 4.2rem; flex: none; font-size: .85rem; color: var(--ink2); font-variant-numeric: tabular-nums; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; }
.month .hd { padding: .45rem .5rem; font-size: .77rem; color: var(--ink2); font-weight: 600; text-transform: uppercase; }
.month .cell { min-height: var(--rowh, 7rem); border-top: 1px solid rgba(0,0,0,.06); border-left: 1px solid rgba(0,0,0,.06); padding: .3rem; position: relative; cursor: pointer; }
.month .cell:nth-child(7n+1) { border-left: 0; }
.month .cell.out { opacity: .45; }
.month .cell.sel { background: rgba(90,85,214,.08); }
.month .num { font-size: .85rem; font-weight: 600; display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 1rem; }
.month .cell.today .num { background: var(--plume); color: #fff; }
.month .add { position: absolute; right: .25rem; top: .25rem; opacity: 0; }
.month .cell:hover .add { opacity: 1; }
.chip { display: block; font-size: .77rem; padding: .1rem .35rem; border-radius: 6px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 18%, transparent); border-left: 3px solid var(--c); cursor: pointer; }
.chip.td { background: transparent; border-left: 0; padding-left: .1rem; }
.chip.td::before { content: "○ "; color: var(--c); }
.chip.td.done { text-decoration: line-through; color: var(--ink3); }
.chip.allday { background: var(--c); color: #fff; border-left: 0; }
.week { display: grid; grid-template-columns: 3.2rem repeat(var(--days, 7), minmax(0, 1fr)); overflow: hidden; }
.week .hd { padding: .45rem .3rem; text-align: center; font-size: .85rem; border-bottom: 1px solid rgba(0,0,0,.06); cursor: pointer; }
.week .hd.today b { color: var(--plume); }
.week .allday { border-bottom: 1px solid rgba(0,0,0,.08); padding: .2rem; min-height: 2rem; }
.week .hour { height: 3rem; border-top: 1px solid rgba(0,0,0,.05); font-size: .72rem; color: var(--ink3); text-align: right; padding-right: .3rem; }
.week .daycol { position: relative; border-left: 1px solid rgba(0,0,0,.06); }
.week .slot { height: 3rem; border-top: 1px solid rgba(0,0,0,.05); }
.week .blk { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: .15rem .3rem; font-size: .75rem; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 22%, white); border-left: 3px solid var(--c); }
.week .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--tomato); z-index: 2; }

/* ---------- Organiser ---------- */
.org { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.load-day { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.load-day .barbg { flex: 1; height: .55rem; border-radius: 1rem; background: rgba(0,0,0,.07); overflow: hidden; }
.load-day .barfg { height: 100%; border-radius: 1rem; background: var(--c, var(--plume)); }
.pool .p { display: flex; gap: .5rem; padding: .5rem .55rem; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--glass-line); cursor: grab; margin-top: .45rem; }
.pool .p.on { outline: 2px solid var(--plume); }
.pool .p .bar { width: 4px; border-radius: 2px; background: var(--c); flex: none; }
.org-grid { display: grid; grid-template-columns: 3rem repeat(7, minmax(0, 1fr)); overflow: auto; }
.org-grid .hd { text-align: center; padding: .4rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.org-grid .lbl { font-size: .72rem; color: var(--ink3); text-align: right; padding: .2rem .3rem 0 0; }
.org-grid .c { min-height: 2.4rem; border-top: 1px solid rgba(0,0,0,.05); border-left: 1px solid rgba(0,0,0,.05); padding: 2px; }
.org-grid .c.dayrow { min-height: 3.2rem; background: rgba(90,85,214,.04); }
.org-grid .c.hl { background: rgba(90,85,214,.12); }

/* ---------- Projets ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.proj-card { cursor: pointer; display: flex; flex-direction: column; gap: .55rem; }
.proj-card h3 { margin: 0; font-size: 1.154rem; }
.progress { height: .5rem; border-radius: 1rem; background: rgba(0,0,0,.08); overflow: hidden; }
.progress > div { height: 100%; background: var(--c, var(--plume)); border-radius: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .77rem; padding: .12rem .5rem; border-radius: 1rem; background: rgba(0,0,0,.06); }
.pill.warn { background: rgba(229,154,47,.18); color: #9a5c07; }
.pill.ok { background: rgba(63,166,107,.18); color: #22744a; }
.proj-detail { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; align-items: start; }
.sub { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid rgba(0,0,0,.06); }
.sub:first-child { border-top: 0; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.file { border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--glass-line); padding: .4rem; font-size: .77rem; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.file .thumb { height: 5.5rem; border-radius: 8px; background: rgba(0,0,0,.05) center/cover no-repeat; display: grid; place-items: center; margin-bottom: .3rem; font-weight: 700; color: var(--ink3); }
.file .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file .x { position: absolute; top: .3rem; right: .3rem; background: rgba(255,255,255,.9); }
.dropzone { border: 1.5px dashed rgba(90,85,214,.45); border-radius: 12px; padding: .8rem; text-align: center; color: var(--ink2); font-size: .85rem; cursor: pointer; }
.dropzone.drop { background: var(--plume-soft); }

/* ---------- Idées ---------- */
.ideas { columns: 16rem; column-gap: 1rem; }
.idea { break-inside: avoid; margin-bottom: 1rem; padding: .9rem; border-radius: 14px; cursor: pointer; background: color-mix(in srgb, var(--c) 28%, #fffdf6); box-shadow: 0 4px 14px rgba(0,0,0,.07); transform: rotate(var(--tilt, 0deg)); }
.idea h4 { margin: 0 0 .3rem; font-size: 1rem; }
.idea .d { font-size: .85rem; color: var(--ink2); white-space: pre-wrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .idea { background: color-mix(in srgb, var(--c) 30%, #24232b); } }

/* ---------- Fenêtres ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,18,40,.28); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { width: min(38rem, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.3rem; background: var(--glass-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .modal { background: rgba(36,36,46,.96); } }
.modal h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.modal .foot { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 60; padding: .7rem 1rem; max-width: calc(100% - 2rem); }
.menu { position: fixed; z-index: 70; padding: .3rem; min-width: 12rem; background: var(--glass-strong); }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: .45rem .6rem; border-radius: 7px; cursor: pointer; }
.menu button:hover { background: var(--plume-soft); }

/* ---------- Connexion ---------- */
.login { max-width: 25rem; margin: 12vh auto; text-align: center; padding: 2rem; }
.login img { width: 5rem; height: 5rem; border-radius: 22%; box-shadow: 0 8px 24px rgba(90,85,214,.25); }
.login h1 { margin: .8rem 0 .3rem; }
.login form { text-align: left; margin-top: 1rem; }
.err { color: var(--danger); font-size: .9rem; margin-top: .6rem; min-height: 1.2rem; }

/* ---------- iPad / iPhone ---------- */
@media (max-width: 1100px) {
  .mini-col { display: none; }
  .proj-detail { grid-template-columns: 1fr; }
  .org { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  #side { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-105%); transition: transform .25s; width: min(19rem, 85vw); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.side-open #side { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.2); z-index: 30; }
  #menu-btn { display: inline-flex; }
  #main { padding: .8rem .75rem 5rem; }
  .big { font-size: 1.6rem; }
  .cols { grid-template-columns: 1fr !important; }
  .recap { flex-wrap: wrap; }
  .month .cell { min-height: 4.5rem; }
  .month .chip { font-size: .66rem; }
}
@media (max-width: 820px) {
  .recap { flex: 1 1 100%; }
  .ring { width: 3.6rem; height: 3.6rem; font-size: .85rem; }
  [data-new] { width: 100%; justify-content: center; }
  .mini h5 { text-transform: none; }
}
.mini h5 { text-transform: none; }
