:root {
  --sidebar-width: 270px;
  --sidebar-collapsed-width: 86px;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #182033;
  --muted: #687188;
  --line: #e6e9f2;
  --primary: #5b4df2;
  --primary-dark: #4338ca;
  --primary-soft: #ecebff;
  --sky: #38bdf8;
  --success: #0f9f6e;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 14px 40px rgba(21, 32, 62, 0.08);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

body.theme-dark {
  --bg: #130f24;
  --card: #211a3a;
  --text: #f8fafc;
  --muted: #c4b5fd;
  --line: #43345f;
  --primary: #a78bfa;
  --primary-dark: #ddd6fe;
  --primary-soft: #332255;
  --sky: #67e8f9;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 85% 12%, rgba(167, 139, 250, 0.16), transparent 30%),
    #130f24;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(135deg, #f7f8ff 0%, #eef2ff 100%);
}

.auth-card {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 10px 14px 10px 12px;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-back-link:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(56, 189, 248, 0.16));
  border-color: rgba(79, 70, 229, 0.32);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.14);
  transform: translateY(-1px);
}

.auth-back-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.8;
}

.auth-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.auth-brand h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.auth-brand p,
.auth-switch {
  margin: 0;
  color: var(--muted);
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.auth-legal-links a {
  color: var(--primary-dark);
}

.rgpd-consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  color: #526078;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.rgpd-consent-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.rgpd-consent-row a {
  color: var(--primary-dark);
  font-weight: 950;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: rgba(91, 77, 242, 0.25);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-requirements {
  display: grid;
  gap: 7px;
  margin: -4px 0 4px;
  padding: 0;
  list-style: none;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 850;
}

.password-requirements li::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.password-requirements li.valid {
  color: var(--success);
}

.password-requirements li.valid::before {
  content: "✓";
  background: var(--success);
  border-color: var(--success);
}

.captcha-field {
  display: grid;
  gap: 9px;
}

.captcha-field span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
}

.captcha-field strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.landing-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8f9ff 0%, #eef4ff 44%, #f7f8fb 100%);
}

.legal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(91, 77, 242, 0.12), transparent 30%),
    linear-gradient(180deg, #f8f9ff 0%, #eef4ff 100%);
}

.legal-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.legal-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(24, 32, 51, 0.1);
}

.legal-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-card section {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.legal-card h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
}

.legal-card p {
  margin: 0;
  color: #5f6b85;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.legal-updated {
  color: var(--primary-dark) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.legal-footer-links a {
  color: var(--primary-dark);
}

.landing-one-screen {
  height: 100vh;
  overflow: hidden;
}

.landing-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.landing-one-screen .landing-shell {
  height: 100vh;
  padding: 14px 0;
}

.landing-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.landing-legal-links a {
  color: var(--primary-dark);
}

.landing-hero {
  min-height: min(760px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.94)),
    #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.9);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(24, 32, 51, 0.1);
}

.landing-one-screen .landing-hero {
  height: calc(100vh - 28px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
}

.landing-one-screen .landing-nav {
  padding-bottom: 10px;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.landing-nav-actions,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.landing-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(207, 216, 232, 0.95);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(24, 32, 51, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 77, 242, 0.32);
  box-shadow: 0 16px 34px rgba(24, 32, 51, 0.09);
}

.landing-nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(91, 77, 242, 0.24);
}

.landing-nav-link.is-active:hover {
  box-shadow: 0 18px 38px rgba(91, 77, 242, 0.3);
}

.landing-hero-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 32px;
  align-items: stretch;
  padding: 18px 10px 14px;
}

.landing-one-screen .landing-hero-grid {
  gap: 22px;
  align-items: stretch;
  padding: 8px 8px 10px;
}

.landing-copy {
  max-width: 680px;
  display: grid;
  align-content: center;
  padding-right: 8px;
}

.landing-kicker {
  margin: 0 0 13px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-module-copy .landing-kicker {
  color: #111827;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 1000;
}

.landing-copy h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.landing-points li {
  position: relative;
  display: block;
  max-width: 650px;
  padding: 4px 0 4px 28px;
  color: #59657c;
  font-size: clamp(22px, 2.28vw, 32px);
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
}

.landing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 999px;
  box-shadow: none;
}

.landing-points strong {
  display: inline;
  margin: 0;
  color: #111827;
  font-size: inherit;
  font-weight: 950;
  line-height: inherit;
}

.landing-one-screen .landing-copy h1 {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
}

.landing-one-screen .landing-points {
  gap: 14px;
  margin-bottom: 26px;
}

.landing-one-screen .landing-points li {
  font-size: clamp(19px, 1.78vw, 25px);
}

.landing-one-screen .landing-points strong {
  font-size: inherit;
}

.landing-lead {
  max-width: 560px;
  margin: 22px 0 28px;
  color: #5f6b85;
  font-size: 19px;
  line-height: 1.55;
}

.landing-one-screen .landing-lead {
  margin: 16px 0 18px;
  font-size: 16px;
  line-height: 1.45;
}

.landing-main-action {
  min-height: 52px;
  padding: 0 20px;
}

.landing-actions {
  margin-top: 2px;
}

.landing-main-action svg,
.landing-feature svg {
  width: 20px;
  height: 20px;
}

.landing-preview {
  min-width: 0;
  align-self: center;
  width: 100%;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

.preview-top {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  background: #94a3b8;
  border-radius: 999px;
}

.preview-dot:nth-child(1) {
  background: #fb7185;
}

.preview-dot:nth-child(2) {
  background: #fbbf24;
}

.preview-dot:nth-child(3) {
  background: #34d399;
}

.preview-dot:nth-child(1) {
  animation: preview-dot-pulse 4.8s ease-in-out infinite;
}

.preview-dot:nth-child(2) {
  animation: preview-dot-pulse 4.8s ease-in-out 0.25s infinite;
}

.preview-dot:nth-child(3) {
  animation: preview-dot-pulse 4.8s ease-in-out 0.5s infinite;
}

.preview-board {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 430px;
}

.landing-one-screen .preview-board {
  min-height: 372px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 14px;
  background: rgba(15, 23, 42, 0.82);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-sidebar span {
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
}

.preview-sidebar span:first-child {
  background: #5b4df2;
}

.preview-content {
  position: relative;
  min-height: 430px;
  padding: 18px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(226, 232, 240, 0.2) 0 1px, transparent 1px 33.333%),
    repeating-linear-gradient(180deg, rgba(226, 232, 240, 0.14) 0 1px, transparent 1px 76px),
    #f8fafc;
}

.preview-content::after {
  content: "";
  position: absolute;
  left: 67%;
  top: 150px;
  z-index: 1;
  width: 27%;
  min-height: 94px;
  border: 2px dashed rgba(91, 77, 242, 0.38);
  border-radius: 16px;
  background: rgba(91, 77, 242, 0.08);
  opacity: 0;
  animation: preview-drop-target 9s ease-in-out infinite;
}

.landing-one-screen .preview-content {
  min-height: 372px;
}

.landing-one-screen .preview-content::after {
  top: 144px;
  min-height: 96px;
}

.preview-stat {
  display: flex;
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.preview-stat span {
  color: var(--primary);
  font-weight: 900;
}

.preview-week {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.preview-week span {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  background: #eef2ff;
  border: 1px solid #dde4f6;
  border-radius: 14px;
}

.preview-week strong {
  color: #172033;
  font-size: 13px;
  font-weight: 950;
}

.preview-week small {
  color: #7a869f;
  font-size: 11px;
  font-weight: 850;
}

.preview-week span:nth-child(1) {
  animation: preview-week-active 5.6s ease-in-out infinite;
}

.preview-week span:nth-child(3) {
  animation: preview-week-active 5.6s ease-in-out 1.4s infinite;
}

.landing-one-screen .preview-week span {
  height: 34px;
}

.preview-event {
  position: absolute;
  z-index: 3;
  width: 27%;
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px 13px 11px 16px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #d8e1ef;
  border-left: 7px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  will-change: transform;
}

.landing-one-screen .preview-event {
  min-height: 82px;
  padding: 10px 12px 10px 16px;
}

.preview-event small {
  color: #5f6b85;
  font-weight: 900;
}

.preview-time-swap {
  position: relative;
  display: block;
  min-height: 1.15em;
}

.preview-time-swap span {
  display: block;
}

.preview-time-swap .time-after {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

.event-two .time-before {
  animation: preview-time-before 9s ease-in-out infinite;
}

.event-two .time-after {
  animation: preview-time-after 9s ease-in-out infinite;
}

.preview-event strong {
  text-transform: uppercase;
}

.preview-event span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.preview-event-qr-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 28px;
  height: 28px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  animation: preview-qr-pulse 9s ease-in-out infinite;
}

.preview-event-qr-chip i {
  display: block;
  min-width: 0;
  min-height: 0;
  background: #111827;
  border-radius: 2px;
}

.preview-event-qr-chip i:nth-child(2),
.preview-event-qr-chip i:nth-child(3) {
  background: #5b4df2;
}

.event-one {
  left: 5%;
  top: 150px;
  animation: preview-card-appear 9s ease-in-out infinite;
}

.event-two {
  left: 5%;
  top: 262px;
  border-left-color: #0ea5e9;
  animation: preview-card-drag 9s ease-in-out infinite;
}

.event-three {
  left: 36%;
  top: 328px;
  border-left-color: #f59e0b;
  animation: preview-card-fill 9s ease-in-out infinite;
}

.preview-fill-event {
  opacity: 0;
  min-height: 68px;
  gap: 2px;
  padding: 9px 10px 9px 14px;
  font-size: 13px;
  animation: preview-card-fill 9s ease-in-out infinite;
}

.event-four {
  left: 36%;
  top: 150px;
  border-left-color: #22c55e;
}

.event-five {
  left: 67%;
  top: 276px;
  border-left-color: #ec4899;
}

.event-six {
  left: 5%;
  top: 276px;
  border-left-color: #8b5cf6;
}

.preview-drag-hand {
  position: absolute;
  right: -17px;
  bottom: -17px;
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #ffffff;
  border: 2px solid rgba(91, 77, 242, 0.32);
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(91, 77, 242, 0.22);
  opacity: 0;
  pointer-events: none;
  animation: preview-hand-grab 9s ease-in-out infinite;
}

.preview-drag-hand svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.8;
}

.preview-drag-hand::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(91, 77, 242, 0.18);
  border-radius: inherit;
}

@keyframes preview-card-appear {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.96);
  }

  10%,
  86% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.98);
  }
}

@keyframes preview-card-drag {
  0%,
  14% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }

  22%,
  34% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  48% {
    opacity: 1;
    transform: translate3d(230%, -112px, 0) rotate(-1deg) scale(1.03);
    box-shadow: 0 24px 48px rgba(91, 77, 242, 0.22);
  }

  74%,
  88% {
    opacity: 1;
    transform: translate3d(230%, -112px, 0) scale(1);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  100% {
    opacity: 0;
    transform: translate3d(230%, -124px, 0) scale(0.98);
  }
}

@keyframes preview-card-fill {
  0%,
  58% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.97);
  }

  66%,
  92% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.98);
  }
}

@keyframes preview-hand-grab {
  0%,
  18% {
    opacity: 0;
    transform: translate3d(10px, 10px, 0) rotate(-8deg) scale(0.9);
  }

  24% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
  }

  34%,
  48% {
    opacity: 1;
    transform: translate3d(0, 2px, 0) rotate(-8deg) scale(0.94);
  }

  54% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1.04);
  }

  62% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.86);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.86);
  }
}

@keyframes preview-time-before {
  0%,
  39%,
  100% {
    opacity: 1;
  }

  46%,
  88% {
    opacity: 0;
  }
}

@keyframes preview-time-after {
  0%,
  39%,
  100% {
    opacity: 0;
  }

  46%,
  88% {
    opacity: 1;
  }
}

@keyframes preview-card-drag-mobile {
  0%,
  14% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }

  22%,
  34% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  48% {
    opacity: 1;
    transform: translate3d(0, 162px, 0) rotate(-1deg) scale(1.03);
    box-shadow: 0 24px 48px rgba(91, 77, 242, 0.22);
  }

  74%,
  88% {
    opacity: 1;
    transform: translate3d(0, 162px, 0) scale(1);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 148px, 0) scale(0.98);
  }
}

@keyframes preview-card-late {
  0%,
  66% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.96);
  }

  74%,
  88% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.98);
  }
}

@keyframes preview-drop-target {
  0%,
  28%,
  62%,
  100% {
    opacity: 0;
    transform: scale(0.98);
  }

  36%,
  54% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preview-week-active {
  0%,
  100% {
    background: #eef2ff;
    border-color: #dde4f6;
  }

  45%,
  60% {
    background: #dbeafe;
    border-color: rgba(14, 165, 233, 0.38);
  }
}

@keyframes preview-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes preview-qr-pulse {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.82);
  }

  62%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-dot,
  .preview-week span,
  .preview-event,
  .preview-fill-event,
  .preview-drag-hand,
  .team-preview-member,
  .team-preview-progress i,
  .stock-preview-stats span,
  .stock-preview-row,
  .stock-preview-modal,
  .stock-modal-input::before,
  .stock-modal-input strong,
  .stock-preview-row-added,
  .provider-preview-main,
  .provider-preview-card,
  .provider-stage-photo img,
  .provider-photo-glow,
  .incident-preview-card,
  .incident-click-cursor,
  .incident-preview-modal,
  .incident-modal-field::before,
  .incident-modal-field,
  .incident-preview-resolution,
  .dashboard-preview-weather,
  .dashboard-preview-line,
  .mail-preview-message,
  .mail-preview-incoming,
  .settings-preview-card,
  .settings-preview-grid article,
  .settings-preview-toggle i,
  .event-two .time-before,
  .event-two .time-after,
  .preview-content::after {
    animation: none !important;
  }
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.landing-features-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #111827;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-features-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 77, 242, 0.22), rgba(14, 165, 233, 0));
}

.landing-one-screen .landing-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 6px;
}

.landing-one-screen .landing-features-title {
  font-size: clamp(19px, 1.55vw, 23px);
}

.landing-feature {
  min-height: 158px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(218, 225, 238, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.06);
}

.landing-one-screen .landing-feature {
  min-height: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 15px;
}

.landing-feature svg {
  color: var(--primary);
}

.landing-feature h2 {
  margin: 14px 0 9px;
  color: #172033;
  font-size: 19px;
}

.landing-one-screen .landing-feature h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.landing-feature p {
  margin: 0;
  color: #64748b;
  line-height: 1.46;
}

.landing-one-screen .landing-feature p {
  font-size: 12.5px;
  line-height: 1.28;
}

@media (min-width: 981px) and (max-height: 780px) {
  .landing-one-screen .landing-shell {
    padding: 10px 0;
  }

  .landing-one-screen .landing-hero {
    height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 22px;
  }

  .landing-one-screen .landing-logo {
    font-size: 20px;
  }

  .landing-one-screen .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .landing-one-screen .landing-hero-grid {
    gap: 18px;
    padding: 6px 6px 8px;
  }

  .landing-one-screen .landing-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .landing-one-screen .landing-copy h1 {
    font-size: clamp(30px, 4.1vw, 50px);
  }

  .landing-one-screen .landing-points {
    gap: 9px;
  }

  .landing-one-screen .landing-points li {
    padding-left: 22px;
    font-size: clamp(16px, 1.42vw, 20px);
  }

  .landing-one-screen .landing-points strong {
    font-size: inherit;
  }

  .landing-one-screen .landing-points li::before {
    top: 0.48em;
    width: 8px;
    height: 8px;
  }

  .landing-one-screen .landing-lead {
    margin: 12px 0 14px;
    font-size: 15px;
    line-height: 1.34;
  }

  .landing-one-screen .landing-main-action {
    min-height: 44px;
  }

  .landing-one-screen .preview-top {
    min-height: 44px;
  }

  .landing-one-screen .preview-board,
  .landing-one-screen .preview-content {
    min-height: 352px;
  }

  .landing-one-screen .preview-sidebar {
    gap: 10px;
    padding: 12px;
  }

  .landing-one-screen .preview-sidebar span {
    height: 34px;
  }

  .landing-one-screen .preview-stat {
    margin-bottom: 10px;
    padding: 9px 12px;
  }

  .landing-one-screen .preview-week {
    margin-bottom: 8px;
  }

  .landing-one-screen .preview-week span {
    height: 26px;
  }

  .landing-one-screen .preview-event {
    min-height: 66px;
    gap: 2px;
    padding: 8px 10px 8px 14px;
    font-size: 13px;
    border-radius: 13px;
  }

  .landing-one-screen .event-two {
    top: 234px;
  }

  .landing-one-screen .event-three {
    top: 268px;
  }

  .landing-one-screen .landing-features {
    gap: 8px;
    margin-top: 4px;
  }

  .landing-one-screen .landing-feature {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .landing-one-screen .landing-feature h2 {
    font-size: 14px;
  }

  .landing-one-screen .landing-feature p {
    font-size: 12px;
    line-height: 1.22;
  }
}

.landing-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  color: #ffffff;
  background: #111827;
  border-radius: 22px;
}

.landing-bottom h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.landing-bottom .landing-kicker {
  color: #93c5fd;
}

.landing-bottom .btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  color: transparent;
  font-size: 0;
  font-weight: 900;
  background: transparent url("icons/animdesk-logo-mark.png") center / 118% auto no-repeat;
  box-shadow: 0 10px 24px rgba(91, 77, 242, 0.18);
}

.brand-mark::before {
  display: none;
}

.brand-mark::after {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  max-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: width 0.2s ease, transform 0.2s ease;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(91, 77, 242, 0.22);
  border-radius: 999px;
}

.theme-dark .sidebar {
  background: rgba(25, 18, 44, 0.94);
}

.sidebar-brand {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 2px 0 14px;
  border-bottom: 1px solid #e8edf6;
}

.brand-topline {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.brand-title {
  min-width: 0;
}

.brand-title strong,
.brand-title span {
  display: block;
}

.brand-title strong {
  overflow: hidden;
  color: #111827;
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-dark .brand-title strong,
.theme-dark .mail-item strong,
.theme-dark .timeline-card h3 {
  color: var(--text);
}

.brand-title span {
  overflow: hidden;
  margin-top: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.theme-dark .brand-title span,
.theme-dark .brand-user-role,
.theme-dark .nav-link,
.theme-dark .page-header p {
  color: var(--muted) !important;
}

.brand-user-panel {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(91, 77, 242, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(91, 77, 242, 0.08), rgba(56, 189, 248, 0.06)),
    #ffffff;
}

.theme-dark .brand-user-panel,
.theme-dark .card,
.theme-dark .table-card,
.theme-dark .mail-sidebar-panel,
.theme-dark .mail-reader,
.theme-dark .annonce-modal-card,
.theme-dark .calendar-shell,
.theme-dark .option-card {
  background: var(--card);
  border-color: var(--line);
}

.brand-user-name,
.brand-user-role {
  max-width: 100%;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
}

.brand-user-name {
  color: var(--primary-dark) !important;
  font-size: 13px !important;
  font-weight: 950;
  white-space: nowrap;
}

.brand-user-role {
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
}

.sidebar-toggle,
.mobile-nav-toggle,
.icon-btn {
  border: 0;
  border-radius: 12px;
  background: #f2f4fb;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.sidebar-toggle {
  margin-left: 0;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  justify-self: end;
}

.sidebar-nav {
  flex: 0 0 auto;
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  gap: 7px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: #394154;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.nav-count {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  color: #ffffff;
  background: var(--danger);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.nav-count::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border: 2px solid var(--card);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: #394154;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-group-label::-webkit-details-marker {
  display: none;
}

.nav-group-label svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.nav-group-arrow {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  margin-left: auto;
  opacity: 0.62;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-group[open] .nav-group-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-group-label:hover {
  color: #c2410c;
  background: #fff7ed;
}

.nav-group.active .nav-group-label {
  color: #c2410c;
  background: #fff7ed;
}

.nav-sub-list {
  display: grid;
  gap: 4px;
  margin-left: 22px;
  padding-left: 13px;
  border-left: 2px solid #fed7aa;
}

.nav-sub-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-sub-link:hover,
.nav-sub-link.active {
  color: #c2410c;
  background: #ffedd5;
}

.theme-dark .nav-group-label,
.theme-dark .nav-sub-link {
  color: var(--muted);
}

.theme-dark .nav-group.active .nav-group-label,
.theme-dark .nav-sub-link:hover,
.theme-dark .nav-sub-link.active {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
}

.nav-link.danger {
  color: var(--danger);
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 28px;
  transition: margin-left 0.2s ease;
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .brand-title,
.sidebar-collapsed .brand-user-panel,
.sidebar-collapsed .nav-link span,
.sidebar-collapsed .nav-group-label span,
.sidebar-collapsed .nav-group-arrow,
.sidebar-collapsed .nav-sub-list {
  display: none;
}

.sidebar-collapsed .nav-group-label {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .sidebar-brand {
  justify-items: center;
  padding-bottom: 12px;
}

.sidebar-collapsed .brand-topline {
  grid-template-columns: 44px;
  justify-items: center;
}

.sidebar-collapsed .sidebar-toggle {
  margin: 0 auto;
  display: inline-grid;
}

.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card,
.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
}

.stat-value {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 900;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-stat-card {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8ff 100%);
  border: 1px solid rgba(218, 225, 238, 0.95);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.07);
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.admin-stat-card .admin-satisfaction-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 62px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--satisfaction-color);
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(24, 32, 51, 0.12);
}

.admin-stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.admin-account-card {
  margin-top: 10px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 22px 8px;
}

.admin-card-header h2 {
  margin: 4px 0 0;
  color: var(--text);
}

.admin-account-name {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.satisfaction-summary-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.satisfaction-score-card,
.satisfaction-chart-card,
.satisfaction-comments {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.satisfaction-score-card {
  color: #ffffff;
  background: var(--satisfaction-color);
  border-color: color-mix(in srgb, var(--satisfaction-color) 42%, transparent);
}

.satisfaction-score-card .option-kicker,
.satisfaction-score-context,
.satisfaction-score-card strong,
.satisfaction-score-card p {
  color: #ffffff;
}

.satisfaction-score-context {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.satisfaction-score-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.95;
}

.satisfaction-score-card p {
  margin: 12px 0 0;
  font-weight: 800;
}

.satisfaction-stars {
  margin-top: 16px;
  color: var(--satisfaction-star-color, #f59e0b);
  font-size: 24px;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.satisfaction-chart {
  width: 100%;
  min-height: 210px;
}

.satisfaction-chart text {
  fill: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.satisfaction-chart .chart-grid-line {
  stroke: #dbe4f0;
  stroke-dasharray: 4 6;
  stroke-width: 1.2;
}

.satisfaction-chart .chart-axis {
  stroke: #94a3b8;
  stroke-width: 2;
}

.chart-y-label {
  text-anchor: start;
}

.chart-x-label {
  text-anchor: middle;
}

.chart-axis-title {
  fill: #334155;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chart-axis-title-x {
  text-anchor: middle;
}

.satisfaction-chart polyline {
  fill: none;
  stroke: #5b4df2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.satisfaction-chart-point {
  outline: none;
}

.satisfaction-chart-point circle {
  fill: #ffffff;
  stroke: var(--satisfaction-color);
  stroke-width: 4;
  transition: r 0.15s ease, filter 0.15s ease;
}

.satisfaction-chart-point:hover circle,
.satisfaction-chart-point:focus circle {
  r: 7px;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.18));
}

.chart-point-label {
  opacity: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: #ffffff;
  stroke-width: 5px;
  text-anchor: middle;
  transition: opacity 0.15s ease;
}

.satisfaction-chart-point:hover .chart-point-label,
.satisfaction-chart-point:focus .chart-point-label {
  opacity: 1;
}

.satisfaction-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 0 22px 22px;
}

.satisfaction-family-card {
  padding: 18px;
  color: #ffffff;
  background: var(--satisfaction-color);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.10);
}

.satisfaction-family-card span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.satisfaction-family-card strong {
  display: block;
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
}

.satisfaction-family-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.satisfaction-percent-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--satisfaction-color);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.satisfaction-level-good {
  background: #16a34a;
}

.satisfaction-level-medium {
  background: #f59e0b;
}

.satisfaction-level-bad {
  background: #dc2626;
}

.satisfaction-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 900;
}

.satisfaction-breadcrumb a {
  color: var(--primary);
}

.satisfaction-breadcrumb strong {
  color: var(--text);
}

.satisfaction-day-focus,
.satisfaction-detail-score {
  color: #ffffff;
  background: var(--satisfaction-color);
}

.satisfaction-day-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.satisfaction-animator-section {
  margin-bottom: 18px;
}

.satisfaction-animator-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.satisfaction-animator-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto minmax(170px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 6px solid var(--animateur-color, #5b4df2);
  border-radius: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.satisfaction-animator-row:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 77, 242, 0.32);
  border-left-color: var(--animateur-color, #5b4df2);
  box-shadow: 0 14px 34px rgba(24, 32, 51, 0.08);
}

.satisfaction-animator-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--animateur-color, #5b4df2);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 950;
}

.satisfaction-animator-main strong,
.satisfaction-animator-main small,
.satisfaction-animator-meta,
.satisfaction-animator-empty {
  display: block;
}

.satisfaction-animator-main strong {
  font-size: 17px;
}

.satisfaction-animator-main small,
.satisfaction-animator-meta {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.satisfaction-animator-stars {
  margin-top: 0;
  color: #f59e0b;
  font-size: 18px;
  white-space: nowrap;
}

.satisfaction-animator-empty {
  grid-column: 3 / -1;
  justify-self: end;
  padding: 8px 12px;
  color: var(--muted);
  background: #eef2f7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.satisfaction-day-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.satisfaction-day-row:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 77, 242, 0.32);
  box-shadow: 0 14px 34px rgba(24, 32, 51, 0.08);
}

.satisfaction-day-row strong,
.satisfaction-day-row small {
  display: block;
}

.satisfaction-day-row strong {
  font-size: 17px;
}

.satisfaction-day-row small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.satisfaction-day-focus p,
.satisfaction-detail-score span,
.satisfaction-detail-score small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.satisfaction-day-focus,
.satisfaction-detail-card,
.satisfaction-day-events {
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.satisfaction-day-focus {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--satisfaction-color);
}

.satisfaction-day-focus h2 {
  margin: 4px 0 8px;
  color: #ffffff;
}

.satisfaction-day-focus .option-kicker {
  color: rgba(255, 255, 255, 0.9);
}

.satisfaction-day-focus > strong {
  color: #ffffff;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 0.95;
}

.satisfaction-event-list {
  display: grid;
  gap: 10px;
  padding: 0 22px 22px;
}

.satisfaction-event-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.satisfaction-event-row:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 77, 242, 0.32);
  box-shadow: 0 14px 34px rgba(24, 32, 51, 0.08);
}

.satisfaction-event-row time {
  color: var(--primary);
  font-size: 17px;
  font-weight: 950;
}

.satisfaction-event-row strong,
.satisfaction-event-row small {
  display: block;
}

.satisfaction-event-row small {
  color: var(--muted);
  font-weight: 800;
}

.satisfaction-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.satisfaction-detail-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.satisfaction-detail-card p {
  color: var(--muted);
  font-weight: 800;
}

.satisfaction-detail-score {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
}

.satisfaction-detail-score strong {
  color: #ffffff;
  font-size: 48px;
  line-height: 1;
}

.satisfaction-comments {
  margin-top: 18px;
}

.satisfaction-comment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.satisfaction-comment-card {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.satisfaction-comment-card strong,
.satisfaction-comment-card span,
.satisfaction-comment-card small {
  display: block;
}

.satisfaction-comment-card span,
.satisfaction-comment-card small {
  color: var(--muted);
  font-weight: 700;
}

.satisfaction-comment-card p {
  margin: 14px 0;
  color: var(--text);
  line-height: 1.45;
}

.satisfaction-comment-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #f59e0b;
  font-weight: 900;
}

.sql-box {
  max-height: 340px;
  overflow: auto;
  padding: 16px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  white-space: pre-wrap;
}

.satisfaction-public-body,
.satisfaction-qr-body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(91, 77, 242, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.satisfaction-public-card,
.satisfaction-qr-card {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 42px);
  background: #ffffff;
  border: 1px solid rgba(218, 225, 238, 0.95);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(24, 32, 51, 0.13);
}

.satisfaction-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin: 0 0 18px;
  padding: 0 15px;
  color: #4f46e5;
  background: #eeedff;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.satisfaction-back-button:hover {
  color: #ffffff;
  background: #4f46e5;
}

.satisfaction-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #5b4df2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.satisfaction-public-card h1,
.satisfaction-qr-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.02;
}

.satisfaction-public-card p,
.satisfaction-qr-card p {
  color: #64748b;
  font-size: 17px;
  font-weight: 700;
}

.satisfaction-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.rating-field {
  padding: 0;
  border: 0;
}

