@charset "UTF-8";
.modal-backdrop:has(.auth-modal-panel) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background-color: rgba(33, 59, 95, 0.4);
}
.modal-backdrop:has(.auth-modal-panel) .auth-modal-panel.modal-container {
  width: min(100%, 26rem);
  max-width: 100%;
  max-height: min(90dvh, 100dvh - 2rem);
  padding: 0;
  margin: 0;
  border: 1px solid rgba(33, 59, 95, 0.1);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(33, 59, 95, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.auth-modal-form {
  width: 100%;
  min-width: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.auth-modal-form .auth-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(33, 59, 95, 0.08);
  flex-shrink: 0;
}
.auth-modal-form .auth-modal-header img {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
}
.auth-modal-form .auth-modal-header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #213b5f;
  line-height: 1.25;
}
.auth-modal-form .auth-modal-header p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #7a8292;
  line-height: 1.45;
}
.auth-modal-form label {
  display: block;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #213b5f;
}
.auth-modal-form label:first-of-type {
  margin-top: 0;
}
.auth-modal-form input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.6875rem 0.875rem;
  border: 1px solid rgba(33, 59, 95, 0.15);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #1a2332;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-modal-form input::placeholder {
  color: rgba(122, 130, 146, 0.85);
}
.auth-modal-form input:focus {
  outline: none;
  border-color: #cc0022;
  box-shadow: 0 0 0 3px rgba(192, 49, 10, 0.062745098);
}
.auth-modal-form .login-error {
  min-height: 0;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b42318;
  background: rgba(204, 0, 34, 0.06);
  border-radius: 0.375rem;
  border: 1px solid rgba(204, 0, 34, 0.12);
}
.auth-modal-form .login-error:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}
.auth-modal-form .btn-primary {
  width: 100%;
  margin-top: 1.125rem;
  padding: 0.8125rem 1rem;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background-color: #cc0022;
  color: #fff;
  flex-shrink: 0;
}
.auth-modal-form .btn-primary:hover {
  filter: brightness(1.05);
}
.auth-modal-form .auth-modal-footer {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(33, 59, 95, 0.08);
  text-align: center;
  font-size: 0.875rem;
  color: #7a8292;
  flex-shrink: 0;
}
.auth-modal-form .btn-link {
  display: inline;
  background: none;
  border: none;
  color: #cc0022;
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
  padding: 0;
}
.auth-modal-form .btn-link:hover {
  text-decoration: underline;
}

@media (max-width: 639px) {
  .modal-backdrop:has(.auth-modal-panel) {
    align-items: flex-end;
    padding: 0;
  }
  .modal-backdrop:has(.auth-modal-panel) .auth-modal-panel.modal-container {
    width: 100%;
    max-width: none;
    max-height: min(94dvh, 100dvh - env(safe-area-inset-top, 0px));
    border-radius: 1.25rem 1.25rem 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .modal-backdrop:has(.auth-modal-panel) .auth-modal-panel.modal-container::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.625rem auto 0;
    border-radius: 999px;
    background: rgba(33, 59, 95, 0.15);
    flex-shrink: 0;
  }
  .auth-modal-form {
    padding: 0.75rem 1.25rem max(1.25rem, env(safe-area-inset-bottom, 0px));
  }
  .auth-modal-form input {
    font-size: 16px;
  }
  .auth-modal-form .auth-modal-header h2 {
    font-size: 1.125rem;
  }
}
.account-settings-modal {
  max-width: 32em;
}
.account-settings-modal h2 {
  margin: 0 0 0.5em;
  color: var(--app-navy);
}
.account-settings-modal section {
  margin: 1.25em 0;
  padding-top: 1em;
  border-top: 1px solid var(--app-border);
}
.account-settings-modal section h3 {
  margin: 0 0 0.75em;
  font-size: 1em;
  color: var(--app-navy);
}
.account-settings-modal label {
  display: block;
  margin-bottom: 0.65em;
  font-size: 0.9em;
  color: var(--app-muted);
}
.account-settings-modal label input {
  display: block;
  width: 100%;
  margin-top: 0.25em;
  padding: 0.5em 0.65em;
  border: 1px solid var(--app-border);
  border-radius: 0.5em;
  font: inherit;
}
.account-settings-modal__status {
  min-height: 1.25em;
  margin: 0;
}
.account-settings-modal__hint {
  color: var(--app-muted);
  font-size: 0.9em;
}
.account-settings-modal__danger {
  border-color: rgba(204, 0, 34, 0.25);
}

.user-identity__settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.user-identity__settings:hover {
  background: rgba(255, 255, 255, 0.22);
}

