*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bowl-surface);
}

:root {
  --bowl-dark:    #1a1a2e;
  --bowl-darker:  #12121f;
  --bowl-red:     #e63946;
  --bowl-red-lt:  #ff6b6b;
  --bowl-purple:  #9999cc;
  --bowl-white:   #ffffff;
  --bowl-surface: #f7f7fb;
  --bowl-border:  rgba(0,0,0,0.08);
  --bowl-text:    #1a1a2e;
  --bowl-muted:   #6b6b8a;
  --bowl-radius:  12px;
  --bowl-radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bowl-surface);
  color: var(--bowl-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bowl-surface);
}

@media (min-width: 601px) {
  body { background: #e8e8f0; }
  #app { box-shadow: 0 0 20px rgba(0,0,0,0.08); }
}

/* ── Header ── */
.bowl-header {
  background: var(--bowl-dark);
  padding: 20px 20px 24px;
  position: relative;
  overflow: hidden;
}
/* .bowl-header::after ancien : height: 8px (retablir si besoin) */
.bowl-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 0;
  background: var(--bowl-surface);
}
.bowl-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bowl-ball {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bowl-red);
  border: 2.5px solid var(--bowl-red-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.bowl-results-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;
  transition: background .15s;
}
.bowl-results-btn:hover { background: rgba(255,255,255,.2); }

.bowl-logo-img {
  width: 48px; height: 48px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.bowl-header-text { flex: 1; min-width: 0; }
.bowl-competition {
  color: var(--bowl-white);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bowl-action-name {
  color: var(--bowl-purple);
  font-size: 13px;
  margin-top: 2px;
}


/* ── Content ── */
.bowl-content {
  flex: 1;
  padding: 0;
}

/* ── Cards ── */
.bowl-card {
  background: var(--bowl-white);
  border-radius: 0;
  border: none;
  border-bottom: 0.5px solid var(--bowl-border);
  padding: 14px 16px;
  margin-bottom: 0;
}
.bowl-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bowl-text);
  margin-bottom: 4px;
}
.bowl-card-sub {
  font-size: 12px;
  color: var(--bowl-muted);
}

/* ── Badges statut date ── */
.bowl-status {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.bowl-status.actif   { background: #E1F5EE; color: #085041; }
.bowl-status.annulé  { background: #FCEBEB; color: #791F1F; }
.bowl-status.reporté { background: #FAEEDA; color: #633806; }

/* ── Boutons présence ── */
.bowl-btns {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.bowl-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid var(--bowl-border);
  background: var(--bowl-surface);
  color: var(--bowl-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.bowl-btn:active { transform: scale(0.97); }
.bowl-btn.present  { background: #E1F5EE; color: #085041; border-color: #0F6E56; }
.bowl-btn.absent   { background: #FCEBEB; color: #791F1F; border-color: #A32D2D; }
.bowl-btn.uncertain{ background: #FAEEDA; color: #633806; border-color: #854F0B; }

/* ── Feedback enregistrement ── */
.bowl-feedback {
  font-size: 12px;
  color: var(--bowl-muted);
  text-align: right;
  margin-top: 6px;
  min-height: 18px;
  transition: opacity .3s;
}
.bowl-feedback.saved { color: #0F6E56; }

/* ── Ordre des joueurs ── */
.bowl-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bowl-white);
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid var(--bowl-border);
  margin-bottom: 8px;
  cursor: grab;
  user-select: none;
  transition: opacity .15s, border-color .15s;
  touch-action: none;
}
.bowl-player-row:active { cursor: grabbing; }
.bowl-player-row.dragging { opacity: 0.35; }
.bowl-player-row.drag-over { border-color: var(--bowl-red); }
.bowl-player-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bowl-dark);
  color: var(--bowl-white);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bowl-player-name { flex: 1; font-size: 14px; font-weight: 500; }
.bowl-drag-handle {
  color: var(--bowl-muted);
  font-size: 18px;
  letter-spacing: -2px;
  flex-shrink: 0;
}
/* ── Portail autres actions ── */
.bowl-portail-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bowl-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.bowl-portail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bowl-white);
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid var(--bowl-border);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--bowl-text);
  transition: border-color .15s;
}
.bowl-portail-item:hover { border-color: var(--bowl-red); }
.bowl-portail-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bowl-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.bowl-portail-info { flex: 1; min-width: 0; }
.bowl-portail-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bowl-portail-type { font-size: 12px; color: var(--bowl-muted); margin-top: 2px; }
.bowl-portail-arrow { color: var(--bowl-muted); font-size: 18px; }

/* ── Résultats link ── */
.bowl-results-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--bowl-dark);
  color: var(--bowl-white);
  border-radius: var(--bowl-radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: opacity .15s;
}
.bowl-results-link:hover { opacity: .85; }

/* ── Loading ── */
.bowl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--bowl-muted);
}
.bowl-spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(230,57,70,.15);
  border-top-color: var(--bowl-red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error ── */
.bowl-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: var(--bowl-muted);
}
.bowl-error-ball { font-size: 48px; margin-bottom: 8px; }
.bowl-error-msg { font-size: 15px; color: var(--bowl-text); font-weight: 500; }
.bowl-error-retry {
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--bowl-dark);
  color: var(--bowl-white);
  border: none;
  border-radius: var(--bowl-radius-sm);
  font-size: 14px;
  cursor: pointer;
}