.rating-field legend {
  margin-bottom: 10px;
  color: #334155;
  font-weight: 900;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rating-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-stars label {
  color: #cbd5e1;
  cursor: pointer;
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1;
  transition: color 0.14s ease, transform 0.14s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
  color: #f59e0b;
}

.rating-stars label:hover {
  transform: translateY(-2px);
}

.qr-frame {
  width: min(360px, 100%);
  margin: 26px auto;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 18px 52px rgba(24, 32, 51, 0.12);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-help {
  text-align: center;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #fafbff;
}

tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.15;
  text-align: center;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(91, 77, 242, 0.22);
}

.btn-secondary {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.btn-danger {
  color: white;
  background: var(--danger);
}

.btn-ghost {
  color: var(--text);
  background: #f2f4fb;
}

.form-card {
  max-width: 860px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #3b4358;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: white;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(91, 77, 242, 0.16);
  border-color: var(--primary);
}

.full {
  grid-column: 1 / -1;
}

.uppercase-input {
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 18px;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.flash-success {
  color: #066043;
  background: #dff8ee;
}

.flash-error {
  color: #991b1b;
  background: #fee2e2;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 900;
}

.badge-resolu,
.badge-r-solu,
.badge-actif,
.badge-disponible,
.badge-confirme,
.badge-publiee {
  color: #067647;
  background: #dcfce7;
}

.badge-ouvert,
.badge-urgent,
.badge-indisponible,
.badge-annule {
  color: #991b1b;
  background: #fee2e2;
}

.badge-en-cours,
.badge-maintenance,
.badge-brouillon {
  color: #92400e;
  background: #fef3c7;
}

.empty-state {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-date-card,
.dashboard-weather-card,
.dashboard-panel,
.dashboard-timeline-panel {
  position: relative;
  border: 1px solid rgba(210, 219, 235, 0.82);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.dashboard-date-card {
  overflow: hidden;
  min-height: 178px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(91, 77, 242, 0.14), rgba(56, 189, 248, 0.11) 48%, rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.dashboard-date-card::before {
  content: "";
  position: absolute;
  inset: auto 28px 22px auto;
  width: 152px;
  height: 152px;
  border: 1px solid rgba(91, 77, 242, 0.16);
  border-radius: 46px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 235, 255, 0.58));
  transform: rotate(8deg);
}

.dashboard-date-card::after {
  content: "";
  position: absolute;
  right: 82px;
  bottom: 62px;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  box-shadow: 0 18px 34px rgba(91, 77, 242, 0.24);
  transform: rotate(-10deg);
}

.dashboard-date-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-date-card span,
.dashboard-weather-card span,
.dashboard-panel-head span {
  color: #8090ad;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-date-card h2,
.dashboard-weather-card h2 {
  margin: 10px 0 10px;
  color: #10182c;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  max-width: 720px;
}

.dashboard-date-card p,
.dashboard-weather-card p {
  margin: 0;
  color: #5f6f8b;
  font-weight: 900;
}

.dashboard-weather-card {
  overflow: hidden;
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 16px;
  align-items: center;
  padding: 26px;
  color: #ffffff;
  border-color: rgba(91, 77, 242, 0.22);
  background:
    linear-gradient(145deg, rgba(67, 56, 202, 0.96), rgba(14, 165, 233, 0.90)),
    #4338ca;
}

.dashboard-weather-card::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-weather-card::after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-weather-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-weather-card span,
.dashboard-weather-card p,
.dashboard-weather-card small {
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-weather-card h2 {
  color: #ffffff;
}

.dashboard-weather-card small {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 900;
}

.weather-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.weather-icon svg {
  width: 38px;
  height: 38px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel,
.dashboard-timeline-panel {
  overflow: hidden;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.dashboard-panel-head h2 {
  margin: 4px 0 0;
  color: #10182c;
  font-size: 24px;
  line-height: 1.08;
}

.dashboard-panel-head a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 950;
}

.dashboard-alert-list,
.dashboard-message-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dashboard-alert,
.dashboard-message {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-alert:hover,
.dashboard-message:hover {
  border-color: #c7d2fe;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-alert {
  grid-template-columns: 46px minmax(0, 1fr);
}

.dashboard-alert::before,
.dashboard-message::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #dc2626;
}

.dashboard-alert.stock::before {
  background: #f59e0b;
}

.dashboard-alert.planning::before {
  background: var(--primary);
}

.dashboard-message::before {
  background: #0ea5e9;
}

.dashboard-alert svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 16px;
  color: #dc2626;
  background: #fff1f2;
}

.dashboard-alert.stock svg {
  color: #d97706;
  background: #fff7ed;
}

.dashboard-alert.planning svg {
  color: #4f46e5;
  background: #eef2ff;
}

.dashboard-alert strong,
.dashboard-message strong {
  display: block;
  overflow: hidden;
  color: #10182c;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-alert small,
.dashboard-message small {
  display: block;
  margin-top: 5px;
  color: #68788f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.dashboard-message {
  grid-template-columns: 12px minmax(0, 1fr);
  padding-left: 16px;
}

.dashboard-message-status {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 5px #fef3c7;
}

.dashboard-message-status.published {
  background: #0ea5e9;
  box-shadow: 0 0 0 5px #e0f2fe;
}

.dashboard-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: #64748b;
  text-align: center;
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.dashboard-empty svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 16px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.dashboard-empty p {
  margin: 0;
}

.dashboard-timeline {
  position: relative;
  display: grid;
  padding: 12px 22px 24px;
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 108px 30px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.timeline-event:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -14px;
  left: 122px;
  width: 2px;
  background: linear-gradient(180deg, #c7d2fe, #dbe4f3);
}

.timeline-time {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 6px;
}

.timeline-time strong {
  color: #10182c;
  font-size: 15px;
}

.timeline-time span {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 950;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin-top: 10px;
  border: 5px solid #ffffff;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 2px #dbe4f3;
}

.timeline-event.current .timeline-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px #bbf7d0;
}

.timeline-event.upcoming .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 2px #c7d2fe;
}

.timeline-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 16px 16px 16px 18px;
  border: 1px solid #e1e8f3;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #94a3b8;
}

.timeline-event.current .timeline-card {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.timeline-event.current .timeline-card::before {
  background: #16a34a;
}

.timeline-event.upcoming .timeline-card {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.timeline-event.upcoming .timeline-card::before {
  background: var(--primary);
}

.timeline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-card h3 {
  margin: 0 0 4px;
  color: #10182c;
  font-size: 20px;
  line-height: 1.15;
}

.timeline-card p {
  margin: 0;
  color: #68788f;
  font-size: 13px;
  font-weight: 900;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.timeline-pill {
  --pill-color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--pill-color);
  background: color-mix(in srgb, var(--pill-color) 12%, white);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pill-color) 18%, transparent);
}

.timeline-pill svg {
  width: 14px;
  height: 14px;
}

.timeline-pill.prestataire {
  --pill-color: #92400e;
  background: #ffedd5;
}

.timeline-pill.muted {
  --pill-color: #64748b;
  background: #f1f5f9;
}

.timeline-empty {
  min-height: 210px;
}

.planning-toolbar {
  align-items: center;
  gap: 12px;
}

.week-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.week-arrow {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.week-arrow svg {
  width: 20px;
  height: 20px;
}

.week-current {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 12px;
  font-weight: 900;
}

.planning-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-toggle {
  gap: 8px;
}

.view-toggle svg {
  width: 18px;
  height: 18px;
}

.view-toggle.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.view-toggle.active:hover {
  color: #ffffff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.calendar-shell {
  overflow-x: visible;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.calendar-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: var(--calendar-columns, 64px repeat(7, minmax(0, 1fr)));
  grid-template-rows: 74px calc(var(--slot-count) * var(--hour-height));
  background: #ffffff;
  border: 1px solid #dbe2ef;
  border-radius: 18px;
  overflow: visible;
}

.calendar-head {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  color: #1f2a44;
  background: #f4f7ff;
  border-bottom: 1px solid #dbe2ef;
}

.time-head {
  color: #71809b;
  font-size: 13px;
  font-weight: 900;
}

.day-head {
  text-align: center;
}

.day-head strong {
  display: block;
  font-size: 15px;
}

.day-head span {
  color: #73829d;
  font-size: 11px;
  font-weight: 800;
}

.day-head.is-today strong {
  color: var(--primary-dark);
}

.day-head.is-today span {
  color: #0ea5e9;
}

.time-column {
  grid-column: 1;
  grid-row: 2;
  background: #f8fafc;
}

.time-slot {
  height: var(--hour-height);
  padding: 8px 7px;
  color: #64748b;
  border-bottom: 1px solid #e5eaf3;
  font-size: 12px;
  font-weight: 800;
}

.calendar-day {
  position: relative;
  min-height: calc(var(--slot-count) * var(--hour-height));
  background: #ffffff;
  border-left: 1px solid #e1e7f0;
}

.calendar-slot {
  height: var(--hour-height);
  border-bottom: 1px solid #e8edf5;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.calendar-slot:hover {
  background: #f0f7ff;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.18);
}

.calendar-slot.is-drop-target {
  background: #e0f2fe;
  box-shadow: inset 0 0 0 2px #38bdf8;
}

.calendar-event {
  position: absolute;
  left: 8px;
  right: 8px;
  z-index: 2;
  min-height: 30px;
  min-height: fit-content;
  padding: 6px 6px 6px 10px;
  overflow: visible;
  color: #172033;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  cursor: grab;
}

.calendar-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #e2e8f0;
  border-radius: 8px 0 0 8px;
}

.calendar-event.has-animator::before {
  background: var(--event-stripes);
}

.calendar-event.without-animator::before {
  background: #e2e8f0;
}

.calendar-event.has-exception {
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.18);
}

.calendar-event.is-dragging,
.calendar-event.is-saving,
.calendar-event.is-resizing {
  opacity: 0.62;
  cursor: grabbing;
}

.calendar-event-time {
  font-size: 9px;
  font-weight: 900;
  color: #64748b;
}

.calendar-event h2 {
  margin: 2px 22px 1px 0;
  font-size: 10px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.calendar-event p {
  margin: 0;
  font-size: 9px;
  color: #64748b;
  overflow-wrap: anywhere;
}

.calendar-event-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.calendar-event .badge,
.mini-badge {
  min-height: 18px;
  padding: 0 5px;
  font-size: 8px;
  color: #1e293b;
  background: #eef4ff;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.mini-badge.animator-mini-badge {
  color: var(--badge-color, var(--event-color));
  background: color-mix(in srgb, var(--badge-color, var(--event-color)) 12%, white);
}

.mini-badge.muted {
  color: #94a3b8;
  background: #f8fafc;
}

.calendar-view-jour {
  --calendar-min-width: 0px;
}

.calendar-view-jour .calendar-event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 42px 14px 18px;
  text-align: center;
}

.calendar-view-jour .calendar-event-time {
  font-size: 14px;
  letter-spacing: 0;
}

.calendar-view-jour .calendar-event h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.calendar-view-jour .calendar-event p {
  font-size: 14px;
}

.calendar-view-jour .calendar-event-meta {
  justify-content: center;
  gap: 7px;
  margin-top: 0;
}

.calendar-view-jour .mini-badge {
  min-height: 24px;
  padding: 0 10px;
  font-size: 11px;
}

.calendar-event-add {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #334155;
  background: #f1f5f9;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.calendar-event-add:hover {
  color: #ffffff;
  background: var(--event-color);
}

.calendar-event-add svg {
  width: 13px;
  height: 13px;
}

.calendar-event-qr {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.calendar-event-qr:hover {
  color: #ffffff;
  background: #4f46e5;
  transform: translateY(-1px);
}

.calendar-event-qr svg {
  width: 13px;
  height: 13px;
}

.event-resize-handle {
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: 4;
  height: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ns-resize;
}

.event-resize-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 28px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #cbd5e1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.event-resize-handle:hover::before,
.calendar-event:hover .event-resize-handle::before {
  opacity: 1;
}

.theme-dark .planning-toolbar,
.theme-dark .calendar-shell,
.theme-dark .calendar-grid {
  background: var(--card);
  border-color: var(--line);
}

.theme-dark .week-current {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.theme-dark .calendar-head {
  color: var(--text);
  background: #1a1430;
  border-color: var(--line);
}

.theme-dark .day-head span,
.theme-dark .time-head,
.theme-dark .time-slot,
.theme-dark .calendar-event-time,
.theme-dark .calendar-event p,
.theme-dark .animator-workload-card p,
.theme-dark .animator-role {
  color: var(--muted);
}

.theme-dark .time-column {
  background: #171229;
}

.theme-dark .time-slot,
.theme-dark .calendar-slot {
  border-color: #34294d;
}

.theme-dark .calendar-day,
.theme-dark .calendar-slot {
  background: #18132b;
}

.theme-dark .calendar-slot:hover {
  background: #241b3f;
  box-shadow: inset 0 0 0 2px rgba(167, 139, 250, 0.24);
}

.theme-dark .calendar-slot.is-drop-target {
  background: #31245a;
  box-shadow: inset 0 0 0 2px var(--primary);
}

.theme-dark .calendar-event {
  color: var(--text);
  background: #261d42;
  border-color: #4d3b70;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.theme-dark .calendar-event h2 {
  color: var(--text);
}

.theme-dark .calendar-event-add {
  color: var(--text);
  background: #332650;
}

.theme-dark .mini-badge {
  color: var(--text);
  background: #35284f;
}

.theme-dark .mini-badge.animator-mini-badge {
  background: color-mix(in srgb, var(--badge-color, var(--event-color)) 22%, #261d42);
}

.theme-dark .mini-badge.muted {
  color: #c4b5fd;
  background: #241b3f;
}

.event-resize-top {
  top: 0;
}

.event-resize-top::before {
  top: 3px;
}

.event-resize-bottom {
  bottom: 0;
}

.event-resize-bottom::before {
  bottom: 3px;
}

.calendar-resize-ghost {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border: 2px dashed #38bdf8;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.calendar-resize-ghost::after {
  content: attr(data-label);
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 6px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.animator-workload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.animator-workload-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e6edf7;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.theme-dark .animator-workload-card {
  background: #211a3a;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.theme-dark .animator-workload-top strong,
.theme-dark .animator-workload-top b,
.theme-dark .team-member-name {
  color: var(--text);
}

.theme-dark .animator-progress {
  background: #171229;
}

.animator-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--animateur-color) 70%, #0f172a);
  background: color-mix(in srgb, var(--animateur-color) 10%, #f8fafc);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 900;
}

.animator-avatar-photo,
.member-photo {
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--animateur-color, var(--primary)) 20%, white);
}

.member-photo {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.member-photo-placeholder {
  border: 1px solid var(--line);
}

.team-member-name {
  font-weight: 900;
  color: #172033;
}

.animator-workload-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.animator-workload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.animator-workload-top strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #172033;
  font-size: 14px;
}

.animator-workload-top strong span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--animateur-color);
}

.animator-workload-top b {
  color: var(--animateur-color);
  font-size: 14px;
}

.animator-progress {
  height: 6px;
  overflow: hidden;
  background: #eef2f7;
  border-radius: 999px;
}

.animator-progress span {
  display: block;
  height: 100%;
  background: var(--animateur-color);
  border-radius: inherit;
}

.animator-workload-card p {
  margin: 0;
  color: #8a9ab5;
  font-size: 12px;
}

.workload-report,
.workload-next-report {
  color: #b45309;
  font-weight: 900;
}

.workload-report {
  margin-left: 4px;
}

.animator-role {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #334155;
}

.color-chip::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color) 14%, transparent);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #334155;
  background: #eef2f7;
}

.status-disponible {
  color: #047857;
  background: #dcfce7;
}

.status-repos,
.status-ferie {
  color: #4338ca;
  background: #eef2ff;
}

.status-absence {
  color: #b45309;
  background: #fef3c7;
}

.status-maladie {
  color: #be123c;
  background: #ffe4e6;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

  body.print-planning {
    width: 297mm;
    height: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-planning * {
    visibility: hidden !important;
  }

  body.print-planning .calendar-shell,
  body.print-planning .calendar-shell * {
    visibility: visible !important;
  }

  body.print-planning .app-sidebar,
  body.print-planning .sidebar,
  body.print-planning .sidebar-toggle,
  body.print-planning .sidebar-overlay,
  body.print-planning .mobile-nav-toggle,
  body.print-planning .page-header,
  body.print-planning .planning-toolbar,
  body.print-planning .animator-workload-grid,
  body.print-planning .calendar-event-add,
  body.print-planning .event-resize-handle {
    display: none !important;
  }

  body.print-planning .app-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.print-planning .calendar-shell {
    position: fixed;
    inset: 4mm;
    width: auto !important;
    height: auto !important;
    page-break-before: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
    break-before: avoid;
    break-after: avoid;
    break-inside: avoid;
  }

  body.print-planning .animator-workload-card,
  body.print-planning .calendar-shell,
  body.print-planning .calendar-event {
    box-shadow: none !important;
  }

  body.print-planning .calendar-shell {
    border: 1px solid #cbd5e1;
    overflow: hidden;
  }

  body.print-planning .calendar-grid {
    --print-header-height: 13mm;
    --hour-height: calc((202mm - var(--print-header-height)) / var(--slot-count)) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    grid-template-rows: var(--print-header-height) minmax(0, 1fr) !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.print-planning .time-column,
  body.print-planning .calendar-day {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.print-planning .calendar-head {
    padding: 5px 6px;
  }

  body.print-planning .time-head,
  body.print-planning .day-head strong {
    font-size: 11px;
  }

  body.print-planning .day-head span {
    font-size: 9px;
  }

  body.print-planning .time-slot {
    height: var(--hour-height) !important;
    min-height: 0 !important;
    padding: 4px 6px;
    font-size: 10px;
  }

  body.print-planning .calendar-slot {
    height: var(--hour-height) !important;
    min-height: 0 !important;
  }

  body.print-planning .calendar-event {
    top: calc(var(--event-top-units, 0) * var(--hour-height)) !important;
    height: max(24px, calc(var(--event-height-units, 1) * var(--hour-height) - 4px)) !important;
    min-height: 24px;
    padding: 5px 5px 5px 10px;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-planning .calendar-event::before {
    width: 7px !important;
    background: var(--event-stripes) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-planning .calendar-event.without-animator::before {
    background: #e2e8f0 !important;
  }

  body.print-planning .calendar-event-time,
  body.print-planning .calendar-event p,
  body.print-planning .mini-badge {
    font-size: 8px;
  }

  body.print-planning .calendar-event h2 {
    font-size: 9px;
  }

  body.print-materiel {
    width: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #172033 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-materiel .app-sidebar,
  body.print-materiel .sidebar,
  body.print-materiel .sidebar-toggle,
  body.print-materiel .sidebar-overlay,
  body.print-materiel .mobile-nav-toggle,
  body.print-materiel .materiel-toolbar,
  body.print-materiel .actions,
  body.print-materiel .materiel-actions-column {
    display: none !important;
  }

  body.print-materiel .app-main {
    margin: 0 !important;
    padding: 7mm !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body.print-materiel .page-header {
    display: block !important;
    margin: 0 0 5mm !important;
  }

  body.print-materiel .page-header h1 {
    margin: 0;
    color: #172033 !important;
    font-size: 20pt;
  }

  body.print-materiel .page-header p {
    display: none !important;
  }

  body.print-materiel .materiel-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 2.5mm !important;
    margin: 0 0 4mm !important;
  }

  body.print-materiel .materiel-summary-card {
    min-height: 18mm !important;
    padding: 2.5mm !important;
    border: 1px solid #dbe4f3 !important;
    border-radius: 5mm !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #172033 !important;
  }

  body.print-materiel .materiel-summary-card span {
    font-size: 7pt !important;
  }

  body.print-materiel .materiel-summary-card strong {
    font-size: 15pt !important;
  }

  body.print-materiel .materiel-summary-card small,
  body.print-materiel .materiel-summary-card b {
    font-size: 7pt !important;
  }

  body.print-materiel .materiel-list-card {
    border: 1px solid #dbe4f3 !important;
    border-radius: 5mm !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.print-materiel .materiel-list-card .table-scroll {
    overflow: visible !important;
  }

  body.print-materiel .materiel-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  body.print-materiel .materiel-table th,
  body.print-materiel .materiel-table td {
    padding: 2mm !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #172033 !important;
    font-size: 7.5pt !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  body.print-materiel .materiel-table th {
    background: #f5f7fb !important;
    color: #64748b !important;
    font-size: 6.8pt !important;
  }

  body.print-materiel .materiel-table .stock-number,
  body.print-materiel .materiel-category-pill,
  body.print-materiel .materiel-table .badge,
  body.print-materiel .status-pill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.recurrence-panel {
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbff;
}

.recurrence-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control span {
  position: relative;
  width: 58px;
  height: 32px;
  display: inline-block;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.switch-control span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.switch-control input:checked + span {
  background: linear-gradient(135deg, var(--primary), var(--sky));
}

.switch-control input:checked + span::after {
  transform: translateX(26px);
}

.recurrence-settings {
  display: none;
}

.recurrence-settings.is-open {
  display: grid;
}

.recurrence-panel h2 {
  margin: 0 0 4px;
}

.recurrence-panel p {
  margin: 0;
  color: var(--muted);
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-group,
.weekday-picker label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-group label,
.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.checkbox-group input,
.weekday-picker input {
  width: auto;
  min-height: auto;
  accent-color: var(--primary);
}

.checkbox-group label:has(input:checked) {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary-dark);
}

.animator-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbff;
}

.animator-picker h3 {
  margin: 0;
  color: #2f3b55;
  font-size: 18px;
}

.animator-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animator-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--animateur-color, var(--line));
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.animator-list label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.animator-list label.is-disabled span,
.animator-list label.is-disabled small {
  cursor: not-allowed;
}

.animator-list label:has(input:checked) {
  border-color: var(--animateur-color, var(--primary));
  background: color-mix(in srgb, var(--animateur-color, var(--primary)) 9%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--animateur-color, var(--primary)) 12%, transparent);
}

.animator-list input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--animateur-color, var(--primary));
  cursor: pointer;
  flex: 0 0 auto;
}

.animator-list span {
  cursor: pointer;
}

.animator-list small {
  color: #8a9ab5;
  font-size: 11px;
  font-weight: 800;
}

.animator-choice-photo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--animateur-color, var(--primary)) 28%, transparent);
}

.color-picker-field,
.permission-panel,
.absence-panel {
  display: grid;
  gap: 12px;
}

.color-picker-field > span,
.checkbox-field > span {
  color: #334155;
  font-weight: 800;
}

.color-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.color-choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #1f2a44;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.color-choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-choice-grid label > span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--choice-color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.color-choice-grid label:has(input:checked) {
  border-color: var(--choice-color);
  background: color-mix(in srgb, var(--choice-color) 9%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice-color) 16%, transparent);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-row h3 {
  margin: 0;
  color: #2f3b55;
}

.absence-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbff;
}

.permission-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.permission-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.permission-grid select {
  border-color: #d9e3f2;
  background: #ffffff;
}

.permission-warning {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.absence-list {
  display: grid;
  gap: 10px;
}

.absence-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) repeat(2, minmax(140px, 1fr)) 40px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.absence-row label {
  margin: 0;
}

.absence-row .icon-btn {
  width: 40px;
  height: 40px;
}

.photo-field {
  display: grid;
  gap: 8px;
}

.photo-field > span {
  color: #334155;
  font-weight: 800;
}

.photo-field img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.inline-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.prestataire-modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.prestataire-form .form-grid {
  gap: 24px 28px;
}

.prestataire-photo-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 14px;
  align-items: end;
}

.upload-drop {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #d7dfef;
  border-radius: 18px;
  color: #8da0bd;
  background: #fbfdff;
  font-weight: 900;
  cursor: pointer;
}

.upload-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-drop svg {
  width: 22px;
  height: 22px;
}

.prestataire-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbff;
}

.prestataire-photo-preview img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
}

.prestataire-submit {
  flex: 1;
  min-height: 56px;
  border-color: #f59e0b;
  background: #f59e0b;
  font-size: 18px;
}

.prestataire-submit:hover {
  background: #d97706;
}

.prestataires-section {
  display: grid;
  gap: 18px;
}

.prestataires-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 22px;
  justify-content: start;
}