.burger-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.burger-menu--open {
  opacity: 1;
  pointer-events: auto;
}
.burger-menu__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--app-navy);
  color: #fff;
  padding: 1.25em 1em 2em;
  overflow-y: auto;
}
.burger-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1em;
}
.burger-menu__header h2 {
  margin: 0;
  color: #fff;
}
.burger-menu__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25em;
  cursor: pointer;
}
.burger-menu__section {
  margin-bottom: 1.25em;
}
.burger-menu__section h6 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  font-size: 0.7em;
  margin: 0 0 0.5em;
}
.burger-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75em;
  width: 100%;
  padding: 0.85em 1em;
  margin-bottom: 0.35em;
  border: none;
  border-radius: 0.65em;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.05em;
  text-align: left;
  cursor: pointer;
}
.burger-menu__link:hover {
  background: rgba(255, 255, 255, 0.14);
}
.burger-menu__plan {
  margin: auto 0 1em;
  opacity: 0.75;
  font-size: 0.85em;
}
.burger-menu__disconnect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.5em;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.app-mobile-bar {
  display: none;
  align-items: center;
  gap: 0.75em;
  padding: 0.65em 1em;
  background: var(--app-navy);
  color: #fff;
}
.app-mobile-bar__title {
  font-weight: 600;
  font-family: var(--font-display);
}
.app-mobile-bar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25em;
  height: 2.25em;
  border: none;
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

:root {
  --app-bg: #f4f6f9;
  --app-bg-alt: #eef1f6;
  --app-surface: #ffffff;
  --app-accent: #cc0022;
  --app-accent-soft: rgba(192, 49, 10, 0.062745098);
  --app-navy: #213b5f;
  --app-text: #1a2332;
  --app-muted: #7a8292;
  --app-border: rgba(33, 59, 95, 0.1);
  --app-shadow: 0 4px 24px rgba(33, 59, 95, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

.admin-page .admin-overview-host,
.admin-page .admin-monitoring-host {
  margin-top: 1em;
}
.admin-page .panel-kpi {
  font-size: 2rem;
  font-weight: 700;
  color: var(--app-navy);
  margin: 0.25em 0;
}
.admin-page .panel-kpi-sub {
  color: var(--app-muted);
  font-size: 0.85em;
  margin: 0;
}
.admin-page .panel-card--wide {
  grid-column: 1/-1;
}
.admin-page .admin-tier-list {
  margin: 0.5em 0 0;
  padding-left: 1.25em;
  color: var(--app-text);
}
.admin-page .admin-monitoring-charts {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.admin-page .admin-monitoring-chart {
  min-height: 260px;
}
.admin-page .admin-monitoring-chart canvas {
  height: 200px !important;
}
.admin-page .admin-monitoring-chart__empty {
  color: var(--app-muted);
  font-size: 0.9em;
}

:root {
  color-scheme: light;
}

html {
  height: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background-color: #e9e9e9;
  margin: 0;
  padding: 0;
  height: 100dvh;
  width: 100%;
  color: #7a8292;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
}

.app-layout {
  font-family: var(--font-body);
  color: var(--app-text);
}
.app-layout h1, .app-layout h2, .app-layout h3, .app-layout h4, .app-layout h5, .app-layout h6 {
  font-family: var(--font-display);
  color: var(--app-navy);
}

#app-root {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
label {
  color: #e9e9e9;
}

.page-error {
  width: calc(100% - 1em);
  margin: 0.5em;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #b42318;
  background: rgba(204, 0, 34, 0.06);
  border: 1px solid rgba(204, 0, 34, 0.12);
  border-radius: 0.5rem;
  box-sizing: border-box;
}
.page-error:empty {
  display: none;
}

.billing-page .billing-section {
  width: calc(100% - 1em);
  margin: 0 0.5em 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  box-shadow: var(--app-shadow);
}
.billing-page .billing-section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--app-navy);
}

.billing-status p {
  margin: 0.35rem 0;
  font-size: 0.9375rem;
}

.billing-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: rgba(26, 58, 92, 0.08);
  color: var(--app-navy);
}
.billing-badge--active {
  background: rgba(0, 128, 64, 0.12);
  color: #067647;
}
.billing-badge--trial {
  background: rgba(204, 0, 34, 0.08);
  color: #cc0022;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.billing-plan-card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  background: var(--app-bg-alt);
}
.billing-plan-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.billing-plan-card__price {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-navy);
}
.billing-plan-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--app-muted);
}
.billing-plan-card ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--app-muted);
}
.billing-plan-card .btn {
  width: 100%;
}

