body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.95rem;
}

.brand-wordmark {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none !important;
}

.brand-wordmark-inline {
  display: inline;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-com {
  font-size: 0.66em;
}

.datenklarheit-wordmark {
  color: inherit;
  font-weight: 600;
  text-decoration: none !important;
}

.datenklarheit-wordmark:hover,
.datenklarheit-wordmark:focus {
  color: inherit;
  text-decoration: none !important;
}

.home-project-footer {
  padding-top: 2.75rem;
  padding-bottom: 4.5rem;
  font-size: 0.92rem;
}

.home-project-footer-inner {
  position: relative;
  padding-top: 2rem;
  border-top: 0 !important;
}

.home-project-footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  max-width: 14rem;
  height: 1px;
  background: var(--bs-border-color);
  transform: translateX(-50%);
}

.home-project-footer .nav-link {
  font-size: 0.92rem;
}

.public-main {
  padding: 0;
}

.hero-carousel {
  margin-bottom: 0;
}

.hero-carousel .carousel-item {
  height: 32rem;
  background: #1f2933;
}

.hero-carousel-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 30, 0.82), rgba(10, 20, 30, 0.42)),
    linear-gradient(135deg, #1f2933 0%, #355c7d 52%, #17212b 100%);
}

.hero-carousel .carousel-caption {
  right: 12%;
  bottom: 6rem;
  left: 12%;
  z-index: 1;
}

.hero-carousel h1 {
  max-width: 44rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-carousel p {
  max-width: 38rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
}

.hero-carousel .text-end h1,
.hero-carousel .text-end p {
  margin-left: auto;
}

.hero-carousel .text-center h1,
.hero-carousel .text-center p {
  margin-right: auto;
  margin-left: auto;
}

.features-with-title {
  margin-top: 0;
}

.features-title {
  max-width: 38rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-heading {
  font-size: 1.05rem;
  font-weight: 800;
}

.features-with-title p {
  line-height: 1.5;
}

.feature-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
}

.feature-icon-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(53, 92, 125, 0.14);
  border-radius: 0.7rem;
  color: #355c7d;
  background:
    linear-gradient(135deg, rgba(53, 92, 125, 0.13), rgba(159, 179, 200, 0.07)),
    #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 41, 51, 0.055);
  font-size: 0.95rem;
}

.feature-icon-item p {
  font-size: 0.92rem;
}

.business-feature-section {
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.72), rgba(255, 255, 255, 0.95)),
    #f8fafc;
  border-top: 1px solid rgba(23, 33, 43, 0.08);
  border-bottom: 1px solid rgba(23, 33, 43, 0.06);
}

.about-intro {
  max-width: 54rem;
}

