:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans-serif: var(--font-sans);
  --app-sidebar-width: 15rem;
  --app-topbar-height: 3.5rem;
  --app-gutter: 1.25rem;
  --app-radius: 0.75rem;
}

html.app-sidebar-collapsed {
  --app-sidebar-width: 4.25rem;
}

body.app-body {
  background: var(--app-bg);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4,
.app-body h5,
.app-body h6,
.app-body .btn,
.app-body .badge,
.app-body .navbar-brand {
  font-family: var(--font-sans);
}

.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4 {
  letter-spacing: -0.015em;
}

.app-body .card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 1px 3px rgb(16 24 40 / 3%);
}

.app-body .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.app-body .badge {
  border-radius: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-shell {
  min-height: 100dvh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: var(--app-sidebar-width);
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-sidebar-border);
  transition: width 0.18s ease, transform 0.2s ease;
}

.app-sidebar__brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  height: var(--app-topbar-height);
  padding: 0 1.125rem;
  overflow: hidden;
  border-bottom: 1px solid var(--app-sidebar-border);
  color: var(--app-sidebar-fg-strong);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.app-sidebar__brand:hover {
  color: var(--app-sidebar-fg-strong);
}

.app-sidebar__brand-num {
  color: var(--app-brand-from);
}

.app-brand-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--app-brand-from), var(--app-brand-to));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--app-brand-to) 40%, transparent);
  color: #fff;
}

.app-sidebar__nav {
  flex: 1;
  min-height: 0;
  padding: 0.75rem 0.625rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.app-sidebar__label {
  padding: 1rem 0.625rem 0.375rem;
  color: var(--app-sidebar-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-nav {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4375rem 0.625rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--app-sidebar-fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}

.app-nav-link:hover {
  background: var(--app-sidebar-hover);
  color: var(--app-sidebar-fg-strong);
}

.app-nav-link.is-active {
  background: var(--app-sidebar-active-bg);
  color: var(--app-sidebar-active-fg);
  font-weight: 600;
}

.app-nav-link__icon {
  flex: none;
  width: 1.125rem;
  text-align: center;
}

.app-nav-link__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-project-dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  background: var(--app-sidebar-hover);
  box-shadow: inset 0 0 0 1px var(--app-sidebar-border);
  font-size: 0.6875rem;
  font-weight: 700;
}

.app-nav-link.is-active .app-project-dot {
  background: var(--app-brand-to);
  box-shadow: none;
  color: #fff;
}

.app-sidebar__footer {
  flex: none;
  padding: 0.625rem;
  border-top: 1px solid var(--app-sidebar-border);
}

.app-sidebar__collapse .app-nav-link__icon {
  transition: transform 0.18s;
}

html.app-sidebar-collapsed .app-sidebar__collapse .app-nav-link__icon {
  transform: rotate(180deg);
}

.app-sidebar-backdrop {
  display: none;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
}

.app-sidebar ~ .app-main {
  margin-inline-start: var(--app-sidebar-width);
  transition: margin 0.18s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;
  height: var(--app-topbar-height);
  padding: 0 var(--app-gutter);
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}

.app-topbar__menu {
  display: none;
  border: 0;
  background: none;
  color: var(--text-color-default);
  font-size: 1.125rem;
}

.app-topbar__context {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.app-topbar__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 auto;
}

.app-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--text-color-default);
  font-size: 1rem;
}

.app-icon-button:hover,
.app-icon-button[aria-expanded="true"] {
  background: var(--app-surface);
  box-shadow: 0 0 0 1px var(--app-border);
  color: var(--text-color-highlight);
}

.app-icon-button.dropdown-toggle::after {
  display: none;
}

.app-topbar__actions .notification-indicator {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
}

.app-topbar__actions .notification-indicator .text-xl {
  font-size: 1rem;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: 0.375rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-color-highlight);
  font-size: 0.875rem;
  font-weight: 500;
}

.app-user:hover,
.app-user[aria-expanded="true"] {
  background: var(--app-surface);
  box-shadow: 0 0 0 1px var(--app-border);
}

.app-user__caret {
  color: var(--text-color-muted);
  font-size: 0.625rem;
}