.billing-invoices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.billing-invoices-table th,
.billing-invoices-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--app-border);
}
.billing-invoices-table th {
  font-weight: 600;
  color: var(--app-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.payment-modal {
  min-width: min(480px, 95vw);
}
.payment-modal__checkout {
  min-height: 320px;
  margin: 1rem 0;
  border: 1px dashed var(--app-border);
  border-radius: 0.5rem;
}

.view {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--app-bg);
}

.view-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
}
.view-content .view-container, .view-content .list-view, .view-content .calendar, .view-content .banner {
  position: relative;
  background-color: var(--app-surface);
  border-radius: 1rem;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
}
.view-content .banner {
  width: calc(100% - 1em);
  margin: 0.5em;
  padding: 0.75em 1em;
  font-size: 1em;
}
.view-content .banner h2 {
  font-size: 1.35rem;
  margin: 0;
  text-align: center;
  text-transform: none;
  color: var(--app-navy);
  font-weight: 600;
}
.view-content .btn-create-data {
  flex-basis: 100%;
  width: fit-content;
  height: fit-content;
  color: white;
  background-color: #cc0022;
  font-weight: 700;
  padding: 0.5em 1em;
  font-size: 1.1em;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
}
.view-content .btn-create-data i {
  margin-right: 0.5em;
}

.app-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 0;
}
.app-title h1,
.app-title h4 {
  margin: 0;
}
.app-title h1 {
  text-transform: uppercase;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.1;
}
.app-title h4 {
  font-weight: normal;
  font-size: 0.8em;
}
.app-title .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  padding: 0.1em;
  padding-top: 0.02em;
  padding-bottom: 0.18em;
  border-radius: 150px;
  background-color: #cc0022;
  margin-right: 0.2em;
}

.flex-center, .modal-backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
  border: none;
  cursor: pointer;
  margin-bottom: 0.2em;
  padding: 0.75em 1em;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 7px;
}
.btn > i {
  margin-right: 0.5em;
}

.btn-primary {
  background-color: #cc0022;
  color: white;
}

.btn-secondary {
  border: 1px solid #cc0022;
}

.btn-transparent {
  background-color: transparent;
}

.btn-delete {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: red;
  color: white;
}
.btn-delete > i {
  margin: 0;
}

.calendar {
  display: flex;
  flex-direction: column;
  margin: 1.5em;
  overflow: hidden;
  flex: 1;
  max-width: 800px;
}
.calendar .calendar-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  border-bottom: 1px solid #e5e7eb;
  margin: 1em;
  margin-top: 0;
}
.calendar .calendar-menu span {
  flex: 1;
  text-align: center;
  max-width: 15em;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: capitalize;
}
.calendar .calendar-menu button {
  width: 2em;
  height: 2em;
  cursor: pointer;
  border-radius: 150px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.calendar table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}
.calendar table th {
  font-size: 0.8em;
  transition: color 0.35s ease-out;
}
.calendar table td {
  position: relative;
  width: 14.2857142857%;
  border: 1px solid #e5e7eb;
  user-select: none;
  cursor: pointer;
  transition: background-color 1.5s ease-out, color 1.5s ease-out;
}
.calendar table td::before {
  content: "";
  display: block;
  padding-top: 100%;
}
.calendar table td .content {
  position: absolute;
  top: 0.3em;
  left: 0.3em;
  bottom: 0.3em;
  right: 0.3em;
  border-radius: 1em;
  transition: background-color 0.75s ease-out, color 0.75s ease-out, transform 0.75s ease-out;
}
.calendar table td .content > span {
  position: relative;
  font-size: 0.8em;
  top: 0em;
  left: 0em;
  transition: top 0.5s ease-out, left 0.5s ease-out;
}
.calendar table td .content:hover {
  background-color: rgba(33, 66, 112, 0.1529411765);
  transform: scale(1.075);
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}
.calendar table td .content:hover > span {
  top: 0.25em;
  left: 0.5em;
  transition: top 0.2s ease-out, left 0.2s ease-out;
}
.calendar table td:hover {
  transition: color 0.2s ease-out;
}
.calendar table td:hover[out-month=true] {
  color: white !important;
}
.calendar table td[out-month=true] {
  color: #e5e7eb;
}
.calendar table td[today=true] .content > span {
  color: #cc0022;
  font-weight: 600;
}
.calendar table:has(td[data-col="0"]:hover) th[data-col="0"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="0"]:hover) th:not([data-col="0"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="1"]:hover) th[data-col="1"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="1"]:hover) th:not([data-col="1"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="2"]:hover) th[data-col="2"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="2"]:hover) th:not([data-col="2"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="3"]:hover) th[data-col="3"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="3"]:hover) th:not([data-col="3"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="4"]:hover) th[data-col="4"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="4"]:hover) th:not([data-col="4"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="5"]:hover) th[data-col="5"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="5"]:hover) th:not([data-col="5"]) {
  color: #e5e7eb;
}
.calendar table:has(td[data-col="6"]:hover) th[data-col="6"] {
  color: #cc0022;
}
.calendar table:has(td[data-col="6"]:hover) th:not([data-col="6"]) {
  color: #e5e7eb;
}