.about-kicker,
.about-grid-label {
  color: #486581;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-title {
  max-width: 52rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.about-title .brand-wordmark-inline {
  font-weight: 800;
}

.about-lead {
  max-width: 48rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-section-title {
  max-width: none;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-icon-grid .col {
  min-height: 8.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(53, 92, 125, 0.14);
  border-radius: 0.75rem;
  color: #355c7d;
  background:
    linear-gradient(135deg, rgba(53, 92, 125, 0.14), rgba(159, 179, 200, 0.08)),
    #ffffff;
  box-shadow: 0 0.25rem 0.8rem rgba(31, 41, 51, 0.06);
  font-size: 1.05rem;
}

.about-grid-title {
  font-size: 1.08rem;
}

.about-icon-grid .text-body-secondary {
  line-height: 1.55;
}

.faq-intro {
  max-width: 54rem;
}

.faq-title {
  max-width: 48rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.faq-section {
  max-width: 58rem;
}

.faq-accordion {
  border-top: 1px solid rgba(23, 33, 43, 0.12);
}

.faq-accordion .accordion-item {
  border-color: rgba(23, 33, 43, 0.12);
}

.faq-accordion .accordion-button {
  padding: 1.35rem 0;
  color: #17212b;
  background: transparent;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #355c7d;
  background: transparent;
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.faq-accordion .accordion-body {
  max-width: 52rem;
  padding: 0 2.5rem 1.35rem 0;
  color: var(--bs-secondary-color);
  line-height: 1.65;
}

.faq-accordion .accordion-body a {
  color: #355c7d;
  font-weight: 600;
}

.demo-dashboard-hero-title {
  max-width: 46rem;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.demo-dashboard-hero-lead {
  max-width: 44rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.demo-dashboard-card {
  min-height: 26rem;
  border: 0;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.demo-dashboard-card:hover,
.demo-dashboard-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22) !important;
}

.demo-dashboard-card h2 {
  max-width: 19rem;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  letter-spacing: 0;
}

.demo-dashboard-card-title {
  margin-top: 1.25rem;
}

.demo-dashboard-card-description {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.26);
}

.demo-dashboard-card a {
  text-decoration: none !important;
}

.demo-dashboard-card .stretched-link:focus-visible {
  outline: 0.2rem solid rgba(255, 255, 255, 0.8);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.demo-dashboard-card small {
  font-weight: 600;
}

.demo-dashboard-card-details {
  display: grid;
  gap: 0.45rem;
}

.demo-dashboard-card-spec {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: baseline;
  width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.25;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.26);
}

.demo-dashboard-card-spec span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-dashboard-card-spec strong {
  min-width: 0;
  justify-self: end;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.demo-dashboard-card-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 0.45rem;
}

.demo-dashboard-card-meta li:last-child {
  margin-left: auto;
}

.demo-dashboard-card-meta small {
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .demo-dashboard-card > .d-flex {
    padding: 2.25rem !important;
    padding-bottom: 1.9rem !important;
  }

  .demo-dashboard-card-title {
    margin-top: 0.65rem;
  }
}

@media (max-width: 575.98px) {
  .demo-dashboard-card-spec {
    grid-template-columns: 1fr;
    row-gap: 0.12rem;
  }

  .demo-dashboard-card-spec strong {
    justify-self: start;
    text-align: left;
  }

  .demo-dashboard-card-meta li:last-child {
    margin-left: 0;
  }
}

.text-shadow-1 {
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.34);
}

.macbook-card {
  background-image:
    linear-gradient(180deg, rgba(12, 17, 24, 0.1), rgba(12, 17, 24, 0.78)),
    linear-gradient(135deg, #243447 0%, #486581 42%, #9fb3c8 100%);
}

.mac-card {
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.76)),
    linear-gradient(135deg, #1f2937 0%, #6b7280 36%, #d1d5db 100%);
}

.fullhd-card {
  background-image:
    linear-gradient(180deg, rgba(21, 30, 24, 0.08), rgba(21, 30, 24, 0.78)),
    linear-gradient(135deg, #1f4037 0%, #3f7b70 45%, #c4d6b0 100%);
}

.tablet-card {
  background-image:
    linear-gradient(180deg, rgba(26, 24, 40, 0.08), rgba(26, 24, 40, 0.78)),
    linear-gradient(135deg, #30343f 0%, #706f8f 48%, #e6d8b8 100%);
}

.iphone-card {
  background-image:
    linear-gradient(180deg, rgba(34, 25, 21, 0.08), rgba(34, 25, 21, 0.78)),
    linear-gradient(135deg, #2f3e46 0%, #84a59d 48%, #f6bd60 100%);
}

.demo-board-header {
  padding: 0.28rem 0;
  background-image:
    linear-gradient(90deg, rgba(10, 20, 30, 0.82), rgba(10, 20, 30, 0.42)),
    linear-gradient(135deg, #1f2933 0%, #355c7d 52%, #17212b 100%);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.demo-board-header .container {
  width: 100%;
  max-width: none;
  padding-right: 12px;
  padding-left: 12px;
}

.demo-board-brand {
  color: #ffffff;
  font-size: 0.92rem;
}

.demo-board-brand::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1rem;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.26);
}

.demo-board-title {
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.demo-board-backlink {
  color: currentColor;
  font-weight: 400;
  text-decoration-color: currentColor !important;
}

.demo-board-backlink:hover,
.demo-board-backlink:focus {
  color: currentColor;
  opacity: 1;
}

.demo-board-language {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.demo-board-language a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.demo-board-language a:hover,
.demo-board-language a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.demo-board-language a.active {
  color: #ffffff;
  font-weight: 700;
}

.demo-board-separator {
  margin: 0 4px;
  opacity: 0.52;
}

.demo-board-page-link {
  color: currentColor;
  padding: 0 4px;
  text-decoration-color: rgba(209, 213, 219, 0.45) !important;
}

.demo-board-page-link.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration-color: #ffffff !important;
}

.quant5-board-page {
  background: #eef2f5;
}

.quant5-board-heading {
  min-width: 0;
  padding: 8px 14px;
}

.quant5-board-heading h2 {
  margin: 0 0 4px;
  color: #17212b;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.quant5-board-heading p {
  margin: 0;
  color: rgba(23, 33, 43, 0.58);
  font-size: 12px;
  line-height: 1.3;
}

.quant5-placeholder {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px dashed rgba(23, 33, 43, 0.2);
  color: rgba(23, 33, 43, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 243, 246, 0.84)),
    #f7f9fb;
  box-shadow: none;
}

.quant5-placeholder span {
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
}

.quant5-placeholder-compact {
  height: 76px;
  border-radius: 8px;
}

.demo-board-main {
  --demo-board-padding-x: 12px;
  --demo-board-gap: 8px;
  --demo-kpi-width: calc((100vw - 56px) / 5);
  --demo-large-chart-width: calc((100vw - 36px) / 2);
  --demo-small-chart-width: calc((100vw - 36px) / 2);
  width: 100%;
  padding: 12px 0 0;
}

.demo-kpi-grid {
  display: grid;
  grid-template-columns:
    calc(
      var(--demo-kpi-width) + var(--demo-kpi-width) + var(--demo-kpi-width) +
        var(--demo-board-gap) + var(--demo-board-gap)
    )
    var(--demo-kpi-width)
    var(--demo-kpi-width);
  gap: var(--demo-board-gap);
  align-items: stretch;
  width: 100%;
  padding: 0 var(--demo-board-padding-x);
  overflow-x: hidden;
}

.demo-kpi-placeholder,
.demo-kpi-summary {
  height: 76px;
  min-height: 0;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.06);
}

.demo-kpi-placeholder {
  background: #f7f9fb;
}

.demo-insights-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 18px 8px 14px;
  color: #17212b;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demo-insights-title {
  margin: 0 0 5px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.demo-insights-description {
  margin: 0;
  max-width: 760px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  opacity: 0.66;
}

.demo-insights-pages {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  flex: 0 0 auto;
  width: 190px;
  margin: 0 34px 0 0;
  padding: 4px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.05);
}

.demo-insights-page-link {
  padding: 2px 5px;
  border-left: 2px solid transparent;
  color: rgba(23, 33, 43, 0.72);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
}

.demo-insights-page-link span {
  font-weight: 600;
}

.demo-insights-page-link:hover,
.demo-insights-page-link:focus {
  color: #17212b;
  background: rgba(23, 33, 43, 0.035);
  opacity: 1;
}

.demo-insights-page-link.active {
  color: #17212b;
  background: rgba(47, 82, 112, 0.08);
  border-left-color: #2f5270;
}

.demo-kpi-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 12px 10px;
}

.demo-kpi-load {
  color: #17212b;
  background: #d8dee3;
}

.demo-kpi-traffic {
  color: #17212b;
  background: #d9c9a8;
}

.demo-kpi-summary-title {
  margin-bottom: 0;
  color: currentColor;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.68;
}

.demo-kpi-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.demo-kpi-live-values {
  border-radius: 5px;
  transition:
    background-color 500ms ease,
    box-shadow 500ms ease;
}

.demo-kpi-live-values.htmx-settling {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(47, 82, 112, 0.08);
}

.demo-kpi-metrics-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-kpi-traffic .demo-kpi-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-kpi-metric {
  min-width: 0;
}

.demo-kpi-metric-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.demo-kpi-metric-label {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.62;
}

.demo-page-banner-grid {
  margin: 0;
}

.demo-page2-chart-panel {
  width: calc(100vw - 24px);
  height: 700px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9fb;
}

.demo-page2-chart-panel .plotly-graph-div {
  width: 100% !important;
  height: 700px !important;
}

.demo-page2-fullheight-panel {
  height: calc(100vh - 170px);
  min-height: 700px;
}

.demo-page2-fullheight-panel .plotly-graph-div {
  height: calc(100vh - 170px) !important;
  min-height: 700px;
}

.demo-page3-chart-panel {
  height: calc(100vh - 170px);
  min-height: 700px;
  overflow: hidden;
  background: #f1f4f7;
}

.demo-page3-chart-title {
  position: absolute;
  z-index: 2;
  margin: 18px 0 0 30px;
  color: #17212b;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  pointer-events: none;
}

.demo-page3-chart-panel .plotly-graph-div {
  height: calc(100vh - 170px) !important;
  min-height: 700px;
}

.demo-tablet-main {
  --demo-tablet-panel-height: clamp(530px, calc(100vh - 220px), 610px);
  padding-top: 10px;
}

.demo-tablet-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 230px;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  padding: 0 var(--demo-board-padding-x);
}

.demo-tablet-topline .demo-insights-banner {
  height: 76px;
}

.demo-tablet-topline .demo-insights-description {
  max-width: 780px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.72;
}

.demo-tablet-kpi-card {
  min-height: 76px;
  padding: 11px 14px 10px;
  border: 1px solid rgba(23, 33, 43, 0.11);
  border-radius: 8px;
  color: #17212b;
  background: rgba(247, 249, 251, 0.82);
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.06);
}

.demo-tablet-kpi-title {
  margin: 0 0 7px;
  color: rgba(23, 33, 43, 0.72);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.demo-tablet-kpi-values {
  display: grid;
  gap: 4px;
}

.demo-tablet-kpi-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.1;
}

.demo-tablet-kpi-row span {
  color: rgba(23, 33, 43, 0.58);
  font-weight: 450;
}

.demo-tablet-kpi-row strong {
  color: #17212b;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.demo-tablet-kpi-card .demo-kpi-live-values.htmx-settling {
  background: rgba(47, 82, 112, 0.05);
  box-shadow: 0 0 0 4px rgba(47, 82, 112, 0.06);
}

.demo-tablet-donut-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  padding: 12px;
}