/* ── Responsive ── */
@media (prefers-reduced-motion: reduce) {
  .bowl-spinner { animation: none; }
  .bowl-btn, .bowl-portail-item { transition: none; }
}

/* ── Ordre joueurs – contrôles sélection ── */
.bowl-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--bowl-white);
  border-radius: var(--bowl-radius-sm);
  border: 1.5px solid transparent;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all .15s;
}
.bowl-player-row.selected { border-color: var(--bowl-red); background: #fff9f9; }
.bowl-player-row.reserve  { opacity: .55; }
.bowl-player-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bowl-dark);
  color: var(--bowl-white);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.bowl-player-row.selected .bowl-player-num { background: var(--bowl-red); }
.bowl-player-row.reserve  .bowl-player-num { background: var(--bowl-muted); }
.bowl-player-name { flex: 1; font-size: 14px; font-weight: 500; }
.bowl-player-tag {
  font-size: 11px; padding: 2px 7px;
  border-radius: 20px; font-weight: 500; flex-shrink: 0;
}
.bowl-player-tag.active   { background: #E1F5EE; color: #085041; }
.bowl-player-tag.reserve  { background: #f1efe8; color: #6b6b8a; }
.bowl-player-tag.removed  { background: #FCEBEB; color: #791F1F; }

.bowl-separator {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0; color: var(--bowl-muted);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.bowl-separator::before,
.bowl-separator::after { content: ''; flex: 1; height: 0.5px; background: var(--bowl-border); }

.bowl-info-bar {
  background: #FAEEDA; border-radius: var(--bowl-radius-sm);
  padding: 8px 12px; font-size: 12px; color: #633806; margin-bottom: 10px;
}
.bowl-controls {
  background: var(--bowl-white); border-radius: var(--bowl-radius-sm);
  border: 1.5px solid var(--bowl-red); padding: 12px; margin-bottom: 6px;
}
.bowl-controls-label { font-size: 12px; color: var(--bowl-muted); margin-bottom: 4px; }
.bowl-controls-name  { font-size: 14px; font-weight: 600; color: var(--bowl-dark); margin-bottom: 10px; }
.bowl-ctrl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bowl-arrow-btn {
  width: 40px; height: 40px;
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid var(--bowl-border);
  background: var(--bowl-surface); color: var(--bowl-dark);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s; flex-shrink: 0;
}
.bowl-arrow-btn:active:not(:disabled) { background: var(--bowl-dark); color: var(--bowl-white); transform: scale(.95); }
.bowl-arrow-btn:disabled { opacity: .25; cursor: default; }
.bowl-pos-btns { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.bowl-pos-btn {
  width: 34px; height: 34px;
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid var(--bowl-border);
  background: var(--bowl-surface); color: var(--bowl-muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.bowl-pos-btn.current    { background: var(--bowl-red); color: #fff; border-color: var(--bowl-red); }
.bowl-pos-btn.active-pos { border-color: var(--bowl-dark); color: var(--bowl-dark); }
.bowl-pos-btn:active     { transform: scale(.93); }
.bowl-pos-btn:disabled   { opacity: .25; cursor: default; }
.bowl-pos-divider { width: 0.5px; height: 34px; background: var(--bowl-border); flex-shrink: 0; }
.bowl-btn-remove {
  width: 100%; padding: 9px;
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid #A32D2D; background: #FCEBEB; color: #791F1F;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .12s;
}
.bowl-btn-reinstate {
  width: 100%; padding: 9px;
  border-radius: var(--bowl-radius-sm);
  border: 0.5px solid #0F6E56; background: #E1F5EE; color: #085041;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all .12s;
}
.bowl-btn-remove:active, .bowl-btn-reinstate:active { transform: scale(.98); }

/* ── Selecteur de layout ── */
.bowl-layout-bar {
  margin: 8px 16px;
}
.bowl-layout-label {
  font-size: 11px;
  color: var(--bowl-muted);
  margin-bottom: 6px;
}
.bowl-layout-btns {
  display: flex;
  background: var(--bowl-surface);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.bowl-layout-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--bowl-muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.bowl-layout-btn i { font-size: 15px; }
.bowl-layout-btn.active {
  background: var(--bowl-white);
  color: var(--bowl-dark);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

/* ── Layout Compact ── */
.bowl-compact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bowl-white);
  border-radius: 0;
  border: none;
  border-bottom: 0.5px solid var(--bowl-border);
  margin-bottom: 0;
}
.bowl-compact-info { flex: 1; min-width: 0; }
.bowl-compact-label { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bowl-compact-time  { font-size: 11px; color: var(--bowl-muted); }
.bowl-compact-btns  { display: flex; gap: 3px; flex-shrink: 0; }
.bowl-compact-btn {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 0.5px solid var(--bowl-border);
  background: var(--bowl-surface);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.bowl-compact-btn:active { transform: scale(.93); }
.bowl-compact-btn.present   { background: #E1F5EE; color: #085041; border-color: #0F6E56; }
.bowl-compact-btn.absent    { background: #FCEBEB; color: #791F1F; border-color: #A32D2D; }
.bowl-compact-btn.uncertain { background: #FAEEDA; color: #633806; border-color: #854F0B; }

/* ── Layout Calendrier ── */
.bowl-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 16px;
  margin-bottom: 0;
}
.bowl-cal-cell {
  border-radius: 10px;
  border: 0.5px solid var(--bowl-border);
  background: var(--bowl-white);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  min-width: 0;
}
.bowl-cal-cell.cal-p { background: #E1F5EE; border-color: #0F6E56; }
.bowl-cal-cell.cal-a { background: #FCEBEB; border-color: #A32D2D; }
.bowl-cal-cell.cal-i { background: #FAEEDA; border-color: #854F0B; }
.bowl-cal-day   { font-size: 11px; color: var(--bowl-muted); }
.bowl-cal-num   { font-size: 18px; font-weight: 700; color: var(--bowl-dark); line-height: 1.2; }
.bowl-cal-time  { font-size: 11px; color: var(--bowl-muted); }
.bowl-cal-year  { font-size: 10px; color: var(--bowl-muted); }
.bowl-cal-state { font-size: 11px; font-weight: 600; margin-top: 4px; color: var(--bowl-muted); }
.bowl-cal-state.cal-p { color: #085041; }
.bowl-cal-state.cal-a { color: #791F1F; }
.bowl-cal-state.cal-i { color: #633806; }
.bowl-cal-legend {
  display: flex; gap: 12px; justify-content: center;
  font-size: 11px; color: var(--bowl-muted);
  padding: 4px 16px 10px;
}
.bowl-cal-legend span { display: flex; align-items: center; gap: 4px; }
.bowl-cal-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.bowl-cal-dot.p { background: #1D9E75; }
.bowl-cal-dot.a { background: #E24B4A; }
.bowl-cal-dot.i { background: #EF9F27; }

/* ── Layout Tableau ── */
.bowl-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.bowl-tbl th {
  text-align: left; padding: 6px 16px;
  color: var(--bowl-muted); font-weight: 500;
  border-bottom: 0.5px solid var(--bowl-border);
}
.bowl-tbl td { padding: 10px 16px; border-bottom: 0.5px solid var(--bowl-border); vertical-align: middle; }
.bowl-tbl tr:last-child td { border-bottom: none; }
.bowl-tbl-label { font-size: 13px; font-weight: 500; }
.bowl-tbl-time  { font-size: 11px; color: var(--bowl-muted); }
.bowl-seg {
  display: flex;
  border: 0.5px solid var(--bowl-border);
  border-radius: 6px;
  overflow: hidden;
}
.bowl-seg.disabled { opacity: .35; pointer-events: none; }
.bowl-seg-btn {
  flex: 1; padding: 5px 3px;
  font-size: 11px; font-weight: 600;
  border: none;
  background: var(--bowl-white);
  color: var(--bowl-muted);
  cursor: pointer;
  text-align: center;
  transition: all .12s;
}
.bowl-seg-btn.present   { background: #E1F5EE; color: #085041; }
.bowl-seg-btn.absent    { background: #FCEBEB; color: #791F1F; }
.bowl-seg-btn.uncertain { background: #FAEEDA; color: #633806; }

/* ── Feedback global ── */
.bowl-global-feedback {
  text-align: right;
  min-height: 18px;
  font-size: 12px;
  margin-top: 8px;
}

/* ── Dates bloquees ── */
.bowl-locked { opacity: .6; }
.bowl-locked-msg {
  font-size: 12px;
  color: var(--bowl-muted);
  margin-top: 10px;
  font-style: italic;
}
.bowl-locked-icon {
  font-size: 14px;
  color: var(--bowl-muted);
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}
.bowl-cal-locked {
  opacity: .5;
  cursor: default;
}

/* ── Portail double pill ── */
.bowl-portail { margin-top: 0; margin-bottom: 0; }
.bowl-portail-pill {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
}
.bowl-portail-pill-inner {
  display: flex;
  width: 100%;
}
.bowl-pill-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bowl-dark);
  color: #fff;
  border-radius: 8px 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.15);
  flex: 1;
}
.bowl-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: var(--bowl-red);
  color: #fff;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 700;
  width: 52px;
}
.bowl-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.bowl-acc-body.open { max-height: 600px; }
.bowl-acc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--bowl-border);
  text-decoration: none;
  color: var(--bowl-text);
  background: var(--bowl-white);
  transition: background .12s;
}
.bowl-acc-item:last-child { border-bottom: none; }
.bowl-acc-item:hover { background: var(--bowl-surface); }
.bowl-acc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bowl-red);
  flex-shrink: 0;
}
.bowl-acc-left { flex: 1; min-width: 0; }
.bowl-acc-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bowl-acc-org {
  font-size: 11px;
  color: var(--bowl-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bowl-acc-arrow { color: var(--bowl-muted); font-size: 16px; flex-shrink: 0; }

/* ── Prochaine date ── */
.bowl-next-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bowl-next-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--bowl-red);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bowl-next-card {
  background: var(--bowl-dark);
  border-radius: 0;
  padding: 14px 16px;
  margin-bottom: 0;
}
.bowl-next-date {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.bowl-next-btn {
  flex: 1;
  padding: 11px 4px;
  border-radius: var(--bowl-radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.bowl-next-btn:active    { transform: scale(.97); }
.bowl-next-btn.present   { background: #E1F5EE; color: #085041; border-color: #0F6E56; }
.bowl-next-btn.absent    { background: #FCEBEB; color: #791F1F; border-color: #A32D2D; }
.bowl-next-btn.uncertain { background: #FAEEDA; color: #633806; border-color: #854F0B; }
.next-saved {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-align: right;
  margin-top: 8px;
  min-height: 16px;
}
.next-saved.ok { color: #5DCAA5; }

/* Separateur */
.bowl-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 8px;
  color: var(--bowl-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bowl-sep::before,
.bowl-sep::after { content: ''; flex: 1; height: 0.5px; background: var(--bowl-border); }

/* Highlight prochaine date dans la liste */
.bowl-next-hl    { border-left: 3px solid var(--bowl-red) !important; }
.bowl-next-hl-tr { background: #fff9f9; }

/* ── Bouton dates passees ── */
.bowl-past-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-bottom: 0.5px solid var(--bowl-border);
  background: var(--bowl-white);
  color: var(--bowl-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background .12s;
}
.bowl-past-btn:hover { background: var(--bowl-surface); }
.bowl-past-btn i { font-size: 14px; }
.bowl-past-count {
  background: var(--bowl-surface);
  border-radius: 20px;
  font-size: 11px;
  padding: 1px 7px;
  font-weight: 600;
  color: var(--bowl-muted);
}

/* ── Calendrier : chips dates passées ── */
.bowl-cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 0.5px solid var(--bowl-border);
}
.bowl-cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 0.5px solid var(--bowl-border);
  background: #f0f0f7;
  opacity: .7;
}
.bowl-cal-chip.cal-p { background: #E1F5EE; border-color: #0F6E56; opacity: .6; }
.bowl-cal-chip.cal-a { background: #FCEBEB; border-color: #A32D2D; opacity: .6; }
.bowl-cal-chip.cal-i { background: #FAEEDA; border-color: #854F0B; opacity: .6; }
.bowl-cal-chip-date { font-size: 10px; font-weight: 600; color: var(--bowl-dark); }
.bowl-cal-chip-time { font-size: 9px;  color: var(--bowl-muted); }