.form {
  display: flex;
  flex-direction: column;
  padding: 0 2em 2em 2em;
}
.form h4 {
  color: #213b5f;
  margin: 0;
  padding: 0;
  font-weight: 700;
  text-align: center;
  margin-top: 0.5em;
  font-size: 1.4em;
  text-transform: uppercase;
}
.form p {
  margin: 0;
  font-size: 0.8em;
}
.form label {
  font-weight: 700;
  margin-top: 1.5em;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.04em;
  margin-bottom: 0.25em;
}
.form input {
  border-radius: 5px;
  background-color: white;
  border: 1px solid #e5e7eb;
  padding: 0.6em;
  color: #7a8292;
  outline: 0;
}
.form .list {
  position: relative;
  padding: 0.5em;
  border-radius: 1em;
  background-color: #e5e7eb;
  width: calc(100% - 1em);
  min-height: 200px;
  margin-bottom: 0.5em;
}
.form .list:not(:has(*))::after {
  content: "Aucune donnée";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
}
.form .list .form-entry {
  margin-bottom: 0 !important;
  padding: 0.25em;
}
.form .list .form-entry > label {
  margin: 0;
}

.list-view {
  display: flex;
  flex-direction: column;
  margin: 1.5em;
  overflow: hidden;
}
.list-view table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.list-view table th {
  background-color: #e9e9e9;
  color: white;
  padding: 0.35em 0.5em;
  font-size: 0.75em;
}
.list-view table td,
.list-view table th {
  padding: 0.5em;
}
.list-view table tr:not(:last-of-type) {
  border-bottom: 1px solid #e5e7eb;
}