.demo-tablet-donut-panel {
  height: var(--demo-tablet-panel-height);
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9fb;
}

.demo-tablet-donut-panel .plotly-graph-div {
  width: 100% !important;
  height: var(--demo-tablet-panel-height) !important;
}

body.demo-qhd-board-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  overflow-y: hidden;
  padding-bottom: 0 !important;
}

body.demo-qhd-board-page .public-footer {
  position: static !important;
}

.demo-qhd-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px 8px;
}

.demo-qhd-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px minmax(600px, 0.92fr);
  grid-template-areas: "headline pages kpis";
  gap: 16px;
  align-items: start;
  min-height: 0;
  padding: 4px 6px 0;
  color: #17212b;
}

.demo-qhd-headline {
  grid-area: headline;
  min-width: 0;
}

.demo-qhd-headline h2 {
  margin: 0;
  font-size: clamp(2rem, 2.45vw, 3.05rem);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.demo-qhd-headline p {
  margin: 0;
  max-width: 50rem;
  color: rgba(23, 33, 43, 0.62);
  font-size: 1rem;
  line-height: 1.22;
}

.demo-qhd-topbar-actions {
  grid-area: kpis;
  min-width: 0;
}

.demo-qhd-page-menu {
  grid-area: pages;
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.demo-qhd-page-menu a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  align-items: center;
  min-height: 28px;
  padding: 4px 7px;
  border-left: 2px solid transparent;
  color: rgba(23, 33, 43, 0.7);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none !important;
}

.demo-qhd-page-menu a:hover,
.demo-qhd-page-menu a:focus {
  color: #17212b;
  background: rgba(23, 33, 43, 0.04);
}

.demo-qhd-page-menu a.active {
  color: #17212b;
  border-left-color: #2f5270;
  background: rgba(47, 82, 112, 0.08);
}

.demo-qhd-page-menu span {
  min-width: 0;
}

.demo-qhd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 6px;
  min-width: 0;
}