.app-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-brand-from), var(--app-brand-to));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.app-avatar--sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
}

.app-palette-menu {
  min-width: 13rem;
}

.app-palette-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.app-palette-option__check {
  margin-inline-start: auto;
  color: var(--color-primary);
  visibility: hidden;
}

.app-palette-option.is-current .app-palette-option__check {
  visibility: visible;
}

.app-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.app-crumbs__link {
  color: var(--text-color-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.app-crumbs__link:hover {
  color: var(--color-primary);
}

.app-crumbs__sep {
  color: var(--text-color-subtle);
}

.app-crumbs__current {
  margin: 0;
  overflow: hidden;
  color: var(--text-color-emphasis);
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-crumbs__badge {
  flex: none;
}

.app-topbar__context .project-presence {
  flex: none;
  margin-inline-start: auto;
}

.app-content {
  flex: 1;
  min-width: 0;
  padding: var(--app-gutter);
}

.app-body .huddle {
  font-size: 0.875rem;
}

.app-messages {
  margin-bottom: 1rem;
}

.app-messages .alert:last-child {
  margin-bottom: 0;
}

.project-shell {
  overflow: hidden;
}

.project-body--chat .project-chat {
  height: calc(100vh - 12rem);
}

.overview-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.overview-empty__icon {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 2rem;
}

.overview-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-bottom: 1px solid var(--app-border);
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-inline-end: 1px solid var(--app-border);
  background: none;
  color: inherit;
  text-align: start;
  text-decoration: none;
  transition: background-color 0.12s;
}

.kpi:last-child {
  border-inline-end: 0;
}

a.kpi:hover,
button.kpi:hover {
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
  color: inherit;
}

.kpi__label {
  color: var(--text-color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi__value {
  color: var(--text-color-emphasis);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.kpi__of {
  color: var(--text-color-subtle);
  font-size: 1rem;
  font-weight: 600;
}

.kpi__meta {
  color: var(--text-color-muted);
  font-size: 0.8125rem;
}

.kpi__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.kpi__links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--app-border);
  text-underline-offset: 3px;
}

.kpi__links a:hover {
  color: var(--color-danger);
}

.kpi__bar {
  display: block;
  height: 0.25rem;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-color-muted) 15%, transparent);
}

.kpi__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.kpi--danger .kpi__value {
  color: var(--color-danger);
}

.kpi--accent .kpi__value {
  color: var(--color-primary);
}

.overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.overview-chat .project-chat {
  height: 32rem;
}

.overview-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--app-border);
}

.overview-side__tabs {
  display: flex;
  margin: 1rem 1.25rem 0;
}

.overview-side__tabs .segmented__item {
  flex: 1;
  padding-inline: 0.5rem;
  white-space: nowrap;
  border: 0;
  background: none;
  text-align: center;
}

