/* VolleyLibre Sans 2.0 — self-hosted. Existing font-weight and font-style rules stay in control. */
@font-face {
  font-family: 'VolleyLibre Sans';
  src: url('/assets/VolleyLibreSans-Regular-v2.woff2') format('woff2'),
       url('/assets/VolleyLibreSans-Regular-v2.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VolleyLibre Sans';
  src: url('/assets/VolleyLibreSans-Bold-v2.woff2') format('woff2'),
       url('/assets/VolleyLibreSans-Bold-v2.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VolleyLibre Sans';
  src: url('/assets/VolleyLibreSans-Italic-v2.woff2') format('woff2'),
       url('/assets/VolleyLibreSans-Italic-v2.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'VolleyLibre Sans';
  src: url('/assets/VolleyLibreSans-BoldItalic-v2.woff2') format('woff2'),
       url('/assets/VolleyLibreSans-BoldItalic-v2.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


:root {
  color-scheme: dark;
  --ink: #f7f5ee;
  --muted: #c6c3b5;
  --gold: #e9b324;
  --gold-hover: #faff45;
  --electric: #faff45;
  --page: #090909;
  --surface: #141414;
  --surface-raised: #1d1c18;
  --on-gold: #171300;
  --control-border: #7b7359;
  --line: #424036;
  --soft: #28271e;
  --radius: 20px;
  --font-text: "VolleyLibre Sans", system-ui, sans-serif;
  --font-display: var(--font-text);
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; }
h1 { font-weight: 800; font-style: italic; letter-spacing: .005em; text-transform: uppercase; }
h2, h3 { font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
.top { background: #101010; border-bottom: 1px solid #56461c; position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); }
.top-inner { max-width: 1230px; min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); font-size: 27px; font-weight: 800; font-style: italic; letter-spacing: .01em; white-space: nowrap; }
.brand > span:last-child { color: var(--electric); }
.brand-icon { display: block; flex: none; width: 35px; height: 35px; margin-right: 9px; border-radius: 50%; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; padding: 4px; color: var(--ink); background: var(--surface); border-radius: 16px; }
.nav[hidden], .nav a[hidden], .profile-switch[hidden], .account-entry[hidden] { display: none; }
.nav a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 11px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.account-nav-icon { display: grid; place-items: center; position: relative; }
.alert-badge {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; display: inline-grid; place-items: center;
  background: #c82b40; color: white; font-size: 11px; font-weight: 800; line-height: 1;
}
.alert-badge[hidden], #more-alerts[hidden] { display: none; }
.account-nav-icon .alert-badge { position: absolute; top: -7px; left: calc(100% - 6px); box-shadow: 0 0 0 2px var(--surface); }
.account-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover, .nav a[aria-current="page"] { background: #34301d; color: var(--electric); }
.profile-switch { white-space: nowrap; }
.profile-switch svg { width: 17px; height: 17px; flex: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 700; line-height: 1.25; text-align: center; }
button, .button { background: var(--gold); color: var(--on-gold); }
button:enabled:hover, .button[href]:hover { background: var(--gold-hover); }
button:disabled { color: var(--muted); background: #39352a; cursor: not-allowed; }
.shell { width: min(100%, 1230px); margin: 0 auto; padding-inline: 32px; }
main.shell { flex: 1; padding-top: 29px; padding-bottom: 32px; }
.hero { position: relative; min-height: 292px; overflow: hidden; display: grid; align-items: center; border-radius: 24px; color: #fff; isolation: isolate; background: #15130d; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("./assets/gym.webp") right 45% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #0b0a08 2%, #0b0a08fa 22%, #141207b0 50%, #21170027 100%); }
.hero-copy { padding: 30px 39px; }
.hero-copy::before { content: ""; display: block; width: 64px; height: 5px; margin-bottom: 17px; background: linear-gradient(100deg, var(--electric) 67%, transparent 68% 76%, var(--gold) 77%); transform: skewX(-20deg); }
.card-bottom .price { color: var(--electric); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero .eyebrow { color: var(--electric); margin-bottom: 13px; }
.hero h1 { font-size: clamp(37px, 6.6vw, 79px); line-height: .94; max-width: 680px; }
.hero h1 span { color: var(--electric); }
.hero p { margin-top: 15px; color: #f0ede0; max-width: 390px; line-height: 1.5; font-size: 16px; }
.headline { margin-bottom: 24px; }
.headline h1 { font-size: clamp(30px, 5vw, 47px); line-height: 1.12; }
.headline p { margin-top: 9px; color: var(--muted); max-width: 680px; line-height: 1.5; }
.profile-entry { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; max-width: 1000px; margin: 10px auto 0; }
.profile-hero { min-height: 100%; container-type: inline-size; }
.profile-hero h1 { font-size: clamp(32px, 13cqi, 68px); }
.profile-panel h2 { margin-bottom: 18px; }
.role-picker { display: grid; gap: 8px; padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.role-picker legend { padding: 0; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.role-option { grid-template-columns: auto 1fr; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.role-option:has(input:checked) { border-color: var(--gold); background: var(--soft); }
.role-option input { width: 17px; height: 17px; min-height: 0; margin: 2px 3px 0 0; accent-color: var(--gold); }
.role-option small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.sessions { margin-top: 30px; }
.heading-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.heading-row h2 { font-size: clamp(24px, 3vw, 31px); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; gap: 11px; margin-bottom: 19px; }
#filters:where(:has([data-session-date]:not([hidden]))) { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) auto; }
label, .label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; font-size: 14px; min-width: 0; }
label[hidden] { display: none; }
input, select, textarea { min-height: 44px; width: 100%; border: 1px solid var(--control-border); border-radius: 10px; color: var(--ink); background: var(--surface); padding: 10px 12px; font-weight: 500; min-width: 0; }
textarea { min-height: 84px; resize: vertical; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 13px; padding: 18px; }
.card-photo, .detail-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--soft); }
.card-photo { aspect-ratio: 2.1; padding: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-photo img, .detail-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.card-photo::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg, #100d065c, transparent 52%); }
.card-photo .date-tile, .card-photo .badge { background: #211d10; }
.card-photo .badge.warm { background: #342605; }
.photo-credit { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; color: #fff; background: #100d08e6; border-radius: 6px; font-size: 11px; font-weight: 600; }
.detail-photo { aspect-ratio: 2.15; border-radius: 12px; margin-bottom: 12px; }
.date-tile { display: inline-grid; min-width: 53px; min-height: 55px; place-content: center; text-align: center; border-radius: 12px; color: var(--electric); background: var(--soft); font-size: 11px; line-height: 1.2; font-weight: 800; text-transform: uppercase; }
.date-tile strong { font-family: var(--font-display); font-size: 28px; line-height: .95; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #28271e; color: #f6df91; }
.badge.warm { background: #342605; color: #ffda82; }
.card h3 { font-size: 21px; line-height: 1.16; }
.meta { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.capacity { display: grid; gap: 5px; margin-top: auto; font-size: 13px; color: var(--muted); }
.capacity meter { width: 100%; height: 9px; }
meter::-webkit-meter-bar { background: var(--soft); border: 0; border-radius: 99px; }
meter::-webkit-meter-optimum-value { background: var(--gold); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--gold); border-radius: 99px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 1px; }
.price { font-family: var(--font-display); font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-family: var(--font-text); font-weight: 500; font-size: 12px; color: var(--muted); }
.empty { padding: 28px 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty p { margin: 7px 0 13px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 3vw, 25px); }
.panel h2 { font-size: 23px; margin-bottom: 11px; }
.panel p, .panel li, dialog p { line-height: 1.48; }
.host-guide { color: var(--ink); background: #272110; border-color: var(--gold); }
.host-guide h2 { color: #fff; }
.host-guide ul { padding-left: 20px; margin: 14px 0 0; display: grid; gap: 10px; }
.host-guide li::marker { color: var(--electric); }
.form { display: grid; gap: 14px; }
.form .button { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-field { min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.photo-field legend { padding: 0 5px; font-size: 14px; font-weight: 700; }
.photo-picker { display: grid; grid-template-columns: minmax(86px, 31%) minmax(0, 1fr); align-items: center; gap: 12px; }
.photo-picker img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 9px; background: var(--soft); }
.photo-label { gap: 3px; }
.photo-label input { padding: 5px; min-height: 39px; font-size: 12px; }
.photo-label input::file-selector-button { margin-right: 6px; border: 0; border-radius: 6px; padding: 5px 7px; background: var(--gold); color: var(--on-gold); font: inherit; font-weight: 700; cursor: pointer; }
.photo-label input::file-selector-button:hover { background: var(--gold-hover); }
.photo-picker .hint, .photo-picker .error { margin-top: 5px; font-size: 12px; }
.text-button { margin-top: 4px; padding: 7px 9px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 700; }
.photo-session-name { margin-bottom: 12px; }
.photo-actions { margin-top: 0; }
.organised { margin-top: 18px; }
.organised-summary { display: flex; gap: 10px; align-items: center; }
.organised-summary img { width: 65px; aspect-ratio: 1.5; object-fit: cover; border-radius: 7px; background: var(--soft); }
.check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; font-weight: 600; }
.check input { min-height: auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: 0 0 18px; }
.notice { border-radius: 12px; background: var(--soft); padding: 12px 14px; color: #f2e1a6; font-size: 14px; }
.error { color: #ffa4aa; font-size: 14px; }
.stack { display: grid; gap: 11px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot strong { display: block; }
.slot small { color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 12px; padding-bottom: 18px; font-size: 12px; color: var(--muted); }
.foot a:hover { text-decoration: underline; }
.credits { display: inline-flex; gap: 6px; flex-wrap: wrap; }
dialog { width: min(500px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 20px; padding: 23px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 85px #000a; }
dialog::backdrop { background: #000b; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 26px; }
.close { width: 40px; height: 40px; border: 0; border-radius: 10px; font-size: 22px; flex: 0 0 auto; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 11px 16px; background: var(--gold); color: var(--on-gold); border-radius: 9px; box-shadow: 0 5px 24px #0003; text-align: center; }
.toast:empty { display: none; }
@media (max-width: 900px) {
  .top-inner, .shell { padding-inline: 23px; }
  .top-inner { gap: 12px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .profile-switch { font-size: 12px; padding-inline: 8px; min-height: 39px; }
  .brand { font-size: 23px; }
  .brand-icon { width: 30px; height: 30px; }
  .shell { padding-inline: 15px; }
  main.shell { padding-top: 15px; }
  .hero { min-height: 246px; border-radius: 17px; }
  .hero::after { background: linear-gradient(90deg, #0b0a08fa 1%, #151209e0 53%, #251a085c 100%); }
  .hero-copy { padding: 22px; }
  .hero p { font-size: 14px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 9px; }
  #filters:where(:has([data-session-date]:not([hidden]))) { grid-template-columns: 1fr 1fr; }
  .filters > :first-child, #filters > [data-session-date] { grid-column: 1/-1; }
  .filters > .button { justify-self: start; }
  .card-grid, .work-grid { grid-template-columns: 1fr; }
  .profile-entry { grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
  .profile-hero { min-height: 170px; }
  .sessions { margin-top: 22px; }
  .card-body { padding: 15px; }
  .headline { margin: 5px 0 16px; }
  .form-row { gap: 8px; }
  .slot { flex-wrap: wrap; }
  .photo-picker { gap: 8px; }
}
@media (max-width: 365px) {
  .photo-picker { grid-template-columns: 1fr; }
  .photo-picker img { max-width: 140px; }
}

.account-links { margin-top: 18px; }
.entry-intro { margin: -7px 0 18px; color: var(--muted); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.entry-actions:empty { display: none; }
.auth-feedback { margin-bottom: 14px; }
#password-reset-status:not(:empty) { margin-top: 10px; }
.account-roles { margin: 10px 0 16px; }
.account-roles .slot > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.account-roles .slot small { display: block; }
.account-role-actions { display: flex; gap: 8px; align-items: center; flex: 0 1 auto; flex-wrap: wrap; }
.account-roles .slot { flex-wrap: wrap; }
.account-profile-delete.button { font-size: .9rem; }
.account-profile-settings.button { width: 44px; min-height: 44px; padding: 0; background: var(--soft); color: var(--gold); border: 1px solid var(--control-border); }
.account-profile-settings.button:hover { background: var(--gold); color: var(--on-gold); }
.account-profile-settings svg { width: 22px; height: 22px; }
#host-account { scroll-margin-top: calc(82px + env(safe-area-inset-top)); }
.account-preferences { margin-top: 14px; }
.notification-list { list-style: none; margin: 8px 0 0; padding: 0; }
.notification-list li { display: grid; gap: 3px; padding: 12px 0; }
.notification-list li + li { border-top: 1px solid var(--line); }
.notification-list small { color: var(--muted); }
.single-panel { max-width: 760px; }
.venue-details { display: grid; gap: 14px; margin: 0 0 18px; }
.venue-details dt { font-weight: 700; }
.venue-details dd { margin: 3px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.headline h1:focus, .hero h1:focus { outline: none; }

@media (max-width: 840px) {
  .top { z-index: 6; }
  .top-inner { min-height: 61px; padding-inline: max(15px, env(safe-area-inset-left)) max(15px, env(safe-area-inset-right)); }
  .top:has(.nav:not([hidden])) { z-index: 8; }
  .has-nav { --dock-height: calc(74px + env(safe-area-inset-bottom)); padding-bottom: var(--dock-height); }
  html:has(.has-nav) { scroll-padding-top: 68px; scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .has-nav .toast { bottom: calc(var(--dock-height) + 24px); }
  .nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
    gap: 0;
    min-height: var(--dock-height);
    padding: 3px max(8px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-radius: 25px 25px 0 0;
    border-top: 1px solid #56461c;
    box-shadow: 0 -4px 24px #0008;
  }
  .nav a {
    flex-direction: column;
    gap: 5px;
    justify-self: center;
    width: min(100%, 78px);
    min-height: 52px;
    padding: 6px 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
  }
  .nav a svg { width: 23px; height: 23px; }
  .nav a[aria-current="page"] { color: var(--electric); }
}
@media (max-width: 365px) {
  .nav a { font-size: 11px; }
}

.organiser-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; padding: 0; list-style: none; }
.organiser-steps li { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.organiser-steps li span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--soft); }
.organiser-steps li[aria-current="step"] { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.organiser-steps li[aria-current="step"] span { color: var(--on-gold); background: var(--electric); }
.venue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.venue-toolbar h2 { margin: 0; }
.location-status { margin-bottom: 12px; }
.location-city { max-width: 320px; margin: 8px 0 12px; }
.venue-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.location-map { min-height: 345px; position: relative; isolation: isolate; overflow: hidden; border-radius: 15px; border: 1px solid var(--line); background-color: #222017; background-image: linear-gradient(#9a7e4540 1px, transparent 1px), linear-gradient(90deg, #9a7e4540 1px, transparent 1px); background-size: 36px 36px; }
.map-viewport, .map-tiles, .map-pins { position: absolute; inset: 0; overflow: hidden; }
.map-viewport { cursor: grab; touch-action: none; }
.map-viewport:active { cursor: grabbing; }
.map-viewport:focus-visible { outline-offset: -3px; }
.host-location-map .map-viewport { cursor: crosshair; }
.map-tiles { pointer-events: none; filter: grayscale(1) invert(.9) sepia(.14) contrast(1.15); }
.map-pins { z-index: 1; }
.map-tiles img { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; transform-origin: top left; }
.map-marker, .map-position { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; transform: translate(-50%, -50%); border: 2px solid var(--on-gold); border-radius: 50%; background: var(--gold); color: var(--on-gold); box-shadow: 0 2px 8px #000a; font-size: 13px; font-weight: 800; }
.map-marker[hidden], .map-position[hidden] { display: none; }
button.map-marker { z-index: 2; width: 42px; height: 42px; }
button.map-cluster { width: 46px; height: 46px; border: 2px solid var(--gold); background: var(--electric); color: var(--on-gold); box-shadow: 0 0 0 3px #faff4555, 0 2px 8px #0008; font-size: 17px; }
button.map-cluster:enabled:hover { background: #f5d559; }
.map-marker:hover, .map-marker:focus-visible { z-index: 3; }
.map-position { z-index: 1; width: 17px; height: 17px; background: #f9f4d9; box-shadow: 0 0 0 7px #f9f4d955; pointer-events: none; }
.map-controls { position: absolute; top: 9px; right: 9px; z-index: 3; display: grid; gap: 4px; }
.map-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; font-size: 21px; font-weight: 800; }
.map-choices { position: absolute; z-index: 4; left: 8px; right: 61px; bottom: 20px; display: grid; gap: 6px; max-height: calc(100% - 40px); overflow-y: auto; padding: 11px; border-radius: 12px; background: var(--page); color: var(--ink); box-shadow: 0 3px 18px #0009; font-size: 13px; }
.map-choices[hidden] { display: none; }
.map-choices strong { padding-right: 32px; }
.map-choices-close { position: absolute; right: 7px; top: 5px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; }
.map-choice { min-height: 40px; padding: 7px 9px; text-align: left; border: 0; border-radius: 8px; }
.map-attribution { position: absolute; bottom: 0; right: 0; z-index: 3; padding: 3px 6px; border-radius: 6px 0 0; background: #171611f5; font-size: 11px; text-decoration: underline; }
.venue-list, .time-list, .venue-results { display: grid; gap: 8px; }
.venue-list { max-height: 345px; overflow-y: auto; padding: 2px; }
.venue-option { display: flex; width: 100%; min-height: 64px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--ink); text-align: left; }
.venue-option:enabled:hover { background: var(--soft); border-color: var(--gold); }
.venue-option > span:last-child { margin-left: auto; }
.venue-option strong, .venue-option small { display: block; }
.venue-option small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.venue-icon { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 13px; }
.time-list { margin-top: 18px; }
.time-option { justify-content: space-between; padding-inline: 13px; }
.time-price { color: var(--gold); font-weight: 800; text-align: right; white-space: nowrap; }
.map-link { display: inline-block; margin-top: 8px; color: var(--gold); font-weight: 700; text-decoration: underline; }
.venue-location { min-width: 0; display: grid; gap: 9px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; }
.venue-location legend, .venue-import summary { font-size: 14px; font-weight: 700; }
.host-location-map { min-height: 245px; }
.venue-import[open] > :not(summary) { margin-top: 8px; }
.venue-import summary { cursor: pointer; }
@media (max-width: 680px) {
  .venue-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 260px; }
  .venue-list { max-height: 248px; }
  .venue-toolbar .button { min-height: 40px; padding: 8px 10px; font-size: 13px; }
}

.payment-total { margin: 14px 0 8px; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.payment-methods li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); background: var(--soft); font-size: 13px; font-weight: 750; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.payment-actions .button { min-height: 40px; }

.social-layout { --social-border: var(--line); width: min(100%, 980px); margin: 0 auto; }
.social-feed-layout { max-width: 630px; }
.social-heading, .social-heading-actions { display: flex; align-items: center; gap: 10px; }
.social-heading { justify-content: space-between; margin: 1px 0 17px; }
.social-heading h1 { font-size: clamp(32px, 5vw, 49px); line-height: 1.08; }
.social-heading h1:focus { outline: none; }
.social-icon-button, .social-text-button, .social-link-button, .social-share-person {
  border: 0; background: transparent; color: var(--gold);
}
.social-icon-button { display: inline-grid; place-items: center; flex: none; position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.social-icon-button:enabled:hover, a.social-icon-button:hover, .social-text-button:enabled:hover,
.social-link-button:enabled:hover, .social-share-person:enabled:hover { color: var(--gold); background: var(--soft); }
.social-icon-button:disabled { color: var(--muted); background: transparent; opacity: .7; }
.social-icon-button svg { width: 23px; height: 23px; }
.social-heading-actions .social-icon-button { background: var(--surface); border: 1px solid var(--social-border); }
.social-publish { border-radius: 24px; }
.social-badge { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 20px; background: var(--gold); color: var(--on-gold); padding: 0 5px; font-size: .69rem; font-weight: 800; line-height: 1; }
.social-badge[hidden], .social-attachment[hidden], .social-media-error[hidden] { display: none; }
.social-inbox-link .social-badge { position: absolute; top: -4px; right: -4px; background: #b32540; box-shadow: 0 0 0 2px var(--page); }
.social-tabs { display: flex; gap: 7px; margin-bottom: 14px; }
.social-tab { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--social-border); border-radius: 22px; background: var(--surface); color: var(--gold); font-weight: 750; font-size: .88rem; }
.social-tab:enabled:hover { background: var(--soft); }
.social-tab[aria-pressed="true"], .social-tab[aria-pressed="true"]:enabled:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.social-tab svg { width: 16px; height: 16px; }
.social-stack { display: grid; gap: 18px; }
.social-post { min-width: 0; background: var(--surface); border: 1px solid var(--social-border); border-radius: 22px; box-shadow: 0 10px 28px #0004; }
.social-author { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 9px 14px; }
.social-author strong { display: block; overflow-wrap: anywhere; }
.social-author time, .social-message time, .social-comments time { display: block; color: var(--muted); font-size: .75rem; }
.social-author > button:first-of-type { margin-left: auto; }
.social-author > div { min-width: 0; }
.social-author [data-safety-action], .social-thread-head [data-safety-action] { min-height: 44px; }
.social-author [data-safety-action] { flex: 0 0 auto; }
.social-thread-head [data-safety-action] { margin-left: auto; }
.moderation-video { display: block; max-width: 100%; max-height: 35vh; }
.social-avatar, .social-empty-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ebbd3e; color: #211702; font-weight: 800; }
.social-tone-1 { background: #f6e194; color: #2f2106; }
.social-tone-2 { background: #f2cd6f; color: #322005; }
.social-tone-3 { background: #ffef9b; color: #3c2903; }
.social-author .social-avatar { outline: 1px solid var(--gold); outline-offset: 2px; }
.social-media { position: relative; background: #0a0906; }
.social-media video { display: block; width: 100%; aspect-ratio: auto 4 / 3; min-height: 180px; max-height: min(70dvh, 620px); object-fit: contain; background: #0a0906; }
.social-media-error { position: absolute; inset: 0 0 50px; display: grid; place-items: center; padding: 12px; color: white; pointer-events: none; text-align: center; }
.social-post-body { padding: 5px 13px 11px; }
.social-post-actions { display: flex; gap: 2px; align-items: center; margin: 0 -5px; }
.social-post-actions [data-social-action="save"] { margin-left: auto; }
.social-post-actions [data-social-action="like"][aria-pressed="true"] { color: #ff7790; }
.social-post-actions [aria-pressed="true"] svg { fill: currentColor; }
.social-likes { display: block; margin-top: 2px; font-size: .9rem; }
.social-likes:empty { display: none; }
.social-caption { margin-top: 5px; }
.social-caption strong { margin-right: 3px; }
.social-caption, .social-comments p, .social-message p { overflow-wrap: anywhere; white-space: pre-wrap; }
.social-text-button { display: inline-flex; align-items: center; min-height: 38px; padding: 2px 4px; margin-left: -4px; border-radius: 5px; color: var(--muted); text-align: left; font-size: .88rem; }
.social-empty { display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; padding: 36px 18px; }
.social-stack > .social-empty { min-height: 235px; background: var(--surface); border: 1px solid var(--social-border); border-radius: 22px; }
.social-empty h2 { font-size: 22px; }
.social-empty p, .social-loading, .social-inbox-empty { color: var(--muted); font-size: .91rem; }
.social-empty .button { margin-top: 3px; }
.social-empty-icon { width: 54px; height: 54px; }
.social-empty-icon svg { width: 25px; height: 25px; }
.social-more { justify-self: center; }
.social-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 3px 8px; border-radius: 9px; color: var(--gold); font-weight: 750; }
.social-back:hover { background: var(--soft); }
.social-feed-layout > .social-back { margin-bottom: 9px; }
.social-sheet .dialog-head { align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.social-share { display: grid; gap: 12px; }
.social-share-clip, .social-attachment { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.social-share-clip > svg, .social-attachment > svg { flex: none; color: var(--gold); }
.social-share-clip > div, .social-attachment > div { flex: 1; min-width: 0; }
.social-share-clip small, .social-attachment span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.social-share-recent p { font-size: .88rem; font-weight: 750; }
.social-share-recent > div { display: flex; flex-wrap: wrap; gap: 5px; }
.social-share-person { display: grid; place-items: center; gap: 4px; border-radius: 10px; padding: 7px; width: 75px; }
.social-share-person > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: .76rem; white-space: nowrap; }
.social-share-primary { justify-self: start; }
.social-share-links { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 7px; }
.social-link-button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 6px 9px; border-radius: 10px; font-size: .86rem; font-weight: 750; }
.social-share p:empty { display: none; }
.social-comments, .social-players, .social-messages { list-style: none; margin: 0; padding: 0; }
.social-comments { max-height: 44dvh; overflow: auto; }
.social-comments li { display: flex; align-items: start; gap: 9px; padding: 9px 0; }
.social-comments li + li { border-top: 1px solid var(--line); }
.social-comments li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.social-comments .social-avatar { width: 34px; height: 34px; font-size: .79rem; }
.social-comments button { font-size: .76rem; }
#social-comment { margin-top: 15px; }
.social-messenger { display: grid; grid-template-columns: minmax(270px, 36%) minmax(0, 1fr); min-height: min(68dvh, 610px); background: var(--surface); border: 1px solid var(--social-border); border-radius: 23px; overflow: hidden; }
.social-inbox { min-width: 0; padding: 14px 10px; border-right: 1px solid var(--social-border); max-height: min(76dvh, 690px); overflow: auto; }
.social-inbox .social-tabs { margin: 10px 5px 8px; }
.social-search-field { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 11px; margin: 0 5px; border-radius: 23px; background: var(--soft); color: var(--gold); }
.social-search-field:focus-within { outline: 2px solid var(--gold); }
.social-search-field svg { flex: none; }
.social-search-field input { min-width: 0; width: 100%; padding: 9px 0; border: 0; color: var(--ink); background: transparent; outline: none; font-size: 16px; }
.social-inbox-empty, .social-loading { padding: 13px 10px; }
.social-players { display: grid; gap: 2px; }
.social-player { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 8px; border: 0; border-radius: 13px; text-align: left; color: var(--ink); background: var(--surface); }
.social-player:enabled:hover, .social-player[aria-current="true"] { background: #322b16; }
.social-player.is-unread { background: #2c2719; }
.social-player.is-unread strong, .social-player.is-unread small { font-weight: 800; }
.social-player-copy { flex: 1; min-width: 0; }
.social-player strong, .social-player small, .social-message-video small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.social-player small, .social-player time { color: var(--muted); font-size: .76rem; }
.social-player-meta { display: grid; justify-items: end; align-self: stretch; align-content: center; gap: 3px; white-space: nowrap; }
.social-messages-layout > .social-attachment { margin-bottom: 10px; }
.social-attachment .social-icon-button { width: 36px; height: 36px; }
.social-thread { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(76dvh, 690px); }
.social-thread-placeholder { display: grid; place-items: center; }
.social-thread-head { display: flex; align-items: center; gap: 9px; min-height: 66px; padding: 9px 12px; border-bottom: 1px solid var(--social-border); }
.social-thread-head h2 { font-size: 1.1rem; overflow-wrap: anywhere; }
.social-thread-head .social-avatar { width: 38px; height: 38px; }
.social-thread-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; overflow-anchor: none; }
.social-thread-more { display: grid; }
.social-thread-more .button { font-size: .8rem; }
.social-messages { display: grid; gap: 7px; margin-top: 4px; }
.social-day { justify-self: center; padding: 6px; color: var(--muted); font-size: .76rem; }
.social-message { min-width: 0; max-width: 86%; width: fit-content; display: grid; gap: 2px; }
.social-message.sent { justify-self: end; }
.social-message time { padding: 0 5px; }
.social-message.sent time { text-align: right; }
.social-bubble { min-width: 0; display: grid; gap: 5px; padding: 9px 12px; background: var(--soft); border-radius: 17px 17px 17px 5px; }
.social-message.sent .social-bubble { background: var(--gold); color: var(--on-gold); border-radius: 17px 17px 5px 17px; }
.social-message-video { display: flex; align-items: center; gap: 7px; padding: 4px; min-width: 0; border-radius: 9px; color: var(--electric); font-size: .86rem; }
.social-message-video:hover { background: #3b3216; }
.social-message.sent .social-message-video { color: var(--on-gold); }
.social-message.sent .social-message-video:hover { background: #cf9a19; }
.social-message-video > span:last-child { min-width: 0; }
.social-message-media { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 9px; color: var(--gold); background: #332a12; }
.social-composer { display: grid; gap: 7px; border-top: 1px solid var(--social-border); padding: 9px 12px; background: var(--surface); }
.social-composer-row { display: flex; align-items: center; gap: 7px; border: 1px solid var(--control-border); border-radius: 26px; padding: 4px; background: var(--surface-raised); }
.social-composer-row:focus-within { border-color: var(--gold); }
.social-composer-row textarea { min-width: 0; flex: 1; min-height: 42px; max-height: 100px; padding: 9px; resize: vertical; border: 0; border-radius: 21px; background: transparent; color: var(--ink); font-size: 16px; }
.social-composer-row textarea:focus { outline: none; }
.social-send { width: 43px; height: 43px; min-height: 43px; padding: 0; border-radius: 50%; }
@media (max-width: 840px) {
  .nav:has([href="#actus"]:not([hidden])) { grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .social-heading { margin-bottom: 13px; }
  .social-messenger { grid-template-columns: minmax(0, 1fr); min-height: min(50dvh, 400px); border-radius: 18px; }
  .social-thread-placeholder, .social-messenger.has-thread .social-inbox { display: none; }
  .social-inbox { border: 0; }
  .social-thread { height: max(330px, calc(100dvh - var(--dock-height, 74px) - 156px)); }
  .social-sheet { inset: auto 0 0; width: 100%; max-width: none; max-height: 82dvh; margin: 0; border-radius: 22px 22px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .social-media video { max-height: min(63dvh, 550px); }
}

.session-view-controls { display: inline-flex; gap: 4px; margin-bottom: 13px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.session-view-controls .button { min-height: 44px; min-width: 100px; color: var(--ink); background: transparent; }
.session-view-controls .button:hover { background: var(--soft); }
.session-view-controls .button[aria-pressed="true"] { color: var(--on-gold); background: var(--gold); }
.session-map-panel .venue-toolbar h2 { font-size: 23px; }
.session-map-panel .location-map { min-height: clamp(290px, 48vh, 500px); }
.session-map-results { margin-top: 16px; }
.session-map-results .heading-row { margin-bottom: 9px; }
.session-map-panel .map-marker[aria-pressed="true"] { background: var(--electric); box-shadow: 0 0 0 3px var(--on-gold), 0 0 0 5px var(--electric); z-index: 3; }
#map-visible-sessions { display: grid; gap: 10px; }
.map-venue-group { border: 1px solid var(--line); border-radius: 14px; padding: 11px; background: var(--surface-raised); }
.map-venue-group.is-selected { border-color: var(--electric); }
.map-venue-group h4 { margin: 0; overflow-wrap: anywhere; scroll-margin-top: 90px; }
.map-venue-group .hint { margin-bottom: 7px; }
.map-session-list { display: grid; list-style: none; gap: 6px; padding: 0; margin: 0; }
.map-session-option { overflow-wrap: anywhere; }
.map-session-option.is-available { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.map-session-option.is-available:enabled:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.map-session-option.is-available small { color: inherit; }
@media (max-width: 680px) {
  .session-map-panel .location-map { min-height: clamp(260px, 40vh, 360px); }
  .session-map-panel { padding: 12px; }
}

.legal-link { color: var(--electric); text-decoration: underline; text-underline-offset: .15em; }
#terms-title + .entry-actions { margin-bottom: 10px; }

.terms-dialog { width: min(720px, calc(100% - 24px)); }
.terms-dialog-content { max-height: min(52dvh, 480px); overflow: auto; overscroll-behavior: contain; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.terms-dialog-content .pilot-legal { padding: 0; border: 0; }
.terms-dialog-content h2 { margin: 14px 0 5px; font-size: 20px; }
.terms-dialog-content p + p { margin-top: 8px; }

.account-actions { position: relative; }
.account-actions:has(> .profile-switch[hidden] + .quick-profiles[hidden] + .account-entry[hidden]) { display: none; }
.quick-profiles { position: absolute; z-index: 20; inset: calc(100% + 7px) 0 auto auto; min-width: min(235px, 82vw); padding: 5px; border-radius: 14px; border: 1px solid var(--control-border); background: var(--surface); box-shadow: 0 12px 28px #0009; }
.quick-profiles[hidden] { display: none; }
.quick-profiles button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; color: var(--ink); border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.quick-profiles button:hover, .quick-profiles button[aria-current] { background: #34301d; color: var(--electric); }
.profile-menu-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--gold); background: var(--soft); }
.profile-menu-icon svg { width: 22px; height: 22px; }
.quick-profiles button[aria-current] .profile-menu-icon { color: var(--on-gold); background: var(--electric); }
.profile-menu-label { display: grid; gap: 2px; }
.quick-profiles small { color: var(--muted); overflow-wrap: anywhere; }
.managed-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.managed-session { min-width: 0; }
.managed-session .heading-row { align-items: flex-start; }
.managed-session h2 { overflow-wrap: anywhere; }
.managed-session .venue-details { margin: 12px 0; }
.managed-session .payment-actions { margin-top: 12px; }
.managed-history { margin-top: 26px; }
.managed-history > h2 { margin-bottom: 10px; }
.organizer-message + .organizer-message { border-top: 1px solid var(--control-border); margin-top: 16px; padding-top: 16px; }
.organizer-message p { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 840px) {
  .nav[data-active-role="joueur"] { grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr)); }
  .nav[data-active-role="organisateur"], .nav[data-active-role="accueillant"] { grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr)); }
}

.message-inbox-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.message-inbox-links a[aria-current="page"] { color: var(--on-gold); background: var(--gold); }
.message-inbox-links a[aria-current="page"] .social-badge { background: var(--on-gold); color: var(--gold); }
.message-inbox-links .social-badge[hidden] { display: none; }
.session-inbox { padding: 8px; }
.session-conversations { list-style: none; margin: 0; padding: 0; }
.session-conversation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left; }
.session-conversation[aria-current] { background: var(--soft); }
.session-conversation-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--gold); background: var(--soft); }
.session-conversation-copy { display: grid; min-width: 0; gap: 3px; }
.session-conversation-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Compact account cards and progressively disclosed profile controls. */
.gym-heading-actions { display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
#host-account-fields:not([hidden]) { margin-top:1rem; }
.account-roles { display:grid; gap:.6rem; }
.account-roles .slot { position:relative; margin:0; padding:.8rem 1rem; border:1px solid var(--control-border); border-radius:16px; flex-wrap:nowrap; align-items:center; gap:.75rem; }
.account-roles .slot > div:first-child { flex:1; }
.account-roles .slot small { margin-top:.15rem; }
.account-role-actions { flex:0 0 auto; }
.profile-actions-menu { position:relative; }
.profile-actions-menu > summary { list-style:none; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.profile-actions-menu > summary::-webkit-details-marker { display:none; }
.profile-actions-menu[open] { z-index:5; }
.profile-actions-list { position:absolute; right:0; top:calc(100% + .4rem); display:grid; min-width:190px; padding:.35rem; border:1px solid var(--control-border); border-radius:14px; background:var(--panel, #151515); box-shadow:0 10px 24px #0008; }
.profile-actions-list button { padding:.75rem; border:0; border-radius:9px; background:transparent; color:var(--text, #fff); text-align:left; font:inherit; cursor:pointer; min-height:44px; }
.profile-actions-list button:hover, .profile-actions-list button:focus-visible { background:var(--gold); color:var(--on-gold); }
.profile-actions-list .profile-action-delete { color:#ffb0b5; }
@media (max-width:480px) {
  #host-account .heading-row { align-items:flex-start; gap:.5rem; }
  #host-account-title { font-size:1.35rem; }
  .gym-heading-actions { flex-wrap:wrap; justify-content:flex-end; max-width:100px; }
  .account-roles .slot { padding:.7rem .8rem; }
}

/* Attendance and owner statistics */
.notification-details {white-space:pre-line}
.ticket-panel {text-align:center;min-width:0}
.ticket-qr {background:#fff;color:#000;max-width:280px;margin:1rem auto;padding:12px;border-radius:12px}
.ticket-qr svg {display:block;width:100%;height:auto}
.ticket-reference {font-family:var(--font-text);font-variant-numeric:tabular-nums;letter-spacing:.08em;overflow-wrap:anywhere}
#attendance-video {width:100%;max-width:540px;max-height:420px;border-radius:14px;background:#000;margin:1rem 0}
.metric-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:1rem 0}
.metric-grid .panel {display:flex;flex-direction:column;gap:8px;padding:20px;min-width:0;margin:0}
.metric-number {font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.15;color:#efff35;overflow-wrap:anywhere}
.metric-grid small {font-size:.875rem;opacity:.75}
.attendance-roster {list-style:none;padding:0}
.attendance-roster li {display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #444}
.attendance-yes {color:#5de4ce}
#attendance-body>.panel,#statistics-body>.panel {margin:20px 0}
.stats-toolbar {display:flex;flex-wrap:wrap;align-items:end;gap:20px;justify-content:space-between}
.stats-toolbar label {display:grid;gap:8px}
.stats-chart {width:100%;height:auto;min-height:180px;display:block;margin:14px 0}
.chart-legend {display:flex;flex-wrap:wrap;gap:18px;font-size:.875rem}
.chart-legend i {display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px}
.stats-table-wrap {overflow:auto;max-height:400px}
.stats-table {width:100%;border-collapse:collapse;font-size:.95rem;text-align:left}
.stats-table th,.stats-table td {padding:12px;border-bottom:1px solid #444}
.usage-track {height:16px;border-radius:8px;background:#444;overflow:hidden;margin:16px 0}
.usage-track span {display:block;height:100%;background:#efff35}
.nav[data-active-role="administrateur"] {grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.nav[data-active-role="organisateur"]{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-roster li{flex-wrap:wrap}.stats-chart{min-height:150px}}

/* The VL family is wider than the former condensed headings. Keep mobile text in its container. */
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
.nav a, .pilot-nav a { min-width: 0; }
@media (min-width: 841px) {
  .top-inner { flex-wrap: wrap; padding-block: 10px; gap: 12px 20px; }
  .top-inner > .nav { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .profile-switch { white-space: normal; max-width: 132px; }
}

.shared-file-controls {display:grid;gap:6px;padding:8px 0;min-width:0}
.shared-file-controls>small {font-size:.75rem;color:var(--muted)}
.shared-file-picker {position:relative;display:inline-flex;align-items:center;gap:7px;justify-self:start;min-height:36px;padding:5px 10px;border:1px solid var(--control-border);border-radius:8px;cursor:pointer;font-size:.85rem}
.shared-file-picker:focus-within {outline:2px solid var(--electric);outline-offset:2px}
.shared-file-input {position:absolute;inset:0;opacity:0;cursor:pointer;min-height:0;padding:0}
.shared-selected {list-style:none;margin:0;padding:0;display:grid;gap:4px}
.shared-selected li {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem;overflow-wrap:anywhere;min-width:0}
.shared-selected small {display:block;color:var(--muted)}
.shared-selected button {display:grid;place-items:center;flex:none;width:32px;height:32px;padding:3px;border:0;border-radius:6px}
.shared-progress {display:grid;gap:5px;font-size:.85rem}
.shared-progress[hidden] {display:none}.shared-progress progress {width:100%;accent-color:var(--gold)}
.shared-progress button {justify-self:start;padding:6px 10px;border:0;border-radius:6px}
.shared-message-file {display:grid;gap:6px;margin:6px 0;max-width:100%;min-width:0}
.shared-message-image,.shared-message-video {display:block;width:100%;max-width:340px;max-height:320px;object-fit:contain;border-radius:10px;background:#090909}
.shared-file-download {display:flex;align-items:center;gap:8px;overflow-wrap:anywhere;min-width:0;padding:7px;border:1px solid currentColor;border-radius:8px;font-size:.85rem}
.shared-file-download svg {flex:none}.shared-file-download small {display:block;font-size:.75rem;opacity:.8}
.social-post-photo {display:block;max-height:660px;width:100%;object-fit:contain;background:#090909}
.shared-post-document {display:grid;justify-items:center;gap:12px;min-height:190px;align-content:center;padding:24px;overflow-wrap:anywhere;text-align:center;color:var(--gold)}
.shared-post-document svg {width:44px;height:44px}.social-author>div>small {display:block;font-size:.75rem;color:var(--muted)}
@media(max-width:840px){.nav a{white-space:normal;text-align:center}.nav a>span{max-width:100%;overflow-wrap:anywhere}.nav{align-items:start}.has-nav{--dock-height:calc(86px + env(safe-area-inset-bottom))}}

.session-attendance { margin-top: 18px; border-top: 1px solid var(--border, #444); padding-top: 14px; }
.session-attendance > summary { cursor: pointer; font-weight: 700; color: var(--yellow, #efff35); padding: 8px 0; font-size: 1rem; }
.session-attendance > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.session-attendance[open] > summary { margin-bottom: 12px; }
.session-attendance .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.session-attendance .metric-grid .panel { min-width: 0; padding: 12px; }
@media (max-width: 480px) {
  .session-attendance .metric-grid { grid-template-columns: 1fr; }
}

.attendance-camera { position: relative; margin: 16px 0; background: #000; border-radius: 12px; overflow: hidden; }
.attendance-camera[hidden] { display: none; }
.attendance-camera #attendance-video { display: block; width: 100%; margin: 0; }
.attendance-camera-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #111e; color: #fff; font: 32px/1 sans-serif; cursor: pointer; }
.attendance-camera-close:focus-visible { outline: 3px solid var(--yellow, #efff35); outline-offset: 3px; }

.friends-list { list-style:none; padding:0; }
.friends-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.friends-list small { display:block; color:var(--muted); }
#account-friends > summary { cursor:pointer; font-weight:700; padding:8px 0; }

.group-suggestions { max-height: 300px; overflow-y: auto; }
.group-messages { list-style:none; padding:0; max-height:420px; overflow-y:auto; }
.group-messages li { padding:12px; margin:8px 0; border:1px solid var(--line); border-radius:10px; }
.group-message-body { white-space:pre-wrap; overflow-wrap:anywhere; }

.host-task-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 12px; }
.host-task-row { display: flex; align-items: end; gap: 10px; }
.host-task-row label { flex: 1; min-width: 0; }
@media (max-width:480px) { .host-task-row { align-items: stretch; flex-direction: column; } .host-task-row button { align-self: flex-end; } }

.host-stat-bar { display:grid; grid-template-columns: minmax(80px,100px) minmax(0,1fr) auto; align-items:center; gap:12px; margin:16px 0; }
.host-stat-bar .usage-track { margin:0; }
#host-stats-body .metric-number { overflow-wrap:anywhere; }
#host-stats-filter { max-width:700px; }

.publication-avatar { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:4px; border:0; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }
.publication-avatar:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.publication-player-row { display:flex; align-items:center; gap:8px; }
.publication-player-row > .social-player, .publication-player-row > .session-conversation { flex:1; min-width:0; }

.player-level { display:block; font-weight:400; margin-top:4px; color:var(--muted); }

.friends-dialog-list { max-height: min(60dvh, 520px); overflow-y:auto; overscroll-behavior:contain; padding:4px; }
.friends-dialog-list .friends-list li > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.friends-dialog-list .friends-list { margin:0; }

[data-group-chat] { grid-template-rows:auto auto minmax(100px,1fr) auto auto; }
.group-members { padding:8px 12px; border-bottom:1px solid var(--social-border); }
.group-members summary { cursor:pointer; }
.group-members p { margin:8px 0; }
[data-group-status] { margin:0; padding:0 12px; }
[data-group-chat] .profile-actions-menu { margin-left:auto; }
[data-group-chat] .profile-actions-menu > summary { width:44px; height:44px; }
[data-group-chat] .profile-actions-menu svg { width:22px; height:22px; }

[data-group-older][hidden] { display:none; }
[data-group-chat] .profile-actions-menu > summary { color:var(--gold); }