.demo-qhd-kpi-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: start;
  min-width: 0;
  min-height: 78px;
  padding: 10px 14px 9px;
  overflow: hidden;
  border: 0;
  border-left: 5px solid var(--demo-qhd-kpi-accent, rgba(23, 33, 43, 0.24));
  color: var(--demo-qhd-kpi-ink, #17212b);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    var(--demo-qhd-kpi-bg, #f7f9fb);
  box-shadow: none;
  text-align: left;
}

.demo-qhd-kpi-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.42);
  opacity: 0.6;
}

.demo-qhd-kpi-card-traffic {
  --demo-qhd-kpi-bg: #2f5270;
  --demo-qhd-kpi-ink: #ffffff;
  --demo-qhd-kpi-accent: #b9d4ea;
}

.demo-qhd-kpi-card-browser {
  --demo-qhd-kpi-bg: #e2e5e8;
  --demo-qhd-kpi-accent: #77828c;
}

.demo-qhd-kpi-card-os {
  --demo-qhd-kpi-bg: #e2e5e8;
  --demo-qhd-kpi-accent: #77828c;
}

.demo-qhd-kpi-card-client {
  --demo-qhd-kpi-bg: #eadfcd;
  --demo-qhd-kpi-accent: #9d7143;
}

.demo-qhd-kpi-card-load-1 {
  --demo-qhd-kpi-bg: #e6eef7;
  --demo-qhd-kpi-accent: #7090b8;
}

.demo-qhd-kpi-card-load-2 {
  --demo-qhd-kpi-bg: #dce9f5;
  --demo-qhd-kpi-accent: #5f84ad;
}

.demo-qhd-kpi-card-load-3 {
  --demo-qhd-kpi-bg: #d4e2f0;
  --demo-qhd-kpi-accent: #4f789f;
}