.overview-side__tabs .segmented__item.active {
  background: var(--background-color-solid, #fff);
}

.overview-panel {
  flex: 1;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.overview-panel .project-section {
  padding: 0;
  border: 0;
}

.overview-panel .project-section__title,
.overview-panel__title {
  margin: 0 0 0.75rem;
  color: var(--text-color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-list__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  margin: 0 -0.625rem;
  border-radius: 0.5rem;
  color: var(--text-color-highlight);
  font-size: 0.875rem;
  text-decoration: none;
}

.overview-list__item:hover {
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  color: var(--text-color-emphasis);
}

.overview-list__code {
  flex: none;
  min-width: 3rem;
  color: var(--text-color-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.overview-list__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-list__person {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
}

.overview-list__empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-muted);
  font-size: 0.875rem;
}

.overview-list__empty .fa-check-circle {
  color: var(--color-success);
}

.overview-panel__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.overview-bot {
  flex: none;
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid var(--app-border);
  background: var(--background-color-highlight, #f9fafd);
}

.overview-bot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.overview-bot__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.overview-bot__title .fas {
  margin-inline-end: 0.25rem;
  color: var(--color-primary);
}

.overview-bot__text {
  margin: 0 0 0.625rem;
  color: var(--text-color-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.overview-bot__label {
  margin-bottom: 0.25rem;
  color: var(--text-color-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-bot__address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--app-border);
  border-radius: 0.375rem;
  background: var(--app-surface, #fff);
  text-align: start;
  cursor: copy;
}

.overview-bot__address:hover {
  border-color: var(--color-primary);
}

.overview-bot__address code {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
}

.overview-bot__address code span {
  white-space: nowrap;
}

.overview-bot__copy {
  flex: none;
  color: var(--text-color-muted);
}

.overview-bot__copied {
  display: none;
  flex: none;
  color: var(--color-success, #00d27a);
  font-size: 0.75rem;
  font-weight: 600;
}

.overview-bot__address[data-copied] .overview-bot__copy {
  display: none;
}

.overview-bot__address[data-copied] .overview-bot__copied {
  display: inline;
}

.register-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.register-summary__progress {
  flex: 1;
  min-width: 14rem;
}

.register-summary__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.375rem;
  color: var(--text-color-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.register-summary__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--background-color-solid, #fff);
  box-shadow: inset 0 -1px 0 var(--app-border);
}

@media (min-width: 1024px) {
  .overview-main {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }

  .overview-side {
    border-top: 0;
    border-inline-start: 1px solid var(--app-border);
  }

  .overview-chat .project-chat {
    border-radius: 0;
  }

  .app-content--fit {
    display: flex;
    flex: none;
    flex-direction: column;
    height: calc(100dvh - var(--app-topbar-height));
    overflow: hidden;
  }

  .app-content--fit > .project-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
  }

  .app-content--fit .project-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .app-content--fit .project-body--split,
  .app-content--fit .project-body--chat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .app-content--fit .project-body--split > * {
    flex: none;
  }

  .app-content--fit .project-body--split > .project-fill {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .app-content--fit .project-fill > .project-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .app-content--fit .overview-main.project-fill {
    display: grid;
  }

  .app-content--fit .overview-chat,
  .app-content--fit .overview-chat .project-chat,
  .app-content--fit .project-body--chat .project-chat {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 1023.98px) {
  .app-sidebar {
    width: 16rem;
    transform: translateX(-100%);
  }

  html.app-sidebar-open .app-sidebar {
    transform: none;
    box-shadow: 0 0 40px rgb(0 0 0 / 30%);
  }

  html.app-sidebar-open .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: block;
    background: rgb(11 23 39 / 45%);
  }

  .app-sidebar ~ .app-main {
    margin-inline-start: 0;
  }

  .app-sidebar__collapse {
    display: none;
  }

  .app-topbar__menu {
    display: inline-block;
  }

  .app-user__name {
    display: none;
  }

  .app-topbar__context .project-presence__count {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .app-topbar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .app-crumbs__link,
  .app-crumbs__sep,
  .app-crumbs__badge,
  .app-topbar__context .project-presence {
    display: none;
  }

  .app-content {
    padding: 0.75rem;
  }

  .overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--app-border);
  }

  .kpi:nth-child(2n) {
    border-inline-end: 0;
  }

  .kpi__value {
    font-size: 1.375rem;
  }

  .overview-chat .huddle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .overview-chat .huddle-sidebar {
    display: none;
  }
}

@media (min-width: 1024px) {
  html.app-sidebar-collapsed .app-sidebar__brand {
    justify-content: center;
    padding: 0;
  }

  html.app-sidebar-collapsed .app-sidebar__brand-text,
  html.app-sidebar-collapsed .app-nav-link__text,
  html.app-sidebar-collapsed .app-sidebar__label {
    display: none;
  }

  html.app-sidebar-collapsed .app-nav-link {
    justify-content: center;
    padding-inline: 0;
  }
}

.app-body .choices.is-open {
  z-index: 30;
}

.app-body .choices__list--dropdown .choices__item,
.app-body .choices__list[aria-expanded] .choices__item {
  font-size: 0.875rem;
}

.app-tour-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--text-color-highlight);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.app-tour-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.app-tour-button .fa-route {
  color: var(--color-primary);
}

.huddle-message.tour-show-actions .huddle-message__actions {
  display: flex;
}

.comply-tour-popover.driver-popover {
  max-width: 22rem;
  padding: 1.125rem 1.25rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  background: var(--background-color-solid, #fff);
  box-shadow: 0 16px 40px rgb(11 23 39 / 22%);
  color: var(--text-color-default);
  font-family: var(--font-sans);
}

.comply-tour-popover .driver-popover-arrow-side-left.driver-popover-arrow {
  border-left-color: var(--background-color-solid, #fff);
}

.comply-tour-popover .driver-popover-arrow-side-right.driver-popover-arrow {
  border-right-color: var(--background-color-solid, #fff);
}

.comply-tour-popover .driver-popover-arrow-side-top.driver-popover-arrow {
  border-top-color: var(--background-color-solid, #fff);
}

.comply-tour-popover .driver-popover-arrow-side-bottom.driver-popover-arrow {
  border-bottom-color: var(--background-color-solid, #fff);
}

.comply-tour-popover .driver-popover-title {
  color: var(--text-color-emphasis);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.comply-tour-popover .driver-popover-description {
  margin-top: 0.375rem;
  color: var(--text-color-default);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
}

.comply-tour-popover .driver-popover-description strong {
  color: var(--text-color-emphasis);
}

.comply-tour-popover .driver-popover-footer {
  margin-top: 1rem;
}

.comply-tour-popover .driver-popover-progress-text {
  color: var(--text-color-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.comply-tour-popover .driver-popover-navigation-btns {
  gap: 0.375rem;
}

.comply-tour-popover .driver-popover-footer button {
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-shadow: none;
}

.comply-tour-popover .driver-popover-next-btn {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.comply-tour-popover .driver-popover-next-btn:hover,
.comply-tour-popover .driver-popover-next-btn:focus {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: #fff;
}

.comply-tour-popover .driver-popover-prev-btn {
  border: 1px solid var(--app-border);
  background: transparent;
  color: var(--text-color-highlight);
}

.comply-tour-popover .driver-popover-prev-btn:hover {
  background: color-mix(in srgb, var(--text-color-muted) 10%, transparent);
}

.comply-tour-popover .driver-popover-close-btn {
  color: var(--text-color-muted);
}

.comply-tour-popover .driver-popover-close-btn:hover {
  color: var(--text-color-emphasis);
}

@media (max-width: 639.98px) {
  .app-tour-button__text {
    display: none;
  }
}

.app-body .choices.is-invalid .choices__inner {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-danger) 20%, transparent);
}

.wizard-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.app-content--fit > .wizard-card {
  flex: 1;
  min-height: 0;
}

.wizard {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.wizard__steps {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.625rem 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--app-border);
  list-style: none;
}

.wizard__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--text-color-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.wizard__tab:hover {
  background: var(--background-color-highlight, #f9fafd);
}

.wizard__number {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--app-border);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
}

.wizard__tab.is-active {
  color: var(--color-primary);
}

.wizard__tab.is-active .wizard__number {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.wizard__tab.is-done .wizard__number {
  border-color: transparent;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
}

.wizard__tab.has-error .wizard__number {
  border-color: var(--color-danger, #e63757);
  background: var(--color-danger, #e63757);
  color: #fff;
}

.wizard__body {
  flex: 1;
  min-height: 0;
  padding: 1.25rem;
  overflow-y: auto;
}

.wizard__step fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem 1.5rem;
  align-items: start;
}

.wizard__step legend {
  float: none;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.wizard__step fieldset > * {
  margin-bottom: 0;
}

.wizard__step #details-lists {
  display: contents;
}

.wizard__footer {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--app-border);
}

.wizard__spacer {
  flex: 1;
}

@media (min-width: 768px) {
  .wizard__step fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard__step fieldset > :has(textarea),
  .wizard__step fieldset > :has(select[multiple]),
  .wizard__step #details-lists > *,
  .wizard__step fieldset > .grid {
    grid-column: 1 / -1;
  }
}

.item-modal-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.item-lock-status .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.item-read-only dt {
  margin-top: 0.75rem;
  color: var(--text-color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.item-read-only dt:first-child {
  margin-top: 0;
}

.item-read-only dd {
  margin: 0.125rem 0 0;
  white-space: pre-line;
}
