/* =====================================================================
   Lions Bleus shop: one stylesheet, no framework.
   Look (2.0): Montserrat, navy logo on white, royal blue actions, soft branch colours.
   ===================================================================== */

/* --- Fonts (self-hosted: no requests to Google = no GDPR issue) ---- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap;
  src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* --- Tokens --------------------------------------------------------- */
:root {
  --navy:       #0F2A49;   /* shield of the logo */
  --blue:       #20509A;   /* royal blue of the round logo: buttons, links */
  --blue-dark:  #173E7C;
  --blue-tint:  #E8EFF9;
  --cyan:       #00B8F0;
  --ink:        #101E33;   /* body text */
  --muted:      #5F6D83;
  --bg:         #F3F6FA;
  --paper:      #ffffff;
  --line:       #DCE3EE;
  --yellow:     #f2b705;   /* neckerchief: focus + "waiting" only */
  --green:      #2e7a4f;
  --green-tint: #e5f2ea;
  --red:        #b3261e;
  --red-tint:   #fbe9e7;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* --- Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
}
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue-dark);
  border-radius: 2px;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

/* --- Header --------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1100px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--blue); margin-right: auto; }
.brand__name { font: 700 1.6rem/1 var(--font-head); }
.brand__sub { font-size: .85rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a, .link-button {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }
.site-nav a:hover, .link-button:hover { color: var(--blue); }
.site-nav__logout { margin: 0; }
.link-button { background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; cursor: pointer; }
.count {
  display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: 2px;
  background: var(--yellow); color: var(--ink); border-radius: 999px;
  font-size: .8rem; text-align: center; line-height: 1.4;
}

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a {
  padding: 4px 10px; font: 600 .9rem/1.4 var(--font-body); color: var(--muted); text-decoration: none;
}
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a[aria-current="true"] { background: var(--blue); color: #fff; }

/* --- Page ----------------------------------------------------------- */
.page { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.narrow { max-width: 34rem; }

/* The signature: souche title bar */
.title-bar {
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--blue);
  padding-bottom: .2em;
  border-bottom: 6px solid var(--blue);
  margin-bottom: .6em;
  letter-spacing: .005em;
}
.lead { font-size: 1.15rem; max-width: 38rem; }
.aside-line { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* --- Notices -------------------------------------------------------- */
.notice {
  border-left: 5px solid var(--blue); background: var(--blue-tint);
  padding: 12px 16px; margin: 0 0 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice--success { border-color: var(--green); background: var(--green-tint); }
.notice--error   { border-color: var(--red);   background: var(--red-tint); }

/* --- Forms ---------------------------------------------------------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field__hint { font-size: .92rem; color: var(--muted); margin: -2px 0 6px; }
.field__error { color: var(--red); font-size: .95rem; font-weight: 600; margin: 6px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid #aab6c8; border-radius: var(--radius); background: #fff;
}
input:focus-visible, select:focus-visible { border-color: var(--blue); }
.field--error input { border-color: var(--red); }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__error { grid-column: 2; }
.form__actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 8px; }

/* --- Buttons -------------------------------------------------------- */
.button {
  display: inline-block; font: 600 1.05rem/1.2 var(--font-body);
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  padding: 11px 22px; border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button--quiet { background: var(--paper); color: var(--blue); }
.button--quiet:hover { background: var(--blue-tint); color: var(--blue-dark); }
.button--danger { background: var(--paper); color: var(--red); border-color: #e2b4af; }
.button--danger:hover { background: var(--red-tint); color: var(--red); border-color: var(--red); }
.button--small { font-size: .9rem; padding: 6px 12px; border-width: 1.5px; }

/* --- Branch tiles (home) -------------------------------------------- */
.branch-grid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.branch-tile {
  background: var(--paper); border: 1px solid var(--line); border-top: 10px solid var(--branch);
  border-radius: var(--radius); padding: 20px 18px 18px; min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.branch-tile__name { font: 700 1.9rem/1 var(--font-head); color: var(--ink); }
.branch-tile__meta { font-size: .9rem; color: var(--muted); }

/* --- Admin ---------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a {
  padding: 6px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600;
  border: 1px solid transparent;
}
.tabs a:hover { background: var(--paper); border-color: var(--line); }
.tabs a[aria-current="page"] { background: var(--blue); color: #fff; }
.tabs__n { font-weight: 400; opacity: .75; }
.search { display: flex; gap: 8px; }
.search input { width: 15rem; padding: 7px 10px; }
.search .button { padding: 7px 14px; font-size: .95rem; }

.table-wrap { position: relative; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: .9rem;
  padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.table th .sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.table th .sort:hover { color: var(--blue); }
.table th .sort--active { color: var(--ink); }
.sort__arrow { font-size: .75em; opacity: .45; }
.sort--active .sort__arrow { opacity: 1; color: var(--blue); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table__strong { font-weight: 600; }
.table__actions { white-space: nowrap; text-align: right; }
.table__actions form { display: inline-block; margin-left: 6px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select { width: auto; padding: 5px 8px; font-size: .95rem; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.badge--pending    { background: #fdf0c4; color: #6b5100; box-shadow: inset 0 0 0 1px var(--yellow); }
.badge--active     { background: var(--green-tint); color: var(--green); }
.badge--unverified { background: #edf0f5; color: var(--muted); }
.badge--disabled   { background: var(--red-tint); color: var(--red); }

.empty { padding: 32px; text-align: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* --- Footer --------------------------------------------------------- */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
  padding: 20px var(--gutter); border-top: 1px solid var(--line); background: var(--paper); font-size: .92rem;
}
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =====================================================================
   Phase 2 — activities
   ===================================================================== */
.crumb { margin: 0 0 12px; font-size: .95rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); text-decoration: underline; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.title-row .title-bar { flex: 1 1 18rem; }
.title-row > .button, .title-row > .badge { margin-bottom: .9em; }
.field__optional { font-weight: 400; color: var(--muted); font-size: .9em; }
.label { display: block; font-weight: 600; margin-bottom: 4px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
textarea {
  width: 100%; font: inherit; color: var(--ink); line-height: 1.5;
  padding: 10px 12px; border: 1.5px solid #aab6c8; border-radius: var(--radius); background: #fff; resize: vertical;
}
input[type=date], input[type=time], input[type=number] {
  width: 100%; font: inherit; color: var(--ink); padding: 9px 12px;
  border: 1.5px solid #aab6c8; border-radius: var(--radius); background: #fff; min-height: 46px;
}
.field--error textarea, .field--error input { border-color: var(--red); }

/* Branch-coloured chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 4px 0; padding: 1px 10px 1px 8px;
  border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line);
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--branch, var(--blue)); }

/* State badges */
.badge--draft     { background: #edf0f5; color: var(--muted); box-shadow: inset 0 0 0 1px #c4cdd9; }
.badge--open      { background: var(--green-tint); color: var(--green); }
.badge--full      { background: #fdf0c4; color: #6b5100; }
.badge--closed    { background: #edf0f5; color: var(--ink); }
.badge--past      { background: #edf0f5; color: var(--muted); }
.badge--cancelled { background: var(--red-tint); color: var(--red); }

/* Home tiles become links */
.branch-grid > li { display: flex; }
a.branch-tile { flex: 1; text-decoration: none; color: inherit; }
a.branch-tile:hover { border-color: var(--branch); box-shadow: 0 0 0 2px var(--branch); }
a.branch-tile:hover .branch-tile__name { color: var(--branch); }

/* Leader list */
.table__thumb { width: 60px; }
.table__thumb img, .thumb-placeholder { display: block; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.thumb-placeholder {
  background: repeating-linear-gradient(45deg, #e4e9f1 0 6px, #eef2f7 6px 12px);
  border: 1px solid var(--line);
}
.thumb-placeholder--card  { width: 96px; height: 96px; border-radius: 8px; }
.thumb-placeholder--large { width: 160px; height: 160px; border-radius: 10px; }
.table__actions .button + .button { margin-left: 4px; }
.tabs { margin-bottom: 20px; }

/* --- Activity form -------------------------------------------------- */
.activity-form { max-width: 52rem; }
.form--sections { padding: 0; background: none; border: 0; }
.form-section {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px 6px; margin: 0 0 16px; min-width: 0;
}
.form-section > legend {
  float: left; width: 100%; padding: 0; margin: 0 0 14px;
  font: 700 1.45rem/1.1 var(--font-head); color: var(--blue);
}
.form-section > legend ~ * { clear: both; }
.form__row--3 { grid-template-columns: 1fr 1fr 2fr; }
@media (max-width: 640px) { .form__row--3 { grid-template-columns: 1fr 1fr; } .form__row--3 > :last-child { grid-column: 1 / -1; } }

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span {
  display: inline-block; padding: 8px 14px 8px 12px; border-radius: var(--radius); font-weight: 600;
  border: 1.5px solid #aab6c8; border-left: 6px solid var(--branch); background: #fff;
}
.check-chip input:checked + span { background: var(--blue-tint); border-color: var(--blue); border-left-color: var(--branch); }
.check-chip input:checked + span::before { content: "✓ "; color: var(--blue); }
.check-chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--blue-dark); }
.check-inline { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* Text editor */
.rte { margin-bottom: 18px; }
.rte__toolbar {
  display: flex; gap: 4px; padding: 6px; background: #f3f6fa;
  border: 1.5px solid #aab6c8; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
}
.rte__btn {
  min-width: 38px; height: 34px; font: 700 1rem/1 var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.rte__btn--italic { font-style: italic; font-family: Georgia, serif; }
.rte__btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.rte__editor {
  min-height: 11rem; padding: 12px 14px; background: #fff; line-height: 1.6;
  border: 1.5px solid #aab6c8; border-radius: 0 0 var(--radius) var(--radius); overflow-wrap: anywhere;
}
.rte__editor:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: none; border-color: var(--blue); }
.rte__editor p { margin: 0 0 .8em; }
.field--error .rte__editor, .rte.field--error .rte__editor { border-color: var(--red); }

/* Square image picker: one drop zone */
.imgpick { margin-bottom: 18px; }
.dropzone {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 220px; aspect-ratio: 1; padding: 16px; cursor: pointer; overflow: hidden;
  background: #f7f9fc; border: 2px dashed #9aabc4; border-radius: 12px; color: var(--muted);
}
.dropzone:hover, .imgpick--over .dropzone { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.imgpick__file:focus-visible + .dropzone { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--blue-dark); }
.dropzone__text { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1.3; }
.dropzone__text strong { color: var(--ink); font-size: 1.05rem; }
.dropzone__icon { color: currentColor; margin-bottom: 4px; }
.dropzone--filled { padding: 0; border-style: solid; border-color: var(--line); }
.dropzone__img { width: 100%; height: 100%; object-fit: cover; }
.dropzone__change {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; font-weight: 600; color: #fff;
  background: rgba(22, 61, 122, .82);
}
.dropzone--removed .dropzone__img { opacity: .25; }
.imgpick--over .imgpick__crop .imgpick__canvas { border-style: dashed; }
.imgpick__crop { max-width: 280px; }
.imgpick__canvas {
  display: block; width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 10px;
  border: 2px solid var(--blue); cursor: grab; touch-action: none; background: #fff;
}
.imgpick__canvas:active { cursor: grabbing; }
.imgpick__zoom { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; }
.imgpick__zoom input { flex: 1; accent-color: var(--blue); }
.imgpick__remove { margin-top: 12px; }

.translation { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fbfcfe; }
.translation > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.translation__body { padding: 4px 16px 4px; }

.form-actions-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 24px; margin: 0 0 24px; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius);
}
.form-actions-bar__link { font-weight: 600; }
.danger-zone { padding: 16px 0; border-top: 1px dashed var(--line); }
.danger-zone form { display: inline-block; margin-right: 12px; }

/* --- Parent: branch page -------------------------------------------- */
.title-bar--branch { border-bottom-color: var(--branch); }
.activity-grid {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px;
}
.activity-grid > li { display: flex; }
.activity-card {
  flex: 1; display: flex; gap: 16px; align-items: flex-start; padding: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: inherit;
}
.activity-card:hover { border-color: var(--branch, var(--blue)); box-shadow: 0 0 0 2px var(--branch, var(--blue)); }
.activity-card__img img { display: block; width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }
.activity-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.activity-card__title { font: 700 1.45rem/1.1 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.activity-card:hover .activity-card__title { color: var(--blue); }
.activity-card__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.activity-card__meta span + span { font-weight: 600; color: var(--ink); }
.activity-card .badge { align-self: flex-start; }
.activity-card--muted .activity-card__img { opacity: .6; }

/* --- Parent: activity page = the souche ------------------------------ */
.page--activity { max-width: 820px; }
.leader-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; margin-bottom: 20px; background: #fdf0c4; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--yellow);
}
.souche__head { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 8px; }
.souche__icon { width: 128px; height: 128px; border-radius: 12px; object-fit: cover; flex-shrink: 0; margin-bottom: 1.1em; }
.souche__titles { flex: 1; min-width: 0; width: 100%; }
.souche__titles .title-bar { margin-bottom: .35em; overflow-wrap: anywhere; }
.souche__branches { margin: 0 0 1.2em; }
@media (max-width: 520px) {
  .souche__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .souche__icon { width: 96px; height: 96px; margin-bottom: 12px; }
}
.prose { font-size: 1.15rem; line-height: 1.65; max-width: 40rem; margin-bottom: 1.6rem; }
.prose p { margin: 0 0 .9em; }
.souche__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0;
  margin: 0 0 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.souche__facts > div { padding: 16px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.souche__facts-wide { grid-column: 1 / -1; }
.souche__facts dt { font: 700 1.25rem/1.1 var(--font-head); color: var(--blue); margin-bottom: 6px; }
.souche__facts dd { margin: 0; }
.souche__price { font-size: 1.35rem; }

/* The cut-out slip */
.slip {
  position: relative; padding: 22px 24px 8px; margin: 8px 0 20px; background: var(--paper);
  border: 2px dashed #8fa0bb; border-radius: 4px;
}
.slip::before {
  content: "✂"; position: absolute; top: -.85em; left: 18px; padding: 0 6px;
  background: var(--bg); color: #8fa0bb; font-size: 1.2rem; line-height: 1.4;
}
.slip__title { font-size: 1.5rem; color: var(--blue); }
.slip--closed, .slip--past, .slip--full, .slip--cancelled { background: #f5f7fa; }
.print-link { text-align: right; }

@media print {
  .site-header, .site-footer, .no-print, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page { padding: 0; max-width: none; }
  .souche__facts, .slip { break-inside: avoid; }
  .slip::before { background: #fff; }
  a { color: inherit; text-decoration: none; }
}

/* =====================================================================
   Phase 3 — account, children, signup slip, cart
   ===================================================================== */
.nav-cart { display: inline-flex; align-items: center; gap: 6px; }
.link-button--small { font-size: .92rem; color: var(--blue); text-decoration: underline; border-bottom: 0; padding: 0; }
.static-value { margin: 0 0 4px; padding: 10px 0; font-weight: 600; }
.privacy-note { font-size: .92rem; color: var(--muted); background: #f3f6fa; padding: 10px 12px; border-radius: var(--radius); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.section-head h2, .account-grid h2 { font-size: 1.7rem; color: var(--ink); margin: 0; }
.account-grid h2 { margin-bottom: 16px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }

.invite-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 14px 18px; margin: 0 0 20px; background: #fdf0c4; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--yellow);
}
.invite-banner p { margin: 0; font-weight: 600; }
.invite-banner__actions { display: flex; gap: 8px; }
.invite-banner__actions form { margin: 0; }

/* Child cards */
.child-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.child-card {
  background: var(--paper); border: 1px solid var(--line); border-top: 8px solid var(--branch);
  border-radius: 10px; padding: 16px 18px; scroll-margin-top: 20px;
}
.child-card:target { box-shadow: 0 0 0 3px var(--yellow); }
.child-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.child-card__head h3 { font-size: 1.6rem; color: var(--ink); margin: 0 0 8px; }
.child-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 12px; }
.child-card__facts dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.child-card__facts dd { margin: 0; }
.child-card__wide { grid-column: 1 / -1; }
.child-card__parents { border-top: 1px solid var(--line); padding-top: 10px; font-size: .95rem; }
.child-card__parents p { margin: 0 0 6px; }
.pending-invite { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 6px; color: var(--muted); }
.invite-form summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 4px 0; }
.invite-form form { padding-top: 6px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; padding: 7px 10px; }

/* Signup slip */
.slip__meta { color: var(--muted); }
.slip-form fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.slip-form legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.slip-children { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slip-child { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.slip-child:has(input[type=checkbox]:checked) { border-color: var(--blue); background: var(--blue-tint); }
.slip-child--done { background: #f5f7fa; }
.slip-child__main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.slip-child--done .slip-child__main { cursor: default; }
.slip-child__main input { width: 22px; height: 22px; accent-color: var(--blue); flex-shrink: 0; }
.slip-child__name { font-weight: 600; font-size: 1.05rem; }
.slip-child__note { margin: 6px 0 0 32px; font-size: .92rem; color: var(--muted); }
.slip-child__note--warn { color: #6b5100; }
.slip-child__extra { margin: 10px 0 2px 32px; }
.slip-child:not(:has(input[type=checkbox]:checked)) .slip-child__extra { display: none; }
.slip-child__extra input { width: 100%; max-width: 20rem; font: inherit; padding: 8px 10px; border: 1.5px solid #aab6c8; border-radius: var(--radius); }
.slip__add-child { margin: 10px 0 0; font-size: .95rem; }
a.badge { text-decoration: none; }

/* Cart */
.cart { max-width: 52rem; }
.cart-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cart-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.cart-line--problem { background: #fbf6f5; border-color: #e7c4bf; }
.cart-line__img img, .cart-line__img .thumb-placeholder { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; display: block; }
.cart-line__title { margin: 0 0 4px; font: 700 1.3rem/1.15 var(--font-head); }
.cart-line__title a { color: var(--ink); text-decoration: none; }
.cart-line__title a:hover { color: var(--blue); text-decoration: underline; }
.cart-line__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); }
.cart-line__meta strong { color: var(--ink); }
.cart-line__problem { margin: 6px 0 0; color: var(--red); font-weight: 600; }
.cart-line__warn { margin: 6px 0 0; color: #6b5100; font-size: .95rem; }
.cart-line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line__side form { margin: 0; }
.cart-line__price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-struck { text-decoration: line-through; color: var(--muted); }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 48px 1fr; }
  .cart-line__img img, .cart-line__img .thumb-placeholder { width: 48px; height: 48px; }
  .cart-line__side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; margin-bottom: 16px;
  border-top: 4px solid var(--blue); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius);
}
.cart-total span { font: 700 1.4rem/1 var(--font-head); }
.cart-total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.checkout-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin-bottom: 20px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button:disabled:hover { background: var(--blue); border-color: var(--blue); }

@media print {
  .slip-form, .slip__add-child { display: none !important; }
}

/* --- 1.3.1: date/time fields + branch preview ---------------------- */
input[type=date], input[type=time] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 13rem;
  height: 46px; min-height: 46px; padding: 0 12px; line-height: 44px; text-align: left;
}
input[type=time] { max-width: 9rem; }
input[type=date]::-webkit-date-and-time-value,
input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type=date]::-webkit-calendar-picker-indicator { margin-left: 6px; cursor: pointer; }
.branch-preview { min-height: 1.6em; margin: -6px 0 4px; font-weight: 600; }

/* --- 1.3.2: language buttons inside the logged-out pages ------------ */
.lang-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.lang-choice a {
  flex: 1 1 0; min-width: 0; text-align: center; padding: 10px 8px; white-space: nowrap;
  font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.lang-choice a:hover { border-color: var(--blue); color: var(--blue); }
.lang-choice a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 420px) { .lang-choice a { font-size: .86rem; padding: 9px 4px; } }

/* --- 1.4.0: leaders ------------------------------------------------- */
.chip--leaders { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip--leaders::before { background: #fff; }
.branch-tile--leaders { background: var(--blue-tint); }
.check-chip--radio span { border-left: 1.5px solid #aab6c8; }
.check-chip--radio input:checked + span { border-left-color: var(--blue); }
.check-chip--radio input:checked + span::before { content: "✓ "; }
.slip-self { font-size: 1.1rem; }

/* =====================================================================
   Phase 5 — payment, signups, receipts
   ===================================================================== */
.account-tabs { margin: -4px 0 24px; }
.section-title { font-size: 1.6rem; color: var(--ink); margin: 28px 0 12px; }
.button--pay { font-size: 1.15rem; padding: 13px 26px; }

.signup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.signup {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.signup__img img, .signup__img .thumb-placeholder { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; }
.signup__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.signup__title { font: 700 1.25rem/1.15 var(--font-head); color: var(--ink); text-decoration: none; }
.signup__title:hover { color: var(--blue); text-decoration: underline; }
.signup__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); }
.signup__meta strong { color: var(--ink); }
.ics-link { font-size: .92rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .signup { grid-template-columns: 48px 1fr; }
  .signup .ics-link { grid-column: 2; }
}
.past-signups { margin-top: 18px; }
.past-signups > summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-bottom: 10px; }

.checkout-done { text-align: left; }
.done-mark {
  width: 64px; height: 64px; margin: 0 0 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-size: 2rem; font-weight: 700;
}
.done-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.done-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.done-list .ics-link { margin-left: auto; }
.done-total { font-size: 1.1rem; }
.spinner { width: 32px; height: 32px; border: 4px solid var(--blue-tint); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.receipt { max-width: 46rem; }
.receipt__paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px; }
.receipt__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 4px solid var(--blue); padding-bottom: 14px; margin-bottom: 18px; }
.receipt__org { font: 700 1.6rem/1 var(--font-head); color: var(--blue); margin: 0 0 6px; }
.receipt__meta { text-align: right; }
.receipt__meta h1 { font-size: 1.8rem; margin: 0 0 6px; }
.receipt__meta p { margin: 0; }
.receipt__table { margin: 12px 0 16px; border: 1px solid var(--line); }
.receipt__table tfoot th, .receipt__table tfoot td { border-top: 2px solid var(--line); padding: 10px 14px; text-align: left; }
.receipt__table tfoot td { text-align: right; }
.receipt__table tfoot th { border-bottom: 0; font: inherit; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }
.signup-orders td:first-child, .signup-orders td.num { white-space: nowrap; }
@media (max-width: 420px) { .signup-orders th:nth-child(2), .signup-orders td:nth-child(2) { display: none; } }
@media print { .receipt__paper { border: 0; padding: 0; } }

/* =====================================================================
   Phase 6 — calendar
   ===================================================================== */
.leader-tabs { margin: -8px 0 20px; }
.lead { color: var(--muted); max-width: 46rem; }
.form--narrow { max-width: 40rem; }
.form__row--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .form__row--4 { grid-template-columns: 1fr 1fr; } }
.title-row--sub { align-items: center; margin-top: 32px; }
.title-row--sub h2 { margin: 0; }
.title-row--sub > .button { margin-bottom: 0; }

.cal-views { margin-bottom: .9em; }
.cal-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 24px; }
.cal-filter__reset { font-size: .92rem; color: var(--muted); }

/* List */
.cal-month { font: 700 1.45rem/1.1 var(--font-head); color: var(--blue); margin: 28px 0 10px; text-transform: none; }
.cal-list, .cal-hol-list, .cal-admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--branch);
  border-radius: var(--radius); padding: 10px 14px;
}
.cal-item__date { text-align: center; line-height: 1; padding-top: 2px; }
.cal-item__dow { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.cal-item__day { display: block; font: 700 1.7rem/1 var(--font-head); color: var(--ink); margin-top: 2px; }
.cal-item__body { min-width: 0; }
.cal-item__title { margin: 0; font-weight: 600; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cal-item__title a { color: var(--ink); }
.cal-item__meta { margin: 2px 0 0; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 0 14px; }
.cal-item__who { color: var(--ink); }
.cal-item__note { margin: 4px 0 0; font-weight: 600; color: #6b5100; }
.cal-item__desc { margin: 6px 0 0; font-size: .95rem; }
.cal-item__registered { margin: 6px 0 0; color: var(--green); font-weight: 600; font-size: .95rem; }
.cal-item--activity { background: linear-gradient(90deg, var(--blue-tint), var(--paper) 40%); }
.cal-item--cancelled .cal-item__title > a, .cal-item--cancelled .cal-item__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-item--cancelled .cal-item__title .badge { text-decoration: none; }
.cal-item--cancelled { opacity: .8; }
.cal-tag { font-size: .78rem; font-weight: 600; color: var(--blue); border: 1px solid #b9c9e6; border-radius: 999px; padding: 0 8px; }
.cal-more { text-align: center; margin: 24px 0 0; }

.cal-holiday {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
  padding: 9px 14px; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #fff7dc, #fff7dc 10px, #fdf0c4 10px, #fdf0c4 20px);
  border: 1px solid #f1dc97;
}
.cal-holiday__name { font-weight: 600; }
.cal-holiday__dates { color: var(--ink); }
.cal-holiday__kind { margin-left: auto; font-size: .85rem; color: #6b5100; }
.cal-holiday--public { background: #f6f1ff; border-color: #ddd2f3; }
.cal-holiday--public .cal-holiday__kind { color: #5b4a8a; }

/* Month grid */
.cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-month--nav { margin: 0; min-width: 10ch; text-align: center; }
.cal-nav__today { margin-left: auto; font-size: .95rem; }
.cal-grid { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-grid__head, .cal-grid__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grid__head span { padding: 8px 6px; font-size: .82rem; font-weight: 600; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.cal-day { min-height: 104px; padding: 4px 4px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-grid__week > .cal-day:last-child { border-right: 0; }
.cal-grid__week:last-child > .cal-day { border-bottom: 0; }
.cal-day__n { font-weight: 600; font-size: .9rem; padding: 2px 4px; }
.cal-day--other { background: #f7f9fc; }
.cal-day--other .cal-day__n { color: #9aa6ba; }
.cal-day--past > :not(.cal-day__n) { opacity: .6; }
.cal-day--today .cal-day__n span[aria-hidden] { background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 7px; }
.cal-day--holiday.cal-day--school { background: repeating-linear-gradient(135deg, #fff7dc, #fff7dc 8px, #fdf0c4 8px, #fdf0c4 16px); }
.cal-day--holiday.cal-day--public { background: #f6f1ff; }
.cal-day__holiday { font-size: .75rem; font-weight: 600; color: #6b5100; line-height: 1.15; padding: 0 3px; }
.cal-day--public .cal-day__holiday { color: #5b4a8a; }
.cal-pill {
  display: block; font-size: .8rem; line-height: 1.25; padding: 2px 5px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--branch);
  color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.cal-pill:hover { border-color: var(--blue); border-left-color: var(--branch); }
.cal-pill--activity { background: var(--blue-tint); font-weight: 600; }
.cal-pill--cancelled { text-decoration: line-through; opacity: .7; }
.cal-pill__time { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 3px; }
.cal-grid__hint { margin-top: 8px; }
@media (max-width: 640px) {
  .cal-day { min-height: 72px; padding: 2px 2px 4px; gap: 2px; }
  .cal-grid__head span { padding: 6px 0; font-size: .72rem; }
  .cal-day__n { font-size: .8rem; padding: 1px 2px; }
  .cal-pill { font-size: .68rem; padding: 1px 3px; border-left-width: 3px; }
  .cal-pill__time { display: none; }
  .cal-day__holiday { font-size: .64rem; }
}

/* Subscribe */
.cal-subscribe { margin-top: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; max-width: 46rem; }
.cal-subscribe h2 { margin: 0 0 6px; }
.cal-subscribe p { margin: 0 0 14px; }
.cal-subscribe__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cal-subscribe__copy { display: flex; gap: 8px; margin-bottom: 6px; }
.cal-subscribe__copy input { flex: 1; min-width: 0; font-size: .9rem; color: var(--muted); }
.cal-subscribe__reset { font-size: .9rem; color: var(--muted); }

/* Leader */
.cal-admin {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--branch); border-radius: var(--radius); padding: 10px 14px;
}
.cal-admin__title { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.cal-admin__meta { margin: 2px 0 0; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 0 14px; }
.cal-admin--cancelled .cal-admin__title { text-decoration: line-through; }
.cal-form__weekday { margin: -8px 0 16px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.cal-form__weekday [data-cal-weekday] { font-weight: 600; color: var(--blue); }
.cal-form__weekday .field__hint { margin: 0; }
.cal-dates { margin: 32px 0; }
.cal-dates__list { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cal-date { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.cal-date:last-child { border-bottom: 0; }
.cal-date__when { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding-top: 4px; }
.cal-date__when strong { font-variant-numeric: tabular-nums; min-width: 8.5em; }
.cal-date__state { color: var(--muted); }
.cal-date--holiday, .cal-date--activity { background: #fffbea; }
.cal-date--activity { background: var(--blue-tint); }
.cal-date--holiday strong, .cal-date--activity strong { color: var(--muted); }
.cal-date--skip strong { text-decoration: line-through; color: var(--muted); }
.cal-date--skip .cal-date__state { color: var(--red); font-weight: 600; }
.cal-date--change .cal-date__state, .cal-date--hold .cal-date__state { color: #6b5100; font-weight: 600; }
.cal-date__actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.cal-date__menu > summary { list-style: none; cursor: pointer; }
.cal-date__menu > summary::-webkit-details-marker { display: none; }
.cal-date__menu[open] > summary { background: var(--blue-tint); }
.cal-date__form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f9fc; display: grid; gap: 8px; min-width: min(28rem, 80vw); }
.cal-date__form input { width: 100%; }
.cal-date__form .form__row { gap: 0 8px; }
@media (max-width: 520px) { .cal-date__actions { width: 100%; } .cal-date__menu[open] { width: 100%; } .cal-date__form { min-width: 0; } }
/* Phone menu: 5 items (with Kalenner) on one line */
@media (max-width: 480px) {
  .site-nav { gap: 2px 13px; }
  .site-nav a, .site-nav .link-button { font-size: .95rem; }
  .nav-cart { gap: 4px; }
  .nav-cart svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) { .cal-day__holiday { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 480px) {
  .nav-cart__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-cart svg { width: 22px; height: 22px; }
}
@media (max-width: 380px) { .site-nav { gap: 2px 10px; } .site-nav a, .site-nav .link-button { font-size: .9rem; } }
.notice--info { border-color: var(--blue); background: var(--blue-tint); }

/* =====================================================================
   Phase 7 — admin tools
   ===================================================================== */
.page--wide { max-width: 1280px; }
.search-bar, .filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 0 0 16px; }
.search-bar input[type=search] { flex: 1 1 18rem; max-width: 28rem; }
.filter-bar label { display: block; }
.filter-bar input, .filter-bar select { width: auto; }

.participants__meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 18px; margin: -6px 0 16px; }
.participants__summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0 0 18px; }
.participants__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 7rem; display: flex; flex-direction: column; }
.stat__n { font: 700 1.6rem/1.1 var(--font-head); color: var(--blue); }
.stat__l { font-size: .88rem; color: var(--muted); }
.stat--wide { min-width: 12rem; }
.stat--strong { border-color: var(--blue); background: var(--blue-tint); }
.tally { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.participants__table td { vertical-align: top; }
.participants__health strong { color: var(--red); font-weight: 600; }
.participants__contacts { font-size: .92rem; line-height: 1.35; }
.participants__contacts > div + div { margin-top: 6px; }
.participants__printed { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.removed-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.removed-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.removed-list strong { text-decoration: line-through; }

.rm { display: inline-block; text-align: left; }
.rm > summary { list-style: none; cursor: pointer; }
.rm > summary::-webkit-details-marker { display: none; }
.rm[open] > summary { background: var(--blue-tint); }
.rm__form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f9fc; display: grid; gap: 8px; width: min(24rem, 82vw); white-space: normal; }
.rm__form--wide { width: min(34rem, 90vw); }
.rm__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.rm__form textarea, .rm__form input[type=text], .rm__form select { width: 100%; }
.rm__partial input[type=text] { width: 5.5rem; display: inline-block; padding: 3px 6px; }
.table__actions .rm + .inline-form { margin-top: 6px; }

.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .page--wide { max-width: none; }
  .participants__summary .stat { border: 1px solid #999; padding: 4px 10px; }
  .participants__table { font-size: 9.5pt; }
  .participants__table th, .participants__table td { padding: 4px 6px; }
  .participants__health strong { color: #000; }
  .title-bar { font-size: 18pt; }
}

.facts { display: grid; gap: 6px; margin: 0 0 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.facts > div { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }
.order-lines { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.order-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.order-line__who { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.order-line--refunded, .order-line--cancelled { background: #f7f9fc; }
.receipt__refund td { color: var(--muted); }

.exception { display: block; font-size: .88rem; color: #6b5100; font-weight: 600; margin-top: 3px; }
.exception__reason { display: block; font-size: .88rem; }
.row--warn > td { background: #fffbea; }
.finance-table tfoot th, .finance-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font: inherit; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }

/* Admin tables: readable cells + dialog windows */
.contact { display: flex; flex-direction: column; line-height: 1.35; font-size: .92rem; }
.contact + .contact { margin-top: 8px; }
.contact__name { color: var(--ink); }
.contact a.muted { word-break: break-all; }
.children-table td, .participants__table td { vertical-align: top; }
.children-table td:nth-child(3) { min-width: 12rem; }
.children-table td:nth-child(4), .participants__contacts { min-width: 13rem; }
.table__actions { white-space: nowrap; }
.table__actions .inline-form { margin-top: 6px; justify-content: flex-end; }

.dlg { border: 0; border-radius: 10px; padding: 0; width: min(30rem, calc(100vw - 32px)); box-shadow: 0 18px 50px rgba(15, 30, 60, .3); color: var(--ink); }
.dlg::backdrop { background: rgba(15, 30, 60, .45); }
.dlg__form { margin: 0; width: auto; border: 0; border-radius: 0; background: var(--paper); padding: 20px 22px; gap: 12px; }
.dlg__title { margin: 0 0 4px; font: 700 1.4rem/1.15 var(--font-head); color: var(--blue); }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dlg .check-inline { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.dlg { text-align: left; white-space: normal; }
.dlg .label { text-align: left; }
.dlg select { width: 100%; }
.table__actions .link-button { font-size: .88rem; font-weight: 400; color: var(--muted); text-decoration: underline; padding: 2px 0; }

/* Phones: each table row becomes a small card (label left, value right) */
@media (max-width: 760px) {
  .table-wrap:has(.table--cards) { overflow: visible; border: 0; background: none; }
  .table--cards, .table--cards tbody { display: block; }
  .table--cards thead { display: none; }
  .table--cards tr { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
  .table--cards td { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 4px 0; border: 0; text-align: right; min-width: 0 !important; }
  .table--cards td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: 0 0 auto; }
  .table--cards td:not([data-label])::before { content: none; }
  .table--cards td.table__strong { font-size: 1.05rem; padding-bottom: 6px; justify-content: flex-start; text-align: left; }
  .table--cards td.table__actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 8px; }
  .table--cards td.num.muted { display: none; }
  .table--cards .contact { align-items: flex-end; }
  .table--cards td > .chip { margin-left: auto; }
}
.dlg__form label, .dlg__form fieldset { display: block; }
.dlg__form fieldset .check-inline { display: flex; }
.cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (max-width: 760px) { .table--cards .cell-stack { align-items: flex-end; text-align: right; } }
.refund-note { display: block; font-size: .85rem; color: var(--green); font-weight: 600; white-space: nowrap; }

/* =====================================================================
   Phase 8 — legal pages, health consent
   ===================================================================== */
.legal { max-width: 46rem; }
.legal__versions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -6px 0 14px; font-size: .95rem; }
.legal__versions a { color: var(--muted); }
.legal__versions a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal__binding { background: var(--blue-tint); border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
.legal__body h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal__body p, .legal__body li { line-height: 1.6; }
.legal__body ul { padding-left: 1.2em; }
.legal__body li + li { margin-top: 6px; }
.legal__body code { background: #edf0f5; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.legal__updated { margin-top: 32px; color: var(--muted); font-size: .9rem; }
.site-footer { flex-wrap: wrap; row-gap: 6px; }
.health-consent { margin-top: -6px; }

/* =====================================================================
   Phase 9 — layout & flow
   One spacing scale, centered content, dropdown menu, phone panel,
   notifications, windows, sortable tables, cards on phones.
   ===================================================================== */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --content: 1100px;      /* lists, tables, calendar */
  --narrow: 44rem;        /* forms, account, text */
  --header-h: 64px;
}

/* ---- spacing rules that apply everywhere -------------------------- */
main h2 { margin: var(--s6) 0 var(--s3); }
main h2:first-child, .title-bar + h2 { margin-top: 0; }
.title-bar { margin-bottom: var(--s5); }
.lead { margin: 0 0 var(--s5); }
.field { margin-bottom: var(--s4); }
.field__hint { margin: var(--s1) 0 var(--s2); }
.field__error { margin-top: var(--s1); }
.form__actions { margin-top: var(--s5); }
.table-wrap, .empty, .notice { margin-bottom: var(--s5); }
.empty { padding: var(--s6) var(--s5); }
.empty p { margin-bottom: var(--s4); }
.empty p:last-child { margin-bottom: 0; }
.button + .field__hint, .button + p, form + p.field__hint { margin-top: var(--s3); }
.title-row > .button { margin-bottom: var(--s5); }

/* ---- centered content -------------------------------------------- */
.page { max-width: var(--content); padding: var(--s6) var(--gutter) var(--s7); }
.narrow, .page-narrow, .legal, .receipt, .account-page, .activity-form, .cal-form { max-width: var(--narrow); margin-inline: auto; width: 100%; }
.page > section, .page > article { width: 100%; }

/* ---- header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; }
.site-header__inner { max-width: var(--content); min-height: var(--header-h); padding: 0 var(--gutter); flex-wrap: nowrap; gap: var(--s4); }
.brand { margin-right: auto; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--chev { width: 16px; height: 16px; transition: transform .15s; }

.site-nav { display: flex; align-items: center; gap: 0 var(--s1); flex-wrap: nowrap; }
.nav-link, .nav-dd > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap;
  border-bottom: 0;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-dd > summary:hover, .nav-dd[open] > summary { background: var(--blue-tint); color: var(--blue); }
.nav-link[aria-current="page"], .nav-dd > summary[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: var(--radius) var(--radius) 0 0; }
.nav-dd[open] > summary .i--chev { transform: rotate(180deg); }
.nav-dd { position: relative; }
.nav-dd__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 14rem; z-index: 40;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: var(--s2);
  box-shadow: 0 12px 32px rgba(15, 30, 60, .14); display: flex; flex-direction: column;
  animation: dd-in .14s ease-out;
}
.nav-dd__menu--right { left: auto; right: 0; }
.nav-dd__menu a, .nav-dd__logout {
  display: flex; align-items: center; gap: var(--s2); padding: 9px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.nav-dd__menu a:hover, .nav-dd__logout:hover { background: var(--blue-tint); color: var(--blue); }
.nav-dd__branch::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--branch); flex: none; }
.nav-dd__langs { display: flex; gap: var(--s1); padding: var(--s2) 12px; margin: var(--s1) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-dd__langs a { padding: 4px 10px; font-size: .9rem; font-weight: 600; color: var(--muted); border-radius: 6px; }
.nav-dd__langs a[aria-current] { background: var(--blue); color: #fff; }
.nav-dd__menu form { margin: 0; }
.nav-dd__logout { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.nav-dd--profile .nav-dd__name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.nav-cart { position: relative; display: inline-flex; align-items: center; padding: 10px; border-radius: var(--radius); color: var(--ink); }
.nav-cart:hover, .nav-cart[aria-current="page"] { background: var(--blue-tint); color: var(--blue); }
.nav-cart .count { position: absolute; top: 2px; right: 0; margin: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--blue-tint); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- phone menu: ☰ opens a panel with every group ----------------- */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch;
    border-top: 1px solid var(--line); padding: var(--s2) 0 var(--s4); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; animation: dd-in .16s ease-out; }
  .nav-dd > summary, .nav-link { padding: 12px 4px; border-radius: 0; box-shadow: none !important; }
  .nav-dd > summary { pointer-events: none; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px; }
  .nav-dd > summary .i--chev, .nav-dd > summary .i { display: none; }
  .nav-dd > summary .count { display: none; }
  .nav-dd--profile .nav-dd__name { max-width: none; }
  .nav-dd__menu { position: static; box-shadow: none; border: 0; padding: 0 0 var(--s2); min-width: 0; animation: none; }
  .nav-dd__menu a, .nav-dd__logout { padding: 11px 8px; }
  .nav-link { font-weight: 600; }
  .nav-cart { margin-left: auto; }
}
@media (min-width: 901px) { .nav-toggle { display: none !important; } }

/* ---- logged out: no menu, a centered box ---------------------------- */
.bare-header { display: flex; justify-content: center; padding: var(--s6) var(--gutter) 0; }
.brand--center { margin: 0; align-items: center; }
.brand--center .brand__name { font-size: 2rem; }
.is-bare .page { display: flex; flex-direction: column; align-items: center; padding-top: var(--s5); }
.is-bare .narrow { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: var(--s6); max-width: 30rem; box-shadow: 0 8px 30px rgba(15, 30, 60, .06); }
.is-bare .narrow .form { border: 0; padding: 0; background: none; }
.is-bare .narrow .title-bar { font-size: 2rem; }
.is-bare .narrow .lang-choice { margin-bottom: var(--s5); }
.is-bare .legal { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: var(--s6); }
@media (max-width: 520px) { .is-bare .narrow, .is-bare .legal { padding: var(--s5) var(--s4); } }

/* ---- notifications (toasts) ----------------------------------------- */
.toasts { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 60; display: flex; flex-direction: column; gap: var(--s2); width: min(24rem, calc(100vw - 2 * var(--s4))); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: var(--s3); flex-wrap: wrap;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: 10px; padding: var(--s3) var(--s3) var(--s3) var(--s4); box-shadow: 0 14px 36px rgba(15, 30, 60, .18);
  animation: toast-in .25s cubic-bezier(.2, .8, .2, 1);
}
.toast--success { border-left-color: var(--green); }
.toast--error { border-left-color: var(--red); }
.toast--info { border-left-color: var(--blue); }
.toast__text { flex: 1 1 12rem; margin: 2px 0; font-size: .97rem; }
.toast__action { font-weight: 600; white-space: nowrap; align-self: center; }
.toast__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 4px; }
.toast__close:hover { color: var(--ink); background: #edf0f5; }
.toast.is-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 520px) { .toasts { left: var(--s4); right: var(--s4); bottom: var(--s4); width: auto; } }

/* ---- windows (dialogs) ------------------------------------------------ */
.dlg[open] { animation: dlg-in .18s ease-out; }
.dlg[open]::backdrop { animation: fade-in .18s ease-out; }
.dlg__question { margin: 0 0 var(--s4); font-size: 1.05rem; font-weight: 600; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
form.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }

/* ---- tables: sortable headers, cards on phones ------------------------ */
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.th-sort::after { content: "↕"; font-size: .8em; opacity: .35; }
th[aria-sort="ascending"] .th-sort::after { content: "▲"; opacity: 1; color: var(--blue); }
th[aria-sort="descending"] .th-sort::after { content: "▼"; opacity: 1; color: var(--blue); }
.th-sort:hover { color: var(--blue); }
.th-sort:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.table { table-layout: auto; }
.table td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .table-wrap:has(.table:not(.table--keep)) { overflow: visible; border: 0; background: none; }
  .table:not(.table--keep), .table:not(.table--keep) tbody { display: block; }
  .table:not(.table--keep) thead { display: none; }
  .table:not(.table--keep) tr { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
  .table:not(.table--keep) td { display: flex; gap: var(--s3); justify-content: space-between; align-items: baseline; padding: var(--s1) 0; border: 0; text-align: right; min-width: 0 !important; white-space: normal; }
  .table:not(.table--keep) td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: 0 0 auto; max-width: 45%; }
  .table:not(.table--keep) td:not([data-label])::before, .table:not(.table--keep) td[data-label=""]::before { content: none; }
  .table:not(.table--keep) td:first-child { font-size: 1.05rem; font-weight: 600; justify-content: flex-start; text-align: left; padding-bottom: var(--s2); }
  .table:not(.table--keep) td.table__actions { justify-content: flex-start; flex-wrap: wrap; padding-top: var(--s2); gap: var(--s2); }
  .table:not(.table--keep) td.table__actions::before { content: none; }
  .table:not(.table--keep) tfoot { display: block; }
  .table:not(.table--keep) tfoot tr { display: block; background: var(--blue-tint); }
  .table:not(.table--keep) tfoot th { display: block; padding: 0 0 var(--s2); border: 0; text-align: left; font-weight: 700; }
}

/* ---- segmented switch + compact toolbars ------------------------------ */
.segmented { display: inline-flex; border: 1.5px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: 7px 14px; font-weight: 600; text-decoration: none; color: var(--blue); }
.segmented a + a { border-left: 1.5px solid var(--blue); }
.segmented a[aria-current] { background: var(--blue); color: #fff; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s5); }
.toolbar-row__end { margin-left: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd[open] > summary .i--chev { transform: rotate(180deg); }
.dd__panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; min-width: 15rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: var(--s3);
  box-shadow: 0 12px 32px rgba(15, 30, 60, .14); animation: dd-in .14s ease-out;
}
.dd__panel label { display: flex; align-items: center; gap: var(--s2); padding: 6px 4px; cursor: pointer; border-radius: 6px; }
.dd__panel label:hover { background: var(--blue-tint); }
.dd__panel input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--branch); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-dd__menu, .dd__panel, .toast, .toast.is-leaving, .dlg[open], .dlg[open]::backdrop, .nav-open .site-nav { animation: none !important; }
}

/* ---- Phase 9: pages ------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; margin: var(--s6) 0 var(--s3); }
.section-head h2 { margin: 0; }
.section-head__actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }

/* homepage */
.home__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--blue); text-align: center; margin: var(--s2) 0 var(--s6); }
.home__notice { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.branch-grid { margin: 0 0 var(--s4); gap: var(--s4); }
.branch-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.branch-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(50% - var(--s4) / 2); margin-inline: auto; }
.branch-tile { min-height: 120px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.branch-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 30, 60, .1); }
@media (max-width: 760px) {
  .branch-grid--4, .branch-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .branch-tile { min-height: 96px; padding: var(--s4); }
  .branch-tile__name { font-size: 1.5rem; }
}
.home__cal-head { margin-top: var(--s7); }
.cal-list--compact .cal-item { padding: var(--s2) var(--s4); }
.cal-list--compact .cal-item__day { font-size: 1.4rem; }

/* overview pages */
.stats { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s5); }
.stats .stat { text-decoration: none; color: inherit; flex: 1 1 10rem; }
.stats .stat:hover { border-color: var(--blue); }
.todo { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: var(--s4) var(--s5); margin-bottom: var(--s3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.todo--warn { border-left-color: var(--red); }
.todo h3 { margin: 0; font-size: 1.2rem; flex: 1 1 100%; }
.todo > .button { margin-left: auto; }
.todo > p { flex: 1 1 100%; margin: 0; }
.todo__list { list-style: none; margin: 0; padding: 0; flex: 1 1 100%; display: grid; gap: var(--s2); }
.todo__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s2); border-top: 1px solid var(--line); }
.todo__list form { margin: 0; }
.overview__branches { display: block; font-weight: 400; font-size: .88rem; }
.fill { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fill__bar { display: block; width: 4.5rem; height: 5px; background: #e3e8f0; border-radius: 3px; overflow: hidden; }
.fill__bar span { display: block; height: 100%; background: var(--green); }

/* account */
.account-grid { display: grid; gap: var(--s5); }
.account-grid .form h2 { margin-top: 0; }

/* small dropdown menus (⋯) */
.dd--right .dd__panel { left: auto; right: 0; }
.dd__panel--menu { min-width: 12rem; padding: var(--s2); display: flex; flex-direction: column; }
.dd__panel--menu a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); text-align: left; white-space: nowrap; }
.dd__panel--menu a:hover { background: var(--blue-tint); color: var(--blue); }
.table__actions .dd { display: inline-block; vertical-align: middle; }
.table__actions > * + * { margin-left: var(--s2); }

/* checkbox that reveals a field */
.toggle-field { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); min-height: 48px; margin-bottom: var(--s3); }
.toggle-field .check-inline { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; }
.toggle-field .check-inline input { width: 20px; height: 20px; accent-color: var(--blue); }
.toggle-field__input { display: flex; align-items: center; gap: var(--s2); flex: 1 1 14rem; flex-wrap: wrap; }
.toggle-field__input input[type=number] { width: 7rem; }
.toggle-field__input input[type=text] { flex: 1 1 12rem; }
.toggle-field__input .field__error { flex-basis: 100%; }

/* calendar toolbar + dialog */
.cal .toolbar-row .button--small { padding: 7px 14px; }
.cal-subscribe { max-width: none; margin: 0; border: 0; }
.cal-subscribe h2 { margin-top: 0; }
.dlg__actions--split { justify-content: space-between; align-items: center; }
.dlg__actions--split form { margin: 0; }
.dlg { width: min(34rem, calc(100vw - 32px)); }

/* tables on phones: thumbnails off, title as card heading */
@media (max-width: 760px) {
  .table:not(.table--keep) td.table__thumb { display: none; }
  .table:not(.table--keep) td.table__strong { font-size: 1.05rem; font-weight: 600; justify-content: flex-start; text-align: left; }
  .table:not(.table--keep) td.table__strong::before { content: none; }
}

/* cart: one column on phones, pay box always reachable */
.cart .checkout-box { position: relative; }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 1fr; }
  .cart-line__img { display: none; }
  .cart-line__side { grid-column: 1; }
  .cart .checkout-box { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; box-shadow: 0 -6px 18px rgba(15, 30, 60, .08); }
}
/* old ".site-nav a" rules must not touch the new menu */
.site-nav .nav-link { padding: 10px 12px; border-bottom: 0; }
.site-nav .nav-dd__menu a { padding: 9px 12px; border-bottom: 0; font-weight: 500; }
.site-nav .nav-dd__langs a { padding: 4px 10px; font-weight: 600; }
.site-nav .nav-dd__menu a[aria-current] { color: inherit; }
.site-nav .nav-dd__langs a[aria-current] { color: #fff; }
@media (max-width: 900px) {
  .site-nav .nav-link { padding: 12px 4px; }
  .site-nav .nav-dd__menu a { padding: 11px 8px; }
}
/* phone menu panel: opens over the page, compact two-column groups */
@media (max-width: 900px) {
  .site-header__inner { position: relative; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    padding: var(--s2) var(--gutter) var(--s4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 30, 60, .14); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-dd > summary, .nav-dd[open] > summary, .nav-dd > summary:hover { background: none; }
  .nav-dd > summary { padding: var(--s3) 0 var(--s1); }
  .nav-dd + .nav-dd, .nav-link + .nav-dd { border-top: 1px solid var(--line); margin-top: var(--s1); }
  .nav-dd__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
  .site-nav .nav-dd__menu a, .nav-dd__logout { padding: 9px 4px; }
  .nav-dd__langs { grid-column: 1 / -1; border: 0; padding: var(--s1) 0; margin: 0; }
  .nav-dd__menu form { grid-column: 1 / -1; }
  .site-nav .nav-link { padding: var(--s3) 0; }
  .nav-dd--profile > summary .nav-dd__name { color: var(--muted); }
}
/* activity facts: the boxes share the full width, whatever their number */
.souche__facts { display: flex; flex-wrap: wrap; }
.souche__facts > div { flex: 1 1 220px; }
.souche__facts > .souche__facts-wide { flex-basis: 100%; }
.table th.num { text-align: right; }
.table th.num .th-sort { flex-direction: row-reverse; }

/* Phone: tabs as an equal-width segmented bar */
@media (max-width: 760px) {
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .tabs a { text-align: center; padding: 8px 4px; font-size: .85rem; line-height: 1.2; display: flex; align-items: center; justify-content: center; }
  /* Compact list rows: title + short facts on one card line, no column labels */
  .table.table--rows tr { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); align-items: center; padding: var(--s2) var(--s4); margin-bottom: var(--s2); }
  .table.table--rows td { grid-column: 1; display: inline; padding: 0; text-align: left; color: var(--muted); font-size: .9rem; }
  .table.table--rows td::before { content: none; }
  .table.table--rows td:first-child { color: var(--ink); font-size: 1rem; padding: 0; }
  .table.table--rows td.table__actions { grid-column: 2; grid-row: 1 / span 3; padding: 0; }
}
@media (max-width: 760px) {
  .tabs:has(> a:nth-child(4)) { display: flex; flex-wrap: wrap; background: none; border: 0; padding: 0; }
}
@media (max-width: 760px) {
  .search-bar, .search { flex-wrap: nowrap; }
  .search-bar input[type=search], .search input { flex: 1 1 auto; min-width: 0; width: auto; max-width: none; }
}

/* Hints sit under their field */
.field > input + .field__hint, .field > textarea + .field__hint, .field > select + .field__hint { margin: 6px 0 0; }

/* Leader activity list: one card per activity */
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.act-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: var(--s3) var(--s5); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s4);
}
.act-card__img img, .act-card__img .thumb-placeholder { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; display: block; }
.act-card__title { font-size: 1.15rem; margin: 0 0 2px; line-height: 1.25; }
.act-card__title a { color: var(--ink); text-decoration: none; }
.act-card__title a:hover { color: var(--blue); text-decoration: underline; }
.act-card__meta { margin: 0 0 var(--s2); color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.act-card__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.act-card__chips .chip { white-space: nowrap; margin: 0; }
.act-card__stats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; white-space: nowrap; }
.act-card__count { color: var(--muted); font-size: .9rem; }
.act-card__count strong { color: var(--ink); font-size: 1.05rem; }
.act-card__actions { display: flex; gap: var(--s2); align-items: center; }
@media (max-width: 760px) {
  .act-card { grid-template-columns: 56px minmax(0, 1fr); padding: var(--s3); gap: var(--s2) var(--s3); align-items: start; }
  .act-card__img img, .act-card__img .thumb-placeholder { width: 56px; height: 56px; }
  .act-card__stats { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .act-card__actions { grid-column: 1 / -1; }
  .act-card__actions .button:first-child { flex: 1; text-align: center; }
}
@media (max-width: 760px) { .tabs a { gap: 4px; } }
/* Language buttons: size to their word (Lëtzebuergesch is long) and wrap rather than overflow */
.lang-choice a { flex: 1 1 auto; min-width: max-content; }
/* Windows always open in the middle, even when their markup sits inside a table cell */
html body dialog.dlg { margin: auto; }
.slip .slip-form .form__actions { margin-top: var(--s4); }
/* Phone menu: language buttons with room to tap */
@media (max-width: 900px) {
  .site-nav .nav-dd__langs { gap: var(--s2); padding: var(--s2) 4px var(--s3); }
  .site-nav .nav-dd__langs a { display: inline-flex; justify-content: center; align-items: center; min-width: 56px; padding: 8px 14px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); }
  .site-nav .nav-dd__langs a[aria-current] { border-color: var(--blue); color: #fff; }
}


/* =====================================================================
   2.0 look: "Clean+" (Montserrat, navy logo, royal blue actions,
   soft branch colours, branch stripe on calendar dates)
   ===================================================================== */
body { font-size: 15px; letter-spacing: -.005em; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; }

/* header + logo */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: block; line-height: 0; }
.brand__logo { display: block; height: 46px; width: auto; }
.brand--center .brand__logo { height: 72px; }
.site-nav > .nav-dd > summary, .site-nav > .nav-link { font-weight: 600; }
.site-nav > .nav-dd > summary[aria-current], .site-nav > .nav-link[aria-current] { color: var(--blue); }
@media (max-width: 900px) { .brand__logo { height: 40px; } }

/* page titles: big and calm, no rule */
.title-bar, .home__title { color: var(--navy); font-weight: 700; letter-spacing: -.03em; border-bottom: 0; padding-bottom: 0; }
.title-bar { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.title-bar--branch { border-bottom: 0; }
h2, .cal-month, .slip__title, .section-head h2 { color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.cal-month { font-size: 1.2rem; }
.souche__facts dt { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* buttons */
.button { border-radius: 10px; font-weight: 600; font-size: .92rem; }
.button--small { font-size: .82rem; border-radius: 8px; }
.button--quiet { border-color: var(--blue); color: var(--blue); }
.segmented { border-radius: 10px; }

/* cards everywhere: rounder, no heavy shadows */
.cal-item, .act-card, .form-section, .account-grid .form, .card, .table-wrap, .empty, .stat, .souche__facts, .cart-line, .signup, .child-card, .dlg { border-radius: 14px; }

/* branch tiles: soft branch colour, badge peeking out of the corner */
.branch-tile { border: 0; border-radius: 18px; background: color-mix(in srgb, var(--branch) 20%, #fff);
  padding: 20px; min-height: 150px; position: relative; overflow: hidden; }
.branch-tile--leaders { background: color-mix(in srgb, var(--blue) 18%, #fff); }
.branch-tile__name { font-size: 1.3rem; font-weight: 700; color: var(--ink); position: relative; z-index: 1; }
.branch-tile__meta { position: relative; z-index: 1; color: var(--muted); }
.branch-tile__badges { position: absolute; right: -14px; bottom: -14px; display: flex; }
.branch-tile__badges img { width: 110px; height: 110px; object-fit: contain; }
.branch-tile__badges--2 img { width: 84px; height: 84px; }
.branch-tile__badges--2 img + img { margin-left: -30px; }
@media (max-width: 760px) {
  .branch-tile { min-height: 118px; padding: 16px; }
  .branch-tile__badges { right: -4px; bottom: -4px; }
  .branch-tile__badges img { width: 58px; height: 58px; }
  .branch-tile__badges--2 img { width: 46px; height: 46px; }
  .branch-tile__badges--2 img + img { margin-left: -16px; }
  .branch-tile__name { font-size: 1.1rem; }
  .branch-tile__meta { white-space: nowrap; font-size: .8rem; }
}

/* branch page: badge next to the title */
.branch-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.branch-head .title-bar { margin: 0; }
.branch-head__badges { display: flex; flex: none; }
.branch-head__badges img { width: 64px; height: 64px; object-fit: contain; }
.branch-head__badges--2 img + img { margin-left: -18px; }
@media (max-width: 760px) { .branch-head__badges img { width: 48px; height: 48px; } }

/* calendar: branch stripe + tinted date box */
.cal-item { border: 1px solid var(--line); border-left: 5px solid var(--branch); }
.cal-item__date { border-radius: 10px; background: color-mix(in srgb, var(--branch) 22%, #fff); padding: 6px 0; }
.cal-item__day { font-weight: 700; }
.cal-item--activity { background: #fff; }

/* signup slip */
.slip { border: 1.5px dashed #b9c6d8; border-radius: 16px; }
.slip::before { background: var(--bg); }

/* footer: navy */
.site-footer { background: var(--navy); color: #c9d4e5; border: 0; }
.site-footer a { color: #fff; }

/* print: no backgrounds, logo stays */
@media print {
  body, .site-header { background: #fff !important; backdrop-filter: none; }
  .site-footer { background: none; color: #000; }
}

/* 2.0: tables, chips, receipt */
.table { font-size: .9rem; }
.chip { white-space: nowrap; }
.receipt__head { border-bottom: 3px solid var(--navy); }
.receipt__org { margin: 0 0 8px; line-height: 0; }
.receipt__org img { height: 60px; width: auto; }
.table th { white-space: normal; }
.table th, .table td { padding-left: 12px; padding-right: 12px; }
.receipt__table td { overflow-wrap: normal; }
@media (max-width: 760px) {
  .table:not(.table--keep) td { flex-wrap: wrap; }
  .table:not(.table--keep) td.nowrap { white-space: nowrap; }
  .receipt__paper { padding: 20px 16px; }
  .receipt__table { font-size: .82rem; }
  .receipt__table th, .receipt__table td { padding-left: 8px; padding-right: 8px; }
}
/* closed dropdowns never take space; on phones the calendar dropdown opens towards the left */
.dd:not([open]) > .dd__panel { display: none; }
@media (max-width: 760px) { .toolbar-row .dd .dd__panel { left: auto; right: 0; max-width: calc(100vw - 32px); } }
.cal-pill { position: relative; }

/* tile text never runs under the badge */
.branch-tile__meta { max-width: calc(100% - 92px); }
.branch-tile:has(.branch-tile__badges--2) .branch-tile__meta { max-width: calc(100% - 126px); }
@media (max-width: 760px) {
  .branch-tile__meta { white-space: normal; max-width: calc(100% - 48px); }
  .branch-tile:has(.branch-tile__badges--2) .branch-tile__meta { max-width: calc(100% - 70px); }
}

/* logo: shield image + real text, so the name stays readable */
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; text-decoration: none; }
.brand__shield { display: block; height: 46px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font: 800 1.12rem/1 var(--font-head); color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.brand__place { font: 500 .7rem/1 var(--font-body); color: var(--navy); text-transform: uppercase; letter-spacing: .24em; }
.brand--center { gap: 14px; }
.brand--center .brand__shield { height: 64px; }
.brand--center .brand__name { font-size: 1.55rem; }
.brand--center .brand__place { font-size: .85rem; }
@media (max-width: 900px) { .brand__shield { height: 40px; } .brand__name { font-size: 1rem; } .brand__place { font-size: .64rem; } }
.brand, .brand--center { flex-direction: row; align-items: center; }
.receipt__org.brand { line-height: 1; }
.receipt__org .brand__shield { height: 54px; }
/* Phone: calendar toolbar = full-width List/Month switch, then branches + subscribe (side by side if they fit), all left */
@media (max-width: 760px) {
  #cal-toolbar { gap: var(--s3) var(--s2); }
  #cal-toolbar > .segmented { flex: 0 0 100%; display: flex; }
  #cal-toolbar > .segmented a { flex: 1; text-align: center; }
  #cal-toolbar > .toolbar-row__end { margin-left: 0; }
  #cal-toolbar .dd .dd__panel { left: 0; right: auto; }
}
/* iPhone/iPad (Safari) sometimes leaves stripes of old pixels around a dropdown that
   fades in over content which changes underneath it. Give dropdowns their own layer,
   skip the fade, and keep them above everything on the page. */
.dd__panel, .nav-dd__menu { animation: none; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; z-index: 40; }
.dd[open] { position: relative; z-index: 40; }
/* text buttons read like links: left-aligned, no extra padding */
.link-button { text-align: left; padding-left: 0; padding-right: 0; }
.cal-subscribe__reset { text-decoration: underline; font-weight: 500; }
/* login: a clear second box for parents who don't have an account yet */
.login-new { margin-top: var(--s6); padding: var(--s5); border-radius: 14px; background: var(--blue-tint); border: 1.5px solid color-mix(in srgb, var(--blue) 30%, #fff); }
.login-new__title { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.login-new__text { margin: 0 0 var(--s4); color: var(--ink); }
.login-new__button { display: block; text-align: center; background: #fff; }
/* Admin → Protokoll */
.log-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s3); align-items: end; margin-bottom: var(--s5); }
.log-filter .field { margin: 0; }
.log-filter input, .log-filter select { width: 100%; }
@media (max-width: 760px) { .log-filter { grid-template-columns: 1fr 1fr; } .log-filter .field:first-child, .log-filter__go { grid-column: 1 / -1; } }
.log-sub { display: block; font-size: .82rem; color: var(--muted); }
.log-table td:nth-child(2) .log-sub { white-space: nowrap; }
.log-type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; margin-right: 6px; background: var(--blue-tint); color: var(--blue); }
.log-type--login { background: #EEF1F5; color: #5F6D83; }
.log-type--children { background: #FBEFD9; color: #8A5A00; }
.log-type--activities { background: #E5F2EA; color: #2E7A4F; }
.log-type--calendar { background: #F0EAF8; color: #5B4A8A; }
.log-type--money { background: #FBE9E7; color: #B3261E; }
.log-type--exports { background: #E8EFF9; color: #173E7C; }
.log-table td { vertical-align: top; }
.log-more { margin-top: var(--s4); }
.log-filter input, .log-filter select { height: 44px; box-sizing: border-box; }
.log-filter__go .button { height: 44px; }
@media (max-width: 760px) {
  .log-table tr { padding: var(--s3) var(--s4); }
  .log-table td { display: block !important; text-align: left !important; padding: 2px 0 !important; font-size: .92rem; }
  .log-table td::before { content: none !important; }
  .log-table td:first-child { font-size: .8rem !important; font-weight: 500 !important; color: var(--muted); padding-bottom: 4px !important; }
  .log-table td:nth-child(2) .log-sub { display: inline; margin-left: 6px; white-space: normal; overflow-wrap: anywhere; }
}

/* 2.0.12: admin emails switch in the users list */
.mail-toggle { margin-top: 6px; }
.mail-toggle__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 0; border: 0; background: none;
  font: inherit; font-size: .82rem; color: var(--muted); cursor: pointer; text-align: left; }
.mail-toggle__track { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #c9d2de; transition: background .15s; }
.mail-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15,42,73,.3); transition: transform .15s; }
.mail-toggle__btn.is-on { color: var(--navy, #0F2A49); }
.mail-toggle__btn.is-on .mail-toggle__track { background: var(--blue, #20509A); }
.mail-toggle__btn.is-on .mail-toggle__track::after { transform: translateX(14px); }
.mail-toggle__btn:focus-visible { outline: 2px solid var(--cyan, #00B8F0); outline-offset: 2px; border-radius: 4px; }