.demo-qhd-kpi-card span,
.demo-qhd-kpi-card em {
  display: block;
  max-width: 100%;
  color: currentColor;
  line-height: 1.05;
  white-space: normal;
}

.demo-qhd-kpi-card span {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
  opacity: 0.58;
  text-transform: uppercase;
}

.demo-qhd-kpi-card strong {
  display: block;
  align-self: end;
  margin-top: 3px;
  color: currentColor;
  font-size: clamp(1.58rem, 1.7vw, 2.35rem);
  font-weight: 800;
  line-height: 0.96;
}

.demo-qhd-kpi-card em {
  margin-top: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  opacity: 0.44;
}

.demo-qhd-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.demo-qhd-chart-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: #f7f9fb;
  box-shadow: none;
}

.demo-qhd-chart-primary,
.demo-qhd-chart-activity-timeline,
.demo-qhd-chart-activity-summary {
  grid-column: span 2;
}

.demo-qhd-chart-os,
.demo-qhd-chart-browser {
  grid-column: span 1;
}

.demo-qhd-chart-panel .plotly-graph-div {
  width: 100% !important;
}

.demo-qhd-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(360px, 1.18fr) minmax(270px, 0.82fr);
  gap: 12px;
  height: calc(100vh - 248px);
  min-height: 680px;
}

.demo-qhd-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  place-items: center;
  min-height: 0;
  padding: 24px;
  border: 1px dashed rgba(23, 33, 43, 0.18);
  border-radius: 8px;
  color: rgba(23, 33, 43, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 249, 251, 0.9)),
    #f7f9fb;
  text-align: center;
}

.demo-qhd-placeholder-primary {
  grid-column: span 2;
}

.demo-qhd-placeholder-secondary {
  grid-column: span 2;
}

.demo-qhd-placeholder-activity-left,
.demo-qhd-placeholder-activity-right {
  grid-column: span 2;
}

.demo-qhd-placeholder span {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.demo-qhd-placeholder em {
  max-width: 32rem;
  color: rgba(23, 33, 43, 0.42);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
}

.demo-qhd-3d-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: #f1f4f7;
}

.demo-qhd-3d-panel .plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1500px) {
  .demo-qhd-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "pages"
      "kpis";
    align-items: stretch;
  }
}

@media (max-width: 980px) {
  body.demo-qhd-board-page {
    overflow-y: auto;
    padding-bottom: 4rem !important;
  }

  .demo-qhd-headline h2 {
    white-space: normal;
  }

  .demo-qhd-page-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-qhd-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-qhd-placeholder-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .demo-qhd-chart-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .demo-qhd-chart-primary,
  .demo-qhd-chart-os,
  .demo-qhd-chart-browser,
  .demo-qhd-chart-activity-timeline,
  .demo-qhd-chart-activity-summary {
    grid-column: auto;
  }

  .demo-qhd-chart-panel {
    min-height: 305px;
  }

  .demo-qhd-placeholder-primary,
  .demo-qhd-placeholder-secondary,
  .demo-qhd-placeholder-activity-left,
  .demo-qhd-placeholder-activity-right {
    grid-column: auto;
    min-height: 320px;
  }
}

body.demo-fullhd-board-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  overflow-y: hidden;
  padding-bottom: 0 !important;
}

body.demo-fullhd-board-page .public-footer {
  position: static !important;
}

.demo-fullhd-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px;
}

.demo-fullhd-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.78fr);
  gap: 12px;
  align-items: stretch;
  color: #17212b;
}

.demo-fullhd-headline {
  min-width: 0;
  padding: 2px 6px 0;
}

.demo-fullhd-headline h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.demo-fullhd-headline p {
  margin: 3px 0 0;
  max-width: 54rem;
  color: rgba(23, 33, 43, 0.62);
  font-size: 0.98rem;
  line-height: 1.24;
}

.demo-fullhd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.demo-fullhd-kpi-card {
  min-height: 74px;
  padding: 9px 12px 8px;
  overflow: hidden;
  border-left: 5px solid rgba(23, 33, 43, 0.24);
  color: #17212b;
  background: #f7f9fb;
}

.demo-fullhd-kpi-card-load {
  border-left-color: #5f84ad;
  background: #dce9f5;
}

.demo-fullhd-kpi-card-traffic {
  border-left-color: #b9d4ea;
  color: #ffffff;
  background: #2f5270;
}

.demo-fullhd-kpi-title {
  margin-bottom: 8px;
  color: currentColor;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.66;
  text-transform: uppercase;
}

.demo-fullhd-kpi-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.demo-fullhd-kpi-card-traffic .demo-fullhd-kpi-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-fullhd-kpi-card .demo-kpi-metric-value {
  font-size: 22px;
}