.prestataire-card {
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(214, 224, 240, 0.9);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.prestataire-cover {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 52%, #9ca3af 100%);
}

.prestataire-cover img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.prestataire-cover-initial {
  display: none;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: #172033;
  font-size: 32px;
  font-weight: 950;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.prestataire-cover.is-empty .prestataire-cover-initial {
  display: grid;
}

.prestataire-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
}

.prestataire-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.prestataire-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prestataire-card-head h2 {
  margin: 0;
  color: #10182c;
  font-size: 23px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.prestataire-card-actions {
  display: flex;
  gap: 8px;
}

.prestataire-card-actions .icon-btn {
  width: 38px;
  height: 38px;
  color: #8da0bd;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.prestataire-card-actions .icon-btn:hover {
  color: #4f46e5;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.prestataire-card-actions .icon-btn.danger:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}

.prestataire-card-info {
  display: grid;
  gap: 12px;
}

.prestataire-info-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.prestataire-info-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4f3;
  border-radius: 14px;
  background: #ffffff;
  color: #8da0bd;
}

.prestataire-info-row small,
.prestataire-info-row strong {
  display: block;
}

.prestataire-info-row small {
  color: #8da0bd;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prestataire-info-row strong {
  margin-top: 2px;
  color: #24324c;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.materiel-modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.materiel-form .form-grid {
  gap: 22px 30px;
}

.materiel-form input,
.materiel-form select {
  min-height: 58px;
  font-size: 20px;
}

.materiel-form label {
  color: #2f3b55;
  font-size: 20px;
}

.materiel-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: end;
}

.materiel-plus-button {
  width: 58px;
  height: 58px;
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.stock-usable-panel {
  display: grid;
  gap: 18px;
  padding: 26px 32px;
  border: 1px solid #dbe4f3;
  border-radius: 22px;
  background: #f8fafc;
}

.stock-usable-panel h3 {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stock-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.stock-state {
  display: grid;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-good {
  color: #059669 !important;
}

.stock-medium {
  color: #d97706 !important;
}

.stock-bad,
.stock-lost-label {
  color: #e11d48 !important;
}

.stock-total-bar {
  margin-top: 10px;
  padding: 20px 24px;
  color: #ffffff;
  background: #111827;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.materiel-submit {
  flex: 1;
  min-height: 58px;
  border-color: #f59e0b;
  background: #f59e0b;
  font-size: 20px;
}

.materiel-submit:hover {
  background: #d97706;
}

.stock-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stock-inline strong,
.stock-inline span,
.materiel-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.stock-inline strong {
  color: #ffffff;
  background: #111827;
}

.stock-inline span {
  color: #475569;
  background: #f1f5f9;
}

.materiel-category-pill {
  color: #92400e;
  background: #ffedd5;
}

.materiel-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.materiel-summary-card {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.materiel-summary-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.materiel-summary-card strong {
  color: #172033;
  font-size: 26px;
  line-height: 1;
}

.materiel-summary-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.materiel-summary-card b {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.materiel-summary-card.good strong,
.stock-number.good {
  color: #059669;
}

.materiel-summary-card.medium strong,
.stock-number.medium {
  color: #d97706;
}

.materiel-summary-card.bad strong,
.stock-number.bad {
  color: #e11d48;
}

.materiel-summary-card.repair strong,
.stock-number.repair {
  color: #64748b;
}

.materiel-summary-card.lost strong,
.stock-number.lost {
  color: #111827;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.sort-link span {
  color: #94a3b8;
  font-size: 12px;
}

.materiel-table th,
.materiel-table td {
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: nowrap;
}

.materiel-table th {
  font-size: 11px;
}

.materiel-table td {
  font-size: 13px;
}

.materiel-toolbar {
  margin-bottom: 10px;
}

.materiel-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.materiel-toolbar input,
.materiel-toolbar .btn {
  min-height: 38px;
}

.materiel-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.materiel-summary-card {
  min-height: 66px;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 13px;
}

.materiel-summary-card span {
  font-size: 10px;
}

.materiel-summary-card strong {
  font-size: 22px;
}

.materiel-summary-card small,
.materiel-summary-card b {
  font-size: 10px;
}

.materiel-list-card .table-scroll {
  overflow-x: visible;
}

.materiel-table {
  table-layout: fixed;
}

.materiel-table th,
.materiel-table td {
  padding: 7px 7px;
  font-size: 12px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.materiel-table th {
  font-size: 10px;
}

.materiel-table th:nth-child(1),
.materiel-table td:nth-child(1) {
  width: 16%;
}

.materiel-table th:nth-child(2),
.materiel-table td:nth-child(2),
.materiel-table th:nth-child(9),
.materiel-table td:nth-child(9) {
  width: 12%;
}

.materiel-table th:nth-child(3),
.materiel-table td:nth-child(3),
.materiel-table th:nth-child(4),
.materiel-table td:nth-child(4),
.materiel-table th:nth-child(5),
.materiel-table td:nth-child(5),
.materiel-table th:nth-child(6),
.materiel-table td:nth-child(6),
.materiel-table th:nth-child(7),
.materiel-table td:nth-child(7),
.materiel-table th:nth-child(8),
.materiel-table td:nth-child(8) {
  width: 7%;
  text-align: center;
}

.materiel-table th:nth-child(10),
.materiel-table td:nth-child(10) {
  width: 9%;
}

.materiel-table th:nth-child(11),
.materiel-table td:nth-child(11) {
  width: 8%;
}

.materiel-table .actions {
  justify-content: center;
  gap: 6px;
}

.materiel-table .icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
}

.materiel-table .icon-btn svg {
  width: 16px;
  height: 16px;
}

.materiel-table .icon-btn.danger {
  color: var(--danger);
}

.materiel-category-pill,
.materiel-table .badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.materiel-table .stock-number {
  min-width: 28px;
  padding: 2px 6px;
}

.stock-number {
  min-width: 34px;
  display: inline-flex;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 950;
}

.stock-number.total {
  color: #172033;
  background: #eef2ff;
}

.incident-modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.incident-form .form-grid {
  gap: 26px 30px;
}

.incident-form input,
.incident-form select,
.incident-form textarea {
  min-height: 58px;
  font-size: 20px;
}

.incident-form textarea {
  min-height: 150px;
  resize: vertical;
}

.incident-form label {
  color: #2f3b55;
  font-size: 20px;
}

.incident-submit,
.incident-report-button {
  border-color: #f91f5b !important;
  background: #f91f5b !important;
}

.incident-submit {
  flex: 1;
  min-height: 58px;
  font-size: 20px;
}

.incident-submit:hover,
.incident-report-button:hover {
  background: #e11d48 !important;
}

.incident-list-card .table-scroll {
  overflow-x: auto;
}

.incident-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.incident-table th {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.incident-table th:nth-child(1),
.incident-table td:nth-child(1) {
  width: 38%;
}

.incident-table th:nth-child(2),
.incident-table td:nth-child(2) {
  width: 12%;
}

.incident-table th:nth-child(3),
.incident-table td:nth-child(3),
.incident-table th:nth-child(4),
.incident-table td:nth-child(4) {
  width: 8%;
}

.incident-table th:nth-child(5),
.incident-table td:nth-child(5) {
  width: 14%;
}

.incident-table th:nth-child(6),
.incident-table td:nth-child(6) {
  width: 20%;
}

.incident-table td:not(:first-child) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.incident-table .badge {
  white-space: nowrap;
}

.incident-date {
  display: grid;
  gap: 3px;
  white-space: nowrap;
}

.incident-date strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.05;
}

.incident-date small {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.incident-table .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  white-space: normal;
}

.incident-table .actions .btn {
  width: 100%;
  min-height: 38px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.incident-description {
  max-width: 520px;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.incident-resolution-report {
  display: grid;
  gap: 5px;
  max-width: 560px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.incident-resolution-report strong {
  color: #166534;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.incident-resolution-report p {
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
}

.incident-resolution-report span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.sql-hint {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #7f1d1d;
  background: #fff1f2;
  font-size: 13px;
  line-height: 1.45;
}

.delete-confirm-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: #fff1f2;
}

.delete-confirm-box h2 {
  margin: 0;
  color: #991b1b;
  font-size: 22px;
}

.delete-confirm-box p {
  margin: 0;
  color: #7f1d1d;
  font-weight: 750;
  line-height: 1.45;
}

.mail-toolbar {
  align-items: stretch;
}

.mail-search {
  flex: 1;
}

.mail-search input {
  min-width: min(420px, 100%);
}

.mail-compose-button {
  min-width: 190px;
}

.mail-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 170px);
}

.mail-sidebar-panel,
.mail-reader,
.annonce-modal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mail-sidebar-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mail-folders {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #e8edf6;
  background: #f8fafc;
}

.mail-folder {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 13px;
  color: #475569;
  font-weight: 900;
}

.mail-folder span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mail-folder svg {
  width: 18px;
  height: 18px;
}

.mail-folder strong {
  min-width: 28px;
  display: inline-flex;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
}

.mail-folder.active,
.mail-folder:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.mail-folder.active strong,
.mail-folder:hover strong {
  color: #ffffff;
  background: var(--primary);
}

.mail-list {
  overflow-y: auto;
  display: grid;
  align-content: start;
  padding: 10px;
}

.mail-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #172033;
}

.mail-item + .mail-item {
  margin-top: 6px;
}

.mail-item:hover,
.mail-item.active {
  border-color: #dbe4f3;
  background: #f8fbff;
}

.mail-item.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.mail-item.unread {
  background: #fff7ed;
  border-color: #fed7aa;
}

.mail-item.unread strong::after {
  content: "Non lu";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: 2px;
}

.mail-item-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #94a3b8;
}

.mail-item-dot.published {
  background: #0ea5e9;
}

.mail-item-dot.draft {
  background: #f59e0b;
}

.mail-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mail-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-item small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mail-item time {
  grid-column: 2;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 850;
}

.mail-empty {
  margin: 14px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
  text-align: center;
  font-weight: 850;
}

.mail-reader {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mail-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid #e8edf6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mail-reader-head h2 {
  margin: 12px 0 8px;
  color: #10182c;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.mail-reader-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.mail-reader-head .icon-btn.danger:hover {
  color: #dc2626;
  background: #fff1f2;
}

.danger-text {
  color: #dc2626;
}

.mail-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mail-status.published {
  color: #0369a1;
  background: #e0f2fe;
}

.mail-status.draft {
  color: #92400e;
  background: #fef3c7;
}

.mail-message {
  overflow-y: auto;
  padding: 28px;
  color: #24324c;
  font-size: 17px;
  line-height: 1.7;
  white-space: normal;
}

.mail-message-body {
  max-width: 760px;
}

.mail-signature {
  max-width: 760px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 2px;
  color: #64748b;
}

.mail-signature span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-signature strong {
  color: #10182c;
  font-size: 18px;
  line-height: 1.2;
}

.mail-signature small {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

.mail-reader-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.mail-reader-empty svg {
  width: 44px;
  height: 44px;
  color: #94a3b8;
}

.mail-reader-empty h2,
.mail-reader-empty p {
  margin: 0;
}

.annonce-modal-card {
  padding: 24px;
}

.annonce-form .form-grid {
  gap: 22px 28px;
}

.annonce-form input,
.annonce-form select,
.annonce-form textarea {
  min-height: 56px;
  font-size: 18px;
}

.annonce-form textarea {
  min-height: 230px;
  resize: vertical;
}

.annonce-form label {
  color: #2f3b55;
  font-size: 17px;
}

.mail-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  background: #f8fafc;
}

.mail-compose-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 950;
}

.mail-compose-header svg {
  width: 19px;
  height: 19px;
}

.mail-compose-header strong {
  color: #64748b;
  font-size: 13px;
}

.mail-recipient-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  background: #f8fafc;
}

.mail-recipient-panel .section-title-row {
  margin: 0;
}

.mail-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.mail-recipient-grid label {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4f3;
  border-radius: 16px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
}

.mail-recipient-grid label:has(input:checked) {
  border-color: #b9a9ff;
  background: #f1edff;
  box-shadow: inset 3px 0 0 var(--primary);
}

.mail-recipient-grid input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.mail-recipient-grid span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mail-recipient-grid strong,
.mail-recipient-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-recipient-grid strong {
  font-size: 14px;
  font-weight: 950;
}

.mail-recipient-grid small {
  color: #718096;
  font-size: 12px;
  font-weight: 800;
}

.mail-recipient-all {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
}

.annonce-submit {
  flex: 1;
  min-height: 56px;
  font-size: 18px;
}

.planning-prestataire-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe4f3;
  border-radius: 20px;
  background: #f8fafc;
}

.planning-prestataire-panel .recurrence-switch-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.option-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.option-card-safety {
  background:
    linear-gradient(135deg, rgba(91, 77, 242, 0.08), rgba(56, 189, 248, 0.08)),
    #ffffff;
}

.option-card-feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.options-grid .option-card-wide,
.admin-options-grid .option-card-wide {
  grid-column: 1 / -1;
}

.option-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.option-card-head > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 14px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.option-card h2 {
  margin: 4px 0 0;
  color: #10182c;
  font-size: 24px;
  line-height: 1.08;
}

.theme-dark .option-card h2 {
  color: var(--text);
}

.option-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.option-card small {
  color: var(--muted);
  font-weight: 850;
}

.maintenance-option-card {
  background:
    radial-gradient(circle at 94% 12%, rgba(91, 77, 242, 0.11), transparent 30%),
    #ffffff;
}

.maintenance-ticket-form textarea,
.maintenance-resolve-form textarea {
  min-height: 116px;
}

.maintenance-ticket-list {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.maintenance-ticket-list h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.maintenance-ticket-item,
.maintenance-admin-ticket {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
}

.maintenance-ticket-title-row,
.maintenance-admin-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.maintenance-ticket-title-row strong,
.maintenance-ticket-message strong,
.maintenance-ticket-resolution strong {
  color: var(--text);
  font-weight: 950;
}

.maintenance-ticket-title-row small,
.maintenance-ticket-resolution small,
.maintenance-admin-ticket-head p,
.maintenance-ticket-dates span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.maintenance-ticket-item p,
.maintenance-ticket-message p,
.maintenance-ticket-resolution p {
  margin: 0;
  color: #344054;
  font-weight: 750;
  line-height: 1.5;
}

.maintenance-ticket-resolution {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #065f46;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 15px;
}

.maintenance-ticket-resolution p {
  color: #064e3b;
}

.maintenance-ticket-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.maintenance-filter-toolbar {
  margin-bottom: 16px;
}

.maintenance-admin-list {
  display: grid;
  gap: 16px;
}

.maintenance-admin-ticket {
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.maintenance-admin-ticket.is-open {
  border-left: 6px solid var(--primary);
}

.maintenance-admin-ticket.is-resolved {
  border-left: 6px solid #22c55e;
}

.maintenance-admin-ticket-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 25px;
}

.maintenance-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.maintenance-ticket-meta > span:not(.badge) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: #92400e;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.maintenance-ticket-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maintenance-ticket-dates span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.maintenance-ticket-dates svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.maintenance-ticket-message {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
}

.maintenance-resolve-form {
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.option-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-form {
  gap: 14px;
}

.toggle-row {
  min-height: 72px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}

.theme-dark .toggle-row {
  background: rgba(255, 255, 255, 0.04);
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.toggle-row span {
  display: grid;
  gap: 3px;
}

.toggle-row strong {
  color: var(--text);
  font-weight: 950;
}

.toggle-row small {
  font-size: 12px;
}

.theme-picker {
  gap: 14px;
}

.theme-current-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.theme-current-state span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.theme-current-state strong {
  color: var(--text);
  font-weight: 950;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.theme-choice-card {
  width: 100%;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 77, 242, 0.38);
  background: #ffffff;
}

.theme-choice-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(91, 77, 242, 0.10);
}

.theme-choice-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
}

.theme-choice-swatch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-choice-swatch::before,
.theme-choice-swatch::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.theme-choice-swatch::before {
  width: 18px;
  height: 6px;
  left: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.theme-choice-swatch::after {
  width: 13px;
  height: 13px;
  right: 7px;
  bottom: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.theme-choice-swatch-clair {
  background: linear-gradient(145deg, #ffffff, #dbe7ff);
  border-color: #d8e0ef;
}

.theme-choice-swatch-clair::before {
  background: #5b4df2;
}

.theme-choice-swatch-clair::after {
  background: #38bdf8;
}

.theme-choice-swatch-violet {
  background: linear-gradient(145deg, #130f24, #7c3aed);
}

.theme-choice-swatch-noir {
  background: linear-gradient(145deg, #050608, #334155);
}

.theme-choice-swatch-rouge {
  background: linear-gradient(145deg, #18080b, #dc2626);
}

.theme-choice-swatch-bleu {
  background: linear-gradient(145deg, #081525, #2563eb);
}

.theme-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #f1f4ff;
  border: 1px solid rgba(91, 77, 242, 0.22);
  border-radius: 17px;
}

.theme-preview-actions[hidden] {
  display: none !important;
}

.theme-preview-actions p {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 800;
}

.theme-preview-actions strong {
  color: var(--primary-dark);
  font-weight: 950;
}

.theme-light-button {
  width: fit-content;
}

.theme-light-button.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
}

@media (max-width: 700px) {
  .theme-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-preview-actions .option-actions,
  .theme-preview-actions .btn {
    width: 100%;
  }
}

.rgpd-request-list {
  display: grid;
  gap: 10px;
}

.rgpd-request-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rgpd-request-item strong {
  color: var(--text);
  font-size: 14px;
}

.rgpd-request-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rgpd-request-item p {
  font-weight: 700;
}

.theme-dark .rgpd-request-item {
  background: rgba(255, 255, 255, 0.04);
}

.season-countdown-card {
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-dark)),
    var(--primary);
}

.season-countdown-card h2,
.season-countdown-card p,
.season-countdown-card small,
.season-countdown-card .option-kicker {
  color: #ffffff;
}

.season-countdown-card .option-card-head > svg {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.danger-zone {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
}

.theme-dark .danger-zone {
  background: linear-gradient(180deg, var(--card) 0%, rgba(251, 113, 133, 0.10) 100%);
}

.danger-form {
  padding-top: 4px;
}

.option-detail-card {
  max-width: 960px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.summary-grid span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 850;
}

.theme-dark .summary-grid span {
  background: rgba(255, 255, 255, 0.04);
}

.summary-grid strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  min-height: 280px;
}

.archive-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.archive-card-actions > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 14px;
}

.archive-card-actions form {
  margin: 0;
}

.archive-card-actions .btn {
  min-height: 38px;
}

.compact-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-satisfaction-list {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.theme-dark .archive-satisfaction-list {
  background: rgba(255, 255, 255, 0.04);
}

.archive-satisfaction-list > strong {
  color: var(--text);
}

.archive-satisfaction-list > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.archive-satisfaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.archive-satisfaction-row span,
.archive-satisfaction-row small,
.archive-satisfaction-row b {
  display: block;
}

.archive-satisfaction-row > .satisfaction-percent-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  line-height: 1;
  text-align: center;
}

.archive-satisfaction-row span b {
  color: var(--text);
}

.archive-satisfaction-row span small,
.archive-satisfaction-row > small {
  color: var(--muted);
  font-weight: 800;
}

.archive-satisfaction-row > small {
  grid-column: 1 / -1;
}

.calendar-head.out-of-season,
.calendar-day.out-of-season {
  background: repeating-linear-gradient(135deg, #f8fafc 0 12px, #eef2f7 12px 24px);
  opacity: 0.72;
}

.calendar-head.out-of-season small {
  margin-top: 4px;
  color: #ef4444;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-day.out-of-season .calendar-slot {
  cursor: not-allowed;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
  color: var(--text);
  background: #171229;
  border-color: var(--line);
}

.theme-dark .calendar-head.out-of-season,
.theme-dark .calendar-day.out-of-season {
  background: repeating-linear-gradient(135deg, #171229 0 12px, #211a3a 12px 24px);
}

.planning-prestataire-panel h2,
.planning-prestataire-panel p {
  margin: 0;
}

.planning-prestataire-panel h2 {
  color: #172033;
  font-size: 18px;
}

.planning-prestataire-panel p {
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
}

.planning-prestataire-fields {
  display: none;
}

.planning-prestataire-fields.is-open {
  display: block;
}

.prestataire-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #92400e;
  background: #ffedd5;
}

.prestataire-mini-badge svg {
  width: 12px;
  height: 12px;
}

.recurrence-rule-block {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.recurrence-rule-block h3 {
  margin: 0;
  color: #2f3b55;
  font-size: 20px;
}

.recurrence-rule-block h3 span {
  color: #2f3b55;
  font-weight: 700;
}

.recurrence-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.recurrence-add-row.two-dates {
  grid-template-columns: 1fr 1fr auto;
}

.recurrence-list {
  display: grid;
  gap: 8px;
}

.recurrence-list-item {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
}

.recurrence-list-item .icon-btn {
  width: 32px;
  height: 32px;
}

.recurrence-empty {
  margin: 0;
  color: #94a3b8;
  font-style: italic;
}

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.day-column {
  min-width: 190px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.day-column.today {
  border-color: rgba(91, 77, 242, 0.45);
  box-shadow: 0 16px 44px rgba(91, 77, 242, 0.13);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fafbff;
  border-bottom: 1px solid var(--line);
}

.day-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.day-header strong {
  color: var(--primary-dark);
}

.day-events {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  flex: 1;
}

.day-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed #d8deea;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.event-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e3e6f5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.event-time {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.event-card h2 {
  margin: 7px 0 5px;
  font-size: 16px;
  line-height: 1.25;
}

.event-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.event-footer .actions {
  gap: 6px;
}

.event-footer .icon-btn {
  width: 32px;
  height: 32px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  width: min(520px, 100%);
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.modal h1 {
  margin: 0 0 10px;
}

.modal p {
  color: var(--muted);
}

.form-modal-backdrop {
  padding: 22px;
}

.form-modal {
  position: relative;
  width: min(980px, 100%);
  height: min(92vh, 980px);
  padding: 0;
  overflow: hidden;
}

.form-modal iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #f6f7fb;
}

.form-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: var(--shadow);
}

.modal-page {
  background: #f6f7fb;
}

.modal-main {
  min-height: 100vh;
  padding: 24px;
}

.modal-main .page-header {
  margin-right: 54px;
}

@media (max-width: 980px) {
  .stats-grid,
  .materiel-summary-grid,
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-one-screen {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .landing-one-screen .landing-shell,
  .landing-one-screen .landing-hero {
    height: auto;
  }

  .landing-hero-grid {
    grid-template-columns: 1fr;
    padding: 18px 4px 8px;
  }

  .landing-copy {
    max-width: 760px;
  }

  .landing-points {
    grid-template-columns: 1fr;
  }

  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .mobile-nav-toggle {
    display: inline-grid;
  }

  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(0);
  }

  .sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-collapsed .brand-title,
  .sidebar-collapsed .brand-user-panel,
  .sidebar-collapsed .nav-link span {
    display: block;
  }

  .sidebar-collapsed .brand-topline {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
  }

  .app-main,
  .sidebar-collapsed .app-main {
    margin-left: 0;
    padding: 78px 16px 24px;
  }

  .page-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .stats-grid,
  .landing-features {
    grid-template-columns: 1fr;
  }

  .landing-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 20px;
  }

  .landing-hero {
    padding: 16px;
    border-radius: 22px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav-actions,
  .landing-actions {
    width: 100%;
  }

  .landing-nav-actions .btn,
  .landing-actions .btn {
    flex: 1 1 170px;
  }

  .landing-copy h1 {
    font-size: 40px;
    line-height: 1;
  }

  .landing-points {
    grid-template-columns: 1fr;
  }

  .landing-points li,
  .landing-one-screen .landing-points li {
    font-size: 16px;
  }

  .landing-points strong,
  .landing-one-screen .landing-points strong {
    font-size: inherit;
  }

  .landing-lead {
    font-size: 16px;
  }

  .landing-preview {
    border-radius: 18px;
  }

  .preview-board {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-content {
    min-height: 500px;
    padding: 14px;
  }

  .preview-content::after {
    left: 8%;
    top: 326px;
    width: 76%;
  }

  .preview-event {
    width: 72%;
  }

  .event-one {
    left: 8%;
    top: 128px;
  }

  .event-two {
    left: 9%;
    top: 170px;
    animation-name: preview-card-drag-mobile;
  }

  .event-three {
    left: 8%;
    top: 374px;
  }

  .week-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .day-column {
    min-width: 0;
    min-height: 260px;
  }

  .calendar-shell {
    border-radius: 18px;
  }

  .calendar-grid {
    min-width: var(--calendar-min-width, 980px);
    grid-template-columns: var(--calendar-columns, 76px repeat(7, minmax(128px, 1fr)));
  }

  .calendar-head {
    padding: 14px 10px;
  }

  .day-head strong {
    font-size: 16px;
  }

  .time-slot {
    font-size: 15px;
    padding: 14px 10px;
  }

  .recurrence-add-row,
  .recurrence-add-row.two-dates,
  .prestataire-photo-field,
  .materiel-category-row,
  .stock-state-grid,
  .absence-row,
  .mail-shell,
  .dashboard-hero,
  .dashboard-grid,
  .options-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .option-card-feature {
    grid-template-columns: 1fr;
  }

  .mail-shell {
    min-height: auto;
  }

  .mail-sidebar-panel,
  .mail-reader {
    min-height: auto;
  }

  .mail-list {
    max-height: 360px;
  }

  .mail-reader-head {
    flex-direction: column;
    padding: 18px;
  }

  .mail-message {
    padding: 20px;
    font-size: 15px;
  }

  .dashboard-date-card,
  .dashboard-weather-card {
    padding: 18px;
  }

  .timeline-event {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 28px;
  }

  .timeline-event:not(:last-child)::after {
    top: 42px;
    bottom: -8px;
    left: 8px;
  }

  .timeline-dot {
    position: absolute;
    left: 0;
    top: 26px;
    margin: 0;
  }

  .timeline-time {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .timeline-card-head {
    flex-direction: column;
  }

  .prestataires-grid {
    grid-template-columns: minmax(0, 360px);
  }

  .prestataire-cover {
    min-height: 140px;
  }

  .prestataire-card-body {
    padding: 16px;
  }

  .prestataire-card-head h2 {
    font-size: 22px;
  }

  .recurrence-switch-row {
    align-items: flex-start;
  }

  .materiel-summary-grid {
    grid-template-columns: 1fr;
  }

  .materiel-list-card .table-scroll {
    overflow-x: auto;
  }

  .materiel-table {
    min-width: 900px;
  }
}

/* Responsive application pass */
@media (max-width: 1180px) {
  .app-main {
    min-width: 0;
    padding: 24px;
  }

  .page-header {
    gap: 16px;
  }

  .page-header h1 {
    font-size: clamp(28px, 4vw, 38px);
  }

  .planning-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-toolbar > * {
    width: 100%;
  }

  .week-switcher,
  .planning-view-controls {
    justify-content: space-between;
  }

  .calendar-shell {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-grid:not(.calendar-view-jour) {
    min-width: 980px;
  }

  .prestataires-grid {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }

  .mail-shell {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  }

  .form-modal {
    width: min(960px, calc(100vw - 28px));
    height: min(94dvh, 980px);
  }
}

@media (max-width: 900px) {
  .app-main {
    padding: 22px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar > .btn,
  .toolbar > a.btn,
  .search-form,
  .search-form input,
  .search-form .btn {
    width: 100%;
  }

  .stats-grid,
  .admin-stats-grid,
  .satisfaction-summary-grid,
  .module-grid,
  .dashboard-hero,
  .dashboard-grid,
  .options-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .materiel-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .animator-workload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mail-list {
    max-height: 360px;
  }

  .mail-reader {
    min-height: 420px;
  }

  .prestataire-photo-field,
  .materiel-category-row,
  .stock-state-grid,
  .absence-row,
  .recurrence-add-row,
  .recurrence-add-row.two-dates {
    grid-template-columns: 1fr;
  }

  .absence-row .icon-btn {
    justify-self: end;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table:not(.materiel-table) {
    min-width: 760px;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .table-scroll .incident-table {
    min-width: 860px !important;
  }
}

@media (max-width: 760px) {
  :root {
    --radius: 12px;
  }

  body {
    min-width: 0;
  }

  .sidebar {
    max-width: min(88vw, var(--sidebar-width));
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.18);
  }

  .app-main,
  .sidebar-collapsed .app-main {
    padding: 76px 12px 18px;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-header h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .card,
  .table-card,
  .option-card,
  .dashboard-panel,
  .dashboard-timeline-panel,
  .mail-sidebar-panel,
  .mail-reader,
  .prestataire-card,
  .prestataire-modal-card,
  .materiel-modal-card,
  .incident-modal-card,
  .annonce-modal-card {
    border-radius: 16px;
  }

  .card,
  .option-card,
  .prestataire-modal-card,
  .materiel-modal-card,
  .incident-modal-card,
  .annonce-modal-card {
    padding: 16px;
  }

  .btn {
    min-height: 44px;
    padding: 0 14px;
  }

  .form-actions,
  .actions,
  .option-actions,
  .prestataire-card-actions,
  .landing-actions {
    flex-wrap: wrap;
  }

  .form-actions .btn,
  .option-actions .btn,
  .delete-confirm-box .btn {
    flex: 1 1 160px;
  }

  .form-grid,
  .compact-summary,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .materiel-form input,
  .materiel-form select,
  .incident-form input,
  .incident-form select,
  .incident-form textarea,
  .annonce-form input,
  .annonce-form select,
  .annonce-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .materiel-form label,
  .incident-form label,
  .annonce-form label {
    font-size: 15px;
  }

  .stock-usable-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .stock-total-bar,
  .materiel-submit,
  .incident-submit,
  .prestataire-submit,
  .annonce-submit {
    min-height: 50px;
    font-size: 16px;
  }

  .materiel-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materiel-summary-card {
    min-height: 74px;
  }

  .prestataires-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .prestataire-card {
    max-width: none;
  }

  .prestataire-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .prestataire-card-actions {
    justify-content: flex-end;
  }

  .animator-workload-grid {
    grid-template-columns: 1fr;
  }

  .animator-workload-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .satisfaction-animator-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .satisfaction-animator-stars,
  .satisfaction-animator-meta {
    grid-column: 2 / -1;
  }

  .satisfaction-animator-empty {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .calendar-grid:not(.calendar-view-jour) {
    min-width: 940px;
  }

  .calendar-view-jour {
    min-width: 0 !important;
  }

  .calendar-view-jour .calendar-grid,
  .calendar-grid.calendar-view-jour {
    min-width: 0 !important;
  }

  .week-switcher {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .week-current {
    justify-content: center;
    padding: 0 10px;
    text-align: center;
  }

  .planning-view-controls .btn,
  .planning-view-controls .view-toggle {
    flex: 1 1 130px;
  }

  .satisfaction-day-focus,
  .satisfaction-detail-card,
  .satisfaction-event-row,
  .satisfaction-day-row {
    grid-template-columns: 1fr;
  }

  .satisfaction-day-focus {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-event {
    border-radius: 10px;
  }

  .calendar-view-jour .calendar-event {
    padding: 12px 34px 12px 14px;
  }

  .calendar-view-jour .calendar-event h2 {
    font-size: 17px;
  }

  .calendar-view-jour .calendar-event p {
    font-size: 13px;
  }

  .mail-toolbar {
    gap: 10px;
  }

  .mail-compose-button {
    min-width: 0;
    width: 100%;
  }

  .mail-reader-head {
    gap: 12px;
  }

  .mail-reader-head h2 {
    font-size: 24px;
  }

  .mail-message {
    padding: 18px;
    font-size: 15px;
  }

  .mail-recipient-grid {
    grid-template-columns: 1fr;
  }

  .modal-backdrop,
  .form-modal-backdrop {
    padding: 10px;
  }

  .modal {
    padding: 18px;
    border-radius: 16px;
  }

  .form-modal {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .modal-main {
    padding: 16px;
  }

  .modal-main .page-header {
    margin-right: 46px;
  }
}

@media (max-width: 520px) {
  .app-main,
  .sidebar-collapsed .app-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .auth-body {
    padding: 14px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 18px;
  }

  .auth-brand {
    align-items: flex-start;
  }

  .auth-brand h1 {
    font-size: 24px;
  }

  .materiel-summary-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-scroll table:not(.materiel-table) {
    min-width: 680px;
  }

  .materiel-table {
    min-width: 820px;
  }

  .calendar-grid:not(.calendar-view-jour) {
    min-width: 880px;
  }

  .dashboard-date-card h2,
  .dashboard-weather-card h2 {
    font-size: 28px;
  }

  .timeline-card {
    padding: 14px;
  }

  .landing-nav-actions .btn,
  .landing-actions .btn,
  .form-actions .btn,
  .option-actions .btn,
  .delete-confirm-box .btn {
    flex-basis: 100%;
    width: 100%;
  }
}

/* Dark theme final pass */
body.theme-dark,
body.theme-dark.modal-page {
  color: var(--text);
  background:
    radial-gradient(circle at 85% 12%, rgba(167, 139, 250, 0.16), transparent 30%),
    #130f24;
}

body.theme-dark .app-main,
body.theme-dark .modal-main {
  color: var(--text);
}

body.theme-dark .sidebar {
  background: rgba(25, 18, 44, 0.96);
  border-color: var(--line);
}

body.theme-dark .sidebar-brand {
  border-color: var(--line);
}

body.theme-dark .brand-title strong,
body.theme-dark .page-header h1,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark .team-member-name,
body.theme-dark .option-card h2,
body.theme-dark .prestataire-card-head h2,
body.theme-dark .planning-prestataire-panel h2,
body.theme-dark .recurrence-rule-block h3,
body.theme-dark .recurrence-rule-block h3 span,
body.theme-dark .animator-picker h3,
body.theme-dark .section-title-row h3,
body.theme-dark .mail-reader-head h2,
body.theme-dark .mail-item strong,
body.theme-dark .timeline-time strong,
body.theme-dark .admin-card-header h2,
body.theme-dark .admin-account-name,
body.theme-dark .admin-stat-card strong,
body.theme-dark .event-card h2 {
  color: var(--text);
}

body.theme-dark .brand-title span,
body.theme-dark .brand-user-role,
body.theme-dark .page-header p,
body.theme-dark .stat-label,
body.theme-dark .empty-state,
body.theme-dark .event-card p,
body.theme-dark .mail-item small,
body.theme-dark .mail-item time,
body.theme-dark .mail-reader-head p,
body.theme-dark .mail-message,
body.theme-dark .mail-reader-empty,
body.theme-dark .mail-recipient-grid small,
body.theme-dark .prestataire-info-row small,
body.theme-dark .prestataire-info-row strong,
body.theme-dark .incident-description,
body.theme-dark .incident-resolution-report span,
body.theme-dark .recurrence-panel p,
body.theme-dark .planning-prestataire-panel p,
body.theme-dark .animator-list small,
body.theme-dark .stock-inline span,
body.theme-dark .materiel-summary-card span,
body.theme-dark .materiel-summary-card small,
body.theme-dark .materiel-summary-card b,
body.theme-dark .sort-link span,
body.theme-dark .day-empty,
body.theme-dark .recurrence-empty,
body.theme-dark .modal p {
  color: var(--muted);
}

body.theme-dark .brand-user-panel,
body.theme-dark .card,
body.theme-dark .form-card,
body.theme-dark .table-card,
body.theme-dark .modal,
body.theme-dark .prestataire-modal-card,
body.theme-dark .materiel-modal-card,
body.theme-dark .incident-modal-card,
body.theme-dark .annonce-modal-card,
body.theme-dark .mail-sidebar-panel,
body.theme-dark .mail-reader,
body.theme-dark .option-card,
body.theme-dark .archive-card,
body.theme-dark .admin-stat-card,
body.theme-dark .satisfaction-score-card,
body.theme-dark .satisfaction-chart-card,
body.theme-dark .satisfaction-comments,
body.theme-dark .satisfaction-comment-card,
body.theme-dark .satisfaction-detail-card,
body.theme-dark .satisfaction-day-events,
body.theme-dark .calendar-shell,
body.theme-dark .day-column,
body.theme-dark .event-card,
body.theme-dark .prestataire-card,
body.theme-dark .materiel-summary-card,
body.theme-dark .animator-workload-card,
body.theme-dark .maintenance-ticket-item,
body.theme-dark .maintenance-admin-ticket,
body.theme-dark .maintenance-ticket-message,
body.theme-dark .maintenance-resolve-form {
  color: var(--text);
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.theme-dark .maintenance-option-card {
  background:
    radial-gradient(circle at 94% 12%, rgba(139, 92, 246, 0.18), transparent 30%),
    var(--card);
}

body.theme-dark .maintenance-ticket-item p,
body.theme-dark .maintenance-ticket-message p {
  color: var(--text);
}

body.theme-dark .maintenance-ticket-dates span {
  background: rgba(139, 92, 246, 0.13);
  border-color: var(--line);
}

body.theme-dark th,
body.theme-dark td {
  border-color: var(--line);
}

body.theme-dark th {
  color: var(--muted);
  background: #171229;
}

body.theme-dark tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

body.theme-dark label,
body.theme-dark .materiel-form label,
body.theme-dark .incident-form label,
body.theme-dark .annonce-form label,
body.theme-dark .color-picker-field > span,
body.theme-dark .checkbox-field > span,
body.theme-dark .photo-field > span,
body.theme-dark .inline-check,
body.theme-dark .permission-grid label,
body.theme-dark .stock-usable-panel h3 {
  color: #ddd6fe;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  color: var(--text);
  background: #171229;
  border-color: var(--line);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #9b8fd4;
}

body.theme-dark input:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus {
  outline-color: rgba(167, 139, 250, 0.25);
  border-color: var(--primary);
}

body.theme-dark .password-toggle {
  color: var(--muted);
  background: #211a3a;
  border-color: var(--line);
}

body.theme-dark .password-toggle:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

body.theme-dark .password-requirements li {
  color: var(--muted);
}

body.theme-dark .password-requirements li::before {
  border-color: #6d5fa1;
}

body.theme-dark .password-requirements li.valid {
  color: var(--success);
}

body.theme-dark .password-requirements li.valid::before {
  border-color: var(--success);
  background: var(--success);
}

body.theme-dark .captcha-field span {
  color: var(--muted);
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .captcha-field strong {
  color: var(--primary-dark);
}

body.theme-dark .btn-ghost,
body.theme-dark .btn-secondary,
body.theme-dark .sidebar-toggle,
body.theme-dark .mobile-nav-toggle,
body.theme-dark .icon-btn,
body.theme-dark .materiel-plus-button,
body.theme-dark .prestataire-card-actions .icon-btn {
  color: var(--text);
  background: #2b2145;
  border-color: var(--line);
}

body.theme-dark .btn-ghost:hover,
body.theme-dark .btn-secondary:hover,
body.theme-dark .icon-btn:hover,
body.theme-dark .prestataire-card-actions .icon-btn:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: #6d5fa1;
}

body.theme-dark .btn,
body.theme-dark button,
body.theme-dark .btn-primary,
body.theme-dark .btn-secondary,
body.theme-dark .btn-ghost,
body.theme-dark .btn-danger,
body.theme-dark .incident-submit,
body.theme-dark .incident-report-button,
body.theme-dark .materiel-submit,
body.theme-dark .prestataire-submit,
body.theme-dark .annonce-submit {
  background-image: none !important;
  box-shadow: none !important;
}

body.theme-dark .btn-primary,
body.theme-dark .annonce-submit {
  color: #ffffff;
  background-color: #7c3aed !important;
  border: 1px solid #8b5cf6 !important;
}

body.theme-dark .btn-primary:hover,
body.theme-dark .annonce-submit:hover {
  background-color: #6d28d9 !important;
}

body.theme-dark .btn-danger {
  color: #ffffff;
  background-color: #e11d48 !important;
  border: 1px solid #fb7185 !important;
}

body.theme-dark .btn-danger:hover {
  background-color: #be123c !important;
}

body.theme-dark .incident-submit,
body.theme-dark .incident-report-button {
  color: #ffffff;
  background-color: #f91f5b !important;
  border-color: #f91f5b !important;
}

body.theme-dark .incident-submit:hover,
body.theme-dark .incident-report-button:hover {
  background-color: #e11d48 !important;
}

body.theme-dark .materiel-submit,
body.theme-dark .prestataire-submit {
  color: #ffffff;
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

body.theme-dark .materiel-submit:hover,
body.theme-dark .prestataire-submit:hover {
  background-color: #d97706 !important;
}

body.theme-dark .flash-success {
  color: #bbf7d0;
  background: rgba(15, 159, 110, 0.18);
}

body.theme-dark .flash-error {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.16);
}

body.theme-dark .badge,
body.theme-dark .status-badge,
body.theme-dark .stock-number,
body.theme-dark .stock-inline span,
body.theme-dark .day-empty,
body.theme-dark .timeline-time span,
body.theme-dark .mini-badge.muted {
  color: #ddd6fe;
  background: #2b2145;
}

body.theme-dark .badge-resolu,
body.theme-dark .badge-r-solu,
body.theme-dark .badge-actif,
body.theme-dark .badge-disponible,
body.theme-dark .badge-confirme,
body.theme-dark .badge-publiee,
body.theme-dark .status-disponible {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
}

body.theme-dark .badge-ouvert,
body.theme-dark .badge-urgent,
body.theme-dark .badge-indisponible,
body.theme-dark .badge-annule {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.16);
}

body.theme-dark .badge-en-cours,
body.theme-dark .badge-maintenance,
body.theme-dark .badge-brouillon,
body.theme-dark .status-absence,
body.theme-dark .status-maladie {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
}

body.theme-dark .status-repos,
body.theme-dark .status-ferie {
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.18);
}

body.theme-dark .recurrence-panel,
body.theme-dark .animator-picker,
body.theme-dark .absence-panel,
body.theme-dark .permission-panel,
body.theme-dark .planning-prestataire-panel,
body.theme-dark .mail-folders,
body.theme-dark .mail-compose-header,
body.theme-dark .mail-recipient-panel,
body.theme-dark .stock-usable-panel,
body.theme-dark .prestataire-photo-preview,
body.theme-dark .upload-drop,
body.theme-dark .archive-satisfaction-list,
body.theme-dark .summary-grid span,
body.theme-dark .toggle-row {
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .checkbox-group label,
body.theme-dark .weekday-picker label,
body.theme-dark .animator-list label,
body.theme-dark .color-choice-grid label,
body.theme-dark .absence-row,
body.theme-dark .mail-recipient-grid label,
body.theme-dark .recurrence-list-item {
  color: var(--text);
  background: #211a3a;
  border-color: var(--line);
}

body.theme-dark .checkbox-group label:has(input:checked),
body.theme-dark .weekday-picker label:has(input:checked),
body.theme-dark .mail-recipient-grid label:has(input:checked),
body.theme-dark .color-choice-grid label:has(input:checked),
body.theme-dark .animator-list label:has(input:checked) {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--primary);
}

body.theme-dark .animator-list label.is-disabled {
  background: #151124;
  opacity: 0.55;
}

body.theme-dark .animator-choice-photo,
body.theme-dark .prestataire-info-icon {
  border-color: var(--line);
  background: #171229;
}

body.theme-dark .color-choice-grid label > span {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.theme-dark .calendar-grid,
body.theme-dark .calendar-head,
body.theme-dark .time-column,
body.theme-dark .calendar-day,
body.theme-dark .calendar-slot {
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .calendar-head,
body.theme-dark .time-head,
body.theme-dark .time-slot {
  color: var(--muted);
}

body.theme-dark .calendar-slot:hover,
body.theme-dark .calendar-slot.is-drop-target {
  background: rgba(167, 139, 250, 0.12);
}

body.theme-dark .planning-toolbar .btn,
body.theme-dark .planning-toolbar .week-current {
  background-image: none !important;
  box-shadow: none !important;
}

body.theme-dark .planning-toolbar .btn {
  color: var(--text);
  background-color: #211a3a !important;
  border: 1px solid var(--line);
}

body.theme-dark .planning-toolbar .btn:hover {
  color: var(--primary-dark);
  background-color: #2b2145 !important;
  border-color: #6d5fa1;
}

body.theme-dark .planning-toolbar .week-current {
  color: #ddd6fe;
  background-color: #2b2145 !important;
  border: 1px solid var(--line);
}

body.theme-dark .planning-toolbar .view-toggle.active {
  color: #ffffff;
  background-color: #6d5dfc !important;
  border-color: #8b7dff !important;
  box-shadow: none !important;
}

body.theme-dark .planning-toolbar .view-toggle.active:hover {
  color: #ffffff;
  background-color: #7c6cff !important;
  border-color: #a297ff !important;
}

body.theme-dark .calendar-event {
  color: #f8fafc;
  background: #211a3a;
  border-color: #443568;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

body.theme-dark .calendar-event h2,
body.theme-dark .calendar-event-time {
  color: #f8fafc;
}

body.theme-dark .calendar-event p {
  color: #c4b5fd;
}

body.theme-dark .calendar-event.without-animator::before {
  background: #64748b;
}

body.theme-dark .mini-badge {
  color: #ddd6fe;
  background: #171229;
}

body.theme-dark .mini-badge.animator-mini-badge {
  color: #ffffff;
  background: color-mix(in srgb, var(--badge-color, var(--event-color)) 28%, #171229);
}

body.theme-dark .mini-badge.muted {
  color: #c4b5fd;
  background: #171229;
}

body.theme-dark .calendar-event-add {
  color: #f8fafc;
  background: #312455;
}

body.theme-dark .calendar-event-qr {
  color: #ddd6fe;
  background: #312455;
  border-color: var(--line);
}

body.theme-dark .calendar-event-qr:hover {
  color: #ffffff;
  background: #5b4df2;
}

body.theme-dark .satisfaction-score-card,
body.theme-dark .satisfaction-family-card,
body.theme-dark .satisfaction-percent-pill,
body.theme-dark .satisfaction-day-focus,
body.theme-dark .satisfaction-detail-score {
  color: #ffffff;
  background: var(--satisfaction-color);
  border-color: color-mix(in srgb, var(--satisfaction-color) 44%, transparent);
}

body.theme-dark .satisfaction-event-row,
body.theme-dark .satisfaction-day-row,
body.theme-dark .satisfaction-animator-row {
  color: var(--text);
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .satisfaction-event-row:hover,
body.theme-dark .satisfaction-day-row:hover,
body.theme-dark .satisfaction-animator-row:hover {
  border-color: #6d5fa1;
}

body.theme-dark .satisfaction-animator-empty {
  color: #c4b5fd;
  background: #251b3f;
}

body.theme-dark .satisfaction-chart text {
  fill: #c4b5fd;
}

body.theme-dark .satisfaction-chart .chart-axis-title {
  fill: #f8fafc;
}

body.theme-dark .satisfaction-chart .chart-grid-line {
  stroke: #30264c;
}

body.theme-dark .satisfaction-chart .chart-axis {
  stroke: #6d5fa1;
}

body.theme-dark .chart-point-label {
  stroke: #171229;
}

body.theme-dark .calendar-head.out-of-season,
body.theme-dark .calendar-day.out-of-season {
  background: repeating-linear-gradient(135deg, #151124 0 12px, #211a3a 12px 24px);
}

body.theme-dark .animator-progress {
  background: rgba(255, 255, 255, 0.10);
}

body.theme-dark .animator-progress span {
  background: var(--animateur-color);
}

body.theme-dark .prestataire-cover {
  background: linear-gradient(180deg, #241b3d 0%, #171229 100%);
}

body.theme-dark .prestataire-cover-initial {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
}

body.theme-dark .prestataire-info-row {
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .prestataire-mini-badge,
body.theme-dark .timeline-pill.prestataire {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.17);
}

body.theme-dark .materiel-summary-card strong,
body.theme-dark .stock-number.total,
body.theme-dark .stock-inline strong {
  color: var(--text);
}

body.theme-dark .materiel-summary-card.lost strong,
body.theme-dark .stock-number.lost {
  color: #f8fafc;
}

body.theme-dark .stock-total-bar,
body.theme-dark .stock-inline strong {
  background: #0f0b1d;
}

body.theme-dark .materiel-category-pill {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.17);
}

body.theme-dark .incident-resolution-report {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

body.theme-dark .incident-resolution-report strong,
body.theme-dark .incident-resolution-report p {
  color: #bbf7d0;
}

body.theme-dark .incident-date strong {
  color: var(--text);
}

body.theme-dark .incident-date small {
  color: var(--muted);
}

body.theme-dark .sql-hint,
body.theme-dark .delete-confirm-box,
body.theme-dark .danger-zone {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.34);
}

body.theme-dark .delete-confirm-box h2,
body.theme-dark .delete-confirm-box p,
body.theme-dark .danger-text {
  color: #fecdd3;
}

body.theme-dark .mail-reader-head {
  background: linear-gradient(180deg, #211a3a 0%, #171229 100%);
  border-color: var(--line);
}

body.theme-dark .mail-folder {
  color: var(--muted);
}

body.theme-dark .mail-folder strong {
  color: var(--text);
  background: #2b2145;
}

body.theme-dark .mail-folder.active,
body.theme-dark .mail-folder:hover,
body.theme-dark .mail-recipient-all {
  color: var(--primary-dark);
  background: var(--primary-soft) !important;
}

body.theme-dark .mail-list {
  background: #171229;
}

body.theme-dark .mail-item {
  color: var(--text);
}

body.theme-dark .mail-item:hover,
body.theme-dark .mail-item.active {
  background: rgba(167, 139, 250, 0.10);
  border-color: var(--line);
}

body.theme-dark .mail-item.unread {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.35);
}

body.theme-dark .mail-empty {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

body.theme-dark .mail-status.published {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.18);
}

body.theme-dark .mail-status.draft,
body.theme-dark .permission-warning {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
}

body.theme-dark .mail-message {
  background: #211a3a;
}

body.theme-dark .mail-signature {
  border-color: var(--line);
  color: var(--muted);
}

body.theme-dark .mail-signature span,
body.theme-dark .mail-signature small {
  color: var(--muted);
}

body.theme-dark .mail-signature strong {
  color: var(--text);
}

body.theme-dark .day-header {
  background: #171229;
  border-color: var(--line);
}

body.theme-dark .day-header span,
body.theme-dark .day-header strong,
body.theme-dark .event-time {
  color: var(--primary-dark);
}

body.theme-dark .day-empty {
  border-color: var(--line);
}

body.theme-dark .event-card {
  background: linear-gradient(180deg, #211a3a 0%, #171229 100%);
}

body.theme-dark .modal-backdrop {
  background: rgba(4, 2, 12, 0.68);
}

body.theme-dark .form-modal iframe {
  background: #130f24;
}

body.theme-dark .modal-page {
  background: #130f24;
}

body.theme-dark .landing-refonte .landing-sticky-nav {
  background: #171229;
  border-color: rgba(120, 92, 180, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

body.theme-dark .landing-refonte .landing-logo,
body.theme-dark .landing-refonte .landing-nav-link {
  color: var(--text);
}

body.theme-dark .landing-refonte .landing-nav-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 92, 180, 0.45);
}

body.theme-dark .pricing-card {
  background: #171229;
  border-color: rgba(120, 92, 180, 0.42);
}

body.theme-dark .pricing-card-featured {
  background: linear-gradient(145deg, #6d5df7 0%, #3a2aa6 100%);
}

body.theme-dark .pricing-card h3,
body.theme-dark .pricing-price,
body.theme-dark .pricing-card li {
  color: var(--text);
}

body.theme-dark .pricing-card p,
body.theme-dark .pricing-price small {
  color: var(--muted);
}

body.theme-dark .pricing-card-featured h3,
body.theme-dark .pricing-card-featured p,
body.theme-dark .pricing-card-featured li,
body.theme-dark .pricing-card-featured .pricing-price,
body.theme-dark .pricing-card-featured .pricing-price small {
  color: #ffffff;
}

body.theme-dark.theme-dark-violet {
  --bg: #130f24;
  --card: #211a3a;
  --text: #f8fafc;
  --muted: #c4b5fd;
  --line: #43345f;
  --primary: #a78bfa;
  --primary-dark: #ddd6fe;
  --primary-soft: #332255;
  --dark-sidebar: rgba(25, 18, 44, 0.96);
  --dark-panel: #171229;
  --dark-elevated: #211a3a;
  --dark-button: #2b2145;
  --dark-border-strong: #6d5fa1;
  --theme-action: #7c3aed;
  --theme-action-hover: #6d28d9;
  --theme-action-border: #8b5cf6;
  --theme-glow-rgb: 167, 139, 250;
}

body.theme-dark.theme-dark-noir {
  --bg: #07080d;
  --card: #11131a;
  --text: #f8fafc;
  --muted: #aeb6c7;
  --line: #252b38;
  --primary: #cbd5e1;
  --primary-dark: #ffffff;
  --primary-soft: #202632;
  --dark-sidebar: rgba(8, 9, 13, 0.98);
  --dark-panel: #0c0e14;
  --dark-elevated: #161a23;
  --dark-button: #1d2330;
  --dark-border-strong: #475569;
  --theme-action: #334155;
  --theme-action-hover: #475569;
  --theme-action-border: #64748b;
  --theme-glow-rgb: 148, 163, 184;
}

body.theme-dark.theme-dark-rouge {
  --bg: #16090c;
  --card: #241015;
  --text: #fff7f7;
  --muted: #fecdd3;
  --line: #53202a;
  --primary: #fb7185;
  --primary-dark: #ffe4e6;
  --primary-soft: #3c151d;
  --dark-sidebar: rgba(30, 9, 14, 0.97);
  --dark-panel: #1b0b10;
  --dark-elevated: #281119;
  --dark-button: #351720;
  --dark-border-strong: #be123c;
  --theme-action: #dc2626;
  --theme-action-hover: #b91c1c;
  --theme-action-border: #fb7185;
  --theme-glow-rgb: 251, 113, 133;
}

body.theme-dark.theme-dark-bleu {
  --bg: #071524;
  --card: #0f2237;
  --text: #f8fbff;
  --muted: #bfdbfe;
  --line: #24476c;
  --primary: #60a5fa;
  --primary-dark: #dbeafe;
  --primary-soft: #12345a;
  --dark-sidebar: rgba(7, 21, 36, 0.97);
  --dark-panel: #0a1b2d;
  --dark-elevated: #10253d;
  --dark-button: #17365a;
  --dark-border-strong: #2563eb;
  --theme-action: #2563eb;
  --theme-action-hover: #1d4ed8;
  --theme-action-border: #60a5fa;
  --theme-glow-rgb: 96, 165, 250;
}

body.theme-dark,
body.theme-dark.modal-page {
  background:
    radial-gradient(circle at 85% 12%, rgba(var(--theme-glow-rgb, 167, 139, 250), 0.16), transparent 30%),
    var(--bg);
}

body.theme-dark .sidebar {
  background: var(--dark-sidebar);
}

body.theme-dark th,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark .calendar-grid,
body.theme-dark .calendar-head,
body.theme-dark .time-column,
body.theme-dark .calendar-day,
body.theme-dark .calendar-slot,
body.theme-dark .mail-list,
body.theme-dark .day-header,
body.theme-dark .theme-current-state,
body.theme-dark .theme-preview-actions,
body.theme-dark .theme-choice-card {
  background: var(--dark-panel);
}

body.theme-dark .btn-ghost,
body.theme-dark .btn-secondary,
body.theme-dark .sidebar-toggle,
body.theme-dark .mobile-nav-toggle,
body.theme-dark .icon-btn,
body.theme-dark .materiel-plus-button,
body.theme-dark .prestataire-card-actions .icon-btn,
body.theme-dark .planning-toolbar .btn,
body.theme-dark .planning-toolbar .week-current,
body.theme-dark .mini-badge,
body.theme-dark .calendar-event-add,
body.theme-dark .calendar-event-qr,
body.theme-dark .badge,
body.theme-dark .status-badge,
body.theme-dark .stock-number,
body.theme-dark .stock-inline span,
body.theme-dark .toggle-row {
  background-color: var(--dark-button) !important;
  border-color: var(--line);
}

body.theme-dark .btn-primary,
body.theme-dark .annonce-submit,
body.theme-dark .planning-toolbar .view-toggle.active {
  color: #ffffff;
  background-color: var(--theme-action) !important;
  border-color: var(--theme-action-border) !important;
}

body.theme-dark .btn-primary:hover,
body.theme-dark .annonce-submit:hover,
body.theme-dark .planning-toolbar .view-toggle.active:hover {
  background-color: var(--theme-action-hover) !important;
}

body.theme-dark .nav-count::after {
  border-color: var(--dark-sidebar, #171229);
}

body.theme-dark .settings-priority-item,
body.theme-dark .settings-preview-main {
  background: var(--dark-elevated);
  border-color: var(--line);
}

body.theme-dark .theme-choice-card:hover,
body.theme-dark .theme-choice-card.is-active,
body.theme-dark .theme-light-button.is-active {
  background: var(--primary-soft) !important;
  border-color: var(--primary);
}

body.theme-dark .theme-preview-actions p,
body.theme-dark .theme-preview-actions strong,
body.theme-dark .theme-current-state strong,
body.theme-dark .theme-choice-card strong {
  color: var(--text);
}

@media print {
  body.theme-dark {
    color: #172033 !important;
    background: #ffffff !important;
  }

  body.theme-dark .calendar-shell,
  body.theme-dark .calendar-grid,
  body.theme-dark .calendar-head,
  body.theme-dark .time-column,
  body.theme-dark .time-slot,
  body.theme-dark .calendar-day,
  body.theme-dark .calendar-slot {
    color: #172033 !important;
    background: #ffffff !important;
    border-color: #dbe4f3 !important;
  }
}

.landing-refonte {
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-refonte .landing-shell {
  width: min(1400px, calc(100% - 16px));
  padding: 0 0 30px;
}

.landing-refonte .landing-hero {
  min-height: auto;
  display: block;
  overflow: visible;
  padding: clamp(18px, 2.2vw, 28px);
}

.landing-refonte .landing-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-bottom: 0;
  padding: 10px clamp(14px, 2.2vw, 28px);
  margin: calc(-1 * clamp(18px, 2.2vw, 28px)) calc(-1 * clamp(18px, 2.2vw, 28px)) 0;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.86);
  border-radius: 28px 28px 20px 20px;
  box-shadow: 0 12px 30px rgba(24, 32, 51, 0.08);
}

.landing-refonte .landing-sticky-nav .landing-nav-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.landing-refonte .landing-sticky-nav .landing-nav-actions::-webkit-scrollbar {
  display: none;
}

.landing-refonte .landing-sticky-nav .landing-nav-link,
.landing-refonte .landing-sticky-nav .landing-nav-actions .btn {
  flex: 0 0 auto;
}

.landing-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 360px));
  justify-content: center;
  gap: clamp(22px, 4vw, 68px);
  align-items: start;
  padding: 0 10px clamp(34px, 4.4vw, 58px);
}

.landing-intro-heading {
  display: grid;
  justify-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px) 10px clamp(24px, 3.4vw, 42px);
  text-align: center;
}

.landing-hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  margin: 0 auto clamp(16px, 2vw, 24px);
}

.landing-hero-brand span {
  color: #111827;
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -1px;
}

.landing-hero-logo {
  width: clamp(104px, 12vw, 156px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(91, 77, 242, 0.16));
}

.landing-copy-center {
  max-width: none;
  justify-items: center;
  align-content: center;
  padding: 0;
  text-align: center;
}

.landing-refonte .landing-intro-heading h1 {
  display: grid;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  color: #111827;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-refonte .landing-intro-heading h1 span {
  display: block;
}

.landing-title-accent {
  color: var(--primary);
}

.landing-refonte .landing-intro-heading .landing-lead {
  max-width: 660px;
  margin: 18px auto 28px;
  color: #5f6b85;
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 650;
  line-height: 1.55;
}

.landing-refonte .landing-actions {
  justify-content: center;
}

.landing-refonte .landing-points {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.landing-refonte .landing-points-left {
  justify-self: end;
}

.landing-refonte .landing-points-right {
  justify-self: start;
}

.landing-refonte .landing-points li {
  max-width: 360px;
  padding: 0 0 0 28px;
  color: #667085;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 550;
  line-height: 1.28;
}

.landing-refonte .landing-points li::before {
  top: 0.45em;
  width: 10px;
  height: 10px;
}

.landing-refonte .landing-points strong {
  color: #111827;
  font-size: inherit;
  font-weight: 950;
}

.landing-tab-panel {
  scroll-margin-top: 118px;
}

.landing-tab-panel[hidden] {
  display: none !important;
}

.landing-tab-panel.is-active {
  animation: landing-panel-enter 0.28s ease both;
}

.landing-module {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 62px) 10px 8px;
  border-top: 1px solid rgba(203, 213, 225, 0.82);
}

#fonctionnalites {
  scroll-margin-top: 118px;
}

.landing-module-copy {
  max-width: 520px;
}

.landing-module-copy h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-module-copy p {
  margin: 18px 0 0;
  color: #59657c;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 650;
  line-height: 1.62;
}

.landing-module-lines {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.landing-module-lines span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #243047;
  font-size: 15px;
  font-weight: 900;
}

.landing-module-lines svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--primary);
}

.landing-planning-preview {
  justify-self: end;
  max-width: 650px;
}

.landing-team-module {
  grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
}

.landing-team-module .landing-module-copy {
  justify-self: end;
}

.landing-team-preview {
  width: 100%;
  max-width: 650px;
  justify-self: start;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96)),
    #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
}

.team-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #34266f);
}

.team-preview-head span {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-preview-head strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.05;
}

.team-preview-head svg {
  width: 36px;
  height: 36px;
  color: #93c5fd;
}

.team-preview-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.team-preview-member {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
  animation: team-card-breathe 7.2s ease-in-out infinite;
}

.team-preview-member::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 5px;
  background: var(--member-color);
  border-radius: 0 999px 999px 0;
}

.team-preview-member:nth-child(2) {
  animation-delay: 0.18s;
}

.team-preview-member:nth-child(3) {
  animation-delay: 0.36s;
}

.team-preview-member:nth-child(4) {
  animation-delay: 0.54s;
}

.team-preview-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--member-color);
  background: #eef2ff;
  background: color-mix(in srgb, var(--member-color) 14%, #ffffff);
  border: 1px solid #dde4f6;
  border: 1px solid color-mix(in srgb, var(--member-color) 22%, #ffffff);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 950;
}

.team-preview-info {
  min-width: 0;
}

.team-preview-info strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
}

.team-preview-info small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
  font-weight: 850;
}

.team-preview-progress {
  display: block;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: #edf2f8;
  border-radius: 999px;
}

.team-preview-progress i {
  display: block;
  width: var(--member-progress);
  height: 100%;
  background: var(--member-color);
  background: linear-gradient(90deg, var(--member-color), color-mix(in srgb, var(--member-color) 68%, #ffffff));
  border-radius: inherit;
  animation: team-progress-fill 3.4s ease-in-out infinite;
  transform-origin: left center;
}

.team-preview-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #111827;
}

.team-preview-meta strong {
  font-size: 17px;
  font-weight: 950;
}

.team-preview-meta span {
  color: #8a96ad;
  font-size: 12px;
  font-weight: 850;
}

.team-preview-muted {
  background: #fbfcff;
}

.team-preview-muted .team-preview-avatar {
  color: #ffffff;
  background: var(--member-color);
}

.landing-stock-preview {
  position: relative;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
}

.stock-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: #111827;
  background:
    linear-gradient(135deg, rgba(91, 77, 242, 0.12), rgba(14, 165, 233, 0.08)),
    #f8fafc;
  border-bottom: 1px solid #e1e8f5;
}

.stock-preview-head span {
  display: block;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-preview-head strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.05;
}

.stock-preview-head svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.stock-preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 10px;
}

.stock-preview-stats span {
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  animation: stock-stat-pop 7.8s ease-in-out infinite;
}

.stock-preview-stats span:nth-child(2) {
  animation-delay: 0.15s;
}

.stock-preview-stats span:nth-child(3) {
  animation-delay: 0.3s;
}

.stock-preview-stats span:nth-child(4) {
  animation-delay: 0.45s;
}

.stock-preview-stats strong {
  color: #111827;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.stock-preview-stats small {
  color: #7a869f;
  font-size: 12px;
  font-weight: 900;
}

.stock-preview-table {
  display: grid;
  gap: 8px;
  padding: 8px 18px 18px;
}

.stock-preview-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.28fr) minmax(94px, 0.86fr) 54px minmax(90px, 0.78fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 14px;
  animation: stock-row-slide 7.8s ease-in-out infinite;
}

.stock-preview-row:nth-child(3) {
  animation-delay: 0.12s;
}

.stock-preview-row:nth-child(4) {
  animation-delay: 0.24s;
}

.stock-preview-row:nth-child(5) {
  animation-delay: 0.36s;
}

.stock-preview-header {
  min-height: 44px;
  color: #94a3b8;
  background: #111827;
  border-color: #111827;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  animation: none;
}

.stock-preview-row strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
}

.stock-preview-row small {
  display: block;
  margin-top: 3px;
  color: #8490a6;
  font-size: 11px;
  font-weight: 850;
}

.stock-preview-row > span:nth-child(2),
.stock-preview-row > span:nth-child(3),
.stock-preview-row > span:nth-child(4) {
  color: #5f6b85;
  font-size: 13px;
  font-weight: 900;
}

.stock-preview-row > span:nth-child(3) {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.stock-preview-row i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  background: var(--stock-color);
  border-radius: 999px;
  vertical-align: 1px;
}

.stock-preview-row-added {
  opacity: 0;
  transform: translateY(12px);
  animation: stock-added-row 7.2s ease-in-out infinite;
}

.stock-preview-modal {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 8;
  width: min(330px, calc(100% - 48px));
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(24, 32, 51, 0.2);
  animation: stock-modal-cycle 7.2s ease-in-out infinite;
}

.stock-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.stock-modal-title svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.stock-modal-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  padding: 0 12px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.stock-modal-input::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #eef2ff;
  animation: stock-field-fill 7.2s ease-in-out infinite;
}

.stock-modal-input strong {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: stock-field-text 7.2s ease-in-out infinite;
}

.stock-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stock-modal-total {
  min-height: 34px;
  padding: 8px 10px;
  color: #ffffff;
  background: #111827;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  opacity: 0;
  animation: stock-field-text 7.2s ease-in-out infinite;
}

.stock-preview-modal button {
  min-height: 38px;
  color: #ffffff;
  background: #ff9800;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  animation: stock-save-button 7.2s ease-in-out infinite;
}

.landing-provider-module {
  grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
}

.landing-provider-module .landing-module-copy {
  justify-self: end;
}

.landing-provider-preview {
  width: 100%;
  max-width: 650px;
  justify-self: start;
  display: grid;
  gap: 14px;
}

.provider-preview-main {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
  animation: provider-main-float 8.4s ease-in-out infinite;
}

.provider-preview-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.05) 0%, rgba(17, 24, 39, 0.62) 100%),
    radial-gradient(circle at 72% 24%, rgba(251, 191, 36, 0.45), transparent 28%),
    linear-gradient(135deg, #7c3aed, #0ea5e9);
}

.provider-stage-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 32%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #05070f, #111827);
}