.modal-form {
  width: 600px;
  max-width: 98vw;
}
.modal-form h4 {
  margin: -0.63em;
  padding: 0.5em;
  font-size: 1.6em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #e5e7eb;
  background-color: #e9e9e9;
  color: white;
}
.modal-form form,
.modal-form .form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal-form form .form-entry, .modal-form form .subform .form-subentry,
.modal-form .form .form-entry,
.modal-form form .subform .form .form-subentry,
.modal-form .form .subform .form-subentry {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}
.modal-form form .form-entry label, .modal-form form .subform .form-subentry label,
.modal-form .form .form-entry label,
.modal-form form .subform .form .form-subentry label,
.modal-form .form .subform .form-subentry label {
  font-weight: 500;
  font-size: 0.9em;
}
.modal-form form .subform,
.modal-form .form .subform {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: #e5e7eb;
  padding: 0.5em;
  border-radius: 0.5em;
  gap: 0.5em;
}
.modal-form form .subform label,
.modal-form .form .subform label {
  flex-basis: 100%;
}
.modal-form form .subform .form-subentry,
.modal-form .form .subform .form-subentry {
  width: fit-content;
}
.modal-form form input,
.modal-form form select,
.modal-form .form input,
.modal-form .form select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  color: #111;
  margin: 0 0.5em;
  outline: 0;
}
.modal-form form button[type=submit],
.modal-form .form button[type=submit] {
  background-color: #cc0022;
  color: white;
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: 700;
  border-radius: 0.5em;
  font-size: 1em;
  border: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  z-index: 99999;
  cursor: pointer;
  transition: opacity 0.22s ease-out;
}
.modal-backdrop[open] {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop.modal-blur {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.22s ease-out, backdrop-filter 0.24s ease-out, -webkit-backdrop-filter 0.24s ease-out;
}
.modal-backdrop:not([open]):not(.modal-closing) {
  pointer-events: none;
}
.modal-backdrop .modal-container {
  background-color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border-radius: 1rem;
  border: 0.125em solid #e9e9e9;
  padding: 1em;
  max-width: min(95vw, 100%);
  max-height: min(90dvh, 95vh);
  overflow-y: auto;
  cursor: default;
}
.modal-backdrop.modal-closing {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
  transition: opacity 0.22s ease-out, backdrop-filter 0.15s ease-out, -webkit-backdrop-filter 0.15s ease-out;
}
.modal-backdrop.modal-instant {
  transition: none;
}
.modal-backdrop.modal-instant.modal-blur {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop:has(.auth-modal-panel) {
  background-color: rgba(33, 59, 95, 0.4);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  width: 16em;
  min-height: 100vh;
  background-color: var(--app-navy);
  color: #fff;
  padding: 1em 0.75em;
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex-shrink: 0;
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  transition: width 0.2s ease;
}
.nav-menu[expand=false] {
  width: 4.5em;
}
.nav-menu[expand=false] .app-title h1,
.nav-menu[expand=false] .app-title p,
.nav-menu[expand=false] .user-identity h6,
.nav-menu[expand=false] .user-identity .role,
.nav-menu[expand=false] nav span,
.nav-menu[expand=false] .btn-disconnect span {
  display: none;
}
.nav-menu .app-title {
  display: flex;
  gap: 0.75em;
  align-items: center;
  margin-bottom: 1em;
  min-width: 0;
  flex-shrink: 0;
}
.nav-menu .app-title .app-title-logo {
  flex-shrink: 0;
}
.nav-menu .app-title > div {
  min-width: 0;
  flex: 1;
}
.nav-menu .app-title h1 {
  font-size: 1.1em;
  margin: 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu .app-title p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu .user-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 0;
  flex-shrink: 0;
}
.nav-menu .user-identity > div:first-child {
  min-width: 0;
  flex: 1;
}
.nav-menu .user-identity h6 {
  margin: 0.25em 0 0;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu .user-identity .role {
  font-size: 0.75em;
  opacity: 0.7;
  text-transform: uppercase;
}
.nav-menu nav {
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.nav-menu nav section {
  margin-bottom: 1em;
}
.nav-menu nav section h6 {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.55;
  margin: 0 0 0.35em 0.65em;
  color: rgba(255, 255, 255, 0.85);
}
.nav-menu nav a,
.nav-menu nav .nav-menu__link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5em 0.65em;
  border-radius: 0.5em;
  margin-bottom: 0.25em;
}
.nav-menu nav a > *:first-child,
.nav-menu nav .nav-menu__link > *:first-child {
  flex-shrink: 0;
}
.nav-menu nav a span,
.nav-menu nav .nav-menu__link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu nav a[active], .nav-menu nav a.nav-menu__link--active,
.nav-menu nav .nav-menu__link[active],
.nav-menu nav .nav-menu__link.nav-menu__link--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-menu nav a:hover,
.nav-menu nav .nav-menu__link:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-menu .nav-plan-badge {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.35em;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2em 0.45em;
  border-radius: 0.35em;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu .btn-disconnect {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  border-radius: 0.5em;
  padding: 0.5em;
  cursor: pointer;
}
.nav-menu .btn-retract {
  position: absolute;
  right: 0.375em;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  border: none;
  cursor: pointer;
  z-index: 1;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-block,
.skeleton-line,
.skeleton-chart {
  background: linear-gradient(90deg, var(--app-border) 25%, rgba(255, 255, 255, 0.55) 50%, var(--app-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 0.5em;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-line,
  .skeleton-chart {
    animation: none;
    background: var(--app-border);
  }
}
.skeleton-line {
  height: 0.85em;
  margin-bottom: 0.65em;
}
.skeleton-line--title {
  width: 40%;
  height: 1em;
}
.skeleton-line--value {
  width: 55%;
  height: 1.75em;
}
.skeleton-line--short {
  width: 30%;
}

.skeleton-kpi-row,
.skeleton-grid {
  display: grid;
  gap: 1em;
}

.skeleton-kpi-row {
  grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
}

.skeleton-grid {
  grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
}

.skeleton-card {
  padding: 1em;
  border: 1px solid var(--app-border);
  border-radius: 0.75em;
  background: var(--app-surface);
}

.skeleton-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1em;
  padding: 0.65em 0;
  border-bottom: 1px solid var(--app-border);
}

.skeleton-chart {
  min-height: 12em;
  border: 1px solid var(--app-border);
}

.page-skeleton-host {
  margin-top: 1em;
}

.title {
  color: white;
  background-color: #e9e9e9;
  padding: 1em;
  font-size: 0.9em;
  font-weight: 700;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em 1em;
  align-items: end;
  width: calc(100% - 1em);
  margin: 0.5em;
  padding: 1em;
}
.dashboard-filters label {
  font-weight: 600;
  color: var(--app-navy);
}
.dashboard-filters select,
.dashboard-filters input {
  min-width: 8em;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes demo-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(33, 59, 95, 0.06);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(33, 59, 95, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-img,
  .demo-card {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
:root {
  --landing-bg: #f4f6f9;
  --landing-bg-alt: #eef1f6;
  --landing-surface: #ffffff;
  --landing-accent: #cc0022;
  --landing-accent-soft: rgba(192, 49, 10, 0.062745098);
  --landing-navy: #213b5f;
  --landing-text: #1a2332;
  --landing-muted: #7a8292;
  --landing-border: rgba(33, 59, 95, 0.1);
  --landing-shadow: 0 4px 24px rgba(33, 59, 95, 0.08);
  --landing-font-display: "Fraunces", Georgia, serif;
  --landing-font-body: "DM Sans", system-ui, sans-serif;
  --landing-max-width: 72rem;
  --landing-gutter: clamp(1.25rem, 4vw, 2rem);
}

#view-outlet {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

#view-outlet > .landing-page {
  flex: 1 0 auto;
  width: 100%;
}

.landing-page {
  font-family: var(--landing-font-body);
  color: var(--landing-text);
  background: var(--landing-bg);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  --landing-header-height: 4rem;
  padding-top: var(--landing-header-height);
}

.landing-shell {
  width: 100%;
  max-width: var(--landing-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--landing-gutter);
  padding-right: var(--landing-gutter);
  min-width: 0;
}

.landing-band {
  width: 100%;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.landing-band.landing-band-alt {
  background: var(--landing-bg-alt);
}
.landing-band.landing-band-tight {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--landing-border);
  box-shadow: 0 1px 0 rgba(33, 59, 95, 0.04);
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--landing-header-height);
  min-width: 0;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--landing-navy);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--landing-font-display);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1;
}
.landing-nav a {
  color: var(--landing-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.landing-nav a:hover {
  color: var(--landing-navy);
}

.landing-header-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  align-items: center;
}
.landing-header-cta .btn {
  white-space: nowrap;
}
.landing-header-cta .landing-mon-espace {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.landing-header-cta .landing-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--landing-accent-soft);
  border: 1px solid rgba(33, 59, 95, 0.12);
  color: var(--landing-navy);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.landing-main {
  width: 100%;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.landing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--landing-accent);
  margin-bottom: 0.75rem;
}

.landing-hero h1 {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.landing-lead {
  margin: 0;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.landing-hero-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.landing-hero-visual {
  position: relative;
}

.landing-hero-img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--landing-border);
  box-shadow: var(--landing-shadow);
  animation: hero-float 8s ease-in-out infinite;
}

.landing-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.landing-section-head h2 {
  margin: 0;
}
.landing-section-head p {
  margin: 0.75rem auto 0;
}

.landing-demo-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  min-width: min(100%, 220px);
  flex: 1 1 200px;
  max-width: 280px;
  box-shadow: var(--landing-shadow);
  animation: demo-pulse 3s ease-in-out infinite;
}
.demo-card.demo-card-event {
  animation-delay: 0s;
}
.demo-card.demo-card-rule {
  animation-delay: 0.4s;
}
.demo-card.demo-card-alert {
  animation-delay: 0.8s;
}
.demo-card strong {
  display: block;
  color: var(--landing-navy);
  margin-bottom: 0.35rem;
}
.demo-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--landing-muted);
}

.demo-badge {
  display: inline-block;
  background: var(--landing-accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.demo-source {
  text-align: center;
  margin: 1.5rem auto 0;
  font-size: 0.8125rem;
  color: var(--landing-muted);
  max-width: 36rem;
}

.demo-arrow {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--landing-navy);
  opacity: 0.35;
  flex-shrink: 0;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.landing-feature-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--landing-shadow);
  height: 100%;
}
.landing-feature-card .landing-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--landing-accent-soft);
  color: var(--landing-accent);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.landing-feature-card h3 {
  margin: 0 0 0.5rem;
}
.landing-feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--landing-muted);
}

