:root[data-theme-color=purple]:not([data-bs-theme=dark]) {
  --theme-color: #8d3bd4;
  --bs-primary: #8d3bd4;
  --bs-primary-rgb: 141, 59, 212;
  --bs-primary-text-emphasis: #742ab5;
  --bs-primary-bg-subtle: rgba(141, 59, 212, .12);
  --bs-primary-border-subtle: #dec2f3;
  --bs-link-color: #8d3bd4;
  --bs-link-color-rgb: 141, 59, 212;
  --bs-link-hover-color: #6f27ae;
  --bs-link-hover-color-rgb: 111, 39, 174;
}

:root[data-theme-color=purple][data-bs-theme=dark] {
  --theme-color: #a855f7;
  --bs-primary: #a855f7;
  --bs-primary-rgb: 168, 85, 247;
  --bs-primary-text-emphasis: #ca8cff;
  --bs-primary-bg-subtle: rgba(168, 85, 247, .2);
  --bs-primary-border-subtle: #59328b;
  --bs-link-color: #ca8cff;
  --bs-link-color-rgb: 202, 140, 255;
  --bs-link-hover-color: #dbb6ff;
  --bs-link-hover-color-rgb: 219, 182, 255;
}

.login-shell {
  background-color: #040811;
  background-image:
    linear-gradient(90deg, #040811 5%, rgba(4, 8, 17, .9) 42%, rgba(4, 8, 17, .48) 100%),
    url("/images/platform-global.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.login-shell::after {
  background: radial-gradient(circle at 28% 46%, rgba(111, 67, 232, .17), transparent 33%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.login-content {
  align-items: center;
  display: flex;
  height: 100%;
  inset: 0;
  justify-content: center;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.login-footer {
  bottom: 1.6rem;
  color: rgba(224, 216, 250, .66);
  font-size: .8rem;
  left: 0;
  letter-spacing: .03em;
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.login-card {
  background: linear-gradient(145deg, rgba(24, 19, 54, .43), rgba(6, 9, 25, .34));
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  border: 1px solid rgba(207, 178, 255, .25);
  margin: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 1.5rem 4rem rgba(0, 0, 0, .4);
}

.login-brand-name {
  color: #fff;
  font-weight: 600;
}

.login-card .form-control {
  background-color: rgba(10, 13, 34, .22);
  border-color: rgba(207, 178, 255, .1);
  color: #fff;
  min-height: 3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.login-card .form-control::placeholder {
  color: rgba(238, 229, 255, .43);
}

.login-card .form-icon i {
  color: rgba(238, 229, 255, .38);
}

.login-card input,
.login-card select,
.login-card textarea {
  font-size: 16px;
}

.login-card .form-control:focus {
  background-color: rgba(10, 13, 34, .34);
  border-color: rgba(183, 120, 255, .32);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 .16rem rgba(111, 67, 232, .1);
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px rgba(10, 13, 34, .82) inset;
  caret-color: #fff;
}

.login-card .btn-primary {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 70%, #8b5cf6 100%);
  border: 0;
  box-shadow: 0 .7rem 1.5rem rgba(168, 85, 247, .28);
}

.login-card .btn-primary:hover {
  background: linear-gradient(90deg, #8b4cf2 0%, #b568fc 70%, #9970fa 100%);
}

.brand-logo {
  display: block;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.demo-note {
  background: rgba(99, 53, 194, .16);
  border: 1px solid rgba(207, 178, 255, .16);
}

.project-choice {
  align-items: center;
  border: 1px solid rgba(207, 178, 255, .16);
  border-radius: .65rem;
  cursor: pointer;
  display: flex;
  gap: .85rem;
  padding: .85rem 1rem;
}

.project-choice input {
  flex: 0 0 auto;
}

.project-choice span {
  display: grid;
  gap: .15rem;
}

.project-choice strong {
  color: #fff;
  line-height: 1.2;
}

.project-choice small {
  color: rgba(238, 229, 255, .62);
}

.select-project-card {
  max-width: 30rem;
  width: min(30rem, calc(100vw - 2rem));
}

.user-btn-dropdown {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.user-btn-dropdown::after {
  display: none;
}

.spendbee-merchant-thumb {
  aspect-ratio: 1;
  border-radius: .5rem;
  display: block;
  object-fit: cover;
  width: 4.5rem;
}

.spendbee-receipt-cover {
  aspect-ratio: 16 / 10;
  border-radius: .5rem;
  display: block;
  object-fit: cover;
  width: 100%;
}

.receipt-detail-grid {
  display: grid;
  gap: .55rem .85rem;
  grid-template-columns: max-content minmax(0, 1fr);
}

.receipt-detail-grid span {
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

.receipt-detail-grid strong {
  font-size: .86rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.spendbee-receipt-image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.spendbee-receipt-image-grid a {
  color: inherit;
  display: grid;
  gap: .45rem;
  text-decoration: none;
}

.spendbee-receipt-image-grid img {
  aspect-ratio: 3 / 4;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  object-fit: cover;
  width: 100%;
}

.spendbee-receipt-image-grid span {
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

.spendbee-photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.spendbee-photo-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: .5rem;
  display: grid;
  overflow: hidden;
}

.spendbee-photo-preview {
  aspect-ratio: 1;
  background: var(--bs-tertiary-bg);
  display: grid;
  place-items: center;
  width: 100%;
}

.spendbee-photo-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.spendbee-photo-placeholder {
  color: var(--bs-secondary-color);
  font-size: .85rem;
}

.spendbee-photo-body {
  display: grid;
  gap: .25rem;
  padding: 1rem;
}

.user-role-form {
  align-items: center;
  display: flex;
  gap: .5rem;
  min-width: 14rem;
}

.user-role-form .form-select {
  min-width: 11rem;
}

.user-role-save {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.user-role-save .material-symbols-rounded,
.user-delete-btn .material-symbols-rounded {
  font-size: 1.1rem;
}

.user-delete-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--bs-secondary-color);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  width: 2rem;
}

.user-delete-btn:hover,
.user-delete-btn:focus-visible {
  background: rgba(var(--bs-danger-rgb), .1);
  border-color: rgba(var(--bs-danger-rgb), .16);
  color: var(--bs-danger);
  outline: 0;
}

.login-network {
  height: min(66vh, 540px);
  opacity: .72;
  pointer-events: none;
  position: absolute;
  right: -4vw;
  top: 12vh;
  width: min(58vw, 920px);
  z-index: 1;
}

.login-toast {
  align-items: center;
  background: rgba(45, 17, 53, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(251, 113, 133, .45);
  border-radius: .9rem;
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, .3);
  color: #ffe7ef;
  display: flex;
  gap: .7rem;
  left: 50%;
  min-width: min(26rem, calc(100vw - 2rem));
  opacity: 0;
  padding: .9rem 1.1rem;
  pointer-events: none;
  position: fixed;
  top: 1.5rem;
  transform: translate(-50%, -1rem);
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  z-index: 20;
}

.login-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.login-toast i {
  color: #fb7185;
  font-size: 1.25rem;
}

.login-toast.is-success {
  border-color: rgba(34, 197, 94, .45);
  color: #e9fff2;
}

.login-toast.is-success i {
  color: #22c55e;
}

.global-loading {
  align-items: center;
  background: rgba(3, 5, 17, .44);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #f7efff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .18s ease;
  visibility: hidden;
  z-index: 30;
}

.global-loading.is-visible {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.loading-spinner {
  animation: loading-spin .75s linear infinite;
  border: 3px solid rgba(202, 140, 255, .22);
  border-radius: 50%;
  border-top-color: #c084fc;
  height: 3rem;
  width: 3rem;
}

.loading-label {
  font-size: .92rem;
  letter-spacing: .02em;
}

.login-network svg {
  height: 100%;
  width: 100%;
}

.network-line {
  stroke: rgba(168, 85, 247, .31);
  stroke-width: 1;
}

.network-flow {
  animation: network-flow 5.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(181, 116, 255, .88));
  stroke: #b778ff;
  stroke-dasharray: 30 240;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.network-flow-2 {
  animation-delay: -1.2s;
}

.network-flow-3 {
  animation-delay: -2.6s;
}

.network-flow-4 {
  animation-delay: -3.7s;
}

.network-flow-5 {
  animation-delay: -4.5s;
}

.network-node {
  animation: network-node 2.8s ease-in-out infinite;
  transform-origin: center;
}

.network-node-2 {
  animation-delay: -.7s;
}

.network-node-3 {
  animation-delay: -1.4s;
}

.network-node-4 {
  animation-delay: -2.1s;
}

.sidebar {
  border-right-color: rgba(111, 67, 232, .08);
}

html,
body,
#content {
  max-width: 100%;
  overflow-x: hidden;
}

#content > .p-5,
.admin-page-width,
.card,
.card-body,
.modal-content {
  min-width: 0;
}

.admin-page-width,
.admin-page-width-narrow {
  max-width: min(100%, 1200px);
}

.admin-page-width-narrow {
  max-width: min(100%, 1000px);
}

.table-responsive,
.annotation-canvas-wrap,
.event-detail-scene {
  max-width: 100%;
}

code,
pre,
.text-body-secondary,
.text-body-emphasis {
  overflow-wrap: anywhere;
}

.user .dropdown-menu form {
  margin: 0;
}

.dashboard-brand {
  align-items: center;
  gap: .65rem;
}

.dashboard-brand img {
  display: block;
  height: 2rem;
  object-fit: contain;
  width: 2rem;
}

.dashboard-brand span {
  white-space: nowrap;
}

.header {
  background:
    linear-gradient(90deg, #02060d 0%, #07101e 48%, #241047 100%);
  border-bottom: 1px solid rgba(168, 85, 247, .2);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 .7rem 2.2rem rgba(4, 8, 18, .18);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.header::before {
  background:
    radial-gradient(circle at 78% 50%, rgba(168, 85, 247, .34), transparent 34%),
    radial-gradient(circle at 98% 10%, rgba(99, 102, 241, .18), transparent 32%),
    linear-gradient(90deg, rgba(4, 12, 22, .1), rgba(168, 85, 247, .12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.header .sidebar-toggle,
.header .logo,
.header .search,
.header > .ms-auto,
.header-menu {
  position: relative;
  z-index: 2;
}

.header .logo,
.header .logo span,
.header .sidebar-toggle,
.header .search-helper,
.header .search input {
  color: #fff !important;
}

.header .search {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(207, 178, 255, .14);
}

.header .search input {
  background: transparent;
}

.header .search input::placeholder {
  color: rgba(238, 229, 255, .62);
}

.header-menu button,
.header-menu a {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(207, 178, 255, .1);
}

.header-visual {
  inset: 0 0 0 auto;
  opacity: .9;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: min(46vw, 40rem);
  z-index: 1;
}

.header-globe {
  animation: header-globe-drift 12s ease-in-out infinite;
  background:
    radial-gradient(circle at 35% 35%, rgba(196, 181, 253, .28), transparent 15%),
    radial-gradient(circle at 58% 58%, rgba(168, 85, 247, .18), transparent 35%),
    linear-gradient(130deg, rgba(15, 23, 42, .18), rgba(168, 85, 247, .18));
  border: 1px solid rgba(216, 180, 254, .18);
  border-radius: 50%;
  box-shadow:
    inset -1.5rem -.8rem 3rem rgba(4, 12, 22, .74),
    0 0 4rem rgba(168, 85, 247, .2);
  height: 9rem;
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9rem;
}

.header-globe::before,
.header-globe::after {
  border: 1px solid rgba(216, 180, 254, .16);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  inset: 1.15rem;
  position: absolute;
}

.header-globe::after {
  inset: 1.8rem .7rem;
  transform: rotate(90deg);
}

.header-orbit,
.header-link-line {
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .7), transparent);
  height: 1px;
  position: absolute;
  transform-origin: right center;
}

.header-orbit {
  animation: header-line-flow 4.8s linear infinite;
  right: 1.6rem;
  width: 19rem;
}

.header-orbit-1 {
  top: 32%;
  transform: rotate(-14deg);
}

.header-orbit-2 {
  animation-delay: -2.1s;
  top: 63%;
  transform: rotate(18deg);
}

.header-link-line {
  animation: header-line-flow 5.8s linear infinite;
  opacity: .62;
  right: 7.5rem;
  width: 15rem;
}

.header-link-line-1 {
  top: 21%;
  transform: rotate(32deg);
}

.header-link-line-2 {
  animation-delay: -1.6s;
  top: 48%;
  transform: rotate(-8deg);
}

.header-link-line-3 {
  animation-delay: -3.2s;
  top: 78%;
  transform: rotate(-30deg);
}

.header-node {
  animation: header-node-pulse 2.8s ease-in-out infinite;
  background: #c084fc;
  border-radius: 999px;
  box-shadow: 0 0 1rem rgba(192, 132, 252, .85);
  height: .44rem;
  position: absolute;
  width: .44rem;
}

.header-node-1 {
  right: 17rem;
  top: 28%;
}

.header-node-2 {
  animation-delay: -.9s;
  right: 12rem;
  top: 71%;
}

.header-node-3 {
  animation-delay: -1.8s;
  right: 4rem;
  top: 39%;
}

.admin-page-width {
  margin-right: auto;
  max-width: 1200px;
  width: 100%;
}

.admin-page-width-narrow {
  max-width: 1000px;
}

.admin-toast {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: .8rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .15);
  color: var(--bs-body-color);
  display: flex;
  gap: .7rem;
  min-width: min(24rem, calc(100vw - 2rem));
  opacity: 0;
  padding: .85rem 1.1rem;
  position: fixed;
  right: 1.5rem;
  top: 1.5rem;
  transform: translateY(-.8rem);
  transition: opacity .18s ease, transform .18s ease;
  visibility: hidden;
  z-index: 40;
}

.admin-toast i {
  color: #22c55e;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.admin-toast.is-error {
  border-color: rgba(244, 63, 94, .38);
}

.admin-toast.is-error i {
  color: #f43f5e;
}

.header-menu .icon,
.header-menu button,
.header-menu a,
.header-menu .material-symbols-rounded {
  color: #fff !important;
}

.card-title {
  margin-bottom: .45rem;
}

.card-title + .card-subtitle,
.card-title + h5.card-subtitle,
.card-title + p.card-subtitle {
  display: block;
  margin-top: .35rem;
}

.avatar-upload {
  height: 9rem;
  position: relative;
  width: 9rem;
}

.avatar-upload > img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.avatar-progress {
  align-items: center;
  background: rgba(8, 8, 24, .6);
  border-radius: 50%;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity .18s ease;
  visibility: hidden;
}

.avatar-progress.is-visible {
  opacity: 1;
  visibility: visible;
}

.avatar-progress .loading-spinner {
  height: 2.2rem;
  width: 2.2rem;
}

.avatar-crop-stage {
  aspect-ratio: 1;
  background: #0f172a;
  border-radius: .5rem;
  cursor: grab;
  margin: 0 auto;
  max-width: 25rem;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.avatar-crop-stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop-stage canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.avatar-crop-mask {
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(8, 8, 24, .46);
  inset: 10%;
  pointer-events: none;
  position: absolute;
}

.sidebar-project-link {
  align-items: center;
  color: var(--bs-secondary-color);
  display: flex;
  font-size: .75rem;
  gap: .35rem;
  line-height: 1.35;
  max-width: 8.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-project-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-project-link:hover {
  color: var(--bs-primary);
}

.project-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  flex-shrink: 0;
  padding: 0;
}

.project-logo-upload {
  align-items: center;
  display: flex;
  height: 9rem;
  justify-content: center;
  position: relative;
  width: 9rem;
}

.project-logo-upload > img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.project-private-badge,
.project-visibility-lock {
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(34, 197, 94, .08));
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: .7rem;
  display: flex;
  gap: .9rem;
  padding: .9rem;
}

.project-private-shield {
  align-items: center;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 .65rem 1.5rem rgba(37, 99, 235, .22);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.project-private-shield-mini {
  box-shadow: 0 .35rem .8rem rgba(37, 99, 235, .18);
  font-size: .86rem !important;
  height: 1.15rem;
  width: 1.15rem;
}

.project-private-title {
  color: var(--bs-body-color);
  font-weight: 700;
  line-height: 1.2;
}

.project-private-copy {
  color: var(--bs-secondary-color);
  font-size: .75rem;
  line-height: 1.3;
  margin-top: .15rem;
}

.project-rule {
  background: rgba(var(--bs-primary-rgb), .025);
}

.project-rule-dimension {
  flex-shrink: 0;
  max-width: 9rem;
  white-space: normal;
}

.api-key-reveal .form-control {
  background: rgba(var(--bs-primary-rgb), .045);
}

.api-docs-html,
.api-docs-html body {
  min-height: 100%;
  overflow-y: auto;
}

.api-docs-standalone {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
}

.api-docs-topbar {
  align-items: center;
  background: var(--bs-body-bg);
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  display: flex;
  gap: 1rem;
  height: 4.25rem;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.api-docs-brand {
  align-items: center;
  color: var(--bs-body-color);
  display: flex;
  font-weight: 700;
  gap: .7rem;
}

.api-docs-brand:hover {
  color: var(--bs-primary);
}

.api-docs-brand img {
  height: 2rem;
  object-fit: contain;
  width: 2rem;
}

.api-docs-console-link {
  color: var(--bs-secondary-color);
  font-size: .9rem;
}

.api-docs-console-link:hover {
  color: var(--bs-primary);
}

.api-docs-shell {
  align-items: flex-start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 15rem minmax(0, 1fr);
  margin: 0;
  max-width: 1320px;
  padding: 2rem;
  width: 100%;
}

.api-docs-nav {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 1rem;
  position: fixed;
  top: 6.25rem;
  left: 2rem;
  width: 15rem;
  z-index: 15;
}

.api-docs-nav-title {
  color: var(--bs-body-color);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.api-docs-nav a {
  border-radius: .4rem;
  color: var(--bs-secondary-color);
  font-size: .86rem;
  padding: .5rem .65rem;
}

.api-docs-nav a:hover {
  background: rgba(var(--bs-primary-rgb), .07);
  color: var(--bs-primary);
}

.api-docs-content {
  grid-column: 2;
  min-width: 0;
}

.api-doc-section {
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  padding: 2.25rem 0;
  scroll-margin-top: 6rem;
}

.api-doc-section:first-child {
  padding-top: .25rem;
}

.api-doc-section h1 {
  color: var(--bs-body-color);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.api-doc-section h2 {
  color: var(--bs-body-color);
  font-size: 1.45rem;
  margin-bottom: .75rem;
}

.api-doc-section h3 {
  color: var(--bs-body-color);
  font-size: .98rem;
  margin: 1.4rem 0 .75rem;
}

.api-doc-section p {
  color: var(--bs-secondary-color);
  max-width: 58rem;
}

.api-doc-kicker {
  color: var(--bs-primary) !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.api-doc-meta,
.api-doc-callout {
  background: rgba(var(--bs-primary-rgb), .045);
  border: 1px solid rgba(var(--bs-primary-rgb), .16);
  border-radius: .5rem;
  margin-top: 1.4rem;
  padding: 1rem;
}

.api-doc-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.api-doc-meta span {
  color: var(--bs-secondary-color);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.api-doc-endpoint-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.api-doc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-doc-table {
  border: 1px solid rgba(148, 163, 184, .22);
  border-collapse: separate;
  border-radius: .5rem;
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.api-doc-table th,
.api-doc-table td {
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  color: var(--bs-body-color);
  font-size: .86rem;
  padding: .8rem .9rem;
  vertical-align: top;
}

.api-doc-table th {
  background: rgba(15, 23, 42, .035);
  color: var(--bs-secondary-color);
  font-size: .74rem;
  text-align: left;
  text-transform: uppercase;
}

.api-doc-table tr:last-child td {
  border-bottom: 0;
}

.api-doc-list {
  color: var(--bs-secondary-color);
  display: grid;
  gap: .65rem;
  margin: 0;
  padding-left: 1.2rem;
}

.api-endpoint {
  align-items: center;
  display: flex;
  gap: .75rem;
  white-space: nowrap;
}

.api-endpoint span {
  background: rgba(34, 197, 94, .12);
  border-radius: .35rem;
  color: #15803d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .25rem .45rem;
}

.api-endpoint code,
.api-code {
  color: var(--bs-body-color);
}

.api-code {
  background: rgba(15, 23, 42, .045);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .5rem;
  font-size: .78rem;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
}

@media (max-width: 991.98px) {
  .api-docs-topbar {
    padding: 0 1rem;
  }

  .api-docs-brand span {
    font-size: .95rem;
  }

  .api-docs-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .api-docs-nav {
    position: static;
    width: auto;
  }

  .api-doc-endpoint-heading {
    display: block;
  }

  .api-doc-grid {
    grid-template-columns: 1fr;
  }
}

.project-rule form {
  margin: 0;
}

.edge-endpoint-row {
  background: rgba(var(--bs-primary-rgb), .025);
}

.edge-endpoint-row-required {
  border-color: rgba(var(--bs-primary-rgb), .45) !important;
  box-shadow: inset .2rem 0 0 rgba(var(--bs-primary-rgb), .75);
}

.edge-address-preview {
  background: rgba(var(--bs-primary-rgb), .025);
  border: 1px solid var(--bs-border-color);
  border-radius: .9rem;
  padding: .8rem;
}

.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bs-modal-margin) * 2);
  max-height: calc(100dvh - var(--bs-modal-margin) * 2);
}

.modal-dialog-scrollable .modal-content > form .modal-body {
  overflow-y: auto;
}

.modal-dialog-scrollable .modal-content > form .modal-footer {
  background: var(--bs-modal-bg);
  flex-shrink: 0;
  z-index: 2;
}

.pagination-mobile {
  display: none;
}

.pac-container {
  z-index: 2000 !important;
}

.edge-device-map {
  height: 15.4rem;
  min-height: 12.6rem;
  width: 100%;
}

.edge-device-map-compact {
  height: 17.5rem;
}

.edge-map-weather-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edge-map-weather-grid > * {
  height: 17.5rem;
  min-height: 17.5rem;
}

.edge-map-weather-grid .weather-panel {
  height: 17.5rem;
  min-height: 17.5rem;
}

.edge-map-weather-grid-detail {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr);
}

.edge-map-weather-grid-detail > *,
.edge-map-weather-grid-detail .edge-device-map-compact,
.edge-map-weather-grid-detail .weather-panel {
  height: 25rem;
  min-height: 25rem;
}

.edge-map-weather-grid-detail .weather-panel {
  overflow: auto;
}

.edge-map-weather-grid-detail .weather-hours {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.edge-live-stream-panel {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: .5rem;
  color: #fff;
  overflow: hidden;
}

.edge-live-stream-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.edge-live-stream-header h4 {
  color: #fff;
  font-size: 1.1rem;
  margin: .15rem 0 0;
}

.edge-live-stream-kicker {
  color: #86efac;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edge-live-stream-stage {
  aspect-ratio: 16 / 7;
  background: #020617;
  min-height: 20rem;
  position: relative;
}

.edge-live-stream-video {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.edge-live-stream-empty {
  align-items: center;
  background: rgba(2, 6, 23, .88);
  color: rgba(255, 255, 255, .78);
  display: flex;
  gap: .75rem;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: absolute;
  text-align: center;
}

.edge-live-stream-empty[hidden] {
  display: none;
}

.edge-env-table-wrap {
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
}

.edge-env-table {
  font-size: .82rem;
}

.edge-env-table th {
  color: var(--bs-secondary-color);
  font-size: .68rem;
  padding: .45rem .65rem;
  text-transform: uppercase;
}

.edge-env-table td {
  padding: .42rem .65rem;
}

.edge-env-table code {
  color: var(--bs-body-color);
  font-size: .74rem;
  white-space: nowrap;
}

.edge-env-table .form-control {
  font-size: .78rem;
  min-height: 2rem;
  padding: .32rem .5rem;
}

.dashboard-top-grid {
  align-items: stretch;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr);
}

.dashboard-metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-metric-card {
  color: var(--bs-body-color);
  font-weight: 700;
  min-height: 8rem;
  padding: 1.35rem 1.5rem;
}

.dashboard-metric-card .badge {
  font-size: .78rem;
  margin-left: .75rem;
  padding: .42rem .65rem;
}

.dashboard-metric-value {
  flex: 1 1 auto;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: .95;
}

.dashboard-metric-label {
  color: var(--bs-body-color);
  font-size: 1rem;
  line-height: 1.15;
  margin-top: 1rem;
}

.weather-panel {
  background: linear-gradient(145deg, #0f172a, #1f2937);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: .5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 17.5rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.weather-panel.weather-clear {
  background: linear-gradient(145deg, #075985, #0f766e);
}

.weather-panel.weather-cloud {
  background: linear-gradient(145deg, #334155, #475569);
}

.weather-panel.weather-rain {
  background: linear-gradient(145deg, #1e3a8a, #334155);
}

.weather-panel.weather-wind {
  background: linear-gradient(145deg, #0f766e, #334155);
}

.weather-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.weather-panel h4 {
  color: #fff;
  font-size: 1.05rem;
  margin: .15rem 0 0;
}

.weather-kicker {
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.weather-condition {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  padding: .35rem .65rem;
}

.weather-current {
  display: grid;
  gap: .35rem;
  margin: 1.25rem 0;
}

.weather-current strong {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}

.weather-current span,
.weather-empty {
  color: rgba(255, 255, 255, .76);
  font-size: .85rem;
}

.weather-hours {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: auto;
}

.weather-hour {
  background: rgba(255, 255, 255, .1);
  border-radius: .4rem;
  display: grid;
  gap: .15rem;
  padding: .55rem .45rem;
  text-align: center;
}

.weather-hour span,
.weather-hour small {
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
}

.weather-hour strong {
  color: #fff;
  font-size: .95rem;
}

.weather-street-view::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.weather-street-view.weather-cloud::after {
  background: rgba(71, 85, 105, .32);
}

.weather-street-view.weather-rain::after {
  background:
    repeating-linear-gradient(110deg, rgba(191, 219, 254, .34) 0 1px, transparent 1px 12px),
    rgba(30, 58, 138, .22);
  animation: weather-rain-drift .9s linear infinite;
}

.weather-street-view.weather-wind::after {
  background: repeating-linear-gradient(170deg, rgba(255, 255, 255, .28) 0 2px, transparent 2px 28px);
  animation: weather-wind-drift 1.4s linear infinite;
}

.street-view-thumbnail-frame {
  display: inline-block;
  max-width: 100%;
  position: relative;
}

.street-view-thumbnail-image {
  display: block;
  height: auto;
  max-width: 100%;
  z-index: 1;
}

.street-sun-layer,
.street-shade-layer,
.street-sun-caption {
  pointer-events: none;
  position: absolute;
}

.street-sun-layer {
  background:
    linear-gradient(var(--sun-ray-angle, 125deg),
      rgba(255, 244, 196, calc(var(--sun-opacity, .22) * .38)),
      rgba(255, 244, 196, calc(var(--sun-opacity, .22) * .18)) 34%,
      transparent 68%),
    radial-gradient(circle at var(--sun-x, 80%) var(--sun-y, 28%),
      rgba(255, 244, 196, calc(var(--sun-opacity, .22) * .32)) 0 8%,
      transparent 36%);
  inset: 0;
  mix-blend-mode: screen;
  z-index: 2;
}

.street-shade-layer {
  background:
    linear-gradient(calc(var(--sun-ray-angle, 125deg) + 180deg),
      rgba(15, 23, 42, var(--sun-shade-opacity, .2)),
      transparent 55%),
    linear-gradient(to top, rgba(2, 6, 23, .08), transparent 42%);
  inset: 0;
  z-index: 3;
}

.street-sun-caption {
  background: rgba(15, 23, 42, .56);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  bottom: .75rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  left: .75rem;
  padding: .35rem .65rem;
  z-index: 5;
}

@keyframes weather-rain-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: -28px 56px, 0 0; }
}

@keyframes weather-wind-drift {
  from { background-position: 0 0; }
  to { background-position: 80px 0; }
}

.annotation-canvas-wrap canvas.is-read-only {
  cursor: default !important;
}

.annotation-class-hint {
  background: rgba(var(--bs-primary-rgb), .035);
}

.annotation-class-chip {
  background: rgba(var(--bs-primary-rgb), .1);
  border-radius: 999px;
  color: var(--bs-primary);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  padding: .38rem .55rem;
}

@media (max-width: 1199.98px) {
  .dashboard-top-grid,
  .edge-map-weather-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .dashboard-metric-grid,
  .weather-hours {
    grid-template-columns: 1fr;
  }
}

.edge-online-status {
  align-items: center;
  color: var(--bs-secondary-color);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .45rem;
  line-height: 1;
  white-space: nowrap;
}

.edge-online-status-large {
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  padding: .45rem .7rem;
}

.edge-online-dot {
  background: #94a3b8;
  border-radius: 50%;
  box-shadow: 0 0 0 .25rem rgba(148, 163, 184, .14);
  display: inline-block;
  height: .62rem;
  width: .62rem;
}

.edge-online-status.is-online {
  color: #16a34a;
}

.edge-online-status.is-online .edge-online-dot {
  animation: edge-online-pulse 1.4s ease-out infinite;
  background: #22c55e;
  box-shadow: 0 0 0 .25rem rgba(34, 197, 94, .14);
}

.edge-online-status.is-offline {
  color: #64748b;
}

@keyframes edge-online-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .38);
  }

  70% {
    box-shadow: 0 0 0 .45rem rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.edge-ai-instance-row,
.edge-ai-version-summary {
  background: rgba(var(--bs-primary-rgb), .025);
}

.edge-ai-version-metric {
  min-width: 7rem;
}

.edge-ai-version-metric span {
  color: var(--bs-secondary-color);
  display: block;
  font-size: .75rem;
}

.edge-ai-version-metric strong {
  color: var(--bs-body-color);
  display: block;
  font-size: .95rem;
  font-weight: 600;
}

.edge-env-map-table {
  min-width: 58rem;
}

.edge-env-map-table th {
  color: var(--bs-secondary-color);
  font-size: .72rem;
  text-transform: uppercase;
}

.edge-env-map-table td {
  font-size: .84rem;
}

.git-revision-input {
  min-width: min(18rem, 100%);
}

.edge-detail-list {
  display: grid;
  gap: .35rem 1rem;
  grid-template-columns: 7rem 1fr;
}

.edge-detail-list dt {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.edge-detail-list dd {
  margin-bottom: .75rem;
}

.edge-detail-list-compact {
  grid-template-columns: 6rem 1fr;
}

.edge-detail-list-compact dd {
  margin-bottom: .45rem;
}

.edge-inventory-item {
  background: rgba(var(--bs-primary-rgb), .025);
}

.edge-inventory-item a {
  display: block;
  overflow-wrap: anywhere;
}

.edge-binding-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 18rem;
}

.edge-binding-qr {
  display: grid;
  overflow: hidden;
  padding: .75rem;
  place-items: center;
  width: min(100%, 13rem);
}

.edge-binding-qr img {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.edge-binding-users {
  min-width: 0;
}

.edge-binding-user {
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .edge-binding-panel {
    max-width: 100%;
  }

  .edge-binding-qr {
    width: min(100%, 12rem);
  }
}

.server-resource-card {
  background: #fff;
  color: inherit;
  transition: border-color .2s ease;
}

.server-resource-card:hover,
.server-resource-card:focus {
  border-color: rgba(var(--bs-primary-rgb), .45) !important;
}

.server-resource-icon {
  align-items: center;
  background: rgba(var(--bs-primary-rgb), .1);
  border-radius: .5rem;
  color: var(--bs-primary);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.server-resource-available {
  color: var(--bs-primary);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.server-resource-spec {
  color: var(--bs-body-color);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2rem;
  overflow-wrap: anywhere;
}

.event-thumb {
  border-radius: .8rem;
  height: 3rem;
  object-fit: cover;
  width: 4.5rem;
}

.event-view-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), .22);
  gap: .35rem;
}

.event-view-tabs .nav-link,
.model-view-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: .55rem .55rem 0 0;
  color: var(--bs-secondary-color);
  font-weight: 600;
  padding: .7rem 1rem;
  white-space: nowrap;
}

.event-view-tabs .nav-link.active,
.model-view-tabs .nav-link.active {
  background: rgba(var(--bs-primary-rgb), .14);
  border-color: rgba(var(--bs-primary-rgb), .3);
  border-bottom-color: transparent;
  box-shadow: inset 0 -3px 0 var(--bs-primary);
  color: var(--bs-primary);
}

.event-view-tabs .nav-link:not(.active):hover,
.model-view-tabs .nav-link:not(.active):hover {
  background: rgba(var(--bs-primary-rgb), .06);
  border-color: rgba(var(--bs-primary-rgb), .16);
  color: var(--bs-primary);
}

.model-view-tabs {
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), .22);
  flex-wrap: nowrap;
  gap: .35rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.event-subject-table {
  table-layout: fixed;
}

.event-subject-table th:nth-child(1) {
  width: 24%;
}

.event-subject-table th:nth-child(2) {
  width: 23%;
}

.event-subject-table th:nth-child(3) {
  width: 9rem;
}

.event-subject-table th:nth-child(4) {
  width: 18%;
}

.event-subject-table th:nth-child(5) {
  width: 12rem;
}

.event-subject-table th:nth-child(6) {
  width: 15.5rem;
}

.event-subject-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: .5rem;
  justify-content: flex-end;
}

.event-subject-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.event-subject-list-frame {
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .65rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 5.75rem;
  justify-content: center;
  overflow: hidden;
  padding: .25rem;
  width: 4.5rem;
}

.event-subject-list-thumb {
  border-radius: .45rem;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.event-subject-risk-text {
  max-width: 18rem;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.min-w-0 {
  min-width: 0;
}

.event-subject-json {
  background: rgba(var(--bs-primary-rgb), .025);
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  color: var(--bs-body-color);
  font-size: .72rem;
  max-height: 8rem;
  max-width: 18rem;
  overflow: auto;
  padding: .55rem;
  white-space: pre-wrap;
}

.event-video-player {
  background: #050816;
  border-radius: .5rem;
  display: block;
  max-height: 72vh;
  width: 100%;
}

.event-video-btn {
  line-height: 0;
}

.btn-event-detail {
  --bs-btn-bg: rgba(var(--bs-primary-rgb), .1);
  --bs-btn-border-color: rgba(var(--bs-primary-rgb), .35);
  --bs-btn-color: var(--bs-primary);
  --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), .18);
  --bs-btn-hover-border-color: rgba(var(--bs-primary-rgb), .55);
  --bs-btn-hover-color: var(--bs-primary);
  --bs-btn-active-bg: rgba(var(--bs-primary-rgb), .22);
  --bs-btn-active-border-color: rgba(var(--bs-primary-rgb), .6);
  --bs-btn-active-color: var(--bs-primary);
  font-weight: 600;
}

[data-bs-theme=dark] .btn-event-detail {
  --bs-btn-bg: rgba(202, 140, 255, .16);
  --bs-btn-border-color: rgba(202, 140, 255, .42);
  --bs-btn-color: #e9d5ff;
  --bs-btn-hover-bg: rgba(202, 140, 255, .24);
  --bs-btn-hover-border-color: rgba(202, 140, 255, .62);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: rgba(202, 140, 255, .3);
  --bs-btn-active-border-color: rgba(202, 140, 255, .72);
  --bs-btn-active-color: #fff;
}

.event-video-play {
  color: #fff;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .7));
  font-size: 1.35rem;
  inset: 50% auto auto 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.event-detail-scene {
  background: #050816;
  overflow: auto;
}

.event-detail-scene canvas {
  display: block;
  height: auto;
  max-height: 62vh;
  max-width: 100%;
  width: 100%;
}

.event-detail-stat-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-detail-stat {
  background: rgba(var(--bs-primary-rgb), .035);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: .55rem;
  padding: .9rem 1rem;
}

.event-detail-stat span {
  color: var(--bs-secondary-color);
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-detail-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-top: .2rem;
}

.event-detail-legend-item {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  gap: .4rem;
  padding: .28rem .65rem;
}

.event-detail-legend-item i {
  border-radius: 999px;
  display: inline-block;
  height: .55rem;
  width: .55rem;
}

.event-detail-subject-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.event-detail-subject-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: .65rem;
  overflow: hidden;
}

.event-detail-subject-media {
  align-items: center;
  background: #0f172a;
  border: 0;
  display: flex;
  justify-content: center;
  min-height: 11rem;
  padding: .75rem;
  width: 100%;
}

.event-detail-subject-zoom-trigger {
  cursor: zoom-in;
  transition: background .16s ease, box-shadow .16s ease;
}

.event-detail-subject-zoom-trigger:hover {
  background: #111c33;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .45);
}

.event-detail-subject-image-wrap {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  position: relative;
}

.event-detail-subject-image-wrap img {
  display: block;
  max-height: 18rem;
  max-width: 100%;
  object-fit: contain;
}

.event-detail-ppe-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.event-detail-ppe-box {
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 1px rgba(5, 8, 22, .65);
  position: absolute;
}

.event-detail-ppe-box span {
  background: #16a34a;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  left: -1px;
  line-height: 1;
  max-width: 8rem;
  overflow: hidden;
  padding: .22rem .35rem;
  position: absolute;
  text-overflow: ellipsis;
  top: -1.25rem;
  white-space: nowrap;
}

.event-detail-zoom-box-chip {
  align-items: center;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: .76rem;
  gap: .35rem;
  padding: .28rem .65rem;
}

.event-subject-zoom-stage {
  align-items: center;
  background: #0f172a;
  border-radius: .65rem;
  display: flex;
  justify-content: center;
  max-height: 72vh;
  overflow: auto;
  padding: 1rem;
}

.event-subject-zoom-image-wrap {
  display: inline-block;
  line-height: 0;
  position: relative;
}

.event-subject-zoom-image-wrap img {
  display: block;
  max-height: 68vh;
  max-width: 100%;
  min-width: min(34rem, 100%);
  object-fit: contain;
}

.event-detail-subject-empty {
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
}

.event-detail-subject-body {
  padding: 1rem;
}

.event-detail-risk-note {
  background: rgba(244, 63, 94, .08);
  border-left: .25rem solid #f43f5e;
  border-radius: .35rem;
  color: #be123c;
  font-size: .82rem;
  margin-top: .75rem;
  padding: .55rem .7rem;
}

.event-detail-json-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .85rem;
}

.event-detail-json-grid pre {
  background: rgba(15, 23, 42, .04);
  border-radius: .45rem;
  font-size: .7rem;
  margin: 0;
  max-height: 9rem;
  overflow: auto;
  padding: .65rem;
  white-space: pre-wrap;
}

.event-summary-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(148, 163, 184, .24);
  border-left: .35rem solid var(--bs-primary);
  border-radius: .75rem;
  color: var(--bs-body-color);
  display: grid;
  gap: .25rem;
  padding: 1.15rem 1.25rem;
}

.event-summary-card:hover {
  border-color: rgba(var(--bs-primary-rgb), .45);
  color: var(--bs-body-color);
}

.event-summary-card span {
  color: var(--bs-secondary-color);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.event-summary-card small {
  color: var(--bs-secondary-color);
}

.event-summary-real-risk {
  border-left-color: #f43f5e;
}

.event-summary-invalid {
  border-left-color: #64748b;
}

.event-summary-severe {
  border-left-color: #dc2626;
}

.event-summary-ordinary {
  border-left-color: #d97706;
}

.event-summary-clear {
  border-left-color: #16a34a;
}

.event-summary-review {
  border-left-color: #f59e0b;
}

.event-summary-learning {
  border-left-color: #0ea5e9;
}

.event-summary-confirmed {
  border-left-color: #22c55e;
}

.annotation-canvas-wrap {
  align-items: center;
  background: #050816;
  display: flex;
  justify-content: center;
  overflow: auto;
}

.annotation-canvas-wrap canvas {
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.annotation-canvas-wrap-subject {
  background:
    linear-gradient(135deg, #d1d5db, #f3f4f6);
  justify-content: center;
  min-height: min(68vh, 46rem);
  padding: 1rem;
}

.annotation-canvas-wrap-subject canvas {
  background: #d1d5db;
  box-shadow: 0 1rem 2.8rem rgba(15, 23, 42, .18);
  height: min(66vh, 44rem);
  max-height: calc(100vh - 17rem);
  max-width: 100%;
  width: auto;
}

.annotation-box-row {
  background: rgba(var(--bs-primary-rgb), .025);
  cursor: pointer;
}

.annotation-box-row.is-selected {
  border-color: var(--bs-primary) !important;
}

.annotation-yolo-preview {
  font-size: .72rem;
  max-height: 9rem;
  overflow: auto;
  white-space: pre-wrap;
}

.annotation-operation-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.annotation-operation-item {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  padding: .75rem;
}

.pending-review-stage {
  align-items: center;
  background: #0f172a;
  display: flex;
  justify-content: center;
  min-height: min(62vh, 34rem);
  overflow: auto;
  padding: .75rem;
}

.pending-review-stage canvas {
  display: block;
  height: auto;
  max-height: min(62vh, 34rem);
  max-width: 100%;
}

.pending-review-box-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 24rem;
  overflow: auto;
}

.pending-review-box-row {
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  padding: .6rem .7rem;
}

.event-status {
  background: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary);
}

.event-risk-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.event-risk-icon-invalid-event,
.event-status-invalid-event {
  background: rgba(100, 116, 139, .14);
  color: #64748b;
}

.event-risk-icon-severe-danger,
.event-status-severe-danger {
  background: rgba(220, 38, 38, .14);
  color: #dc2626;
}

.event-risk-icon-ordinary-risk,
.event-status-ordinary-risk {
  background: rgba(245, 158, 11, .16);
  color: #d97706;
}

.event-risk-icon-no-risk,
.event-status-no-risk {
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
}

.event-learning-status {
  background: rgba(15, 23, 42, .08);
  color: #475569;
  display: inline-flex;
}

.event-learning-status-pending-learning {
  background: rgba(125, 211, 252, .28);
  color: #0284c7;
}

.event-status-unhandled {
  background: rgba(244, 63, 94, .12);
  color: #f43f5e;
}

.event-status-pre-processed {
  background: rgba(14, 165, 233, .12);
  color: #0ea5e9;
}

.event-status-pending-confirmation {
  background: rgba(245, 158, 11, .14);
  color: #f59e0b;
}

.event-status-pending-review {
  background: rgba(245, 158, 11, .14);
  color: #f59e0b;
}

.event-status-pending-learning {
  background: rgba(125, 211, 252, .28);
  color: #0284c7;
}

.event-status-confirmed {
  background: rgba(34, 197, 94, .12);
  color: #22c55e;
}

.event-status-real-risk {
  background: rgba(244, 63, 94, .12);
  color: #f43f5e;
}

.event-status-trained {
  background: rgba(34, 197, 94, .12);
  color: #22c55e;
}

.model-current-card,
.model-version {
  background: rgba(var(--bs-primary-rgb), .025);
}

.model-path-box {
  background: rgba(15, 23, 42, .025);
  overflow-wrap: anywhere;
}

.model-path-box code {
  color: var(--bs-body-color);
  font-size: .78rem;
  white-space: normal;
}

.model-version form {
  margin: 0;
}

.requirement-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.requirement-group {
  border-left: .28rem solid var(--bs-border-color) !important;
}

.requirement-group-environment {
  border-left-color: #0ea5e9 !important;
}

.requirement-group-logic {
  border-left-color: #8b5cf6 !important;
}

.requirement-group-event {
  border-left-color: #f59e0b !important;
}

.requirement-group-response {
  border-left-color: #22c55e !important;
}

.pending-rule-panel {
  border-color: rgba(245, 158, 11, .35);
}

.pending-rule-version {
  background: rgba(245, 158, 11, .035);
}

.ai-code-upgrade-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-code-upgrade-column {
  min-width: 0;
}

.ai-code-upgrade-column + .ai-code-upgrade-column {
  border-left: 1px solid var(--bs-border-color);
  padding-left: 1.5rem;
}

.ai-code-upgrade-full {
  grid-column: 1 / -1;
}

.pending-handoff-control form {
  margin: 0;
}

.btn-ai-update {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #ec4899 100%);
  border: 0;
  box-shadow: 0 .85rem 1.75rem rgba(124, 58, 237, .22);
  color: #fff;
  font-size: 0;
}

.btn-ai-update::after {
  content: "Generating New Version";
  font-size: .9375rem;
  font-weight: 600;
}

.btn-ai-update .material-symbols-rounded {
  font-size: 0 !important;
}

.btn-ai-update .material-symbols-rounded::before {
  content: "settings";
  font-size: 1.25rem;
}

.btn-ai-update:hover,
.btn-ai-update:focus {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 48%, #db2777 100%);
  color: #fff;
}

.btn-ai-update:disabled,
.btn-ai-update.disabled {
  background: #e5e7eb;
  box-shadow: none;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
}

.btn-ai-update:disabled .material-symbols-rounded,
.btn-ai-update.disabled .material-symbols-rounded {
  color: #6b7280 !important;
}

.generation-status {
  background: rgba(var(--bs-primary-rgb), .035);
}

@media (max-width: 991.98px) {
  .ai-code-upgrade-grid {
    grid-template-columns: 1fr;
  }

  .ai-code-upgrade-column + .ai-code-upgrade-column {
    border-left: 0;
    border-top: 1px solid var(--bs-border-color);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .ai-code-upgrade-full {
    grid-column: auto;
  }
}

.requirement-table {
  --bs-table-bg: transparent;
  font-size: .78rem;
}

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

.requirement-action-cell {
  width: 2rem;
}

.code-structure {
  background: rgba(8, 8, 24, .05);
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  color: var(--bs-body-color);
  font-size: .78rem;
  margin: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

@keyframes network-flow {
  from {
    stroke-dashoffset: 300;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes network-node {
  0%,
  100% {
    opacity: .7;
    transform: scale(1);
  }

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

@keyframes header-line-flow {
  0% {
    opacity: .22;
    filter: drop-shadow(0 0 0 rgba(192, 132, 252, 0));
  }

  45% {
    opacity: .86;
    filter: drop-shadow(0 0 .45rem rgba(192, 132, 252, .72));
  }

  100% {
    opacity: .28;
    filter: drop-shadow(0 0 0 rgba(192, 132, 252, 0));
  }
}

@keyframes header-node-pulse {
  0%,
  100% {
    opacity: .58;
    transform: scale(1);
  }

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

@keyframes header-globe-drift {
  0%,
  100% {
    transform: translateY(-50%) rotate(-4deg);
  }

  50% {
    transform: translateY(calc(-50% - .35rem)) rotate(4deg);
  }
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  .login-shell {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem !important;
  }

  .login-content {
    min-height: 100vh;
    padding: 4.5rem 0 5rem;
    position: relative;
  }

  .login-card {
    max-width: 22rem;
    padding: 1.35rem !important;
    width: calc(100vw - 2rem) !important;
  }

  .login-card .brand-logo {
    height: 38px;
    width: 38px;
  }

  .login-card .demo-note {
    padding: 1rem !important;
  }

  .login-footer {
    bottom: 1rem;
    font-size: .72rem;
    padding: 0 1rem;
  }

  .login-network {
    height: 48vh;
    left: 0;
    max-width: 100vw;
    opacity: .38;
    right: auto;
    top: 6vh;
    transform: none;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  body {
    min-width: 0;
  }

  .header {
    gap: .5rem;
    height: 3.75rem;
    padding: 0 .8rem;
  }

  .header-visual {
    opacity: .48;
    width: 70vw;
  }

  .header-globe {
    height: 7rem;
    right: -1.2rem;
    width: 7rem;
  }

  .header-orbit,
  .header-link-line {
    right: 2rem;
    width: 12rem;
  }

  .header-menu {
    gap: .35rem;
    margin-left: .5rem !important;
  }

  .header-menu button,
  .header-menu a {
    min-height: 2.6rem;
    min-width: 2.6rem;
  }

  .sidebar {
    --sidebar-width: min(18rem, 86vw);
  }

  .sidebar > [data-simplebar] {
    padding-top: 4.4rem;
  }

  #content:not(.content-column) {
    overflow-x: hidden;
    padding: 0 .75rem .75rem;
  }

  #content > .p-5 {
    max-width: 100%;
    overflow-x: hidden;
    padding: .85rem 0 1.1rem !important;
  }

  .content-header {
    align-items: center;
    gap: .35rem;
    min-height: 3.15rem;
    height: auto;
    margin: .75rem 0 0;
    padding: .55rem .75rem;
  }

  .annotation-canvas-wrap-subject {
    min-height: min(62vh, 34rem);
    padding: .65rem;
  }

  .annotation-canvas-wrap-subject canvas {
    height: min(58vh, 32rem);
    max-height: calc(100vh - 15rem);
  }

  .content-header h2 {
    font-size: .98rem !important;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-header nav:last-child {
    display: none;
  }

  .admin-page-width,
  .admin-page-width-narrow {
    max-width: 100%;
  }

  .card {
    border-radius: .55rem;
  }

  .card > .card-body,
  .card.p-5 {
    padding: 1rem !important;
  }

  .card-title {
    line-height: 1.25;
  }

  .card-subtitle,
  p.card-subtitle,
  h5.card-subtitle {
    font-size: .82rem;
    line-height: 1.35;
  }

  .g-5,
  .gx-5 {
    --bs-gutter-x: 1rem !important;
  }

  .g-5,
  .gy-5 {
    --bs-gutter-y: 1rem !important;
  }

  .mb-5 {
    margin-bottom: 1rem !important;
  }

  .mb-6 {
    margin-bottom: 1.25rem !important;
  }

  .p-5 {
    padding: 1rem !important;
  }

  .px-5,
  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.55rem;
    white-space: normal;
  }

  .btn-sm {
    min-height: 2.35rem;
  }

  .icon {
    min-height: 2.35rem;
    min-width: 2.35rem;
  }

  .page-action-bar,
  .event-detail-page > .d-flex:first-child {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .page-action-bar > div:last-child,
  .event-detail-page > .d-flex:first-child > div:last-child {
    width: 100%;
  }

  .page-action-bar .btn,
  .event-detail-page > .d-flex:first-child .btn {
    flex: 1 1 auto;
  }

  .dashboard-top-grid,
  .dashboard-metric-grid,
  .requirement-grid,
  .event-detail-stat-grid,
  .event-detail-json-grid,
  .event-detail-subject-grid,
  .edge-map-weather-grid,
  .ai-code-upgrade-grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-metric-card {
    min-height: 6.75rem;
    padding: 1rem !important;
  }

  .dashboard-metric-value {
    font-size: 2rem;
  }

  .dashboard-metric-card .badge {
    font-size: .72rem;
    margin-left: .5rem;
    max-width: 9rem;
    white-space: normal;
  }

  .weather-panel,
  .edge-map-weather-grid > *,
  .edge-map-weather-grid .weather-panel,
  .edge-map-weather-grid-detail > *,
  .edge-map-weather-grid-detail .edge-device-map-compact,
  .edge-map-weather-grid-detail .weather-panel {
    height: auto;
    min-height: 15rem;
  }

  .weather-hours,
  .edge-map-weather-grid-detail .weather-hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edge-device-map,
  .edge-device-map-compact {
    height: 15rem;
    min-height: 15rem;
  }

  .edge-live-stream-header {
    align-items: flex-start;
    flex-direction: column;
    padding: .9rem;
  }

  .edge-live-stream-stage {
    aspect-ratio: 16 / 10;
    min-height: 13rem;
  }

  .street-view-thumbnail-frame {
    width: 100%;
  }

  .street-view-thumbnail-image {
    width: 100%;
  }

  .edge-detail-list,
  .edge-detail-list-compact {
    grid-template-columns: 1fr;
  }

  .edge-detail-list dt,
  .edge-detail-list-compact dt {
    font-size: .72rem;
    margin-top: .35rem;
    text-transform: uppercase;
  }

  .edge-detail-list dd,
  .edge-detail-list-compact dd {
    margin-bottom: .45rem;
    overflow-wrap: anywhere;
  }

  .mobile-card-table-wrap {
    overflow: visible;
  }

  .mobile-card-table {
    display: block;
    min-width: 0 !important;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100%;
  }

  .mobile-card-table tr {
    background: var(--bs-body-bg);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: .6rem;
    margin-bottom: .85rem;
    overflow: hidden;
    padding: .25rem .85rem;
  }

  .mobile-card-table td {
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    min-width: 0;
    overflow-wrap: anywhere;
    padding: .72rem 0 !important;
    text-align: left !important;
  }

  .mobile-card-table td:last-child {
    border-bottom: 0;
  }

  .mobile-card-table td::before {
    color: var(--bs-secondary-color);
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: .28rem;
    text-transform: uppercase;
  }

  .mobile-card-table td[data-label=""]::before,
  .mobile-card-table td:not([data-label])::before {
    display: none;
  }

  .mobile-card-actions {
    display: flex !important;
    flex-direction: column;
    gap: .5rem;
  }

  .mobile-card-actions > .btn,
  .mobile-card-actions > button,
  .mobile-card-actions > a,
  .mobile-card-actions .btn {
    margin: 0 !important;
    width: 100%;
  }

  .mobile-card-actions .d-inline-flex {
    align-items: stretch !important;
    display: grid !important;
    gap: .45rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .mobile-card-actions form {
    display: block !important;
    margin: 0;
    width: 100%;
  }

  .mobile-card-actions .event-subject-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: .5rem;
    justify-content: flex-end;
    width: 100%;
  }

  .mobile-card-actions .event-subject-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .event-thumb {
    height: 4.5rem;
    width: 6.75rem;
  }

  .event-summary-card {
    padding: .95rem 1rem;
  }

  .event-summary-card strong {
    font-size: 1.65rem;
  }

  .event-detail-scene canvas,
  .annotation-canvas-wrap canvas {
    max-height: 58vh;
    min-width: 100%;
  }

  .event-detail-subject-grid {
    gap: .75rem;
  }

  .event-detail-subject-card {
    border-radius: .55rem;
  }

  .event-detail-subject-media {
    min-height: 9rem;
  }

  .event-subject-zoom-stage {
    max-height: 64vh;
    padding: .5rem;
  }

  .event-subject-zoom-image-wrap img {
    max-height: 60vh;
    min-width: 0;
  }

  .annotation-box-row {
    overflow-wrap: anywhere;
  }

  .modal {
    --bs-modal-margin: .5rem;
  }

  .modal-dialog,
  .modal-dialog-centered {
    align-items: stretch;
    margin-bottom: max(.5rem, env(safe-area-inset-bottom));
    min-height: calc(100% - 1rem);
    min-height: calc(100dvh - 1rem - env(safe-area-inset-bottom));
  }

  .modal-content {
    border-radius: .55rem;
    max-height: calc(100vh - 1rem - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom));
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: .85rem;
  }

  .modal-footer {
    align-items: stretch;
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom));
  }

  .modal-footer .btn,
  .modal-footer button {
    margin: 0 !important;
    min-width: 0;
    width: 100%;
  }

  .modal-footer > :only-child {
    grid-column: 1 / -1;
  }

  .modal-footer:has(> :nth-child(3)) [data-bs-dismiss="modal"] {
    grid-column: 1 / -1;
    order: 2;
  }

  .modal-footer:has(> :nth-child(3)) button:not([data-bs-dismiss="modal"]),
  .modal-footer:has(> :nth-child(3)) .btn:not([data-bs-dismiss="modal"]) {
    order: 1;
  }

  .admin-toast {
    left: .75rem;
    min-width: 0;
    right: .75rem;
    top: .75rem;
    width: auto;
  }

  .model-version-row,
  .training-event-row {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .model-version-row form,
  .model-version-row .btn,
  .training-event-row .badge {
    width: 100%;
  }

  .pagination-shell {
    align-items: stretch !important;
    flex-direction: column;
    gap: .75rem !important;
    width: 100%;
  }

  .pagination-summary {
    text-align: center;
    width: 100%;
  }

  .pagination-desktop {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .2rem;
    scrollbar-width: thin;
    width: 100%;
  }

  .pagination-desktop .page-item {
    flex: 0 0 auto;
  }

  .pagination-desktop .page-link {
    min-height: 2.35rem;
    min-width: 2.35rem;
    padding-left: .65rem;
    padding-right: .65rem;
    text-align: center;
  }

  .pagination-jump {
    align-self: flex-end;
    display: grid !important;
    grid-template-columns: auto 4.25rem auto;
    width: auto;
  }

  .pagination-jump input {
    width: 4.25rem !important;
  }

  input,
  select,
  textarea,
  .form-control,
  .form-select {
    font-size: 16px;
  }
}

@media (max-width: 399.98px) {
  .content-header h2 {
    max-width: 13rem;
  }

  .weather-hours,
  .edge-map-weather-grid-detail .weather-hours {
    grid-template-columns: 1fr;
  }

  .mobile-card-actions .d-inline-flex {
    grid-template-columns: 1fr;
  }
}