.provider-stage-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 54%;
  transform: scale(1.02);
  filter: brightness(1.06) saturate(1.08) contrast(1.04);
  animation: provider-photo-live 7.2s ease-in-out infinite;
}

.provider-stage-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.08) 52%, rgba(15, 23, 42, 0.42) 100%),
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
}

.provider-photo-glow {
  position: absolute;
  z-index: 3;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(22px);
  pointer-events: none;
  animation: provider-photo-glow 4.8s ease-in-out infinite;
}

.provider-photo-glow-one {
  top: 10%;
  left: 14%;
}

.provider-photo-glow-two {
  right: 4%;
  bottom: 16%;
  background: rgba(96, 165, 250, 0.22);
  animation-delay: 1.1s;
}

.provider-performer {
  position: absolute;
  left: 49%;
  bottom: 12px;
  width: 116px;
  height: 158px;
  transform: translateX(-50%);
  animation: provider-performer-move 2.8s ease-in-out infinite;
}

.performer-hat {
  position: absolute;
  left: 30px;
  top: 2px;
  z-index: 5;
  width: 58px;
  height: 14px;
  background: #0f172a;
  border-radius: 999px;
  transform: rotate(-8deg);
}

.performer-hat::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: 34px;
  height: 18px;
  background: #111827;
  border-radius: 7px 7px 3px 3px;
}