.landing-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.landing-pillar {
  text-align: center;
  padding: 0.5rem 1rem;
}
.landing-pillar .landing-pillar-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  color: var(--landing-accent);
  font-size: 1.25rem;
}
.landing-pillar h3 {
  margin: 0 0 0.5rem;
}
.landing-pillar p {
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--landing-muted);
  max-width: 28ch;
}

.landing-use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.landing-use-case {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--landing-shadow);
  height: 100%;
}
.landing-use-case .landing-use-case-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--landing-accent);
  margin-bottom: 0.75rem;
}
.landing-use-case h3 {
  margin: 0 0 0.5rem;
}
.landing-use-case p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--landing-muted);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.landing-step {
  text-align: center;
}
.landing-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--landing-navy);
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.landing-step h3 {
  margin: 0 0 0.5rem;
}
.landing-step p {
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--landing-muted);
  max-width: 30ch;
}

.landing-stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
}

.landing-stat {
  text-align: center;
  min-width: 0;
  flex: 1 1 6rem;
  max-width: 12rem;
}
.landing-stat strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-family: var(--landing-font-display);
  color: var(--landing-navy);
}
.landing-stat span {
  color: var(--landing-muted);
  font-size: 0.875rem;
}

.landing-cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  box-shadow: var(--landing-shadow);
  width: 100%;
}
.landing-cta h2 {
  margin: 0 0 0.75rem;
}
.landing-cta p {
  color: var(--landing-muted);
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}

.landing-footer {
  width: 100%;
  border-top: 1px solid var(--landing-border);
  background: var(--landing-surface);
  color: var(--landing-muted);
  font-size: 0.875rem;
  padding: 2rem 0;
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.landing-footer-brand {
  margin: 0;
}
.landing-footer-brand strong {
  color: var(--landing-navy);
}

.landing-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.landing-footer-nav a,
.landing-footer-nav button.landing-footer-link {
  color: var(--landing-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.landing-footer-nav a:hover,
.landing-footer-nav button.landing-footer-link:hover {
  color: var(--landing-navy);
}

.landing-legal {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
}
.landing-legal h1 {
  margin: 0 0 0.5rem;
  text-align: center;
}
.landing-legal .landing-legal-updated {
  text-align: center;
  color: var(--landing-muted);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}
.landing-legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}
.landing-legal p,
.landing-legal li {
  color: var(--landing-muted);
  font-size: 0.9375rem;
}
.landing-legal ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}
.landing-legal a {
  color: var(--landing-navy);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--landing-border);
  color: var(--landing-navy);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}
