.org {
  height: var(--page-h);
  max-height: var(--page-h);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.org-nav {
  background: linear-gradient(180deg, #2a6fa0 0%, #1f4f7a 100%);
  color: #fff;
  padding: 1rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  overflow: hidden;
}
.org-logo {
  width: 52px;
  height: 72px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  flex: none;
}
.org-nav__marque {
  flex: none;
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.org-nav__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.org-nav__kicker:empty { display: none; }
.org-nav__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}
.org-nav__links {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  margin: 0;
  overflow: hidden;
}
.org-nav__links button {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.org-nav__links svg,
.org-compte svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.org-nav__links button.is-active,
.org-nav__links button:hover,
.org-nav__links a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.org-nav__links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  text-decoration: none;
}
.org-nav__links a.aide-acces {
  display: flex;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: inherit;
  font-weight: 600;
}
.org-nav__links a.aide-acces:hover { background: rgba(255, 255, 255, 0.16); }
.org-compte {
  flex: none;
  background: #fff;
  color: #163a5c;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(22, 58, 92, 0.06);
  padding: 0.65rem 0.7rem;
  display: grid;
  gap: 0.45rem;
}
.org-compte__identite {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.org-compte [data-user-name] {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.org-compte__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.org-compte__actions a,
.org-compte__actions button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  padding: 0;
  color: #2a6fa0;
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}
.org-compte__actions a:hover,
.org-compte__actions button:hover { color: #163a5c; }
.org-compte .notif-panneau {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(220px, calc(100vw - 24px));
  z-index: 50;
}
.org-main {
  padding: 1.25rem 1.5rem 1.25rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.org-main > [data-panel] {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.org:has([data-panel="sauvegardes"]:not([hidden])) .org-main {
  padding: 0.35rem 1rem 0.25rem;
}

.org-main > [data-panel="sauvegardes"]:not([hidden]) {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.org-main h2 { margin: 0 0 0.75rem; }
.org-main .auth-form { max-width: 28rem; }

/* Fiches Organisation et Courriel : carte large, deux colonnes, sans ascenseur. */
.org-main > .org-sheet:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.org-sheet[hidden] {
  display: none !important;
}
.org-sheet__card {
  width: min(100%, 62rem);
  max-height: 100%;
  margin: 0;
  align-self: center;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(22, 58, 92, 0.08);
  padding: clamp(0.9rem, 1.8vh, 1.5rem) clamp(1.1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1.2vh, 0.9rem);
  min-height: 0;
}
.org-sheet__head {
  margin: 0;
}
.org-sheet__card h2 {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(1.35rem, 2.6vh, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #163a5c;
}
.org-sheet__head .auth-hint {
  margin: 0.35rem 0 0;
  font-size: clamp(0.82rem, 1.5vh, 0.95rem);
  line-height: 1.35;
  color: rgba(22, 58, 92, 0.72);
}
.org-sheet__card .auth-form {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.45rem, 1.2vh, 0.75rem) 1rem;
  align-content: start;
}
.org-sheet__card .auth-field label,
.org-sheet__checks > span {
  display: grid;
  gap: 0.28rem;
  font-size: clamp(0.78rem, 1.4vh, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #163a5c;
}
.org-sheet__card .auth-field input,
.org-sheet__card .auth-field select {
  width: 100%;
  border: 1px solid rgba(22, 58, 92, 0.2);
  border-radius: 10px;
  padding: clamp(0.4rem, 1vh, 0.62rem) 0.8rem;
  font: inherit;
  font-size: clamp(0.88rem, 1.5vh, 1rem);
  line-height: 1.3;
  color: #163a5c;
  background: #fff;
}
.org-sheet__card .auth-field input[readonly] {
  background: #f7fafc;
  color: rgba(22, 58, 92, 0.78);
}
.org-sheet__checks {
  align-content: end;
  gap: 0.35rem;
}
.org-sheet__checks .auth-remember {
  margin: 0;
}
.org-sheet__span,
.org-sheet__card .auth-form > .auth-hint,
.org-sheet__card .auth-form > .auth-submit,
.org-sheet__card .auth-form > .org-sheet__actions,
.org-sheet__card > .org-smtp-warn,
.org-sheet__card > .org-ident-lock {
  grid-column: 1 / -1;
}
.org-sheet__card .auth-form > .auth-hint,
.org-sheet__card > .org-smtp-warn {
  margin: 0;
}
.org-sheet__card .auth-form > .auth-hint:empty {
  display: none;
}
.org-sheet__card .auth-form > .auth-hint {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f2f7fb;
  border: 1px solid rgba(22, 58, 92, 0.14);
  font-size: clamp(0.78rem, 1.4vh, 0.88rem);
  line-height: 1.35;
  color: rgba(22, 58, 92, 0.78);
}
.org-sheet__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.75rem;
}
.org-sheet__card .auth-submit {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  padding: clamp(0.5rem, 1.15vh, 0.72rem) 1rem;
  font-size: clamp(0.88rem, 1.5vh, 1rem);
}
.org-smtp-warn {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: #fef3f2;
  color: #b42318;
  font-size: clamp(0.78rem, 1.4vh, 0.88rem);
  line-height: 1.35;
}
.org-panel-users:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden !important;
}
.org-panel-users__head .auth-hint { margin: 0; }
.org-equipe {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: 1.25rem;
  overflow: hidden;
}
.org-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(22, 58, 92, 0.06);
  overflow: hidden;
}
.org-card__head h3 {
  margin: 0;
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #163a5c;
}
.org-card__head .auth-hint {
  margin: 0.25rem 0 0;
}
.org-card--groupes .org-groupes {
  flex: 1;
  min-height: 0;
  max-width: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #3d8fc4 #edf2f7;
}
.org-card--users .org-users {
  flex: 1;
  min-height: 0;
}
.org-users {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.org-users__form {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 12px;
  background: #f7fafc;
}
.org-users__form .auth-form {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}
.org-users__form .auth-form > .auth-hint,
.org-users__form .auth-form > .org-form-actions,
.org-users__form .auth-form > [data-user-actif] {
  grid-column: 1 / -1;
}
.org-users__list {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 12px;
  background: #fafcfe;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #3d8fc4 #edf2f7;
}
.org-users__list::-webkit-scrollbar { width: 10px; }
.org-users__list::-webkit-scrollbar-track { background: #edf2f7; }
.org-users__list::-webkit-scrollbar-thumb {
  background: #3d8fc4;
  border-radius: 999px;
  border: 2px solid #edf2f7;
}
.org-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.55rem;
  max-width: none;
}
.org-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  background: #fff;
}
.org-row.is-on {
  background: #ecfdf3;
  border-color: rgba(6, 118, 71, 0.22);
}
.org-row.is-off {
  background: #fef3f2;
  border-color: rgba(180, 35, 24, 0.22);
}
.org-row.is-editing {
  box-shadow: 0 0 0 2px rgba(61, 143, 196, 0.28);
}
.org-row__info {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.org-row__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
}
.org-row__info strong { font-weight: 700; color: var(--ink, #163a5c); }
.org-row__info .org-row__meta {
  color: rgba(22, 58, 92, 0.7);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.org-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.org-link-danger { color: #b42318 !important; }
.org-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.org-actif-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.org-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.org-badge--on {
  background: #ecfdf3;
  color: #067647;
}
.org-badge--off {
  background: #fef3f2;
  color: #b42318;
}
.org-badge--service {
  background: rgba(61, 143, 196, 0.12);
  color: #2a6fa0;
  border: 1px solid rgba(61, 143, 196, 0.28);
}
.org-switch {
  appearance: none;
  width: 2.4rem;
  height: 1.3rem;
  border: 0;
  border-radius: 999px;
  background: #d0d5dd;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}
.org-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.org-switch.is-on {
  background: #12b76a;
}
.org-switch.is-on::after {
  transform: translateX(1.05rem);
}
.org-ident-lock {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(22, 58, 92, 0.18);
  background: #edf2f7;
  color: #163a5c;
  font-size: 0.9rem;
  line-height: 1.4;
}
.org-groupe-new {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  flex: 0 0 auto;
}
.org-groupe-new .auth-field {
  flex: 1 1 12rem;
  margin: 0;
}
.org-groupes {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.org-groupe {
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
  background: #f7fafc;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.org-groupe.is-open {
  border-color: rgba(61, 143, 196, 0.45);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(61, 143, 196, 0.18);
}
.org-groupe__toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #163a5c;
  font: inherit;
}
.org-groupe__toggle:hover {
  background: rgba(61, 143, 196, 0.08);
}
.org-groupe__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.org-groupe__name {
  font-weight: 700;
  font-size: 0.95rem;
}
.org-groupe__meta {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(22, 58, 92, 0.65);
  white-space: nowrap;
}
.org-groupe__chevron {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  color: #2a6fa0;
  transition: transform 0.2s ease;
}
.org-groupe.is-open .org-groupe__chevron {
  transform: rotate(180deg);
}
.org-groupe__panel {
  display: none;
  gap: 0.85rem;
  padding: 0 0.9rem 0.95rem;
  border-top: 1px solid rgba(22, 58, 92, 0.12);
}
.org-groupe.is-open .org-groupe__panel {
  display: grid;
  padding-top: 0.85rem;
}
.org-groupe__rename {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .org-groupe__rename {
    grid-template-columns: 1.2fr 1fr auto;
  }
}
.org-groupe__rename input,
.org-groupe__rename select,
.org-groupe__service {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(22, 58, 92, 0.18);
  border-radius: 8px;
  font: inherit;
  color: #163a5c;
  background: #fff;
}
.org-groupe-new {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.org-groupe-new .auth-submit {
  justify-self: start;
}
.org-groupe__modules {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 10px;
  background: #f7fafc;
  display: grid;
  gap: 0.4rem;
}
.org-groupe__modules legend {
  padding: 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.org-groupe__mod {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.org-groupe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}
.auth-submit--secondary {
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.15);
  color: #163a5c;
}
.auth-submit--secondary:hover {
  background: #f2f7fb;
}
[data-ident-body].is-locked {
  opacity: 0.48;
  filter: grayscale(0.35);
  pointer-events: none;
  user-select: none;
}
[data-ident-body].is-locked .auth-ident {
  background: #f7fafc;
}
.org-nav__links button.is-muted {
  opacity: 0.55;
}
@media (max-width: 1100px) {
  .org-equipe {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(14rem, 42%) minmax(0, 1fr);
  }
  .org-users__form .auth-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .org-equipe {
    grid-template-rows: auto auto;
    overflow: auto;
  }
  .org-card--groupes .org-groupes {
    max-height: 40vh;
  }
}
.org-import {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 58, 92, 0.14);
  display: grid;
  gap: 0.65rem;
}
.org-services-suggestions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 58, 92, 0.14);
  display: grid;
  gap: 0.65rem;
}
.org-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 14rem;
  overflow: auto;
  padding: 0.15rem;
}
.org-service-chip {
  appearance: none;
  border: 1px solid rgba(22, 58, 92, 0.18);
  background: #f7fafc;
  color: #163a5c;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.org-service-chip:hover {
  background: rgba(61, 143, 196, 0.12);
  border-color: rgba(61, 143, 196, 0.4);
}
.org-service-chip.is-declared {
  opacity: 0.45;
  cursor: default;
  text-decoration: line-through;
}
.org-service-chip small {
  font-weight: 800;
  color: #2a6fa0;
  margin-left: 0.25rem;
}
.org-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #163a5c;
}
.org-modules-admins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.org-card--module-admin .org-list {
  max-height: 12rem;
  overflow: auto;
  margin-bottom: 0.75rem;
}
.org-module-admin-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.org-module-admin-form select {
  width: 100%;
  border: 1px solid rgba(22, 58, 92, 0.2);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: #163a5c;
  background: #fff;
}

@media (max-width: 800px) {
  .org { grid-template-columns: 1fr; height: auto; max-height: none; overflow: visible; }
  .org-main { height: auto; overflow: visible; }
  .org-main > .org-sheet:not([hidden]) { overflow: visible; }
  .org-sheet__card .auth-form,
  .org-sheet__actions { grid-template-columns: 1fr; }
  .org-row { grid-template-columns: 1fr; }
  .org-row__actions { justify-content: flex-start; }
  .org-module-admin-form { grid-template-columns: 1fr; }
  .org-bugs { grid-template-columns: 1fr; }
}

.org-panel-bugs:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden !important;
}
.org-bugs-head .auth-hint { margin: 0 0 0.25rem; max-width: 62rem; }
.org-bugs {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.2fr);
  gap: 1rem;
  overflow: hidden;
}
.org-card--bugs { overflow: hidden; }
.org-bugs__list,
.org-bugs__detail {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3d8fc4 #edf2f7;
}
.bug-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bug-filters button {
  appearance: none;
  border: 1px solid rgba(22, 58, 92, 0.15);
  background: #fff;
  color: #163a5c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.bug-filters button.is-on,
.bug-filters button:hover {
  background: #3d8fc4;
  border-color: #3d8fc4;
  color: #fff;
}
.bug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.bug-actions .auth-submit {
  width: auto;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}
.bug-file { cursor: pointer; }
.bug-create {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 12px;
  background: #f7fafc;
}
.bug-create__large,
.bug-create .bug-actions { grid-column: 1 / -1; }
.bug-item {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(22, 58, 92, 0.12);
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  color: #163a5c;
  font: inherit;
}
.bug-item.is-on { border-color: #3d8fc4; background: rgba(61, 143, 196, 0.1); }
.bug-item strong { font-size: 0.92rem; }
.bug-item span { font-size: 0.78rem; color: rgba(22, 58, 92, 0.7); }
.bug-banner {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fef3f2;
  border: 1px solid rgba(180, 35, 24, 0.25);
  color: #b42318;
  font-size: 0.88rem;
}
.bug-timeline { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.bug-msg {
  border: 1px solid rgba(22, 58, 92, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #f7fafc;
}
.bug-msg--ops { background: rgba(61, 143, 196, 0.1); border-color: rgba(61, 143, 196, 0.35); }
.bug-msg header { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: rgba(22, 58, 92, 0.65); }
.bug-msg p { margin: 0.3rem 0 0; white-space: pre-wrap; }
.bug-gravite--bloquant { color: #b42318; font-weight: 700; }
.bug-gravite--majeur { color: #b54708; font-weight: 700; }
.bug-note { display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.org-bugs__list { display: grid; gap: 0.45rem; align-content: start; }

.personnes-barre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin: 0 0 0.75rem;
}
.personnes-barre label {
  display: grid;
  gap: 0.25rem;
  min-width: min(100%, 18rem);
  font-weight: 600;
  color: #163a5c;
}
.personnes-barre input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(22, 58, 92, 0.2);
  border-radius: 8px;
  color: #163a5c;
  background: #fff;
}
.personnes-bloc { margin: 0 0 1.1rem; }
.personnes-bloc h3 { margin: 0 0 0.35rem; font-size: 1rem; color: #163a5c; }
.personnes-table { overflow-x: auto; }
.personnes-liste { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.personnes-liste th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
}
.personnes-liste td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
  vertical-align: top;
  color: #163a5c;
}
.personnes-action { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.personnes-fiche-action { margin: 0.65rem 0 0; }
.personnes-marqueur { font-weight: 700; color: #163a5c; }

[data-panel="sauvegardes"] { padding-bottom: 0; }
[data-panel="sauvegardes"] h2 { margin: 0; font-size: 1.15rem; }
.cockpit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cockpit-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.cockpit-btn-sec {
  appearance: none;
  border: 1px solid rgba(22, 58, 92, 0.15);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: #163a5c;
  cursor: pointer;
}
.cockpit-btn-sec:hover {
  background: #f2f7fb;
  border-color: #3d8fc4;
}
.cockpit-hint {
  margin: 0;
  color: rgba(22, 58, 92, 0.7);
  max-width: none;
}
.cockpit-sauv-etat { margin: 0 0 1rem; font-weight: 600; color: #163a5c; }
.cockpit-sauv-jauge { margin: 0 0 1rem; }
.cockpit-sauv-jauge__piste {
  height: 10px;
  background: #f2f7fb;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 999px;
  overflow: hidden;
}
.cockpit-sauv-jauge__piste span {
  display: block;
  height: 100%;
  width: 0;
  background: #3d8fc4;
  transition: width 0.4s ease;
}
.cockpit-sauv-jauge p { margin: 0.4rem 0 0; }
.cockpit-sauv-corps {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cockpit-sauv-grilles,
.cockpit-sauv-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.cockpit-sauv-grilles > div {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
[data-panel="sauvegardes"] .cockpit-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
[data-panel="sauvegardes"] .cockpit-toolbar,
[data-panel="sauvegardes"] .cockpit-sauv-ligne,
[data-panel="sauvegardes"] .cockpit-sauv-jauge,
[data-panel="sauvegardes"] .cockpit-hint,
[data-panel="sauvegardes"] .auth-hint,
[data-panel="sauvegardes"] .cockpit-sauv-etat {
  flex: none;
  margin-bottom: 0;
}
[data-panel="sauvegardes"] .auth-submit,
[data-panel="sauvegardes"] .cockpit-btn-sec {
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
}
[data-panel="sauvegardes"] .cockpit-hint,
[data-panel="sauvegardes"] .auth-hint,
[data-panel="sauvegardes"] .cockpit-sauv-etat {
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.25;
}
[data-panel="sauvegardes"] .cockpit-sauv-ligne__barre {
  margin-bottom: 0.15rem;
  gap: 0.35rem;
}
[data-panel="sauvegardes"] .cockpit-sauv-ligne__heure { font-size: 0.95rem; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__scene { padding: 0.2rem 0.55rem 0.25rem; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__regle { height: 1.05rem; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__piste { margin-top: 0.1rem; gap: 0.25rem; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__curseur {
  top: 1.25rem;
  bottom: 0.25rem;
  left: calc(0.55rem + 5.6rem);
  right: 0.55rem;
}
[data-panel="sauvegardes"] [data-sauv-liste][hidden],
[data-panel="sauvegardes"] .cockpit-sauv-journal[hidden] { display: none; }
[data-panel="sauvegardes"] .cockpit-sauv-journal {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
[data-panel="sauvegardes"] .cockpit-sauv-journal__filtres {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.35rem 0.55rem;
}
[data-panel="sauvegardes"] .cockpit-sauv-journal__filtres label {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #163a5c;
}
[data-panel="sauvegardes"] .cockpit-sauv-journal__filtres input,
[data-panel="sauvegardes"] .cockpit-sauv-journal__filtres select {
  font: inherit;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #163a5c;
}
[data-panel="sauvegardes"] .cockpit-sauv-journal .cockpit-table-wrap { flex: 1; min-height: 0; }
[data-panel="sauvegardes"] .cockpit-sauv-journal td {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-panel="sauvegardes"] .cockpit-sauv-journal tr[data-etat="ok"] td {
  background: #ecfdf3;
}

[data-panel="sauvegardes"] .cockpit-sauv-journal tr[data-etat="erreur"] td {
  background: #fef3f2;
}

[data-panel="sauvegardes"] .cockpit-sauv-journal tr[data-etat="en_cours"] td {
  background: rgba(61, 143, 196, 0.14);
}

[data-panel="sauvegardes"] .cockpit-sauv-journal tr[data-id] {
  cursor: pointer;
}

[data-panel="sauvegardes"] .cockpit-sauv-journal tr[data-detail-de] td {
  white-space: pre-wrap;
  max-width: none;
  overflow: visible;
  background: #f7fafc;
  color: #163a5c;
  font-size: 0.82rem;
  line-height: 1.45;
  cursor: text;
}

[data-panel="sauvegardes"] .cockpit-sauv-journal__note {
  flex: none;
  margin: 0;
  font-size: 0.78rem;
  color: rgba(22, 58, 92, 0.72);
}
[data-panel="sauvegardes"] .cockpit-sauv-remise {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 10px;
}
[data-panel="sauvegardes"] .cockpit-sauv-remise label {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #163a5c;
  flex: 1 1 11rem;
  min-width: 0;
}
[data-panel="sauvegardes"] .cockpit-sauv-remise input,
[data-panel="sauvegardes"] .cockpit-sauv-remise select {
  font: inherit;
  width: 100%;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #163a5c;
}
[data-panel="sauvegardes"] .cockpit-sauv-remise__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 16rem;
}
[data-panel="sauvegardes"] .cockpit-btn-danger {
  padding: 0.28rem 0.55rem;
  font-size: 0.82rem;
}
[data-panel="sauvegardes"] .cockpit-sauv-ligne__rail { height: 16px; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__trait { top: 6px; }
[data-panel="sauvegardes"] .cockpit-sauv-ligne__losange,
[data-panel="sauvegardes"] .cockpit-sauv-ligne__point {
  top: 2px;
  width: 11px;
  height: 11px;
  margin-left: -5px;
}
[data-panel="sauvegardes"] .cockpit-sauv-titre { margin: 0; font-size: 0.88rem; }
@media (max-width: 980px) {
  .org-main > [data-panel="sauvegardes"]:not([hidden]) { overflow: auto; }
  [data-panel="sauvegardes"] .cockpit-sauv-remise__actions { flex-basis: 100%; }
}
.cockpit-sauv-titre { margin: 0 0 0.6rem; font-size: 0.95rem; color: #163a5c; }
.cockpit-sauv-actions label {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0;
  font-weight: 600;
  color: #163a5c;
}
.cockpit-sauv-actions input,
.cockpit-sauv-actions select {
  font: inherit;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #163a5c;
}
.cockpit-btn-danger {
  appearance: none;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 600;
  background: #fef3f2;
  color: #b42318;
  cursor: pointer;
}
.cockpit-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
}
.cockpit-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cockpit-table th,
.cockpit-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(22, 58, 92, 0.14);
}
.cockpit-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
  background: #f7fafc;
}
.cockpit-table tr[data-ms] { cursor: pointer; }
[data-panel="sauvegardes"] .cockpit-table tbody tr[data-ms]:hover td {
  background: rgba(61, 143, 196, 0.1);
}
.cockpit-sauv-ligne { margin: 0 0 1.25rem; }
.cockpit-sauv-ligne__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.cockpit-sauv-ligne__heure { margin: 0; font-size: 1.15rem; font-weight: 700; color: #163a5c; }
.cockpit-sauv-ligne__zoom { display: flex; gap: 0.4rem; }
.cockpit-sauv-ligne__zoom .is-on { background: #3d8fc4; color: #fff; border-color: #3d8fc4; }
.cockpit-sauv-ligne__scene {
  position: relative;
  background: #fff;
  border: 1px solid rgba(22, 58, 92, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.8rem 0.85rem;
  touch-action: none;
  cursor: grab;
}
.cockpit-sauv-ligne__regle { position: relative; height: 1.4rem; margin-left: 5.6rem; }
.cockpit-sauv-ligne__regle span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(22, 58, 92, 0.65);
  white-space: nowrap;
}
.cockpit-sauv-ligne__piste {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.cockpit-sauv-ligne__piste > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(22, 58, 92, 0.65);
}
.cockpit-sauv-ligne__rail {
  position: relative;
  height: 28px;
  background: #f2f7fb;
  border-radius: 999px;
  overflow: hidden;
}
.cockpit-sauv-ligne__trait {
  position: absolute;
  top: 12px;
  height: 4px;
  background: #3d8fc4;
  border-radius: 999px;
}
.cockpit-sauv-ligne__losange,
.cockpit-sauv-ligne__point {
  position: absolute;
  top: 7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  padding: 0;
  border: 2px solid #fff;
  cursor: pointer;
}
.cockpit-sauv-ligne__losange { background: #163a5c; transform: rotate(45deg) scale(0.75); }
.cockpit-sauv-ligne__point { background: #3d8fc4; border-radius: 50%; }
.cockpit-sauv-ligne__point.is-on { box-shadow: 0 0 0 3px rgba(61, 143, 196, 0.35); }
.cockpit-sauv-ligne__curseur {
  position: absolute;
  top: 2.1rem;
  bottom: 0.85rem;
  left: calc(0.8rem + 5.6rem);
  right: 0.8rem;
  pointer-events: none;
}
.cockpit-sauv-ligne__curseur i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  margin-left: -8px;
  background: transparent;
  pointer-events: auto;
  cursor: ew-resize;
}
.cockpit-sauv-ligne__curseur i::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3d8fc4;
}
.cockpit-sauv-ligne__curseur i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: #163a5c;
}