.performer-head {
  position: absolute;
  left: 39px;
  top: 18px;
  z-index: 3;
  width: 38px;
  height: 42px;
  background: #8b5a3c;
  border-radius: 48% 48% 44% 44%;
  box-shadow: inset -7px -6px 0 rgba(73, 43, 30, 0.18);
}

.performer-hair {
  position: absolute;
  left: 29px;
  top: 18px;
  z-index: 2;
  width: 58px;
  height: 62px;
  background:
    radial-gradient(circle at 14px 20px, #0f172a 0 10px, transparent 11px),
    radial-gradient(circle at 42px 22px, #0f172a 0 11px, transparent 12px),
    radial-gradient(circle at 28px 36px, #111827 0 23px, transparent 24px);
  border-radius: 50%;
}

.performer-body {
  position: absolute;
  left: 31px;
  top: 62px;
  z-index: 2;
  width: 54px;
  height: 66px;
  background:
    linear-gradient(90deg, transparent 0 43%, #ffffff 43% 57%, transparent 57%),
    linear-gradient(135deg, #111827, #312e81);
  border-radius: 16px 16px 10px 10px;
  box-shadow: inset 0 -16px 0 rgba(255, 255, 255, 0.1);
}

.performer-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 22px;
  height: 8px;
  background: #ffffff;
  border-radius: 999px;
}

.performer-arm {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 58px;
  background: #111827;
  border-radius: 999px;
  transform-origin: top center;
}

.performer-arm-left {
  left: 25px;
  top: 70px;
  transform: rotate(22deg);
}

.performer-arm-right {
  right: 20px;
  top: 66px;
  transform: rotate(-48deg);
  animation: provider-mic-arm 2.8s ease-in-out infinite;
}

.performer-mic {
  position: absolute;
  left: -5px;
  bottom: -17px;
  width: 9px;
  height: 28px;
  background: #111827;
  border-radius: 999px;
  transform: rotate(12deg);
}

.performer-mic::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -8px;
  width: 17px;
  height: 15px;
  background: #e5e7eb;
  border: 3px solid #111827;
  border-radius: 50%;
}

.performer-leg {
  position: absolute;
  top: 122px;
  z-index: 1;
  width: 16px;
  height: 46px;
  background: #0f172a;
  border-radius: 999px;
  transform-origin: top center;
}

.performer-leg-left {
  left: 43px;
  transform: rotate(9deg);
}

.performer-leg-right {
  right: 39px;
  transform: rotate(-15deg);
}

.provider-preview-visual > span {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: #ffffff;
  background: #ff9800;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.provider-preview-content {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
}

.provider-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.provider-preview-content small {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.provider-preview-content strong {
  color: #111827;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.04;
}

.provider-preview-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 12px;
  color: #92400e;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.provider-preview-content svg {
  width: 16px;
  height: 16px;
}

.provider-sound-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: #111827;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(24, 32, 51, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.provider-sound-button:hover,
.provider-sound-button.is-ready {
  transform: translateY(-1px);
  background: var(--primary);
  box-shadow: 0 18px 36px rgba(91, 77, 242, 0.22);
}

.provider-sound-button.is-playing {
  background: #ff9800;
  animation: provider-sound-pulse 0.72s ease-in-out 2;
}

.provider-sound-button svg {
  width: 18px;
  height: 18px;
}

.provider-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.provider-preview-card {
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.07);
  animation: provider-card-rise 8.4s ease-in-out infinite;
}

.provider-preview-card:nth-child(2) {
  animation-delay: 0.2s;
}

.provider-preview-card:nth-child(3) {
  animation-delay: 0.4s;
}

.provider-preview-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  background: #eef2ff;
  border-radius: 14px;
}

.provider-preview-icon svg {
  width: 21px;
  height: 21px;
}

.provider-preview-card strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.16;
}

.provider-preview-card small {
  display: block;
  margin-top: 4px;
  color: #7a869f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.provider-preview-card em {
  align-self: end;
  width: fit-content;
  padding: 7px 10px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.landing-incident-preview {
  position: relative;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(244, 63, 94, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
}

.incident-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 4px 18px;
}

.incident-preview-head span {
  display: block;
  color: #e11d48;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.incident-preview-head strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 25px;
  line-height: 1.05;
}

.incident-preview-count {
  position: relative;
  min-height: 28px;
}

.incident-preview-count span {
  display: block;
}

.incident-count-open {
  animation: incident-count-open 8s ease-in-out infinite;
}

.incident-count-resolved {
  position: absolute;
  inset: 0 auto auto 0;
  color: #16a34a;
  white-space: nowrap;
  opacity: 0;
  animation: incident-count-resolved 8s ease-in-out infinite;
}

.incident-preview-head svg {
  width: 38px;
  height: 38px;
  color: #e11d48;
}

.incident-preview-board {
  display: grid;
  gap: 12px;
}

.incident-preview-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 16px 16px 16px 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.06);
  animation: incident-card-focus 8s ease-in-out infinite;
}

.incident-preview-card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 5px;
  background: var(--incident-color);
  border-radius: 0 999px 999px 0;
}

.incident-resolve-target {
  animation: incident-card-resolve 8s ease-in-out infinite;
}

.incident-resolve-target::before {
  animation: incident-bar-resolve 8s ease-in-out infinite;
}

.incident-preview-card:nth-child(2) {
  animation-delay: 0.18s;
}

.incident-preview-card:nth-child(3) {
  animation-delay: 0.36s;
}

.incident-preview-card-high {
  --incident-color: #f43f5e;
}

.incident-preview-card-medium {
  --incident-color: #f59e0b;
}

.incident-preview-card-low {
  --incident-color: #22c55e;
}

.incident-preview-card-info {
  --incident-color: #0ea5e9;
}

.incident-preview-severity {
  position: relative;
  width: fit-content;
  min-width: 64px;
  min-height: 26px;
  padding: 6px 10px;
  color: var(--incident-color);
  background: color-mix(in srgb, var(--incident-color) 12%, #ffffff);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.incident-resolve-target .incident-preview-severity {
  animation: incident-badge-resolve 8s ease-in-out infinite;
}

.incident-preview-severity > span {
  display: block;
}

.incident-status-resolved {
  position: absolute;
  inset: 6px auto auto 10px;
  color: #16a34a;
  opacity: 0;
  animation: incident-status-resolved 8s ease-in-out infinite;
}

.incident-status-open {
  animation: incident-status-open 8s ease-in-out infinite;
}

.incident-preview-card strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
}

.incident-preview-card small {
  position: relative;
  display: block;
  min-height: 16px;
  color: #7a869f;
  font-size: 12px;
  font-weight: 900;
}

.incident-preview-card p {
  position: relative;
  min-height: 36px;
  margin: 0;
  color: #5f6b85;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.incident-detail-open,
.incident-detail-resolved {
  display: block;
}

.incident-detail-open {
  animation: incident-detail-open 8s ease-in-out infinite;
}

.incident-detail-resolved {
  position: absolute;
  inset: 0 auto auto 0;
  color: #047857;
  opacity: 0;
  animation: incident-detail-resolved 8s ease-in-out infinite;
}

.incident-click-cursor {
  position: absolute;
  right: 22px;
  top: 44px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: #111827;
  border-radius: 13px;
  box-shadow: 0 14px 28px rgba(24, 32, 51, 0.22);
  opacity: 0;
  animation: incident-click-cursor 8s ease-in-out infinite;
}

.incident-click-cursor svg {
  width: 19px;
  height: 19px;
}

.incident-preview-modal {
  position: absolute;
  right: 24px;
  bottom: 86px;
  z-index: 8;
  width: min(340px, calc(100% - 48px));
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe5f4;
  border-radius: 20px;
  box-shadow: 0 26px 60px rgba(24, 32, 51, 0.2);
  animation: incident-modal-cycle 8s ease-in-out infinite;
}

.incident-preview-modal > strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.incident-modal-field {
  position: relative;
  min-height: 64px;
  overflow: hidden;
  padding: 12px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  animation: incident-field-text 8s ease-in-out infinite;
}

.incident-modal-field::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 0;
  background: #fef2f2;
  animation: incident-field-fill 8s ease-in-out infinite;
}

.incident-modal-field strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #111827;
  font-weight: 900;
}

.incident-modal-resolver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 10px;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  opacity: 0;
  animation: incident-field-text 8s ease-in-out infinite;
}

.incident-modal-resolver svg {
  width: 15px;
  height: 15px;
}

.incident-preview-modal button {
  min-height: 38px;
  color: #ffffff;
  background: #16a34a;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  animation: incident-save-button 8s ease-in-out infinite;
}

.incident-preview-resolution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  color: #064e3b;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  animation: incident-resolution-pop 8s ease-in-out infinite;
}

.incident-preview-resolution > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #16a34a;
  border-radius: 14px;
}

.incident-preview-resolution svg {
  width: 22px;
  height: 22px;
}

.incident-preview-resolution small {
  display: block;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.incident-preview-resolution strong {
  display: block;
  margin-top: 2px;
  color: #052e16;
  font-size: 16px;
  font-weight: 950;
}

.landing-dashboard-module,
.landing-satisfaction-module,
.landing-settings-module {
  grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
}

.landing-dashboard-module .landing-module-copy,
.landing-satisfaction-module .landing-module-copy,
.landing-settings-module .landing-module-copy {
  justify-self: end;
}

.landing-dashboard-preview,
.landing-mail-preview,
.landing-satisfaction-preview,
.landing-settings-preview {
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
}

.landing-dashboard-preview {
  justify-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 86% 14%, rgba(250, 204, 21, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.dashboard-preview-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: stretch;
}

.dashboard-preview-date > div:first-child,
.dashboard-preview-weather,
.dashboard-preview-grid article,
.dashboard-preview-timeline {
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
}

.dashboard-preview-date > div:first-child {
  padding: 18px;
}

.dashboard-preview-date span,
.dashboard-preview-date small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-preview-date strong {
  display: block;
  margin: 7px 0;
  color: #111827;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 950;
  line-height: 1.06;
}

.dashboard-preview-date small {
  color: var(--primary);
  text-transform: none;
}

.dashboard-preview-weather {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 16px;
  color: #111827;
  background: #fde047;
  animation: dashboard-weather-float 7.4s ease-in-out infinite;
}

.dashboard-preview-weather svg {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

.dashboard-preview-weather strong {
  margin: 0;
  font-size: 28px;
}

.dashboard-preview-weather span {
  color: #713f12;
  text-transform: none;
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-preview-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.dashboard-preview-grid article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: #eef2ff;
  border-radius: 14px;
}

.dashboard-preview-grid svg {
  width: 21px;
  height: 21px;
}

.dashboard-preview-grid strong {
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.dashboard-preview-grid small {
  color: #7a869f;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-preview-timeline {
  display: grid;
  gap: 0;
  padding: 8px;
}

.dashboard-preview-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  animation: dashboard-line-slide 8.2s ease-in-out infinite;
}

.dashboard-preview-line + .dashboard-preview-line {
  border-top: 1px solid #edf2f8;
}

.dashboard-preview-line time {
  color: #64748b;
  font-size: 13px;
  font-weight: 950;
}

.dashboard-preview-line strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.dashboard-preview-line span {
  width: fit-content;
  padding: 6px 9px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.dashboard-preview-now {
  background: #eef2ff;
}

.dashboard-preview-now span {
  color: #ffffff;
  background: var(--primary);
}

.dashboard-preview-next span {
  color: #075985;
  background: #e0f2fe;
}

.landing-mail-preview {
  position: relative;
  justify-self: end;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  background: #ffffff;
}

.mail-preview-incoming {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(280px, calc(100% - 36px));
  padding: 12px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(24, 32, 51, 0.18);
  animation: mail-incoming-toast 6.4s ease-in-out infinite;
}

.mail-preview-incoming > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 14px;
}

.mail-preview-incoming svg {
  width: 21px;
  height: 21px;
}

.mail-preview-incoming small {
  display: block;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mail-preview-incoming strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.mail-preview-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  background: #f8fafc;
  border-right: 1px solid #e1e8f5;
}

.mail-preview-sidebar span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  color: #64748b;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 950;
}

.mail-preview-sidebar svg {
  width: 17px;
  height: 17px;
}

.mail-preview-sidebar .mail-preview-active {
  color: var(--primary-dark);
  background: #eef2ff;
}

.mail-preview-content {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mail-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-preview-toolbar strong {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.mail-preview-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.mail-preview-toolbar svg {
  width: 15px;
  height: 15px;
}

.mail-preview-message {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  animation: mail-message-rise 8.4s ease-in-out infinite;
}

.mail-preview-message:nth-child(3) {
  animation-delay: 0.16s;
}

.mail-preview-message:nth-child(4) {
  animation-delay: 0.32s;
}

.mail-preview-message > span {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 999px;
}

.mail-preview-unread {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.mail-preview-unread > span {
  background: var(--primary);
}

.mail-preview-message strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.mail-preview-message p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.mail-preview-message small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
}

.landing-satisfaction-preview {
  justify-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(250, 204, 21, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.96));
}

.satisfaction-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
}

.satisfaction-preview-head span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.satisfaction-preview-head strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.06;
}

.satisfaction-preview-head svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 16px;
  animation: satisfaction-star-glow 5.8s ease-in-out infinite;
}

.satisfaction-preview-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
}

.satisfaction-preview-qr,
.satisfaction-preview-score,
.satisfaction-preview-chart,
.satisfaction-preview-comments article {
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
}

.satisfaction-preview-qr,
.satisfaction-preview-score {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
}

.satisfaction-preview-qr small,
.satisfaction-preview-score small,
.satisfaction-chart-labels span,
.satisfaction-preview-comments span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.satisfaction-preview-qr em,
.satisfaction-preview-score em {
  color: #7a869f;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.satisfaction-fake-qr {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 142px;
  height: 142px;
  padding: 52px 12px 12px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 7px #f8fafc;
}

.satisfaction-fake-qr::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 3px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.52);
  animation: satisfaction-qr-scan 5.8s ease-in-out infinite;
}

.satisfaction-fake-qr span {
  min-height: 8px;
  background: #111827;
  border-radius: 2px;
}

.satisfaction-fake-qr span:nth-of-type(2),
.satisfaction-fake-qr span:nth-of-type(5),
.satisfaction-fake-qr span:nth-of-type(7),
.satisfaction-fake-qr span:nth-of-type(10),
.satisfaction-fake-qr span:nth-of-type(13),
.satisfaction-fake-qr span:nth-of-type(18),
.satisfaction-fake-qr span:nth-of-type(22) {
  background: #4f46e5;
}

.qr-finder {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 6px solid #111827;
  border-radius: 7px;
  background: #ffffff;
}

.qr-finder::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: #111827;
  border-radius: 3px;
}

.qr-finder-one {
  left: 13px;
  top: 13px;
}

.qr-finder-two {
  right: 13px;
  top: 13px;
}

.qr-finder-three {
  left: 13px;
  bottom: 13px;
}

.satisfaction-real-qr {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 7px #f8fafc;
  overflow: hidden;
}

.satisfaction-real-qr::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 50%;
  height: 4px;
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.44);
  transform: translateY(-50%);
  animation: satisfaction-qr-scan 5.8s ease-in-out infinite;
}

.satisfaction-real-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.satisfaction-preview-score {
  position: relative;
  overflow: hidden;
}

.satisfaction-preview-score::before {
  content: "";
  position: absolute;
  inset: auto -20% -48% 12%;
  height: 130px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 68%);
  animation: satisfaction-score-aura 5.8s ease-in-out infinite;
}

.satisfaction-preview-score > * {
  position: relative;
  z-index: 1;
}

.satisfaction-preview-score strong {
  color: #16a34a;
  font-size: 54px;
  font-weight: 950;
  line-height: 0.96;
  animation: satisfaction-score-pop 5.8s ease-in-out infinite;
}

.satisfaction-preview-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 24px;
  letter-spacing: 0;
}

.satisfaction-preview-stars span {
  animation: satisfaction-star-fill 5.8s ease-in-out infinite;
}

.satisfaction-preview-stars span:nth-child(2) {
  animation-delay: 0.08s;
}

.satisfaction-preview-stars span:nth-child(3) {
  animation-delay: 0.16s;
}

.satisfaction-preview-stars span:nth-child(4) {
  animation-delay: 0.24s;
}

.satisfaction-preview-stars span:nth-child(5) {
  animation-delay: 0.32s;
}

.satisfaction-preview-chart {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.satisfaction-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.satisfaction-chart-labels strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.satisfaction-preview-chart svg {
  width: 100%;
  height: auto;
}

.satisfaction-preview-chart line {
  stroke: #dbe4f0;
  stroke-width: 2;
}

.satisfaction-preview-chart path {
  fill: none;
  stroke: #4f46e5;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: satisfaction-chart-draw 5.8s ease-in-out infinite;
}

.satisfaction-preview-chart circle {
  fill: #ffffff;
  stroke: #f59e0b;
  stroke-width: 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: satisfaction-point-pop 5.8s ease-in-out infinite;
}

.satisfaction-preview-comments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.satisfaction-preview-comments article {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 14px;
  animation: satisfaction-comment-rise 5.8s ease-in-out infinite;
}

.satisfaction-preview-comments article:nth-child(2) {
  animation-delay: 0.24s;
}

.satisfaction-preview-comments strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.landing-settings-preview {
  position: relative;
  justify-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(91, 77, 242, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  isolation: isolate;
}

.landing-settings-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(139, 92, 246, 0.38), transparent 36%),
    linear-gradient(135deg, #151126, #24143f 54%, #101827);
  opacity: 0;
  animation: settings-dark-overlay 6.6s ease-in-out infinite;
}

.landing-settings-preview > * {
  position: relative;
  z-index: 1;
}

.settings-preview-card,
.settings-preview-grid article {
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
}

.settings-preview-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  animation:
    settings-card-float 6.6s ease-in-out infinite,
    settings-surface-dark 6.6s ease-in-out infinite;
}

.settings-preview-main > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border-radius: 18px;
  animation: settings-icon-box-dark 6.6s ease-in-out infinite;
}

.settings-preview-main svg {
  width: 25px;
  height: 25px;
}

.settings-preview-main small {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  animation: settings-muted-dark 6.6s ease-in-out infinite;
}

.settings-preview-main strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
  animation: settings-text-dark 6.6s ease-in-out infinite;
}

.settings-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-preview-grid article {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 16px;
  animation:
    settings-card-float 6.6s ease-in-out infinite,
    settings-surface-dark 6.6s ease-in-out infinite;
}

.settings-preview-grid article:nth-child(2) {
  animation-delay: 0.12s, 0s;
}

.settings-preview-grid article:nth-child(3) {
  animation-delay: 0.24s, 0s;
}

.settings-preview-grid article:nth-child(4) {
  animation-delay: 0.36s, 0s;
}

.settings-preview-grid svg {
  width: 25px;
  height: 25px;
  color: var(--primary);
  animation: settings-icon-dark 6.6s ease-in-out infinite;
}

.settings-preview-grid strong {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  animation: settings-text-dark 6.6s ease-in-out infinite;
}

.settings-preview-grid small {
  color: #7a869f;
  font-size: 12px;
  font-weight: 850;
  animation: settings-muted-dark 6.6s ease-in-out infinite;
}

.settings-preview-toggle {
  position: relative;
  width: 54px;
  height: 30px;
  margin-top: auto;
  background: #dbeafe;
  border-radius: 999px;
  animation: settings-toggle-track 6.6s ease-in-out infinite;
}

.settings-preview-toggle i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 999px;
  animation: settings-toggle-nudge 6.6s ease-in-out infinite;
}

.settings-preview-main {
  justify-content: space-between;
}

.settings-preview-alert,
.settings-preview-dot {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  color: #ffffff;
  background: #ef4444;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.settings-preview-tag {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.settings-priority-list {
  display: grid;
  gap: 9px;
}

.settings-priority-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
  animation:
    settings-card-float 6.6s ease-in-out infinite,
    settings-surface-dark 6.6s ease-in-out infinite;
}

.settings-priority-item:nth-child(2) {
  animation-delay: 0.12s, 0s;
}

.settings-priority-item:nth-child(3) {
  animation-delay: 0.24s, 0s;
}

.settings-priority-item:nth-child(4) {
  animation-delay: 0.36s, 0s;
}

.settings-priority-item:nth-child(5) {
  animation-delay: 0.48s, 0s;
}

.settings-priority-item > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: #eef2ff;
  border-radius: 14px;
  animation: settings-icon-box-dark 6.6s ease-in-out infinite;
}

.settings-priority-item svg {
  width: 21px;
  height: 21px;
}

.settings-priority-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  animation: settings-text-dark 6.6s ease-in-out infinite;
}

.settings-priority-item small {
  display: block;
  margin-top: 3px;
  color: #7a869f;
  font-size: 12px;
  font-weight: 850;
  animation: settings-muted-dark 6.6s ease-in-out infinite;
}

.settings-priority-item.is-active b {
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
}

.settings-color-item {
  animation:
    settings-card-float 6.6s ease-in-out infinite,
    settings-color-surface 6.6s ease-in-out infinite;
}

.settings-color-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #f8fafc;
  border: 1px solid #e1e8f5;
  border-radius: 999px;
  animation: settings-color-strip-glow 6.6s ease-in-out infinite;
}

.settings-color-strip i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
  animation: settings-color-dot-pop 6.6s ease-in-out infinite;
}

.settings-color-strip i:nth-child(1) {
  background: #5b4df2;
}

.settings-color-strip i:nth-child(2) {
  background: #111827;
  animation-delay: 0.12s;
}

.settings-color-strip i:nth-child(3) {
  background: #dc2626;
  animation-delay: 0.24s;
}

.settings-color-strip i:nth-child(4) {
  background: #2563eb;
  animation-delay: 0.36s;
}

#webapp {
  scroll-margin-top: 118px;
}

#pricing {
  scroll-margin-top: 118px;
}

.landing-pricing-module {
  grid-template-columns: minmax(0, 0.72fr) minmax(620px, 1.28fr);
}

.landing-pricing-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 420px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(207, 216, 232, 0.92);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(24, 32, 51, 0.09);
}

.pricing-card-featured {
  color: #ffffff;
  background: linear-gradient(145deg, #5b4df2 0%, #3328a8 100%);
  border-color: transparent;
  transform: translateY(-10px);
  box-shadow: 0 28px 68px rgba(91, 77, 242, 0.28);
}

.pricing-tag {
  width: fit-content;
  padding: 8px 12px;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-card-featured .pricing-tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.pricing-card h3 {
  margin: 0;
  color: #111827;
  font-size: 25px;
  line-height: 1.05;
}

.pricing-card-featured h3 {
  color: #ffffff;
}

.pricing-price {
  color: #111827;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1;
}

.pricing-price small {
  color: #748098;
  font-size: 15px;
  font-weight: 850;
}

.pricing-card-featured .pricing-price,
.pricing-card-featured .pricing-price small {
  color: #ffffff;
}

.pricing-card p {
  margin: 0;
  color: #637089;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.pricing-card-featured p {
  color: rgba(255, 255, 255, 0.82);
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.pricing-card-featured li {
  color: #ffffff;
}

.pricing-card li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #22c55e;
  stroke-width: 3;
}

.pricing-card-featured li svg {
  color: #facc15;
}

.landing-webapp-module {
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
}

.landing-webapp-preview {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 650px;
  min-height: 430px;
  display: grid;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.18), transparent 36%),
    radial-gradient(circle at 82% 70%, rgba(91, 77, 242, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #f4f7ff);
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(24, 32, 51, 0.1);
}

.landing-webapp-preview::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(91, 77, 242, 0.16);
  border-radius: 24px;
}

.webapp-device {
  position: relative;
  z-index: 1;
  background: #111827;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 22px 52px rgba(24, 32, 51, 0.16);
}

.webapp-tablet {
  width: min(74%, 450px);
  min-height: 310px;
  padding: 14px;
  border-radius: 30px;
  animation: webapp-tablet-float 6.8s ease-in-out infinite;
}

.webapp-phone {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  width: 178px;
  padding: 12px 10px 10px;
  border-radius: 30px;
  animation: webapp-phone-pop 6.8s ease-in-out infinite;
}

.webapp-phone-speaker {
  width: 48px;
  height: 5px;
  margin: 0 auto 8px;
  background: #334155;
  border-radius: 999px;
}

.webapp-screen {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 15px;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 20px;
}

.webapp-topbar,
.webapp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webapp-topbar span,
.webapp-mobile-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 12px;
  font-weight: 950;
}

.webapp-topbar strong,
.webapp-mobile-head strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.webapp-topbar svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.webapp-week {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.webapp-week span {
  padding: 8px 6px;
  color: #64748b;
  background: #eef2ff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.webapp-event {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 6px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(24, 32, 51, 0.08);
}

.webapp-event-sky {
  border-left-color: #0ea5e9;
  animation: webapp-event-slide 6.8s ease-in-out infinite;
}

.webapp-event small,
.webapp-event em,
.webapp-mobile-head small,
.webapp-screen article small,
.webapp-screen article span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  font-style: normal;
}

.webapp-event strong,
.webapp-screen article strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.webapp-install-toast {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
  font-size: 12px;
  font-weight: 950;
  animation: webapp-toast 6.8s ease-in-out infinite;
}

.webapp-install-toast svg {
  width: 16px;
  height: 16px;
}

.webapp-phone .webapp-screen {
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
}

.webapp-mobile-head {
  justify-content: flex-start;
}

.webapp-mobile-head > div {
  display: grid;
  gap: 1px;
}

.webapp-screen article {
  display: grid;
  gap: 3px;
  padding: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.webapp-screen button {
  min-height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 0;
  border-radius: 14px;
  font-weight: 950;
}

@keyframes team-card-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes stock-stat-pop {
  0%,
  100% {
    transform: translateY(0);
  }

  48% {
    transform: translateY(-3px);
  }
}

@keyframes stock-row-slide {
  0%,
  100% {
    transform: translateX(0);
  }

  46% {
    transform: translateX(4px);
  }
}

@keyframes stock-modal-cycle {
  0%,
  10% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  18%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  68%,
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes stock-field-fill {
  0%,
  20% {
    width: 0;
  }

  40%,
  100% {
    width: 100%;
  }
}

@keyframes stock-field-text {
  0%,
  30% {
    opacity: 0;
  }

  40%,
  100% {
    opacity: 1;
  }
}

@keyframes stock-save-button {
  0%,
  42% {
    opacity: 0;
    transform: translateY(6px);
  }

  52%,
  60% {
    opacity: 1;
    transform: translateY(0);
  }

  72%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes stock-added-row {
  0%,
  56% {
    opacity: 0;
    transform: translateY(14px);
  }

  68%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes provider-main-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes provider-card-rise {
  0%,
  100% {
    transform: translateY(0);
  }

  48% {
    transform: translateY(-5px);
  }
}

@keyframes provider-performer-move {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateX(-50%) translateY(-4px) rotate(1deg);
  }
}

@keyframes provider-mic-arm {
  0%,
  100% {
    transform: rotate(-48deg);
  }

  50% {
    transform: rotate(-36deg);
  }
}

@keyframes provider-photo-live {
  0%,
  100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.06) translate3d(-0.8%, -0.6%, 0);
  }
}

@keyframes provider-photo-glow {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.2);
  }
}

@keyframes provider-sound-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes incident-card-focus {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 42px rgba(24, 32, 51, 0.06);
  }

  42% {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(24, 32, 51, 0.1);
  }
}

@keyframes incident-card-resolve {
  0%,
  14%,
  100% {
    background: #ffffff;
    border-color: #e1e8f5;
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 42px rgba(24, 32, 51, 0.06);
  }

  20%,
  28% {
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 54px rgba(24, 32, 51, 0.14);
  }

  66%,
  88% {
    background: #f0fdf4;
    border-color: #bbf7d0;
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 42px rgba(22, 163, 74, 0.12);
  }
}

@keyframes incident-bar-resolve {
  0%,
  58%,
  100% {
    background: #f43f5e;
  }

  66%,
  88% {
    background: #22c55e;
  }
}

@keyframes incident-badge-resolve {
  0%,
  58%,
  100% {
    background: #fff1f2;
    color: #f43f5e;
  }

  66%,
  88% {
    background: #dcfce7;
    color: #16a34a;
  }
}

@keyframes incident-click-cursor {
  0%,
  8%,
  34%,
  100% {
    opacity: 0;
    transform: translate(28px, 10px) scale(0.92);
  }

  14%,
  18% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  22% {
    opacity: 1;
    transform: translate(0, 0) scale(0.88);
  }

  27% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes incident-status-open {
  0%,
  58%,
  100% {
    opacity: 1;
  }

  66%,
  88% {
    opacity: 0;
  }
}

@keyframes incident-status-resolved {
  0%,
  58%,
  100% {
    opacity: 0;
  }

  66%,
  88% {
    opacity: 1;
  }
}

@keyframes incident-detail-open {
  0%,
  58%,
  100% {
    opacity: 1;
  }

  66%,
  88% {
    opacity: 0;
  }
}

@keyframes incident-detail-resolved {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }

  66%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes incident-count-open {
  0%,
  58%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  66%,
  88% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes incident-count-resolved {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }

  66%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes incident-resolution-pop {
  0%,
  58%,
  100% {
    opacity: 0.72;
    transform: translateY(5px);
  }

  66%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes incident-modal-cycle {
  0%,
  22%,
  68%,
  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  30%,
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes incident-field-fill {
  0%,
  34% {
    width: 0;
  }

  52%,
  100% {
    width: 100%;
  }
}

@keyframes incident-field-text {
  0%,
  38% {
    opacity: 0;
  }

  48%,
  100% {
    opacity: 1;
  }
}

@keyframes incident-save-button {
  0%,
  48% {
    opacity: 0;
    transform: translateY(6px);
  }

  55%,
  60% {
    opacity: 1;
    transform: translateY(0);
  }

  67%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes dashboard-weather-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes dashboard-line-slide {
  0%,
  100% {
    transform: translateX(0);
  }

  46% {
    transform: translateX(4px);
  }
}

@keyframes mail-message-rise {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: none;
  }

  48% {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(24, 32, 51, 0.08);
  }
}

@keyframes mail-incoming-toast {
  0%,
  16% {
    opacity: 0;
    transform: translateX(34px) translateY(-8px) scale(0.96);
  }

  28%,
  60% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }

  74%,
  100% {
    opacity: 0;
    transform: translateX(0) translateY(-12px) scale(0.98);
  }
}

@keyframes satisfaction-star-glow {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 0 rgba(245, 158, 11, 0);
  }

  50% {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.24);
  }
}

@keyframes satisfaction-qr-scan {
  0%,
  18% {
    opacity: 0;
    transform: translateY(0);
  }

  26%,
  74% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
    transform: translateY(86px);
  }
}