.btn-ghost:hover {
  background: var(--landing-bg-alt);
}

.landing-page .btn-primary {
  background: var(--landing-accent);
  border: none;
  color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}
.landing-page .btn-primary:hover {
  filter: brightness(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .landing-features-grid,
  .landing-pillars,
  .landing-use-cases,
  .landing-steps {
    grid-template-columns: 1fr;
  }
  .landing-pillar p,
  .landing-step p {
    max-width: none;
  }
}
@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-hero-actions {
    justify-content: center;
  }
  .landing-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .landing-nav {
    display: none;
  }
  .landing-header-cta .btn-ghost {
    display: none;
  }
  .landing-header-cta .btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
  }
  .demo-arrow {
    display: none;
  }
  .landing-demo-stage {
    flex-direction: column;
    align-items: stretch;
  }
  .demo-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
}
@media (max-width: 480px) {
  .landing-gutter-tight {
    --landing-gutter: 1rem;
  }
  .btn-lg {
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
  }
}
.landing-page h1, .landing-page h2, .landing-page h3 {
  font-family: var(--landing-font-display);
  color: var(--landing-navy);
}
.landing-page h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
}
.landing-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 600;
}
.landing-page h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
}
.landing-page p {
  line-height: 1.65;
}
.landing-page .landing-lead,
.landing-page .landing-section-head p {
  font-size: 1.0625rem;
  color: var(--landing-muted);
  max-width: 65ch;
}
.landing-page .landing-hero .landing-lead {
  max-width: 52ch;
}

.page-header {
  width: calc(100% - 1em);
  margin: 0.5em;
  padding: 1.25rem 1.5rem;
  background-color: var(--app-surface);
  border-radius: 1rem;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.page-header__text {
  flex: 1 1 16rem;
  min-width: 0;
}
.page-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--app-navy);
  line-height: 1.2;
}
.page-header__description {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--app-muted);
  line-height: 1.5;
  max-width: 42rem;
}
.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.panel-page {
  width: 100%;
  max-width: 100%;
  padding-bottom: 1.5rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
}

.panel-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  box-shadow: var(--app-shadow);
}
.panel-card__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--app-muted);
}
.panel-card__value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--app-navy);
}
.panel-card__value--sm {
  font-size: 1rem;
}
.panel-card__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--app-muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
  padding: 1rem 1.25rem;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  box-shadow: var(--app-shadow);
}
.filter-bar__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.filter-bar__group--wide {
  grid-column: 1/-1;
}
.filter-bar__group--actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filter-bar label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-navy);
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--app-text);
  background: #fff;
}

.list-panel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  box-shadow: var(--app-shadow);
  overflow: hidden;
}
.list-panel__body {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.list-panel .list-view {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
  min-height: 200px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 240px;
  flex: 1;
}
.empty-state__icon {
  font-size: 2rem;
  color: var(--app-muted);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--app-navy);
}
.empty-state__message {
  margin: 0.5rem 0 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  color: var(--app-muted);
  line-height: 1.5;
}
.empty-state .btn {
  margin-top: 1.25rem;
}

.page-error {
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #b42318;
  background: rgba(204, 0, 34, 0.06);
  border: 1px solid rgba(204, 0, 34, 0.12);
  border-radius: 0.5rem;
}
.page-error:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.page-loading {
  width: calc(100% - 1em);
  margin: 0 0.5em;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--app-muted);
}
.page-loading:empty {
  display: none;
}

.btn-create-data {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background-color: #cc0022;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-create-data:hover {
  filter: brightness(1.05);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.75rem;
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
  align-items: start;
}
.dashboard-layout__map {
  min-height: 320px;
}
.dashboard-layout__list {
  min-width: 0;
}

.map-panel {
  height: 100%;
  min-height: 320px;
  border-radius: 1rem;
  border: 1px solid var(--app-border);
  overflow: hidden;
  background: var(--app-bg-alt);
  display: flex;
  flex-direction: column;
}
.map-panel--collapsed .map-panel__toolbar,
.map-panel--collapsed .map-panel__canvas {
  display: none;
}
.map-panel__toggle {
  margin: 0.5rem;
  align-self: flex-start;
  display: none;
}
.map-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  font-size: 0.8125rem;
  color: var(--app-muted);
}
.map-panel__toolbar input[type=range] {
  flex: 1;
  min-width: 6rem;
}
.map-panel__canvas {
  height: calc(100% - 2.75rem);
  min-height: 260px;
}