.demo-fullhd-kpi-card .demo-kpi-metric-label {
  color: currentColor;
  opacity: 0.58;
}

.demo-fullhd-filter-panel {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: #f7f9fb;
}

.demo-fullhd-filter-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.demo-fullhd-filter-row > span {
  color: rgba(23, 33, 43, 0.58);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
}

.demo-fullhd-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.demo-fullhd-filter-options a {
  display: block;
  padding: 5px 8px;
  border-left: 3px solid transparent;
  color: rgba(23, 33, 43, 0.72);
  background: #e8edf2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none !important;
}

.demo-fullhd-filter-options a:hover,
.demo-fullhd-filter-options a:focus {
  color: #17212b;
  background: #dfe6ed;
}

.demo-fullhd-filter-options a.active {
  color: #ffffff;
  border-left-color: #b9d4ea;
  background: #2f5270;
}

.demo-fullhd-heatmap-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.08);
  background: #f7f9fb;
}

.demo-fullhd-heatmap-panel .plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
}

.demo-phone-main {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 12px 42px;
}

.demo-phone-intro {
  padding: 4px 2px 12px;
}

.demo-phone-intro h2 {
  margin: 0 0 5px;
  color: #17212b;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: 0;
}

.demo-phone-intro p {
  margin: 0;
  color: rgba(23, 33, 43, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.demo-phone-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 0;
  transition:
    background-color 500ms ease,
    box-shadow 500ms ease;
}

.demo-phone-kpi-grid.htmx-settling {
  background: rgba(47, 82, 112, 0.05);
  box-shadow: 0 0 0 5px rgba(47, 82, 112, 0.06);
}

.demo-phone-kpi-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 16px 18px 15px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #17212b;
  background: #f4f7f9;
  box-shadow: none;
  text-align: center;
}

.demo-phone-kpi-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: rgba(23, 33, 43, 0.08);
}

.demo-phone-kpi-card-primary {
  color: #ffffff;
  background: #2f5270;
  box-shadow: none;
}

.demo-phone-kpi-card-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.16) 45%,
      transparent 58%,
      transparent 100%
  );
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.demo-phone-kpi-card-primary::after {
  background: rgba(255, 255, 255, 0.18);
}

.demo-phone-kpi-card-muted {
  background: #e8eef3;
}

.demo-phone-kpi-card span {
  display: block;
  max-width: 15rem;
  color: currentColor;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  opacity: 0.66;
}

.demo-phone-kpi-card em {
  display: block;
  margin-top: 5px;
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  opacity: 0.42;
}

.demo-phone-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: currentColor;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.95;
}

.demo-phone-kpi-card-primary span {
  opacity: 0.72;
}

.demo-phone-kpi-card-primary.demo-phone-kpi-changed::before {
  opacity: 0.72;
  animation: demo-phone-live-sheen 900ms ease-out;
}

.demo-phone-kpi-card-split .demo-phone-kpi-changed strong {
  animation: demo-phone-kpi-bounce 540ms ease;
}

.demo-phone-kpi-load-values .demo-phone-kpi-changed {
  animation: demo-phone-kpi-fade 620ms ease;
}

@keyframes demo-phone-live-sheen {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes demo-phone-kpi-bounce {
  0%,
  100% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.06);
  }
}

@keyframes demo-phone-kpi-fade {
  0%,
  100% {
    opacity: 1;
  }

  42% {
    opacity: 0.34;
  }
}

.demo-phone-kpi-card-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-phone-kpi-card-split > .demo-phone-kpi-mini {
  width: 100%;
}

.demo-phone-kpi-mini {
  min-width: 0;
  text-align: center;
}

.demo-phone-kpi-mini span {
  max-width: none;
}

.demo-phone-kpi-card-split .demo-phone-kpi-mini + .demo-phone-kpi-mini {
  position: relative;
}

.demo-phone-kpi-card-split .demo-phone-kpi-mini + .demo-phone-kpi-mini::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -9px;
  width: 1px;
  background: rgba(23, 33, 43, 0.1);
}

.demo-phone-kpi-card-split strong {
  font-size: 30px;
}

.demo-phone-kpi-card-load {
  gap: 13px;
}

.demo-phone-kpi-load-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 20rem;
}

.demo-phone-kpi-load-values strong {
  margin-top: 7px;
  font-size: 25px;
}

.demo-phone-chart-panel {
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  background: #f7f9fb;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.05);
}

.demo-phone-chart-panel .plotly-graph-div {
  width: 100% !important;
  height: 420px !important;
}