@keyframes satisfaction-score-aura {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }

  48% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes satisfaction-score-pop {
  0%,
  28% {
    color: #94a3b8;
    transform: translateY(8px) scale(0.92);
  }

  42%,
  100% {
    color: #16a34a;
    transform: translateY(0) scale(1);
  }
}

@keyframes satisfaction-star-fill {
  0%,
  32% {
    opacity: 0.28;
    transform: translateY(6px) scale(0.84);
  }

  48%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes satisfaction-chart-draw {
  0%,
  36% {
    stroke-dashoffset: 420;
  }

  62%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes satisfaction-point-pop {
  0%,
  52% {
    opacity: 0;
    transform: scale(0.45);
  }

  64%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes satisfaction-comment-rise {
  0%,
  56% {
    opacity: 0;
    transform: translateY(12px);
  }

  70%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settings-dark-overlay {
  0%,
  28%,
  88%,
  100% {
    opacity: 0;
  }

  42%,
  74% {
    opacity: 1;
  }
}

@keyframes settings-surface-dark {
  0%,
  28%,
  88%,
  100% {
    background-color: #ffffff;
    border-color: #e1e8f5;
    box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
  }

  42%,
  74% {
    background-color: rgba(30, 22, 52, 0.95);
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow: 0 18px 46px rgba(5, 6, 20, 0.26);
  }
}

@keyframes settings-text-dark {
  0%,
  28%,
  88%,
  100% {
    color: #111827;
  }

  42%,
  74% {
    color: #ffffff;
  }
}

@keyframes settings-muted-dark {
  0%,
  28%,
  88%,
  100% {
    color: #64748b;
  }

  42%,
  74% {
    color: #c4b5fd;
  }
}

@keyframes settings-icon-dark {
  0%,
  28%,
  88%,
  100% {
    color: var(--primary);
  }

  42%,
  74% {
    color: #a78bfa;
  }
}

@keyframes settings-icon-box-dark {
  0%,
  28%,
  88%,
  100% {
    box-shadow: none;
    filter: saturate(1);
  }

  42%,
  74% {
    box-shadow: 0 0 0 7px rgba(139, 92, 246, 0.16);
    filter: saturate(1.25);
  }
}

@keyframes settings-toggle-track {
  0%,
  28%,
  88%,
  100% {
    background: #dbeafe;
  }

  42%,
  74% {
    background: #5b4df2;
  }
}

@keyframes settings-card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes settings-color-surface {
  0%,
  22%,
  88%,
  100% {
    background-color: #ffffff;
    border-color: #e1e8f5;
    box-shadow: 0 16px 36px rgba(24, 32, 51, 0.06);
  }

  38%,
  52% {
    background-color: #f3f0ff;
    border-color: rgba(91, 77, 242, 0.36);
    box-shadow: 0 18px 42px rgba(91, 77, 242, 0.18);
  }

  62%,
  76% {
    background-color: #eff6ff;
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
  }
}

@keyframes settings-color-strip-glow {
  0%,
  22%,
  88%,
  100% {
    background: #f8fafc;
    box-shadow: none;
  }

  38%,
  76% {
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(91, 77, 242, 0.12);
  }
}

@keyframes settings-color-dot-pop {
  0%,
  24%,
  86%,
  100% {
    transform: scale(0.92);
  }

  42%,
  68% {
    transform: scale(1.18);
  }
}

@keyframes settings-toggle-nudge {
  0%,
  28%,
  88%,
  100% {
    transform: translateX(0);
  }

  42%,
  74% {
    transform: translateX(24px);
  }
}

@keyframes brand-page-flip {
  0%,
  22%,
  100% {
    opacity: 0.96;
    transform: rotate(-5deg) rotateY(0deg) translateX(0);
  }

  38% {
    opacity: 0.9;
    transform: rotate(-5deg) rotateY(-68deg) translateX(-1px);
  }

  54% {
    opacity: 0.98;
    transform: rotate(-3deg) rotateY(0deg) translateX(1px);
  }

  68% {
    opacity: 0.96;
    transform: rotate(-5deg) rotateY(0deg) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark::before {
    animation: none;
  }
}

@keyframes webapp-tablet-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(0.6deg);
  }
}

@keyframes webapp-phone-pop {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes webapp-event-slide {
  0%,
  24%,
  100% {
    transform: translateX(0);
  }

  42%,
  70% {
    transform: translateX(38px);
  }
}

@keyframes webapp-toast {
  0%,
  20%,
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  34%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes landing-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes team-progress-fill {
  0% {
    transform: scaleX(0.72);
  }

  42%,
  100% {
    transform: scaleX(1);
  }
}

.landing-refonte .preview-board,
.landing-refonte .preview-content {
  min-height: 430px;
}

.landing-refonte .landing-legal-links {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .landing-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0 4px 36px;
  }

  .landing-refonte .landing-points-left,
  .landing-refonte .landing-points-right {
    justify-self: stretch;
  }

  .landing-refonte .landing-points li {
    max-width: none;
  }

  .landing-module {
    grid-template-columns: 1fr;
  }

  .landing-module-copy {
    max-width: 760px;
  }

  .landing-planning-preview {
    justify-self: stretch;
    max-width: none;
  }

  .landing-stock-preview {
    justify-self: stretch;
    max-width: none;
  }

  .landing-incident-preview {
    justify-self: stretch;
    max-width: none;
  }

  .landing-mail-preview {
    justify-self: stretch;
    max-width: none;
  }

  .landing-team-module .landing-module-copy {
    order: 1;
    justify-self: stretch;
  }

  .landing-team-preview {
    order: 2;
    justify-self: stretch;
    max-width: none;
  }

  .landing-provider-module .landing-module-copy {
    order: 1;
    justify-self: stretch;
  }

  .landing-provider-preview {
    order: 2;
    justify-self: stretch;
    max-width: none;
  }

  .landing-dashboard-module .landing-module-copy,
  .landing-satisfaction-module .landing-module-copy,
  .landing-settings-module .landing-module-copy {
    order: 1;
    justify-self: stretch;
  }

  .landing-dashboard-preview,
  .landing-satisfaction-preview,
  .landing-settings-preview,
  .landing-webapp-preview {
    order: 2;
    justify-self: stretch;
    max-width: none;
  }

  .landing-webapp-module .landing-module-copy {
    order: 1;
    justify-self: stretch;
  }

  .landing-pricing-module {
    grid-template-columns: 1fr;
  }

  .landing-pricing-preview {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 0;
  }

  .pricing-card-featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .landing-refonte .landing-shell {
    width: min(100% - 20px, 1240px);
    padding: 10px 0 22px;
  }

  .landing-refonte .landing-hero {
    padding: 16px;
    border-radius: 22px;
  }

  .landing-refonte .landing-intro-heading {
    padding: 32px 0 24px;
  }

  .landing-hero-brand {
    gap: 12px;
    margin-bottom: 14px;
  }

  .landing-hero-brand span {
    font-size: clamp(30px, 10vw, 46px);
  }

  .landing-hero-logo {
    width: clamp(88px, 28vw, 128px);
  }

  .landing-refonte .landing-intro-heading h1 {
    font-size: clamp(38px, 14vw, 58px);
    line-height: 0.96;
  }

  .landing-refonte .landing-points-left,
  .landing-refonte .landing-points-right {
    grid-template-columns: 1fr;
  }

  .landing-refonte .landing-points li {
    font-size: 16px;
  }

  .landing-module {
    gap: 24px;
    padding: 34px 0 4px;
  }

  .landing-module-copy h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .landing-module-lines span {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.35;
  }

  .team-preview-head {
    padding: 18px;
  }

  .team-preview-head strong {
    font-size: 21px;
  }

  .team-preview-list {
    padding: 12px;
  }

  .team-preview-member {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    padding: 12px 13px;
  }

  .team-preview-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .team-preview-meta {
    grid-column: 2;
    justify-items: start;
  }

  .stock-preview-head {
    padding: 18px;
  }

  .stock-preview-head strong {
    font-size: 21px;
  }

  .stock-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .stock-preview-table {
    padding: 0 12px 12px;
  }

  .stock-preview-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }

  .stock-preview-row > span:nth-child(2) {
    grid-column: 1;
  }

  .stock-preview-row > span:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .stock-preview-row > span:nth-child(4) {
    grid-column: 2;
    justify-self: end;
  }

  .stock-preview-modal,
  .incident-preview-modal {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .stock-modal-grid {
    grid-template-columns: 1fr;
  }

  .stock-preview-header {
    display: none;
  }

  .provider-preview-list {
    grid-template-columns: 1fr;
  }

  .provider-preview-card {
    min-height: 0;
  }

  .landing-incident-preview {
    padding: 14px;
  }

  .incident-preview-head {
    padding: 4px 2px 14px;
  }

  .incident-preview-head strong {
    font-size: 21px;
  }

  .incident-preview-card {
    min-height: 0;
    padding: 14px 14px 14px 18px;
  }

  .dashboard-preview-date {
    grid-template-columns: 1fr;
  }

  .dashboard-preview-weather {
    place-items: start;
  }

  .dashboard-preview-grid,
  .satisfaction-preview-flow,
  .satisfaction-preview-comments,
  .settings-preview-grid {
    grid-template-columns: 1fr;
  }

  .satisfaction-preview-qr,
  .satisfaction-preview-score {
    min-height: 0;
  }

  .satisfaction-fake-qr,
  .satisfaction-real-qr {
    width: 116px;
    height: 116px;
  }

  .dashboard-preview-line {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .dashboard-preview-line span {
    grid-column: 2;
    justify-self: start;
  }

  .maintenance-ticket-title-row,
  .maintenance-admin-ticket-head {
    display: grid;
  }

  .maintenance-ticket-meta {
    justify-content: flex-start;
  }

  .landing-mail-preview {
    grid-template-columns: 1fr;
  }

  .mail-preview-incoming {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .mail-preview-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #e1e8f5;
  }

  .mail-preview-content {
    padding: 14px;
  }

  .mail-preview-message {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .mail-preview-message small {
    grid-column: 2;
  }

  .settings-preview-main {
    align-items: flex-start;
  }

  .settings-preview-main strong {
    font-size: 18px;
  }

  .landing-webapp-preview {
    min-height: 560px;
    padding: 18px;
  }

  .webapp-tablet {
    width: 100%;
    min-height: 300px;
  }

  .webapp-phone {
    right: 24px;
    bottom: 20px;
    width: 168px;
  }

  .webapp-install-toast {
    right: 12px;
    left: 12px;
    justify-content: center;
    border-radius: 16px;
  }

  .landing-refonte .preview-board {
    grid-template-columns: 1fr;
  }

  .landing-refonte .preview-sidebar {
    display: none;
  }

  .landing-refonte .preview-content {
    min-height: 500px;
  }
}

/* Mobile and tablet polish */
.sidebar-overlay {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 80;
  }

  .sidebar {
    width: min(var(--sidebar-width), 88vw);
    max-width: 310px;
    z-index: 70;
    transform: translateX(0);
    box-shadow: 22px 0 54px rgba(15, 23, 42, 0.18);
  }

  .sidebar-collapsed .sidebar {
    width: min(var(--sidebar-width), 88vw);
    transform: translateX(-108%);
  }

  .sidebar-collapsed .brand-title,
  .sidebar-collapsed .brand-user-panel,
  .sidebar-collapsed .nav-link span {
    display: block;
  }

  .sidebar-collapsed .sidebar-brand {
    justify-items: stretch;
  }

  .sidebar-collapsed .brand-topline {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
  }

  .sidebar-collapsed .sidebar-toggle {
    margin-left: 0;
  }

  .sidebar-collapsed .sidebar-toggle svg {
    transform: none;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: block;
    padding: 0;
    background: rgba(15, 23, 42, 0.42);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main,
  .sidebar-collapsed .app-main {
    margin-left: 0;
    padding: 76px clamp(14px, 3vw, 24px) 24px;
  }

  .page-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .page-header h1 {
    max-width: 100%;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar .btn,
  .toolbar > a.btn {
    width: 100%;
  }

  .form-card,
  .card,
  .table-card,
  .option-card {
    max-width: none;
  }

  .planning-toolbar {
    gap: 10px;
  }

  .week-switcher {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .planning-view-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planning-view-controls .btn,
  .planning-view-controls .view-toggle {
    width: 100%;
  }

  .calendar-shell {
    border-radius: 16px;
  }

  .calendar-grid:not(.calendar-view-jour) {
    min-width: 900px;
  }

  .calendar-view-jour,
  .calendar-grid.calendar-view-jour {
    min-width: 0 !important;
  }

  .event-resize-handle {
    min-height: 18px;
  }

  .form-modal {
    width: min(980px, calc(100vw - 20px));
    height: min(94dvh, 980px);
  }

  .form-modal iframe {
    min-width: 0;
  }

  .prestataires-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .prestataire-card {
    max-width: none;
  }

  .mail-shell {
    grid-template-columns: 1fr;
  }

  .mail-sidebar-panel,
  .mail-reader {
    min-height: auto;
  }

  .mail-list {
    max-height: 380px;
  }
}

@media (max-width: 680px) {
  .auth-body,
  .legal-body {
    align-items: start;
  }

  .auth-card {
    width: 100%;
  }

  .legal-shell {
    width: min(100% - 20px, 980px);
    padding-top: 12px;
  }

  .legal-nav,
  .legal-nav > div {
    width: 100%;
  }

  .legal-nav .btn {
    flex: 1 1 145px;
  }

  .legal-card {
    border-radius: 20px;
  }

  .table-card {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .table-card .table-scroll {
    overflow: visible;
  }

  .responsive-card-table,
  .responsive-card-table thead,
  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table th,
  .responsive-card-table td {
    display: block;
    width: 100%;
  }

  .responsive-card-table {
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
  }

  .responsive-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .responsive-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-card-table tr {
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .responsive-card-table td {
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 36px;
    padding: 7px 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    white-space: normal !important;
    text-align: left !important;
  }

  .responsive-card-table td > * {
    min-width: 0;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .responsive-card-table td[data-label=""] {
    grid-template-columns: 1fr;
  }

  .responsive-card-table td[data-label=""]::before {
    display: none;
  }

  .responsive-card-table .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    width: 100%;
  }

  .responsive-card-table .actions .btn {
    flex: 1 1 120px;
  }

  .responsive-card-table .actions .icon-btn {
    flex: 0 0 44px;
  }

  .materiel-list-card .table-scroll,
  .materiel-table {
    overflow: visible;
    min-width: 0 !important;
  }

  .materiel-table th,
  .materiel-table td {
    width: auto !important;
  }

  .materiel-table td {
    grid-template-columns: minmax(92px, 31%) minmax(0, 1fr);
  }

  .materiel-table .stock-number,
  .materiel-category-pill,
  .materiel-table .badge,
  .status-pill,
  .color-chip {
    justify-self: start;
  }

  .materiel-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materiel-summary-card {
    min-height: 82px;
    padding: 12px;
  }

  .form-grid,
  .prestataire-form .form-grid,
  .materiel-form .form-grid,
  .incident-form .form-grid,
  .annonce-form .form-grid,
  .permission-grid,
  .mail-recipient-grid,
  .planning-prestataire-fields {
    grid-template-columns: 1fr !important;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1 1 100%;
  }

  .absence-row {
    gap: 10px;
  }

  .absence-row .icon-btn {
    width: 100%;
  }

  .color-choice-grid,
  .weekday-picker,
  .checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prestataires-grid {
    grid-template-columns: 1fr;
  }

  .prestataire-cover {
    min-height: 150px;
  }

  .mail-reader-head {
    padding: 16px;
  }

  .mail-reader-head .actions {
    width: 100%;
    justify-content: stretch;
  }

  .mail-reader-head .actions .icon-btn {
    flex: 1 1 44px;
  }

  .modal-backdrop,
  .form-modal-backdrop {
    padding: 8px;
  }

  .form-modal {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .modal-main {
    padding: 14px;
  }

  .landing-shell {
    width: min(100% - 18px, 1180px);
  }

  .landing-hero {
    padding: 14px;
    border-radius: 22px;
  }

  .landing-logo {
    font-size: 20px;
  }

  .landing-nav-actions,
  .landing-actions {
    width: 100%;
  }

  .landing-nav-actions .btn,
  .landing-actions .btn {
    flex: 1 1 100%;
  }

  .landing-module {
    gap: 18px;
  }

  .landing-webapp-preview {
    min-height: 0;
    padding: 14px;
  }

  .landing-webapp-preview::before {
    inset: 12px;
  }

  .webapp-tablet {
    width: 100%;
    min-height: 300px;
    padding: 10px;
  }

  .webapp-phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 260px);
    margin: 14px auto 0;
  }

  .landing-refonte .landing-sticky-nav {
    top: 0;
    align-items: stretch;
    gap: 12px;
    padding: 10px;
    margin: -16px -16px 0;
    border-radius: 22px 22px 18px 18px;
  }

  .landing-refonte .landing-sticky-nav .landing-nav-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .landing-refonte .landing-sticky-nav .landing-nav-link,
  .landing-refonte .landing-sticky-nav .landing-nav-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 42px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .landing-tab-panel,
  #fonctionnalites,
  #webapp,
  #pricing {
    scroll-margin-top: 184px;
  }
}

@media (max-width: 430px) {
  .app-main,
  .sidebar-collapsed .app-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .page-header h1 {
    font-size: 25px;
  }

  .page-header p {
    font-size: 14px;
  }

  .card,
  .option-card,
  .prestataire-modal-card,
  .materiel-modal-card,
  .incident-modal-card,
  .annonce-modal-card,
  .responsive-card-table tr {
    padding: 12px;
    border-radius: 14px;
  }

  .responsive-card-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .responsive-card-table td::before {
    font-size: 10px;
  }

  .materiel-summary-grid,
  .color-choice-grid,
  .weekday-picker,
  .checkbox-group,
  .planning-view-controls {
    grid-template-columns: 1fr;
  }

  .week-current {
    min-width: 0;
    font-size: 13px;
  }

  .calendar-grid:not(.calendar-view-jour) {
    min-width: 820px;
  }

  .auth-card {
    padding: 20px;
  }

  .webapp-week {
    grid-template-columns: 1fr;
  }

  .webapp-install-toast {
    position: static;
    margin-top: 4px;
  }
}

body.theme-dark .responsive-card-table tr {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.theme-dark .option-card-safety {
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(103, 232, 249, 0.08)),
    var(--card);
}

body.theme-dark .responsive-card-table td {
  border-color: rgba(67, 52, 95, 0.82);
}

body.theme-dark .sidebar-overlay {
  background: rgba(4, 2, 12, 0.62);
}

/* Anim'Academie public commercial page */
.academy-body {
  min-height: 100vh;
  margin: 0;
  color: #10182c;
  background:
    radial-gradient(circle at 10% 8%, rgba(249, 115, 22, 0.13), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f8ff 0%, #ffffff 44%, #f3f6fb 100%);
}

.academy-page {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 34px;
}

.academy-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(207, 216, 232, 0.92);
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(24, 32, 51, 0.09);
}

.academy-logo,
.academy-nav-links,
.academy-nav-actions,
.academy-hero-actions,
.academy-proof,
.academy-desk-actions,
.academy-quote-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.academy-logo {
  color: #10182c;
  font-size: 24px;
  font-weight: 950;
}

.academy-logo span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
  font-size: 17px;
  letter-spacing: 0;
}

.academy-nav-links {
  justify-content: center;
  flex: 1;
}

.academy-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #526179;
  background: #f5f7fd;
  font-size: 14px;
  font-weight: 900;
}

.academy-nav-links a:hover {
  color: #3f36c9;
  background: #fff7ed;
}

.academy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.62fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(32px, 5vw, 72px) 0 26px;
}

.academy-hero-copy,
.academy-hero-panel,
.academy-section,
.academy-quote-shell,
.academy-desk-section {
  border: 1px solid rgba(207, 216, 232, 0.86);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(24, 32, 51, 0.09);
}

.academy-hero-copy {
  min-height: 560px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px);
}

.academy-kicker {
  margin: 0;
  color: #f97316;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-hero h1,
.academy-section-head h2,
.academy-desk-section h2 {
  margin: 0;
  color: #10182c;
  font-weight: 950;
  letter-spacing: 0;
}

.academy-hero h1 {
  max-width: 950px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
}

.academy-hero p {
  max-width: 820px;
  margin: 0;
  color: #62708a;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.42;
}

.academy-proof span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #dfe6f2;
  border-radius: 18px;
  color: #64748b;
  background: #ffffff;
  font-weight: 850;
}

.academy-proof strong {
  color: #f97316;
  font-size: 24px;
}

.academy-hero-panel {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(16, 24, 44, 0.96), rgba(38, 29, 66, 0.96)),
    #10182c;
}

.academy-flow-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.academy-flow-card.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(14, 165, 233, 0.82));
}

.academy-flow-card span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 950;
}

.academy-flow-card strong {
  font-size: 26px;
}

.academy-flow-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  line-height: 1.35;
}

.academy-section,
.academy-quote-shell,
.academy-desk-section {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 36px);
}