@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .map-panel__toggle {
    display: inline-flex;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .billing-plans {
    grid-template-columns: 1fr;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  max-width: 100%;
}

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

.view {
  max-width: 100%;
  overflow-x: clip;
}

.view-content {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.app-layout {
  width: 100%;
  max-width: 100%;
}

.list-view {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.list-view table {
  min-width: 480px;
}

.dashboard-filters {
  max-width: 100%;
}
.dashboard-filters select,
.dashboard-filters input {
  max-width: 100%;
  min-width: 0;
}

.rule-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.modal-form {
  width: 100%;
  max-width: min(600px, 98vw);
}

.modal-backdrop .modal-container:not(.auth-modal-panel) {
  max-width: min(95vw, 100%);
  margin: 0.5rem;
}

@media (max-width: 768px) {
  .app-mobile-bar {
    display: flex;
    flex-shrink: 0;
    width: 100%;
  }
  .burger-menu {
    display: block;
  }
  .nav-menu {
    display: none !important;
  }
  .view {
    flex-direction: column;
  }
  .view-content {
    flex: 1;
    min-height: 0;
  }
  .list-view {
    margin: 0.5em;
  }
  .billing-card,
  .dashboard-filters,
  .filter-bar,
  .rules-page .list-view,
  .page-header,
  .panel-grid,
  .list-panel,
  .dashboard-layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
.rule-analytics-modal {
  min-width: min(640px, 90vw);
}
.rule-analytics-modal header h2 {
  margin: 0 0 0.25em;
  color: var(--app-navy);
}
.rule-analytics-modal header p {
  margin: 0 0 1em;
  color: var(--app-muted);
  font-size: 0.9em;
}
.rule-analytics-modal__status {
  color: var(--app-muted);
  min-height: 1.25em;
}
.rule-analytics-modal__chart {
  height: 280px;
  margin: 1em 0;
}

.rules-page .btn-analytics {
  font-size: 0.85em;
  padding: 0.25em 0.5em;
}

.rules-page__quota {
  width: calc(100% - 1em);
  margin: 0 0.5em 0.75em;
  font-size: 0.875rem;
  color: var(--app-muted);
}

.rules-page__actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.rule-form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.rule-form__location {
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
}
.rule-form__location legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--app-muted);
  padding: 0 0.25rem;
}
.rule-form__city-fields, .rule-form__map-fields {
  display: none;
}
.rule-form--city .rule-form__city-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.rule-form--radius .rule-form__city-fields, .rule-form--radius .rule-form__map-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.rule-form__geo-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rule-form__geo-row input {
  flex: 1;
  min-width: 10rem;
}
.rule-form__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--app-muted);
}
.rule-form .radio-row,
.rule-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.rule-form .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  margin-top: 1em;
}

.rule-modal .map-panel {
  min-height: 220px;
}

#view-outlet {
  view-transition-name: route-root;
  min-height: 100vh;
  align-items: stretch;
}

#view-outlet.landing-to-app-exit > .landing-page {
  animation: landing-app-exit-fade 0.32s ease forwards;
  pointer-events: none;
}

.app-layout.app-enter .nav-menu {
  transform: translateX(-100%);
  opacity: 0;
}
.app-layout.app-enter .app-mobile-bar {
  transform: translateX(-100%);
  opacity: 0;
}
.app-layout.app-enter .view-content [data-enter] {
  opacity: 0;
}

.app-layout.app-enter.app-enter-active .nav-menu {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease-out;
}
.app-layout.app-enter.app-enter-active .app-mobile-bar {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease-out;
}
.app-layout.app-enter.app-enter-active .view-content [data-enter] {
  opacity: 1;
  transition: opacity 0.4s ease-out;
  transition-delay: var(--enter-delay, 0ms);
}

@keyframes landing-app-exit-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
::view-transition-old(route-root),
::view-transition-new(route-root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

#view-outlet[data-transition=landing-to-app]::view-transition-old(route-root),
#view-outlet[data-transition=landing-to-app]::view-transition-new(route-root) {
  animation: none;
}

#view-outlet[data-transition=app-to-landing]::view-transition-old(route-root) {
  animation-name: route-fade-out-down;
}

#view-outlet[data-transition=app-to-landing]::view-transition-new(route-root) {
  animation-name: route-fade-in-down;
}

#view-outlet.route-leave {
  animation: route-fade-out-up 0.28s ease forwards;
}

#view-outlet.route-enter {
  animation: route-fade-in-up 0.32s ease forwards;
}

@keyframes route-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes route-fade-out-up {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes route-fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes route-fade-out-down {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #view-outlet.landing-to-app-exit > .landing-page,
  .app-layout.app-enter,
  .app-layout.app-enter.app-enter-active,
  #view-outlet.route-leave,
  #view-outlet.route-enter,
  ::view-transition-old(route-root),
  ::view-transition-new(route-root) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}