.demo-phone-board-page .demo-board-header .container {
  gap: 6px;
  padding-right: 12px;
  padding-left: 12px;
}

.demo-phone-board-page .demo-board-title {
  font-size: 0.78rem;
}

.demo-phone-board-page .demo-board-footer-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2px;
  padding: 0 8px;
}

.demo-phone-board-page .demo-board-footer-inner p {
  display: none;
}

@media (max-width: 380px) {
  .demo-phone-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .demo-phone-kpi-card {
    min-height: 96px;
    padding: 15px 14px 14px;
  }

  .demo-phone-kpi-card span {
    font-size: 12px;
  }

  .demo-phone-kpi-card strong {
    font-size: 31px;
  }

  .demo-phone-kpi-card-split {
    gap: 12px;
  }

  .demo-phone-kpi-card-split .demo-phone-kpi-mini + .demo-phone-kpi-mini::before {
    left: -6px;
  }

  .demo-phone-kpi-card-split strong {
    font-size: 27px;
  }

  .demo-phone-kpi-load-values {
    gap: 7px;
  }

  .demo-phone-kpi-load-values strong {
    font-size: 22px;
  }
}

.demo-chart-row {
  display: grid;
  grid-template-columns: repeat(2, var(--demo-large-chart-width));
  gap: 12px;
  width: 100%;
  padding: 12px;
  overflow-x: hidden;
}

.demo-chart-placeholder {
  width: var(--demo-large-chart-width);
  height: 435px;
  min-height: 0;
  border-radius: 8px;
}

.demo-chart-placeholder-red {
  background: #d93025;
}

.demo-chart-panel {
  overflow: hidden;
  background: #f7f9fb;
}

.demo-chart-panel .plotly-graph-div {
  width: 100% !important;
  height: 435px !important;
}

.demo-chart-placeholder-green {
  background: #188038;
}

.demo-small-chart-row {
  display: grid;
  grid-template-columns: repeat(2, var(--demo-small-chart-width));
  gap: 12px;
  width: 100%;
  padding: 0 12px;
  overflow-x: hidden;
}

.demo-small-chart-placeholder {
  width: var(--demo-small-chart-width);
  height: 280px;
  min-height: 0;
  border: 1px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.demo-small-chart-panel {
  overflow: hidden;
  background: #f7f9fb;
}

.demo-chart-live-panel {
  position: relative;
  transition:
    border-color 900ms ease,
    background-color 900ms ease,
    box-shadow 900ms ease;
}

.demo-chart-live-panel.htmx-request {
  border-color: rgba(47, 82, 112, 0.2);
}

.demo-chart-live-panel.htmx-settling {
  border-color: rgba(47, 82, 112, 0.58);
  background-color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(47, 82, 112, 0.12),
    0 0 24px rgba(47, 82, 112, 0.2);
}

.demo-small-chart-panel .plotly-graph-div {
  width: 100% !important;
  height: 280px !important;
}

.demo-board-page .public-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  background-image:
    linear-gradient(90deg, rgba(10, 20, 30, 0.82), rgba(10, 20, 30, 0.42)),
    linear-gradient(135deg, #1f2933 0%, #355c7d 52%, #17212b 100%) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

body.demo-board-page {
  padding-bottom: 28px;
}

.demo-board-page .public-footer .container {
  width: 100%;
  max-width: none;
  padding-right: 12px;
  padding-left: 12px;
}

.demo-board-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 12px;
}

.demo-board-footer-inner p:last-child {
  justify-self: end;
}

.demo-board-footer-pages {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #d1d5db;
  font-size: 0.72rem;
}

.demo-board-footer-divider {
  width: 1px;
  height: 12px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.24);
}

.demo-board-slideshow-toggle {
  color: #d1d5db;
  text-decoration-color: rgba(209, 213, 219, 0.45) !important;
}

.demo-board-slideshow-toggle.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration-color: #ffffff !important;
}

.demo-board-slideshow-status {
  color: rgba(209, 213, 219, 0.72);
  white-space: nowrap;
}

.demo-board-slideshow-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.demo-board-slideshow-progress-bar {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.72);
}

.demo-board-page .public-footer p {
  color: #d1d5db !important;
  font-size: 0.72rem;
}

a,
.nav-link {
  text-decoration: underline !important;
  transition: opacity 0.2s ease;
}

a:hover,
.nav-link:hover {
  opacity: 0.8;
}