.academy-section-head {
  max-width: 820px;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.academy-section-head.compact {
  margin-bottom: 16px;
}

.academy-section-head h2,
.academy-desk-section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.academy-section-head p:not(.academy-kicker),
.academy-desk-section p:not(.academy-kicker) {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.45;
}

.academy-prestation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.academy-prestation-card {
  min-height: 190px;
  display: grid;
  justify-items: start;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dfe6f2;
  border-radius: 22px;
  color: #10182c;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.academy-prestation-card:hover,
.academy-prestation-card.is-selected {
  border-color: #fb923c;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.academy-prestation-card.is-selected {
  background: linear-gradient(180deg, #ffffff, #fff7ed);
}

.academy-prestation-card svg {
  width: 34px;
  height: 34px;
  color: #f97316;
}

.academy-prestation-card span {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.academy-prestation-card strong {
  color: #111827;
  font-size: 34px;
  line-height: 1;
}

.academy-prestation-card small {
  color: #7a879c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-quote-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.academy-quote-builder {
  display: grid;
  gap: 16px;
}

.academy-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.academy-controls label,
.academy-skill-panel {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.academy-controls input[type="number"] {
  min-height: 50px;
  border-radius: 16px;
  background: #ffffff;
}

.academy-check-option {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #dfe6f2;
  border-radius: 16px;
  background: #fbfdff;
}

.academy-check-option input {
  width: 18px;
  min-height: 18px;
  accent-color: #f97316;
}

.academy-skill-panel {
  padding: 16px;
  border: 1px solid #dfe6f2;
  border-radius: 20px;
  background: #fbfdff;
}

.academy-skill-panel > span {
  color: #10182c;
  font-size: 16px;
}

.academy-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.academy-skill-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  color: #526179;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.academy-skill-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: #f97316;
}

.academy-animator-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.academy-animator-card {
  display: grid;
  grid-template-columns: 22px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dfe6f2;
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.academy-animator-card:hover,
.academy-animator-card:has(input:checked) {
  border-color: #fb923c;
  background: #f7f6ff;
}

.academy-animator-card input {
  width: 18px;
  min-height: 18px;
  accent-color: #f97316;
}

.academy-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #ffffff;
  font-weight: 950;
}

.academy-avatar.violet { background: #f97316; }
.academy-avatar.blue { background: #0ea5e9; }
.academy-avatar.green { background: #16a34a; }
.academy-avatar.orange { background: #f97316; }
.academy-avatar.pink { background: #db2777; }
.academy-avatar.cyan { background: #0891b2; }

.academy-animator-card strong,
.academy-animator-card small {
  display: block;
}

.academy-animator-card strong {
  color: #10182c;
  font-size: 17px;
}

.academy-animator-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
}

.academy-animator-card em {
  color: #f97316;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.academy-quote-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(16, 24, 44, 0.98), rgba(38, 29, 66, 0.98)),
    #10182c;
  box-shadow: 0 24px 52px rgba(24, 32, 51, 0.18);
}

.academy-quote-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.academy-quote-head span,
.academy-quote-lines span,
.academy-quote-total span,
.academy-quote-total small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-quote-head strong {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.academy-quote-lines {
  display: grid;
  gap: 10px;
}

.academy-quote-lines p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.academy-quote-lines strong {
  max-width: 58%;
  color: #ffffff;
  font-size: 14px;
  text-align: right;
}

.academy-quote-total {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.academy-quote-total strong {
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.academy-quote-total small {
  text-transform: none;
  line-height: 1.35;
}

.academy-quote-actions {
  align-items: stretch;
}

.academy-quote-actions .btn {
  flex: 1 1 160px;
}

.academy-desk-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(14, 165, 233, 0.09)),
    #ffffff;
}

.academy-desk-section > div:first-child {
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.academy-legal-links {
  margin-top: 18px;
}

@media print {
  body.academy-print {
    background: #ffffff !important;
  }

  body.academy-print * {
    visibility: hidden !important;
  }

  body.academy-print .academy-quote-card,
  body.academy-print .academy-quote-card * {
    visibility: visible !important;
  }

  body.academy-print .academy-quote-card {
    position: fixed;
    inset: 10mm;
    top: 10mm;
    width: auto;
    color: #10182c;
    background: #ffffff !important;
    box-shadow: none;
    border: 1px solid #dfe6f2;
  }

  body.academy-print .academy-quote-head span,
  body.academy-print .academy-quote-lines span,
  body.academy-print .academy-quote-total span,
  body.academy-print .academy-quote-total small {
    color: #64748b !important;
  }

  body.academy-print .academy-quote-head strong,
  body.academy-print .academy-quote-lines strong,
  body.academy-print .academy-quote-total strong {
    color: #10182c !important;
  }

  body.academy-print .academy-quote-total {
    background: #eef2ff !important;
  }

  body.academy-print .academy-quote-actions {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .academy-prestation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .academy-quote-shell {
    grid-template-columns: 1fr;
  }

  .academy-quote-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .academy-page {
    width: min(100% - 20px, 1440px);
  }

  .academy-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .academy-nav-links,
  .academy-nav-actions {
    justify-content: stretch;
  }

  .academy-nav-links a,
  .academy-nav-actions .btn {
    flex: 1 1 150px;
  }

  .academy-hero {
    grid-template-columns: 1fr;
  }

  .academy-hero-copy {
    min-height: auto;
  }

  .academy-controls,
  .academy-animator-list {
    grid-template-columns: 1fr;
  }

  .academy-desk-section {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .academy-hero h1 {
    font-size: 42px;
  }

  .academy-prestation-grid {
    grid-template-columns: 1fr;
  }

  .academy-animator-card {
    grid-template-columns: 22px 42px minmax(0, 1fr);
  }

  .academy-animator-card em {
    grid-column: 3;
  }

  .academy-quote-lines p {
    display: grid;
  }

  .academy-quote-lines strong {
    max-width: none;
    text-align: left;
  }
}

/* Anim'Desk / Anim'Academie */
.portal-body {
  min-height: 100vh;
  margin: 0;
  color: #10182c;
  background:
    linear-gradient(145deg, rgba(244, 247, 255, 0.96), rgba(255, 255, 255, 0.92)),
    #f5f7fb;
}

.portal-page {
  width: min(1320px, calc(100% - 28px));
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(18px, 3vw, 34px);
  margin: 0 auto;
  padding: 0 0 22px;
}

.portal-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(207, 216, 232, 0.95);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(24, 32, 51, 0.08);
}

.portal-brand,
.portal-nav-actions,
.portal-choice-card em,
.portal-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-brand {
  min-width: 0;
  color: #111827;
  text-decoration: none;
}

.portal-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.portal-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portal-brand strong {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.portal-brand small {
  color: #68748a;
  font-size: 13px;
  font-weight: 850;
}

.portal-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 54px) 12px 0;
  text-align: center;
}

.portal-kicker {
  margin: 0;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-hero h1 {
  margin: 0;
  color: #10182c;
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 850px;
  margin: 0;
  color: #63708a;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 780;
  line-height: 1.45;
}

.portal-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 26px);
  align-self: center;
}

.portal-choice-card {
  min-height: clamp(360px, 42vh, 520px);
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(207, 216, 232, 0.94);
  border-radius: 34px;
  color: #10182c;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(24, 32, 51, 0.1);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-choice-card:hover,
.portal-choice-card:focus-visible {
  border-color: rgba(91, 77, 242, 0.42);
  box-shadow: 0 30px 90px rgba(24, 32, 51, 0.14);
  transform: translateY(-4px);
}

.portal-choice-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.portal-choice-icon svg {
  width: 34px;
  height: 34px;
}

.portal-choice-desk .portal-choice-icon {
  background: linear-gradient(135deg, #5b4df2, #7c3aed);
}

.portal-choice-academy .portal-choice-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.portal-choice-content {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.portal-choice-content small {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-choice-content strong {
  color: #10182c;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 950;
  line-height: 0.95;
}

.portal-choice-content span {
  max-width: 560px;
  color: #64748b;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 760;
  line-height: 1.45;
}

.portal-choice-card em {
  width: fit-content;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #4f46e5;
  font-size: 16px;
  font-style: normal;
  font-weight: 950;
  position: relative;
  z-index: 1;
}

.portal-choice-academy em {
  background: #0f172a;
}

.portal-choice-card em svg {
  width: 20px;
  height: 20px;
}

.portal-legal-links {
  justify-content: center;
  padding: 6px 0 0;
}

.portal-legal-links a {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.portal-legal-links a:hover {
  color: #4f46e5;
}

@media (max-width: 920px) {
  .portal-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-nav-actions .btn {
    flex: 1 1 160px;
  }

  .portal-choice-grid {
    grid-template-columns: 1fr;
  }

  .portal-choice-card {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .portal-page {
    width: min(100% - 18px, 1320px);
  }

  .portal-brand strong {
    font-size: 21px;
  }

  .portal-hero h1 {
    font-size: 44px;
  }

  .portal-choice-card {
    min-height: 300px;
    border-radius: 26px;
  }

  .portal-choice-content strong {
    font-size: 40px;
  }
}

.portal-simple-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.14), transparent 34%),
    linear-gradient(180deg, #fff8f1 0%, #f8fafc 100%);
}

.portal-simple-page {
  width: min(100%, 760px);
}

.portal-simple-modal {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(207, 216, 232, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 80px rgba(24, 32, 51, 0.14);
  text-align: center;
}

.portal-simple-modal h1 {
  margin: 0 0 8px;
  color: #10182c;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.portal-simple-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.portal-simple-choice {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dfe6f2;
  border-radius: 22px;
  color: #10182c;
  background: #ffffff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-simple-choice:hover,
.portal-simple-choice:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.14);
  transform: translateY(-2px);
}

.portal-simple-choice span {
  display: grid;
  gap: 5px;
}

.portal-simple-choice strong {
  color: #10182c;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 950;
  line-height: 1;
}

.portal-simple-choice small {
  color: #64748b;
  font-size: 14px;
  font-weight: 820;
}

.portal-simple-choice svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  justify-self: end;
}

.portal-choice-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.portal-simple-academy {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.portal-simple-academy svg {
  color: #f97316;
}

.portal-choice-academy-logo {
  border-radius: 16px;
}

.portal-simple-desk svg {
  color: #0ea5e9;
}

@media (max-width: 520px) {
  .portal-simple-body {
    padding: 14px;
  }

  .portal-simple-modal {
    border-radius: 26px;
  }

  .portal-simple-choice {
    min-height: 78px;
    border-radius: 18px;
  }

  .portal-simple-actions {
    grid-template-columns: 1fr;
  }

  .portal-simple-choice {
    min-height: 118px;
  }
}

/* Anim'Academie rebuild base */
.academy-empty-body {
  min-height: 100vh;
  margin: 0;
  padding: 0 22px 22px;
  color: #16111a;
  background:
    radial-gradient(circle at 50% -12%, rgba(249, 115, 22, 0.24), transparent 38%),
    linear-gradient(180deg, #fff8f1 0%, #fff 48%, #fff3e4 100%);
}

.academy-empty-page {
  width: min(100%, 980px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 22px;
  margin: 0 auto;
}

.academy-empty-nav {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 74px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(18px, calc((100vw - 1320px) / 2 + 18px));
  border: 1px solid rgba(255, 183, 96, 0.66);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 54px rgba(154, 72, 18, 0.12);
  box-sizing: border-box;
}

.academy-empty-nav-brand,
.academy-empty-nav-actions,
.academy-empty-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.academy-empty-nav-brand {
  min-width: 0;
  color: #151827;
  text-decoration: none;
}

.academy-empty-nav-brand span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 16px;
  color: #ffffff;
  background: #f97316;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.academy-empty-nav-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.academy-empty-nav-brand strong {
  color: #151827;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
}

.academy-empty-nav-actions {
  justify-content: flex-end;
}

.academy-empty-card {
  width: min(100%, 680px);
  justify-self: center;
  align-self: center;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 183, 96, 0.66);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(154, 72, 18, 0.16);
}

.academy-empty-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a4b16;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.academy-empty-back svg {
  width: 18px;
  height: 18px;
}

.academy-empty-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.academy-empty-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.academy-empty-brand > span,
.academy-auth-mark {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.academy-auth-mark {
  color: transparent;
  font-size: 0;
  font-weight: 950;
  background: transparent url("icons/animacademie-logo.png") center / contain no-repeat;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
}

.academy-empty-brand > span {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 20px;
  font-weight: 950;
}

.academy-empty-brand div {
  display: grid;
  gap: 6px;
}

.academy-empty-brand p,
.academy-empty-brand h1,
.academy-empty-lead {
  margin: 0;
}

.academy-empty-brand p {
  color: #f97316;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-empty-brand h1 {
  color: #151827;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.academy-empty-lead {
  color: #665f72;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.5;
}

.academy-empty-session {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: #fff7ed;
}

.academy-empty-session span {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-empty-session strong {
  color: #151827;
  font-size: 24px;
  font-weight: 950;
}

.academy-empty-session small {
  color: #8a4b16;
  font-size: 14px;
  font-weight: 850;
}

.academy-empty-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.academy-empty-actions .btn {
  flex: 1 1 200px;
}

.academy-empty-legal {
  justify-content: center;
}

.academy-empty-legal a {
  color: #9a3412;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.academy-btn-primary,
.auth-academy-body .btn-primary {
  color: #ffffff !important;
  background: #f97316 !important;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22) !important;
}

.academy-btn-primary:hover,
.auth-academy-body .btn-primary:hover {
  background: #ea580c !important;
}

.academy-btn-desk {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.22) !important;
}

.academy-btn-desk:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.academy-btn-ghost,
.auth-academy-body .btn-secondary {
  color: #9a3412 !important;
  background: #fff7ed !important;
}

.auth-academy-body {
  background:
    radial-gradient(circle at 50% -10%, rgba(249, 115, 22, 0.2), transparent 34%),
    linear-gradient(180deg, #fff8f1, #fff3e4) !important;
}

.auth-academy-body .auth-card {
  border-color: rgba(255, 183, 96, 0.7);
  box-shadow: 0 26px 70px rgba(154, 72, 18, 0.15);
}

.auth-academy-body .auth-back-link,
.auth-academy-body .auth-switch a,
.auth-academy-body .auth-legal-links a {
  color: #c2410c;
}

.auth-academy-body input:focus,
.auth-academy-body select:focus,
.auth-academy-body textarea:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.legal-academy-body {
  background:
    radial-gradient(circle at 50% -10%, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(180deg, #fff8f1, #fff3e4);
}

.legal-academy-body .legal-card,
.legal-academy-body .legal-nav {
  border-color: rgba(255, 183, 96, 0.72);
  box-shadow: 0 24px 64px rgba(154, 72, 18, 0.12);
}

.academy-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #151827;
  text-decoration: none;
}

.academy-legal-brand span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: #f97316;
  font-size: 14px;
  font-weight: 950;
}

.academy-legal-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.academy-legal-brand strong {
  color: #151827;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.academy-legal-kicker,
.legal-academy-body .landing-kicker {
  color: #f97316;
}

.academy-legal-footer a,
.legal-academy-body .legal-footer-links a {
  color: #9a3412;
}

.portal-simple-academy {
  border-color: rgba(249, 115, 22, 0.34);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.portal-simple-academy svg {
  color: #f97316;
}

@media (max-width: 620px) {
  .academy-empty-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .academy-empty-nav-actions .btn {
    flex: 1 1 140px;
  }

  .academy-empty-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Anim'Academie connected app */
body.academy-app {
  --bg: #fff8f1;
  --card: #ffffff;
  --text: #17131d;
  --muted: #7c6a5f;
  --line: #ffe0bd;
  --primary: #f97316;
  --primary-dark: #c2410c;
  --primary-soft: #fff3e4;
  --sky: #fb923c;
  --shadow: 0 18px 48px rgba(124, 45, 18, 0.09);
  background:
    radial-gradient(circle at 88% 4%, rgba(251, 146, 60, 0.2), transparent 30%),
    linear-gradient(180deg, #fff8f1 0%, #ffffff 55%, #fff7ed 100%);
}

body.academy-app .sidebar {
  border-right-color: rgba(255, 224, 189, 0.9);
  background: rgba(255, 255, 255, 0.95);
}

body.academy-app .sidebar::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.24);
}

body.academy-app .academy-brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  background: transparent url("icons/animacademie-logo.png") center / 128% auto no-repeat;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.18);
}

body.academy-app .brand-topline {
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 8px;
}

body.academy-app .brand-title strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.academy-app .sidebar-toggle {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  justify-self: end;
}

body.academy-app.sidebar-collapsed .brand-topline {
  grid-template-columns: 42px;
  justify-items: center;
}

body.academy-app.sidebar-collapsed .sidebar-toggle {
  justify-self: center;
}

body.academy-app .brand-user-panel {
  border-color: rgba(249, 115, 22, 0.18);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.09), rgba(251, 146, 60, 0.08)),
    #ffffff;
}

body.academy-app .nav-link:hover,
body.academy-app .nav-link.active {
  color: #c2410c;
  background: #fff3e4;
}

body.academy-app .academy-desk-nav {
  color: #4f46e5;
  background: #f0efff;
}

.academy-main {
  padding-bottom: 42px;
}

.academy-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.academy-hero-card,
.academy-automation-card,
.academy-stat-grid article,
.academy-panel,
.academy-placeholder {
  border: 1px solid rgba(255, 224, 189, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(124, 45, 18, 0.08);
}

.academy-hero-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  position: relative;
}

.academy-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -86px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
}

.academy-hero-card span,
.academy-automation-card span,
.academy-stat-grid span,
.academy-panel header span,
.academy-placeholder > div > span {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-hero-card h2 {
  max-width: 780px;
  margin: 0;
  color: #141827;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 950;
  line-height: 0.96;
}

.academy-hero-card p,
.academy-automation-card p,
.academy-placeholder p {
  max-width: 820px;
  margin: 0;
  color: #6b7280;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
}

.academy-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.academy-automation-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.academy-automation-card strong {
  color: #141827;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.05;
}

.academy-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.academy-stat-grid article {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.academy-stat-grid strong {
  color: #141827;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.academy-stat-grid small {
  color: #7c6a5f;
  font-size: 13px;
  font-weight: 850;
}

.academy-clients-card .table-scroll {
  padding: 0 14px 16px;
}

.academy-clients-table {
  min-width: 820px;
  table-layout: fixed;
}

.academy-clients-table th,
.academy-clients-table td {
  padding: 14px 12px;
  overflow-wrap: normal;
  word-break: normal;
}

.academy-clients-table th {
  white-space: nowrap;
}

.academy-clients-table th:nth-child(1),
.academy-clients-table td:nth-child(1) {
  width: 28%;
}

.academy-clients-table th:nth-child(2),
.academy-clients-table td:nth-child(2) {
  width: 27%;
}

.academy-clients-table th:nth-child(3),
.academy-clients-table td:nth-child(3) {
  width: 11%;
  text-align: center;
}

.academy-clients-table th:nth-child(4),
.academy-clients-table td:nth-child(4) {
  width: 18%;
}

.academy-clients-table th:nth-child(5),
.academy-clients-table td:nth-child(5) {
  width: 16%;
}

.academy-clients-table td > strong,
.academy-clients-table td > small {
  display: block;
}

.academy-clients-table td > strong {
  color: #141827;
  font-size: 15px;
  line-height: 1.2;
}

.academy-clients-table td > small {
  margin-top: 4px;
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.academy-clients-table td:nth-child(2) small {
  overflow-wrap: anywhere;
}

.academy-clients-table td:nth-child(5) small {
  line-height: 1.35;
  white-space: normal;
}

.academy-clients-table .status-pill {
  margin-bottom: 5px;
  white-space: nowrap;
}

.academy-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.academy-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.academy-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.academy-panel h2,
.academy-placeholder h2 {
  margin: 4px 0 0;
  color: #141827;
  font-size: 24px;
  font-weight: 950;
}

.academy-panel header > svg {
  width: 32px;
  height: 32px;
  color: #f97316;
}

.academy-flow-list {
  display: grid;
  gap: 10px;
}

.academy-flow-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border-radius: 16px;
  background: #fff8f1;
}

.academy-flow-list b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #ffffff;
  background: #f97316;
  border-radius: 999px;
  font-size: 14px;
}

.academy-flow-list span {
  color: #394154;
  font-size: 15px;
  font-weight: 820;
}

.academy-member-list {
  display: grid;
  gap: 10px;
}

.academy-member-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px;
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #ffffff;
}

.academy-member-list b {
  width: 12px;
  height: 38px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: var(--member-color, #f97316);
}

.academy-member-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.academy-member-list strong {
  overflow: hidden;
  color: #141827;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-member-list small,
.academy-empty-state p {
  color: #7c6a5f;
  font-size: 13px;
  font-weight: 800;
}

.academy-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #f97316;
  border: 1px dashed #fed7aa;
  border-radius: 18px;
  background: #fff8f1;
  text-align: center;
}

.academy-empty-state svg {
  width: 32px;
  height: 32px;
}

.academy-placeholder {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px);
}

.academy-placeholder-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.academy-placeholder-list article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid #ffe8cf;
  border-radius: 20px;
  background: #fffaf5;
}

.academy-placeholder-list svg {
  width: 32px;
  height: 32px;
  color: #f97316;
}

.academy-placeholder-list strong {
  color: #141827;
  font-size: 18px;
  font-weight: 950;
}

.academy-placeholder-list small {
  color: #6b7280;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.academy-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.academy-mini-cv-builder {
  display: block;
}

.academy-mini-cv-builder-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
}

.academy-mini-cv-form-side {
  align-self: start;
}

.academy-animator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.academy-animator-form textarea {
  min-height: 98px;
}

.academy-photo-field {
  width: max-content;
  display: grid;
  gap: 8px;
}

.academy-photo-preview {
  position: relative;
  width: 112px;
  height: 136px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(154, 72, 18, 0.08);
  cursor: pointer;
}

.academy-photo-preview img,
.academy-photo-preview span {
  width: 100%;
  height: 100%;
}

.academy-photo-preview img {
  display: block;
  box-sizing: border-box;
  padding: 4px;
  background: #ffffff;
  object-fit: contain;
}

.academy-photo-preview span {
  display: grid;
  place-items: center;
  color: #f97316;
}

.academy-photo-preview svg {
  width: 30px;
  height: 30px;
}

.academy-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.academy-photo-remove {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 11px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.academy-photo-remove svg {
  width: 14px;
  height: 14px;
}

.academy-photo-remove.is-hidden {
  display: none;
}

.academy-skill-panel {
  margin: 0;
  padding: 16px;
  border: 1px solid #ffe8cf;
  border-radius: 18px;
  background: #fff8f1;
}

.academy-skill-panel legend {
  padding: 0 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-skill-panel p {
  margin: 0 0 12px;
  color: #7c6a5f;
  font-size: 13px;
  font-weight: 820;
}

.academy-main-profile-select {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.36);
  border-radius: 20px;
  color: #7c2d12;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(255, 255, 255, 0.95)),
    #ffffff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.09);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-main-profile-select select {
  letter-spacing: 0;
  text-transform: none;
}

.academy-main-profile-select small {
  color: #9a6b42;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.academy-main-profile-select.is-hidden-by-poste {
  display: none;
}

.academy-subskill-groups {
  display: grid;
  gap: 12px;
}

.academy-subskill-group {
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffedd5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.academy-subskill-group.is-main {
  display: grid;
  border-color: rgba(249, 115, 22, 0.42);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.08);
}

.academy-subskill-group h3 {
  margin: 0;
  color: #c2410c;
  font-size: 14px;
  font-weight: 950;
}

.academy-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.academy-skill-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  background: #ffffff;
  color: #394154;
  font-size: 13px;
  font-weight: 920;
  cursor: pointer;
}

.academy-skill-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: #f97316;
}

.academy-skill-option:has(input:checked) {
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.52);
  background: #fff7ed;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.1);
}

.academy-language-panel {
  margin: 0;
  padding: 16px;
  border: 1px solid #ffe8cf;
  border-radius: 18px;
  background: #fff8f1;
}

.academy-language-panel legend {
  padding: 0 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-language-grid {
  display: grid;
  gap: 10px;
}

.academy-language-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(110px, 0.35fr) minmax(180px, 1fr) 34px;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  background: #ffffff;
}

.academy-language-custom {
  grid-column: 1 / -1;
}

.academy-language-custom.is-hidden {
  display: none;
}

.academy-profile-panel,
.academy-driving-panel {
  margin: 0;
  padding: 16px;
  border: 1px solid #ffe8cf;
  border-radius: 18px;
  background: #fff8f1;
}

.academy-profile-panel legend,
.academy-driving-panel legend {
  padding: 0 8px;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-profile-list {
  display: grid;
  gap: 10px;
}

.academy-profile-list label {
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  background: #ffffff;
}

.academy-profile-list textarea {
  min-height: 74px;
}

.academy-driving-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.45fr);
  gap: 12px;
}

.academy-driving-panel legend {
  grid-column: 1 / -1;
}

.academy-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.academy-language-chips,
.academy-skill-chips span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.academy-language-chips span,
.academy-skill-chips span {
  display: inline-grid;
  gap: 3px;
  min-width: 130px;
  padding: 9px 12px;
  border: 1px solid #ffe8cf;
  border-radius: 14px;
  background: #ffffff;
}

.academy-language-chips strong,
.academy-skill-chips strong {
  color: #394154;
  font-size: 12px;
  font-weight: 950;
}

.academy-language-chips em,
.academy-skill-chips em {
  color: #f59e0b;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.academy-skill-chips.is-empty span {
  color: #9a897d;
  font-size: 13px;
  font-weight: 850;
}

.academy-profile-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 16px;
  background: #ffffff;
}

.academy-profile-chip strong {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-profile-chip span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 14px;
  font-weight: 950;
}

.academy-profile-reference {
  display: grid;
  gap: 10px;
}

.academy-profile-reference span {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #fffaf5;
}

.academy-profile-reference strong {
  color: #c2410c;
  font-size: 14px;
  font-weight: 950;
}

.academy-profile-reference em {
  color: #7c6a5f;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.35;
}

.academy-mini-cv-reference {
  display: grid;
  gap: 10px;
}

.academy-mini-cv-reference span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #fffaf5;
}

.academy-mini-cv-reference svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  align-self: center;
  color: #f97316;
}

.academy-mini-cv-reference strong {
  color: #c2410c;
  font-size: 14px;
  font-weight: 950;
}

.academy-mini-cv-reference em {
  color: #7c6a5f;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.35;
}

.academy-profile-details {
  display: grid;
  gap: 10px;
}

.academy-profile-details > div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #ffffff;
}

.academy-profile-details strong {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-profile-details span,
.academy-profile-details li {
  color: #394154;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.35;
}

.academy-profile-details ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.academy-driving-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.academy-driving-summary span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #ffffff;
}

.academy-driving-summary strong {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-driving-summary em {
  color: #394154;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.academy-driving-summary .is-vehicle em {
  color: #16a34a;
}

.academy-driving-summary .is-not-vehicle em {
  color: #9a897d;
}

.academy-animator-satisfaction {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--satisfaction-color-light, #fed7aa);
  border-left: 5px solid var(--satisfaction-color, #f97316);
  border-radius: 16px;
  background: #ffffff;
}

.academy-animator-satisfaction > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.academy-animator-satisfaction span {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-animator-satisfaction strong {
  display: inline-grid;
  min-width: 68px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--satisfaction-color, #f97316);
  font-size: 20px;
  font-weight: 950;
}

.academy-animator-satisfaction p,
.academy-animator-satisfaction small {
  margin: 0;
  color: #394154;
  font-weight: 880;
  line-height: 1.35;
}

.academy-animator-satisfaction small {
  color: #8a93a5;
  font-size: 12px;
}

.academy-animator-satisfaction.is-empty {
  border-color: #ffe8cf;
  border-left-color: #fed7aa;
  background: #fffaf5;
}

.academy-animator-satisfaction.is-empty span {
  color: #9a897d;
}

.academy-animator-summary {
  align-content: start;
}

.academy-animator-summary p,
.academy-sql-panel p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.55;
}

.academy-sql-panel pre {
  overflow: auto;
  max-width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  color: #431407;
  background: #fff7ed;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.academy-animator-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr));
  gap: 14px;
}

.academy-add-card-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.academy-add-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.32);
}

.academy-add-card-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.academy-animator-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid #ffe8cf;
  border-left: 8px solid var(--animator-color, #f97316);
  border-radius: 20px;
  background: #fffaf5;
  cursor: default;
  overflow: hidden;
  transition: none;
}

.academy-animator-card:hover {
  border-color: #ffe8cf;
  background: #fffaf5;
  transform: none;
}

.academy-animator-card:has(input:checked) {
  border-color: #ffe8cf;
  background: #fffaf5;
  transform: none;
}

.academy-animator-card > * {
  min-width: 0;
}

.academy-animator-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.academy-animator-card select,
.academy-animator-card textarea {
  width: 100%;
}

.academy-animator-profile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
}

.academy-animator-profile img,
.academy-animator-profile > span:not(.badge) {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.academy-animator-profile img {
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #ffe8cf;
  background: #ffffff;
  object-fit: contain;
}

.academy-animator-profile > span:not(.badge) {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--animator-color, #f97316);
  font-size: 24px;
  font-weight: 950;
}

.academy-animator-profile h3 {
  margin: 0;
  color: #141827;
  font-size: 22px;
  font-weight: 950;
}

.academy-animator-profile p,
.academy-animator-profile small {
  display: block;
  overflow: hidden;
  margin: 2px 0 0;
  color: #7c6a5f;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-animator-profile small {
  color: #9a897d;
  font-size: 13px;
}

.academy-animator-profile .badge {
  align-self: start;
  max-width: none;
  white-space: nowrap;
}

.academy-delete-form {
  display: flex;
  justify-content: flex-end;
}

.academy-animator-list {
  grid-template-columns: 1fr;
}

.academy-animator-card {
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid #ffe0bd;
  border-radius: 24px;
  background: #ffffff;
}

.academy-animator-sheet {
  display: grid;
  grid-template-columns: 184px repeat(3, minmax(130px, 1fr)) 142px;
  gap: 22px 28px;
  align-items: start;
}

.academy-sheet-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 184px;
  height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fb923c;
  border-radius: 3px;
  background: #fffaf5;
}

.academy-sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.academy-sheet-photo span {
  color: #141827;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.academy-sheet-field {
  min-width: 0;
}

.academy-sheet-field span,
.academy-sheet-main-line span,
.academy-sheet-section h3,
.academy-sheet-satisfaction span {
  display: block;
  color: #141827;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.academy-sheet-field strong,
.academy-sheet-main-line strong {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 8px;
  border-bottom: 2px solid #141827;
  color: #141827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-sheet-main-line {
  grid-column: 2 / 5;
  align-self: end;
  text-align: center;
}

.academy-sheet-main-line strong {
  justify-content: center;
}

.academy-sheet-satisfaction {
  grid-column: 5;
  grid-row: 1 / 3;
  justify-self: end;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 12px;
  border: 3px solid var(--satisfaction-color, #f97316);
  border-radius: 999px;
  text-align: center;
  background: #ffffff;
}

.academy-sheet-satisfaction span {
  font-size: 13px;
  line-height: 1.15;
}

.academy-sheet-satisfaction strong {
  color: var(--satisfaction-color, #f97316);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.academy-sheet-satisfaction small {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 900;
}

.academy-sheet-satisfaction.is-empty {
  border-color: #cbd5e1;
}

.academy-sheet-satisfaction.is-empty strong {
  color: #94a3b8;
}

.academy-sheet-section {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.academy-sheet-section:nth-of-type(1) {
  grid-column: 1;
}

.academy-sheet-section:nth-of-type(2) {
  grid-column: 2;
}

.academy-sheet-section:nth-of-type(3) {
  grid-column: 3 / 5;
}

.academy-sheet-section:nth-of-type(4) {
  grid-column: 5;
}

.academy-sheet-mobility {
  grid-column: 1;
}

.academy-sheet-availability {
  grid-column: 2 / 5;
}

.academy-sheet-section h3 {
  margin: 0;
}

.academy-sheet-section ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.academy-sheet-section li,
.academy-sheet-availability p {
  min-height: 27px;
  margin: 0;
  overflow: hidden;
  padding-bottom: 7px;
  border-bottom: 2px solid #141827;
  color: #263247;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.academy-sheet-section li strong {
  display: block;
  color: #141827;
  font-size: 14px;
  text-transform: uppercase;
}

.academy-sheet-availability p {
  min-height: 88px;
  white-space: pre-wrap;
}

.academy-animator-card .academy-edit-details {
  margin-top: 24px;
}

.academy-animator-card .academy-delete-form {
  margin-top: 12px;
}

.academy-animator-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
}

.academy-animator-tile,
.academy-public-hero,
.academy-fiche-hero {
  --academy-theme-bg: #fff4e6;
  --academy-theme-soft: #f97316;
  --academy-theme-border: #fb923c;
  --academy-theme-text: #c2410c;
  --academy-theme-accent: #ea580c;
}

.theme-polyvalent {
  --academy-theme-bg: #fff4e6;
  --academy-theme-soft: #f97316;
  --academy-theme-border: #fb923c;
  --academy-theme-text: #c2410c;
  --academy-theme-accent: #ea580c;
}

.theme-sport {
  --academy-theme-bg: #e4f8ea;
  --academy-theme-soft: #22c55e;
  --academy-theme-border: #16a34a;
  --academy-theme-text: #14532d;
  --academy-theme-accent: #16a34a;
}

.theme-cirque {
  --academy-theme-bg: #ffe4e6;
  --academy-theme-soft: #ef4444;
  --academy-theme-border: #dc2626;
  --academy-theme-text: #7f1d1d;
  --academy-theme-accent: #dc2626;
}

.theme-danse {
  --academy-theme-bg: #eee7ff;
  --academy-theme-soft: #8b5cf6;
  --academy-theme-border: #7c3aed;
  --academy-theme-text: #4c1d95;
  --academy-theme-accent: #7c3aed;
}

.theme-jeux {
  --academy-theme-bg: #e0f2fe;
  --academy-theme-soft: #0284c7;
  --academy-theme-border: #0369a1;
  --academy-theme-text: #075985;
  --academy-theme-accent: #0284c7;
}

.theme-enfants {
  --academy-theme-bg: #fce7f3;
  --academy-theme-soft: #db2777;
  --academy-theme-border: #be185d;
  --academy-theme-text: #831843;
  --academy-theme-accent: #db2777;
}

.theme-maitre-nageur {
  --academy-theme-bg: #dbeafe;
  --academy-theme-soft: #1d4ed8;
  --academy-theme-border: #1e40af;
  --academy-theme-text: #172554;
  --academy-theme-accent: #1d4ed8;
}

.theme-surveillant-baignade {
  --academy-theme-bg: #cffafe;
  --academy-theme-soft: #0891b2;
  --academy-theme-border: #0e7490;
  --academy-theme-text: #164e63;
  --academy-theme-accent: #0891b2;
}

.academy-animator-tile {
  position: relative;
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--academy-theme-border);
  border-radius: 22px;
  color: #141827;
  background:
    linear-gradient(180deg, #ffffff, var(--academy-theme-bg)),
    #ffffff;
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.academy-animator-tile:hover {
  border-color: var(--academy-theme-accent);
  box-shadow: 0 22px 46px rgba(124, 45, 18, 0.13);
  transform: translateY(-3px);
}

.academy-animator-tile.is-selected {
  border-color: rgba(22, 163, 74, 0.46);
  background:
    linear-gradient(180deg, #ffffff, var(--academy-theme-bg)),
    #ffffff;
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.16), 0 16px 36px rgba(124, 45, 18, 0.08);
}

.academy-animator-selected-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

.academy-animator-selected-mark svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.academy-animator-satisfaction-bubble {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 52px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: var(--satisfaction-color, #f97316);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.academy-animator-tile-photo {
  position: relative;
  aspect-ratio: 1 / 1.12;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.54), transparent 34%),
    var(--academy-theme-soft);
}

.academy-animator-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-animator-tile-photo b {
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(124, 45, 18, 0.18);
}

.academy-animator-language-flags {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  max-width: 100%;
  line-height: 1;
}

.academy-language-flag {
  width: 30px;
  height: 20px;
  display: block;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.14);
}

.academy-animator-tile strong {
  overflow: hidden;
  color: #141827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-animator-tile-role,
.academy-animator-tile-profile {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-animator-tile-role {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.academy-animator-tile-profile {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--academy-theme-accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-animator-tile small {
  color: #f97316;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.academy-animator-tile.is-selected small {
  color: #15803d;
}

.academy-fiche-panel {
  display: grid;
  gap: 18px;
}

.academy-fiche-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.academy-fiche-topbar > div {
  min-width: 0;
  text-align: right;
}

.academy-fiche-topbar h2 {
  margin: 2px 0 0;
  color: #141827;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  line-height: 1;
}

.academy-fiche-form {
  display: grid;
  gap: 18px;
}

.academy-fiche-hero {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 146px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 12%, rgba(249, 115, 22, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff7ed);
}

.academy-fiche-photo {
  display: grid;
  align-items: start;
}

.academy-fiche-photo .academy-photo-field {
  width: 100%;
}

.academy-fiche-photo .academy-photo-preview {
  width: 100%;
  height: 210px;
  border-radius: 22px;
  border-color: rgba(249, 115, 22, 0.35);
  background: #ffffff;
}

.academy-fiche-photo .academy-photo-preview img {
  object-fit: cover;
}

.academy-fiche-identity {
  display: grid;
  gap: 14px;
  align-content: start;
}

.academy-fiche-identity .academy-main-profile-select {
  grid-column: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.academy-fiche-identity .academy-main-profile-select small {
  display: none;
}

.academy-fiche-score {
  align-self: center;
  justify-self: center;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 14px;
  border-radius: 999px;
  color: #141827;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px var(--satisfaction-color, #f97316), 0 18px 40px rgba(124, 45, 18, 0.12);
  text-align: center;
}

.academy-fiche-score span {
  color: #7c6a5f;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.academy-fiche-score strong {
  color: var(--satisfaction-color, #f97316);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.academy-fiche-score small {
  color: #7c6a5f;
  font-size: 12px;
  font-weight: 900;
}

.academy-fiche-score.is-empty {
  box-shadow: inset 0 0 0 3px #e2e8f0, 0 18px 40px rgba(124, 45, 18, 0.08);
}

.academy-fiche-score.is-empty strong {
  color: #94a3b8;
}

.academy-fiche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.academy-fiche-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.07);
}

.academy-fiche-card-wide {
  grid-column: 1 / -1;
}

.academy-fiche-card h3,
.academy-fiche-card legend {
  margin: 0;
  padding: 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-fiche-card .academy-skill-panel,
.academy-fiche-card .academy-language-panel,
.academy-fiche-card .academy-profile-panel,
.academy-fiche-card .academy-driving-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.academy-fiche-card .academy-language-row,
.academy-fiche-card .academy-profile-list label,
.academy-fiche-card .academy-subskill-group,
.academy-fiche-card .academy-skill-option {
  border-color: #ffedd5;
  background: #fffaf5;
}

.academy-fiche-card textarea {
  min-height: 96px;
}

.academy-fiche-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.academy-fiche-delete {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.academy-prestataires-grid {
  grid-template-columns: repeat(3, minmax(0, 360px));
}

.academy-prestataire-card .badge {
  flex: 0 0 auto;
}

.academy-edit-details {
  border: 1px solid #ffe8cf;
  border-radius: 16px;
  background: #fff8f1;
}

.academy-edit-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #c2410c;
  font-weight: 950;
  cursor: pointer;
}

.academy-edit-details[open] {
  padding-bottom: 14px;
}

.academy-edit-details .academy-animator-form {
  padding: 0 14px;
}

.academy-identity-content,
.academy-identity-block {
  display: grid;
  gap: 14px;
}

.academy-identity-block {
  padding: 14px;
  border: 1px solid #ffe8cf;
  border-radius: 18px;
  background: #ffffff;
}

.academy-identity-section {
  padding: 16px;
}

.academy-identity-section.is-open {
  padding-bottom: 16px;
}

.academy-identity-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.academy-identity-row .academy-photo-field {
  width: 112px;
  grid-column: auto;
  justify-self: start;
}

.academy-identity-row .academy-name-field {
  align-self: end;
}

.academy-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.academy-form-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.academy-form-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(3px);
}

.academy-modal-card {
  max-height: calc(100dvh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fffaf5;
}

.academy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #ffe8cf;
  background: #ffffff;
}

.academy-modal-header span {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-modal-header h2 {
  margin: 4px 0 0;
  color: #141827;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 950;
  letter-spacing: 0;
}

.academy-modal-header button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
}

.academy-modal-header button svg {
  width: 20px;
  height: 20px;
}

.academy-compact-form {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px 22px 22px;
}

.academy-compact-grid {
  display: grid;
  gap: 12px;
}

.academy-compact-section {
  display: block;
  border: 1px solid #ffe8cf;
  border-radius: 18px;
  background: #fff8f1;
  overflow: hidden;
}

.academy-compact-section.is-open,
.academy-compact-section[open] {
  padding-bottom: 14px;
}

.academy-compact-section h3,
.academy-compact-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 14px;
  color: #c2410c;
  font-size: 15px;
  font-weight: 950;
}

.academy-compact-section summary {
  cursor: pointer;
}

.academy-compact-section .academy-animator-form,
.academy-compact-section > label,
.academy-compact-section > fieldset {
  margin-right: 14px;
  margin-left: 14px;
}

.academy-compact-section .academy-animator-form {
  grid-template-columns: 96px repeat(2, minmax(0, 1fr));
  align-items: start;
}

.academy-compact-section .academy-animator-form .academy-main-profile-select {
  grid-column: 1 / -1;
}

.academy-compact-section .academy-animator-form .academy-photo-field {
  grid-row: span 2;
}

.academy-compact-section .academy-driving-panel,
.academy-compact-section .academy-language-panel,
.academy-compact-section .academy-profile-panel,
.academy-compact-section .academy-skill-panel {
  background: #ffffff;
}

.academy-modal-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0), #fffaf5 35%);
}

@media (max-width: 1020px) {
  .academy-dashboard-hero,
  .academy-dashboard-grid,
  .academy-stat-grid,
  .academy-placeholder-list,
  .academy-admin-grid,
  .academy-mini-cv-builder-form,
  .academy-animator-form {
    grid-template-columns: 1fr;
  }

  .academy-animator-profile {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .academy-animator-profile img,
  .academy-animator-profile > span:not(.badge) {
    width: 64px;
    height: 64px;
  }

  .academy-animator-profile .badge {
    grid-column: 1 / -1;
    width: max-content;
  }

  .academy-animator-sheet {
    grid-template-columns: 120px repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .academy-sheet-photo {
    width: 120px;
    height: 148px;
  }

  .academy-sheet-satisfaction {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 112px;
    height: 112px;
  }

  .academy-sheet-main-line {
    grid-column: 2 / 3;
  }

  .academy-sheet-section:nth-of-type(1),
  .academy-sheet-section:nth-of-type(2),
  .academy-sheet-section:nth-of-type(3),
  .academy-sheet-section:nth-of-type(4),
  .academy-sheet-mobility,
  .academy-sheet-availability {
    grid-column: 1 / -1;
  }

  .academy-skill-grid {
    grid-template-columns: 1fr;
  }

  .academy-language-row {
    grid-template-columns: 1fr;
  }

  .academy-driving-panel,
  .academy-driving-summary {
    grid-template-columns: 1fr;
  }

  .academy-photo-field {
    width: max-content;
  }

  .academy-photo-preview {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .academy-prestataires-grid {
    grid-template-columns: 1fr;
  }

  .academy-fiche-hero,
  .academy-fiche-grid {
    grid-template-columns: 1fr;
  }

  .academy-fiche-photo .academy-photo-preview {
    width: min(220px, 100%);
  }

  .academy-fiche-score {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .academy-modal-header {
    padding: 18px;
  }

  .academy-compact-form {
    padding: 14px 16px 18px;
  }

  .academy-compact-section .academy-animator-form {
    grid-template-columns: 1fr;
  }

  .academy-compact-section .academy-animator-form .academy-photo-field {
    grid-row: auto;
  }

  .academy-modal-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .academy-modal-actions .btn {
    width: 100%;
  }

  .academy-animator-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-fiche-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .academy-fiche-topbar > div {
    text-align: left;
  }

  .academy-fiche-actions,
  .academy-fiche-delete {
    flex-direction: column;
  }

  .academy-fiche-actions .btn,
  .academy-fiche-delete .btn {
    width: 100%;
  }

  .academy-reservation-dates,
  .academy-interview-card,
  .academy-public-interview-row,
  .academy-client-interview-card {
    grid-template-columns: 1fr;
  }

  .academy-interview-card {
    align-items: stretch;
  }

  .academy-interview-card time {
    min-height: 70px;
  }

  .academy-interview-card .btn,
  .academy-public-interview-row .btn,
  .academy-dashboard-links .btn {
    width: 100%;
  }

  .academy-public-interview-row form {
    justify-self: stretch;
  }

  .academy-animator-sheet {
    grid-template-columns: 1fr;
  }

  .academy-sheet-photo,
  .academy-sheet-field,
  .academy-sheet-main-line,
  .academy-sheet-satisfaction,
  .academy-sheet-section,
  .academy-sheet-section:nth-of-type(1),
  .academy-sheet-section:nth-of-type(2),
  .academy-sheet-section:nth-of-type(3),
  .academy-sheet-section:nth-of-type(4),
  .academy-sheet-mobility,
  .academy-sheet-availability {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .academy-sheet-photo {
    width: min(180px, 100%);
    height: 210px;
  }

  .academy-sheet-main-line {
    text-align: left;
  }

  .academy-sheet-main-line strong {
    justify-content: flex-start;
  }

  .academy-sheet-satisfaction {
    justify-self: start;
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 520px) {
  .academy-identity-row {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
  }

  .academy-identity-row .academy-photo-field {
    width: 92px;
  }

  .academy-identity-row .academy-photo-preview {
    width: 92px;
    height: 112px;
  }

  .academy-field-pair {
    grid-template-columns: 1fr;
  }

  .academy-animator-gallery {
    grid-template-columns: 1fr;
  }

  .academy-animator-tile {
    min-height: auto;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
  }

  .academy-animator-tile-photo {
    aspect-ratio: 1;
  }

  .academy-animator-tile strong {
    text-align: left;
  }
}

/* Anim'Academie compact animator sheet */
.academy-fiche-panel {
  gap: 16px;
  padding: 22px !important;
}

.academy-fiche-topbar {
  gap: 10px;
}

.academy-fiche-topbar h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.academy-fiche-titlebar {
  align-items: flex-start;
  justify-content: space-between;
}

.academy-fiche-titlebar > div {
  text-align: left;
}

.academy-title-status {
  width: min(100%, 270px);
  display: grid;
  gap: 7px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-title-status select {
  min-height: 44px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #141827;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.08);
  font-size: 15px;
  font-weight: 950;
}

.academy-fiche-form {
  gap: 16px;
}

.academy-fiche-hero {
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--academy-theme-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, var(--academy-theme-bg) 100%);
}

.academy-fiche-photo .academy-photo-preview {
  height: 172px;
  border-radius: 20px;
  border-color: var(--academy-theme-border);
  background: var(--academy-theme-soft);
  box-shadow: none;
}

.academy-fiche-identity {
  gap: 12px;
}

.academy-name-fields {
  grid-column: 1 / -1;
}

.academy-fiche-panel label {
  gap: 6px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.academy-fiche-panel input,
.academy-fiche-panel select,
.academy-fiche-panel textarea {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
}

.academy-fiche-panel textarea {
  min-height: 76px;
}

.academy-fiche-panel .academy-field-pair {
  gap: 14px;
}

.academy-fiche-panel .academy-contact-fields {
  grid-template-columns: minmax(150px, 0.62fr) minmax(320px, 1.38fr);
}

.academy-fiche-panel .academy-birth-row {
  grid-template-columns: minmax(230px, 0.46fr) minmax(0, 1fr);
}

.academy-fiche-score {
  width: 94px;
  height: 94px;
  padding: 9px;
  box-shadow: inset 0 0 0 2px var(--satisfaction-color, #f97316);
}

.academy-fiche-score span {
  font-size: 9px;
}

.academy-fiche-score strong {
  font-size: 22px;
}

.academy-fiche-score small {
  font-size: 10px;
}

.academy-fiche-grid {
  gap: 14px;
}

.academy-fiche-card {
  align-content: start;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.academy-fiche-card > * {
  width: 100%;
}

.academy-fiche-card h3,
.academy-fiche-card legend {
  font-size: 12px;
}

.academy-public-fiche {
  display: grid;
  gap: 12px;
}

.academy-public-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--academy-theme-border);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, var(--academy-theme-bg) 100%);
}

.academy-public-photo {
  width: 132px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--academy-theme-border);
  border-radius: 17px;
  background: var(--academy-theme-soft);
}

.academy-public-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-public-photo b {
  color: #ffffff;
  font-size: 48px;
  font-weight: 950;
}

.academy-public-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.academy-public-kicker {
  color: var(--academy-theme-text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.academy-public-main h3 {
  margin: 0;
  color: #141827;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1;
}

.academy-public-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.academy-public-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 900;
}

.academy-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.academy-status-pill.is-available {
  color: #166534;
  border-color: #86efac;
  background: #dcfce7;
}

.academy-status-pill.is-unavailable {
  color: #475569;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.academy-status-pill.is-waiting {
  color: #ffffff;
  border-color: #fb923c;
  background: #f97316;
}

.academy-status-pill.is-finished {
  color: #9a3412;
  border-color: #fdba74;
  background: #ffedd5;
}

.academy-public-tags .academy-status-pill,
.academy-animator-tile .academy-status-pill {
  color: inherit;
}

.academy-public-tags .academy-status-pill {
  max-width: 100%;
  height: auto;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.12;
  white-space: normal;
}

.academy-public-tags .academy-status-pill.is-available,
.academy-animator-tile .academy-status-pill.is-available {
  color: #166534;
}

.academy-public-tags .academy-status-pill.is-unavailable,
.academy-animator-tile .academy-status-pill.is-unavailable {
  color: #475569;
}

.academy-public-tags .academy-status-pill.is-waiting,
.academy-animator-tile .academy-status-pill.is-waiting {
  color: #ffffff;
}

.academy-animator-tile .academy-status-pill {
  justify-self: center;
  min-height: 24px;
  padding: 0 9px;
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
  text-transform: uppercase;
}

.academy-public-tags .academy-birth-tag {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.academy-public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.academy-public-actions form {
  margin: 0;
}

.academy-reservation-form,
.academy-interview-form {
  display: grid;
  gap: 10px;
  min-width: min(100%, 420px);
}

.academy-reservation-modal,
.academy-interview-modal,
.academy-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 22px;
}

.academy-reservation-modal.is-open,
.academy-interview-modal.is-open,
.academy-delete-modal.is-open {
  display: grid;
}

.academy-reservation-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
}

.academy-reservation-dialog {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(124, 45, 18, 0.22);
}

.academy-reservation-dialog header,
.academy-reservation-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.academy-reservation-dialog header span {
  display: block;
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-reservation-dialog header strong {
  color: #141827;
  font-size: 24px;
  font-weight: 950;
}

.academy-reservation-dialog header button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
}

.academy-reservation-dialog footer {
  justify-content: flex-end;
}

.academy-reservation-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.academy-reservation-dates label {
  display: grid;
  gap: 5px;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-reservation-dates input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #141827;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.academy-reservation-estimate {
  display: block;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.academy-interview-message {
  display: grid;
  gap: 6px;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-interview-message textarea {
  width: 100%;
  min-height: 108px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  color: #141827;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  resize: vertical;
  text-transform: none;
}

.academy-interview-sent-note {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  color: #166534;
  background: #dcfce7;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.academy-interview-sent-note svg {
  width: 18px;
  height: 18px;
}

.academy-delete-dialog {
  border-color: #fecaca;
  box-shadow: 0 28px 80px rgba(153, 27, 27, 0.18);
}

.academy-delete-dialog header span {
  color: #dc2626;
}

.academy-delete-dialog header button {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.academy-delete-warning {
  margin: 0;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  color: #7f1d1d;
  background: #fff1f2;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.academy-dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.academy-interview-list {
  display: grid;
  gap: 12px;
}

.academy-interview-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fffaf5);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.academy-interview-card time {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  color: #9a3412;
  background: #ffedd5;
  text-align: center;
}

.academy-interview-card time strong {
  color: #141827;
  font-size: 15px;
  font-weight: 950;
}

.academy-interview-card time span {
  color: #f97316;
  font-size: 20px;
  font-weight: 950;
}

.academy-interview-card > div {
  display: grid;
  gap: 4px;
}

.academy-interview-card > div > span:not(.academy-status-pill) {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-interview-client {
  color: #141827;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  line-height: 1.05;
}

.academy-interview-card h2 {
  margin: 0;
  color: #141827;
  font-size: 20px;
  font-weight: 950;
}

.academy-interview-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.academy-interview-card small {
  color: #94a3b8;
  font-weight: 850;
}

.academy-interview-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.academy-interview-actions form {
  margin: 0;
}

.academy-interview-actions .btn {
  width: 100%;
  min-width: 150px;
}

.academy-interview-reply {
  width: 100%;
}

.academy-interview-reply summary {
  cursor: pointer;
  list-style: none;
}

.academy-interview-reply summary::-webkit-details-marker {
  display: none;
}

.academy-interview-reply form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
}

.academy-interview-reply label {
  display: grid;
  gap: 6px;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-interview-reply textarea {
  width: 100%;
  min-height: 94px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #141827;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  resize: vertical;
  text-transform: none;
}

.academy-interview-muted {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.academy-public-interviews {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fffaf5;
}

.academy-public-interviews header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.academy-public-interviews header span {
  color: #f97316;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-public-interviews header h3 {
  margin: 2px 0 0;
  color: #141827;
  font-size: 20px;
  font-weight: 950;
}

.academy-public-interviews header svg {
  color: #f97316;
}

.academy-public-interview-list {
  display: grid;
  gap: 10px;
}

.academy-public-interview-row {
  display: grid;
  grid-template-columns: minmax(110px, auto) auto minmax(170px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 16px;
  background: #ffffff;
}

.academy-public-interview-row time {
  display: grid;
  gap: 2px;
  color: #64748b;
  font-weight: 900;
}

.academy-public-interview-row time strong {
  color: #141827;
  font-weight: 950;
}

.academy-public-interview-row form {
  justify-self: end;
  margin: 0;
}

.academy-client-interview-card {
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.academy-client-interview-person {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.academy-client-interview-person img {
  width: 72px;
  height: 72px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
  object-fit: contain;
}

.academy-devis-panel {
  display: grid;
  gap: 18px;
}

.academy-devis-panel > header {
  align-items: center;
}

.academy-devis-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.academy-devis-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.academy-devis-section-title span {
  color: #f97316;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-devis-section-title strong {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.academy-devis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.academy-devis-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 52px 14px 14px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 30px rgba(124, 45, 18, 0.08);
}

.academy-devis-photo {
  width: 72px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

.academy-devis-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-devis-photo b {
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-devis-icon {
  color: #f97316;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.academy-devis-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.academy-devis-card strong,
.academy-devis-card small,
.academy-devis-card span,
.academy-devis-card em {
  display: block;
  min-width: 0;
}

.academy-devis-card strong {
  color: #141827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.12;
}

.academy-devis-card small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.academy-devis-profile {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-devis-period {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  color: #475569;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #fed7aa;
  font-size: 11px;
  font-weight: 950;
}

.academy-devis-price {
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 14px;
  color: #ffffff !important;
  background: #f97316;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.academy-devis-card em {
  grid-column: 1 / -1;
  padding: 9px 11px;
  border-radius: 14px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.academy-devis-remove-form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}

.academy-devis-remove {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #dc2626;
  background: #fee2e2;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.academy-devis-remove:hover,
.academy-devis-remove:focus-visible {
  color: #ffffff;
  background: #dc2626;
  transform: translateY(-1px);
  outline: none;
}

.academy-devis-remove svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

.academy-devis-remove span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.academy-devis-actions {
  display: flex;
  justify-content: flex-end;
}

.academy-devis-total {
  display: grid;
  gap: 5px;
  justify-items: end;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: #fff7ed;
}

.academy-devis-total span,
.academy-devis-total small {
  color: #9a3412;
  font-weight: 900;
}

.academy-devis-total span {
  font-size: 12px;
  text-transform: uppercase;
}

.academy-devis-total strong {
  color: #141827;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
}

.academy-devis-total small {
  max-width: 520px;
  text-align: right;
}

/* Anim'Academie catalogue cards cleanup */
body.academy-app .academy-animator-gallery {
  grid-template-columns: repeat(auto-fill, minmax(148px, 176px));
  align-items: start;
  justify-content: start;
}

body.academy-app .academy-animator-tile {
  width: 100%;
  max-width: 176px;
  height: 356px;
  min-height: 356px;
  grid-template-rows: 170px 18px 15px 24px 28px 32px 13px;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  box-sizing: border-box;
}

body.academy-app .academy-animator-tile-photo {
  width: 100%;
  height: 170px;
  aspect-ratio: auto;
  border-radius: 14px;
  background: #ffffff;
}

body.academy-app .academy-animator-tile-photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body.academy-app .academy-animator-tile strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.1;
}

body.academy-app .academy-animator-tile-role {
  min-width: 0;
  font-size: 9.5px;
  line-height: 1.15;
}

body.academy-app .academy-animator-tile-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  min-width: 0;
  min-height: 18px;
  max-width: calc(100% - 18px);
  padding: 3px 7px;
  font-size: 8.5px;
  line-height: 1.1;
  text-align: center;
}

body.academy-app .academy-animator-tile-profile-empty {
  visibility: hidden;
}

body.academy-app .academy-animator-language-flags {
  min-width: 0;
  min-height: 24px;
}

body.academy-app .academy-animator-language-flags-empty {
  visibility: hidden;
}

body.academy-app .academy-animator-tile .academy-status-pill {
  width: 100%;
  min-height: 26px;
  padding: 5px 7px;
  border-radius: 11px;
  box-sizing: border-box;
  font-size: 7.6px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: break-word;
}

body.academy-app .academy-animator-tile small {
  min-height: 13px;
  font-size: 8px;
  line-height: 1.1;
}

@media (max-width: 680px) {
  body.academy-app .academy-animator-gallery {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  }

  body.academy-app .academy-animator-tile {
    max-width: none;
    grid-template-columns: 1fr;
    height: 356px;
  }

  body.academy-app .academy-animator-tile-photo {
    height: 170px;
    aspect-ratio: auto;
  }
}

.academy-public-grid {
  align-items: stretch;
}

.academy-public-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.academy-public-list li,
.academy-public-empty {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #ffedd5;
  border-radius: 10px;
  color: #1f2937;
  background: #fffaf5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.academy-public-empty {
  color: #9ca3af;
  font-style: italic;
}

.academy-fiche-card .academy-main-profile-select,
.academy-fiche-card .academy-skill-panel,
.academy-fiche-card .academy-language-panel,
.academy-fiche-card .academy-profile-panel,
.academy-fiche-card .academy-driving-panel,
.academy-fiche-card .academy-availability-panel {
  gap: 10px;
}

.academy-fiche-card .academy-subskill-group {
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
}

.academy-fiche-card .academy-subskill-group h3 {
  font-size: 12px;
}

.academy-fiche-card .academy-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.academy-fiche-card .academy-skill-option {
  min-width: 0;
  min-height: 34px;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.15;
}

.academy-fiche-card .academy-skill-option input {
  width: 15px;
  min-height: 15px;
  height: 15px;
}

.academy-fiche-card .academy-profile-list,
.academy-fiche-card .academy-language-grid {
  gap: 8px;
}

.academy-dynamic-list {
  display: grid;
  gap: 8px;
}

.academy-text-row,
.academy-permit-row,
.academy-availability-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid #ffedd5;
  border-radius: 12px;
  background: #fffaf5;
}

.academy-fiche-card .academy-profile-list .academy-text-row label,
.academy-fiche-card .academy-profile-list .academy-permit-row label,
.academy-fiche-card .academy-availability-row label,
.academy-fiche-card .academy-language-row {
  gap: 8px;
}

.academy-fiche-card .academy-profile-list .academy-text-row label,
.academy-fiche-card .academy-profile-list .academy-permit-row label,
.academy-fiche-card .academy-availability-row label {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.academy-fiche-card .academy-profile-list textarea {
  min-height: 42px;
}

.academy-fiche-card .academy-language-row {
  grid-template-columns: minmax(92px, 0.9fr) 68px minmax(96px, 1fr) 28px;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
}

.academy-fiche-card .academy-driving-panel {
  grid-template-columns: 1fr;
}

.academy-fiche-card .academy-availability-panel {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
}

.academy-fiche-card .academy-availability-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 28px;
}

.academy-legacy-note {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.academy-row-remove,
.academy-mini-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: #f97316;
  cursor: pointer;
}

.academy-row-remove {
  width: 28px;
  min-width: 28px;
  height: 30px;
  align-self: end;
  border-radius: 10px;
}

.academy-row-remove svg,
.academy-mini-add svg {
  width: 15px;
  height: 15px;
}

.academy-mini-add {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  gap: 6px;
  padding: 0;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.16);
}

.academy-fiche-actions,
.academy-fiche-delete {
  padding-top: 0;
}

.academy-fiche-actions .btn,
.academy-fiche-delete .btn {
  min-height: 38px;
  padding: 0 14px;
}

@media (min-width: 860px) {
  .academy-fiche-hero {
    grid-template-columns: 156px minmax(0, 1fr) 94px;
  }

  .academy-fiche-identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-fiche-identity > label:not(.academy-main-profile-select) {
    grid-column: 1 / -1;
  }

  .academy-fiche-identity > .academy-field-pair:first-of-type {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .academy-fiche-identity > .academy-field-pair.academy-name-fields {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-fiche-identity > .academy-field-pair:last-of-type {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-fiche-identity > .academy-contact-fields {
    grid-column: 1 / -1;
    grid-template-columns: minmax(150px, 0.62fr) minmax(320px, 1.38fr);
  }

  .academy-fiche-identity > .academy-birth-row {
    grid-column: 1 / -1;
    grid-template-columns: minmax(230px, 0.46fr) minmax(0, 1fr);
  }

  .academy-fiche-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .academy-fiche-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .academy-fiche-card .academy-language-row {
    grid-template-columns: 1fr 72px 1fr 28px;
  }

  .academy-public-hero {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .academy-public-hero .academy-fiche-score {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .academy-public-photo {
    width: 112px;
    height: 128px;
  }
}

@media (max-width: 560px) {
  .academy-public-hero {
    grid-template-columns: 1fr;
  }

  .academy-public-photo {
    width: min(180px, 100%);
    height: 210px;
  }

  .academy-public-actions,
  .academy-public-actions .btn {
    width: 100%;
  }

  .academy-fiche-card .academy-language-row,
  .academy-text-row,
  .academy-permit-row,
  .academy-availability-row {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .academy-fiche-card .academy-language-row label,
  .academy-fiche-card .academy-availability-row label {
    grid-column: 1;
  }

  .academy-fiche-card .academy-language-row .academy-language-custom {
    grid-column: 1 / -1;
  }

  .academy-fiche-card .academy-language-row .academy-row-remove,
  .academy-fiche-card .academy-availability-row .academy-row-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .academy-fiche-card .academy-profile-list .academy-text-row label,
  .academy-fiche-card .academy-profile-list .academy-permit-row label,
  .academy-fiche-card .academy-availability-row label {
    grid-template-columns: 1fr;
  }
}

.academy-candidature-body {
  min-height: 100vh;
  color: #141827;
  background:
    radial-gradient(circle at 84% 10%, rgba(249, 115, 22, 0.12), transparent 32%),
    linear-gradient(180deg, #fffaf5 0%, #f8fafc 100%);
}

.academy-candidature-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #fed7aa;
  backdrop-filter: blur(14px);
}

.academy-candidature-nav a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #141827;
  font-size: 22px;
  font-weight: 950;
}

.academy-candidature-nav img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.academy-candidature-nav > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.academy-candidature-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) 0 56px;
}

.academy-candidature-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.academy-candidature-hero span,
.academy-candidate-kicker {
  color: #f97316;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.academy-candidature-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #141827;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.academy-candidature-hero p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
}

.academy-candidature-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.8vw, 30px);
  border-color: #fed7aa;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.88), rgba(255, 255, 255, 0.98) 46%),
    #ffffff;
}

.academy-candidature-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #ffedd5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.04);
}

.academy-candidature-block h2 {
  margin: 0;
  color: #7c2d12;
  font-size: 16px;
  font-weight: 950;
}

.academy-candidature-block label {
  display: grid;
  gap: 7px;
  color: #7c2d12;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-candidature-block input,
.academy-candidature-block select,
.academy-candidature-block textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 13px;
  color: #141827;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.academy-candidature-block textarea {
  min-height: 76px;
  padding: 11px 12px;
  resize: vertical;
}

.academy-candidature-identity {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.academy-candidature-identity > .academy-photo-field.full {
  width: 100%;
  grid-column: auto;
  align-self: stretch;
}

.academy-candidature-identity .academy-photo-preview {
  width: 100%;
  height: auto;
  min-height: 260px;
  border-radius: 22px;
}

.academy-candidature-identity .academy-photo-preview img {
  object-fit: contain;
}

.academy-candidature-identity .academy-photo-remove {
  width: 100%;
  min-height: 38px;
  border-radius: 13px;
}

.academy-candidature-fields {
  display: grid;
  align-content: start;
  gap: 14px;
}

.academy-candidature-form .academy-field-pair {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.academy-candidature-form .academy-contact-fields {
  grid-template-columns: minmax(320px, 1.35fr) minmax(190px, 0.75fr);
}

.academy-candidature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.academy-candidature-skills {
  display: grid;
}

.academy-candidature-skill-group {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.academy-candidature-skill-group.is-active {
  display: grid;
}

.academy-candidature-mini-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 78px minmax(140px, 1fr);
  gap: 8px;
}

.academy-candidature-mini-row input.is-hidden {
  display: none;
}

.academy-candidature-availability {
  display: grid;
  gap: 10px;
}

.academy-candidature-availability > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.academy-candidature-actions {
  display: flex;
  justify-content: flex-end;
}

.academy-candidature-actions .btn {
  min-height: 48px;
  padding-inline: 24px;
}

.academy-candidature-success {
  justify-items: start;
  gap: 12px;
  padding: 28px;
}

.academy-candidature-success svg {
  width: 42px;
  height: 42px;
  color: #16a34a;
}

.academy-candidature-success h2 {
  margin: 0;
  color: #141827;
  font-size: 32px;
}

.academy-candidature-success p {
  max-width: 680px;
  margin: 0;
  color: #64748b;
  font-size: 17px;
  font-weight: 750;
}

.academy-candidate-admin-panel {
  gap: 18px;
}

.academy-candidate-list {
  display: grid;
  gap: 14px;
}

.academy-candidate-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fffaf5);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
}

.academy-candidate-photo {
  width: 118px;
  height: 138px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.academy-candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.academy-candidate-photo b {
  color: #f97316;
  font-size: 42px;
  font-weight: 950;
}

.academy-candidate-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.academy-candidate-main h3 {
  margin: 0;
  color: #141827;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.academy-candidate-main p,
.academy-candidate-main small {
  margin: 0;
  color: #64748b;
  font-weight: 800;
}

.academy-candidate-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.academy-candidate-details span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  color: #475569;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.academy-candidate-details strong {
  color: #9a3412;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.academy-candidate-actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.academy-candidate-actions .btn {
  width: 100%;
}

.academy-candidate-refusal {
  display: grid;
  gap: 8px;
}

.academy-candidate-refusal summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  color: #ffffff;
  background: #dc2626;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.academy-candidate-refusal summary::-webkit-details-marker {
  display: none;
}

.academy-candidate-refusal summary svg {
  width: 18px;
  height: 18px;
}

.academy-candidate-refusal form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff7f7;
}

.academy-candidate-refusal label {
  display: grid;
  gap: 6px;
  color: #991b1b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.academy-candidate-refusal textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #141827;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  resize: vertical;
}

.academy-candidate-interview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.academy-candidate-interview-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 15px;
  background: #f0fdf4;
}

.academy-candidate-interview-status svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 12px;
  color: #15803d;
  background: #dcfce7;
}

.academy-candidate-interview-status strong,
.academy-candidate-interview-warning strong {
  display: block;
  color: #141827;
  font-size: 13px;
  font-weight: 950;
}

.academy-candidate-interview-status span,
.academy-candidate-interview-warning small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.academy-candidate-interview-status a {
  color: #f97316;
  font-weight: 950;
}

.academy-candidate-interview-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(112px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
}

.academy-candidate-interview-form label {
  display: grid;
  gap: 5px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.academy-candidate-interview-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #141827;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.academy-candidate-interview-form .btn {
  min-height: 40px;
  white-space: nowrap;
}

.academy-candidate-interview-warning {
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 15px;
  background: #fff7ed;
}

@media (max-width: 860px) {
  .academy-candidature-nav,
  .academy-candidature-nav > div {
    align-items: stretch;
  }

  .academy-candidature-nav {
    flex-direction: column;
  }

  .academy-candidature-nav .btn {
    flex: 1;
  }

  .academy-candidature-identity,
  .academy-candidature-grid,
  .academy-candidate-card,
  .academy-candidate-details {
    grid-template-columns: 1fr;
  }

  .academy-candidature-identity > .academy-photo-field.full {
    width: min(240px, 100%);
    justify-self: center;
  }

  .academy-candidature-form .academy-field-pair,
  .academy-candidature-form .academy-contact-fields {
    grid-template-columns: 1fr;
  }

  .academy-candidate-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-candidate-interview-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-candidate-interview-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .academy-candidature-mini-row,
  .academy-candidature-availability > div,
  .academy-candidate-actions,
  .academy-candidate-interview-form {
    grid-template-columns: 1fr;
  }
}