.login-page {
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.login-card .form-control {
  background-color: #ffffff;
}

.settings-page,
.mfa-setup-page,
.container-flash {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.security-card {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.security-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.security-eyebrow {
  color: #587083;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-status {
  flex: 0 0 auto;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #edf0f2;
  color: #5f6971;
  font-size: 0.78rem;
  font-weight: 600;
}

.security-status.is-active {
  background: #e4f2e9;
  color: #27633d;
}

.security-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #f4f6f7;
  color: #3d4a53;
  font-size: 0.92rem;
}

.security-summary i {
  margin-top: 0.2rem;
  color: #2f5270;
}

.security-enable-form {
  max-width: 440px;
  margin-top: 1.5rem;
}

.security-action {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.security-action:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.security-action summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
}

.security-action-danger summary {
  color: #9b3131;
}

.security-action-body {
  max-width: 440px;
  padding-bottom: 1.25rem;
}

.mfa-code-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.mfa-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mfa-steps > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
}

.mfa-steps > li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mfa-steps > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #e8eef2;
  color: #2f5270;
  font-size: 0.8rem;
  font-weight: 700;
}

.mfa-steps p {
  margin: 0.35rem 0 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.mfa-qr-wrap {
  width: fit-content;
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.mfa-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}

.mfa-manual-key {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.mfa-manual-key summary {
  color: #596770;
  cursor: pointer;
}

.mfa-manual-key code {
  display: block;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #f4f6f7;
  color: #263640;
  letter-spacing: 0.08em;
}

.recovery-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #e4f2e9;
  color: #27633d;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.recovery-code-grid code {
  padding: 0.68rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #f7f8f9;
  color: #263640;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.login-captcha .simple-captcha-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.login-captcha .simple-captcha-text {
  min-height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
  font-size: 1rem;
  line-height: 1.25;
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #2f5270;
  --bs-btn-border-color: #2f5270;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #294762;
  --bs-btn-hover-border-color: #294762;
  --bs-btn-focus-shadow-rgb: 47, 82, 112;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #243f56;
  --bs-btn-active-border-color: #243f56;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #6f838f;
  --bs-btn-disabled-border-color: #6f838f;
  background-color: #2f5270;
  border-color: #2f5270;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #294762;
  border-color: #294762;
}

.btn-primary:focus-visible {
  background-color: #294762;
  border-color: #294762;
  box-shadow: 0 0 0 0.2rem rgba(47, 82, 112, 0.35);
}

.btn-primary:active,
.btn-primary.active,
.btn-primary.show {
  background-color: #243f56;
  border-color: #243f56;
}

.btn-primary:active:focus,
.btn-primary:active:focus-visible {
  background-color: #243f56;
  border-color: #243f56;
  box-shadow: 0 0 0 0.2rem rgba(47, 82, 112, 0.35);
}

body.public-page {
  padding-bottom: 4rem;
}

.public-footer {
  position: static;
}

.public-nav-language .nav-link {
  color: rgba(33, 37, 41, 0.72) !important;
}

.public-nav-language .nav-link.active {
  color: #17212b !important;
  font-weight: 700;
}

.public-nav-language-divider {
  width: 1px;
  margin: 0.55rem 0.35rem;
  background: rgba(0, 0, 0, 0.14);
}

@media (max-width: 991.98px) {
  .public-nav .navbar-collapse {
    padding-top: 0.5rem;
  }

  .public-nav .nav-link {
    padding: 0.5rem 0;
    font-size: 1.05rem;
  }

  .public-nav .public-nav-auth {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .public-nav-language-divider {
    width: 100%;
    height: 1px;
    margin: 0.35rem 0;
  }
}

@media (max-width: 767.98px) {
  body.public-page {
    padding-bottom: 1.25rem;
  }

  .container {
    --bs-gutter-x: 2.25rem;
  }

  .hero-carousel .carousel-item {
    height: 28rem;
  }

  .hero-carousel .carousel-caption {
    right: 12%;
    bottom: 4rem;
    left: 12%;
  }

  .feature-icon-grid {
    grid-template-columns: 1fr;
  }

  .public-footer p {
    font-size: 0.78rem;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .public-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

body.auth-page {
  padding-bottom: 4rem;
}

.auth-footer {
  position: static;
}

@media (max-width: 991.98px) {
  .auth-nav .navbar-collapse {
    padding-top: 0.5rem;
  }

  .auth-nav .nav-link {
    padding: 0.5rem 0;
    font-size: 1.15rem;
  }

  .auth-nav .auth-nav-actions {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .auth-nav form .nav-link {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  body.auth-page {
    padding-bottom: 1.25rem;
  }

  .auth-footer p {
    font-size: 0.95rem;
  }

  .security-card-header {
    flex-direction: column;
    gap: 0.85rem;
  }

  .recovery-code-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .auth-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }
}
