:root {
  --fm-bg: #faf9f5;
  --fm-panel: #ffffff;
  --fm-ink: #23261f;
  --fm-ink-2: #5f6455;
  --fm-ink-3: #6f7465;
  --fm-line: #e9e7dd;
  --fm-line-soft: #f3f1e8;
  --fm-fill: #f3f2ea;
  --fm-fill-hover: #ece9df;
  --fm-accent: #3b7a3e;
  --fm-accent-hover: #326835;
  --fm-accent-soft: #edf4ea;
  --fm-ok-bg: #e8f2e4;
  --fm-ok: #2f6132;
  --fm-info-bg: #e8eef5;
  --fm-info: #33608c;
  --fm-warn-bg: #f7efd9;
  --fm-warn: #7d5a10;
  --fm-danger: #b3402e;
  --fm-danger-bg: #f7e6e2;
  --fm-shadow: 0 1px 2px rgba(35, 38, 31, .04);
  --fm-shadow-pop: 0 14px 40px rgba(35, 38, 31, .18);
  --fm-radius: 10px;
  --fm-radius-lg: 14px;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fm-bg);
  color: var(--fm-ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

main {
  flex: 1;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fm-ink);
}

a {
  color: var(--fm-accent);
}

a:hover {
  color: var(--fm-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: 2px;
}

.btn {
  font-weight: 600;
  border-radius: var(--fm-radius);
  padding: .5rem 1.05rem;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem var(--fm-accent-soft);
}

.btn-primary {
  --bs-btn-bg: var(--fm-accent);
  --bs-btn-border-color: var(--fm-accent);
  --bs-btn-hover-bg: var(--fm-accent-hover);
  --bs-btn-hover-border-color: var(--fm-accent-hover);
  --bs-btn-active-bg: var(--fm-accent-hover);
  --bs-btn-active-border-color: var(--fm-accent-hover);
  --bs-btn-disabled-bg: var(--fm-accent);
  --bs-btn-disabled-border-color: var(--fm-accent);
}

.btn-outline-secondary {
  --bs-btn-color: var(--fm-ink-2);
  --bs-btn-border-color: var(--fm-line);
  --bs-btn-hover-color: var(--fm-ink);
  --bs-btn-hover-bg: var(--fm-fill);
  --bs-btn-hover-border-color: var(--fm-line);
  --bs-btn-active-color: var(--fm-ink);
  --bs-btn-active-bg: var(--fm-fill-hover);
  --bs-btn-active-border-color: var(--fm-line);
}

.btn-outline-danger {
  --bs-btn-color: var(--fm-danger);
  --bs-btn-border-color: var(--fm-line);
  --bs-btn-hover-bg: var(--fm-danger-bg);
  --bs-btn-hover-color: var(--fm-danger);
  --bs-btn-hover-border-color: var(--fm-line);
  --bs-btn-active-bg: var(--fm-danger-bg);
  --bs-btn-active-color: var(--fm-danger);
  --bs-btn-active-border-color: var(--fm-line);
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--fm-ink-2);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  background-color: var(--fm-fill);
  border: 1px solid transparent;
  border-radius: var(--fm-radius);
  color: var(--fm-ink);
  padding: .55rem .8rem;
}

.form-control::placeholder {
  color: var(--fm-ink-3);
}

.form-control:focus, .form-select:focus {
  background-color: var(--fm-panel);
  border-color: var(--fm-accent);
  box-shadow: 0 0 0 3px var(--fm-accent-soft);
}

.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa08f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.card {
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-lg);
  box-shadow: var(--fm-shadow);
}

.alert {
  border-radius: var(--fm-radius);
  font-size: .9rem;
}

.alert-danger {
  background: var(--fm-danger-bg);
  border-color: transparent;
  color: var(--fm-danger);
}

.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: var(--fm-shadow-pop);
}

.modal-header {
  border-bottom: none;
  padding-bottom: .25rem;
}

.modal-footer {
  border-top: none;
  padding-top: .25rem;
}

.dropdown-menu {
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  box-shadow: var(--fm-shadow-pop);
  padding: .35rem;
  font-size: .9rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: .45rem .7rem;
  color: var(--fm-ink);
  font-weight: 500;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: var(--fm-fill);
  color: var(--fm-ink);
}

.dropdown-item.active {
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.dropdown-divider {
  border-color: var(--fm-line);
}

.fm-nav {
  background: var(--fm-bg);
  border-bottom: 1px solid var(--fm-line-soft);
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.fm-nav .navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fm-ink);
  margin-right: 1.2rem;
}

.fm-nav .nav-link {
  color: var(--fm-ink-2);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  padding: .45rem .75rem;
}

.fm-nav .nav-link:hover {
  color: var(--fm-ink);
  background: var(--fm-fill);
}

.fm-nav .nav-link.active, .fm-nav .nav-item.active > .nav-link {
  color: var(--fm-accent);
  background: var(--fm-accent-soft);
}

.fm-lang {
  display: inline-flex;
  gap: 2px;
  margin-right: .35rem;
}

.fm-lang a {
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .5rem;
  border-radius: 6px;
  color: var(--fm-ink-3);
  text-decoration: none;
}

.fm-lang a:hover {
  color: var(--fm-ink);
}

.fm-lang a.active {
  color: var(--fm-ink);
  background: var(--fm-fill);
}

.fm-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fm-footer {
  border-top: 1px solid var(--fm-line-soft);
  color: var(--fm-ink-3);
  font-size: .85rem;
  padding: 1.1rem 0;
  margin-top: 2.5rem;
}

.fm-footer a {
  color: var(--fm-ink-3);
  text-decoration: none;
}

.fm-footer a:hover {
  color: var(--fm-accent);
}

.fm-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: .25rem 0 1.1rem;
}

.fm-page-head h1 {
  font-size: 1.55rem;
  margin: 0;
}

.fm-page-sub {
  margin: .2rem 0 0;
  font-size: .875rem;
  color: var(--fm-ink-2);
}

.fm-crumb {
  font-size: .78rem;
  font-weight: 600;
  color: var(--fm-ink-3);
  margin-bottom: .25rem;
}

.fm-crumb a {
  color: var(--fm-ink-3);
  text-decoration: none;
}

.fm-crumb a:hover {
  color: var(--fm-accent);
}

.fm-crumb-sep {
  margin: 0 .1rem;
  color: var(--fm-line);
}

.fm-toolbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .9rem 1.1rem;
}

.fm-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 200px;
}

.fm-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fm-ink-3);
  pointer-events: none;
}

.fm-search .form-control {
  padding-left: 2.3rem;
}

.fm-card-body-flush {
  padding: 0;
}

.fm-filter-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fm-ink-2);
  background: var(--fm-fill);
  border: 1px solid transparent;
  border-radius: var(--fm-radius);
  padding: .5rem .8rem;
  cursor: pointer;
}

.fm-filter-toggle:hover {
  background: var(--fm-fill-hover);
  color: var(--fm-ink);
}

.fm-filter-toggle[aria-expanded="true"] {
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--fm-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

.fm-filter-panel {
  border-top: 1px solid var(--fm-line-soft);
  padding: 1rem 1.1rem 1.1rem;
}

.fm-filter-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.fm-filter-field > label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fm-ink-3);
}

.fm-toggle-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.fm-toggle {
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fm-ink-2);
  background: var(--fm-fill);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .45rem .8rem;
  cursor: pointer;
}

.fm-toggle:hover {
  background: var(--fm-fill-hover);
  color: var(--fm-ink);
}

.fm-toggle[aria-pressed="true"] {
  background: var(--fm-accent);
  border-color: var(--fm-accent);
  color: #fff;
}

.fm-toggle:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.fm-range-trigger {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fm-ink);
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  padding: .42rem .7rem;
  min-height: 38px;
  text-align: left;
  cursor: pointer;
}

.fm-range-trigger:hover {
  border-color: var(--fm-accent);
}

.fm-range-trigger[aria-expanded="true"] {
  border-color: var(--fm-accent);
  background: var(--fm-accent-soft);
}

.fm-range-trigger svg {
  flex: none;
  color: var(--fm-ink-3);
}

.fm-range-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-range-trigger.empty .fm-range-value {
  color: var(--fm-ink-3);
  font-weight: 500;
}

.fm-range-field {
  display: flex;
  align-items: stretch;
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  min-height: 38px;
}

.fm-range-field:hover,
.fm-range-field:focus-within {
  border-color: var(--fm-accent);
}

.fm-range-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fm-ink);
  background: none;
  border: none;
  outline: none;
  padding: .42rem .7rem;
}

.fm-range-input::placeholder {
  color: var(--fm-ink-3);
  font-weight: 500;
}

.fm-range-open {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--fm-ink-3);
  padding: 0 .6rem;
  cursor: pointer;
}

.fm-range-open:hover,
.fm-range-open[aria-expanded="true"] {
  color: var(--fm-accent);
}

.fm-range-pop {
  position: fixed;
  z-index: 1080;
  display: flex;
  overflow: hidden;
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-lg);
  box-shadow: var(--fm-shadow-pop);
}

.fm-range-quick {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  width: 152px;
  flex: none;
  background: var(--fm-fill);
  border-right: 1px solid var(--fm-line);
  padding: .75rem .55rem;
}

.fm-range-quick-head {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fm-ink-3);
  padding: .15rem .5rem .45rem;
}

.fm-range-quick button {
  font: inherit;
  font-size: .78rem;
  color: var(--fm-ink-2);
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: .45rem .6rem;
  text-align: left;
  cursor: pointer;
}

.fm-range-quick button:hover {
  background: var(--fm-panel);
  color: var(--fm-ink);
}

.fm-range-quick button.on {
  background: var(--fm-accent);
  border-color: var(--fm-accent);
  color: #fff;
  font-weight: 700;
}

.fm-range-cal {
  width: 272px;
  padding: .85rem 1rem;
}

.fm-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}

.fm-range-month {
  font-size: .82rem;
  font-weight: 700;
}

.fm-range-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font: inherit;
  color: var(--fm-ink-2);
  background: var(--fm-fill);
  border: 1px solid var(--fm-line);
  border-radius: 6px;
  cursor: pointer;
}

.fm-range-nav:hover:not(:disabled) {
  border-color: var(--fm-accent);
  color: var(--fm-accent);
}

.fm-range-nav:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.fm-range-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fm-range-dow {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fm-ink-3);
  text-align: center;
  padding: 4px 0;
}

.fm-range-day {
  aspect-ratio: 1;
  font: inherit;
  font-size: .76rem;
  color: var(--fm-ink);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.fm-range-day:hover:not(:disabled) {
  background: var(--fm-fill-hover);
}

.fm-range-day:disabled {
  color: var(--fm-ink-3);
  opacity: .35;
  cursor: not-allowed;
}

.fm-range-day.between {
  background: var(--fm-accent-soft);
  border-radius: 0;
}

.fm-range-day.edge {
  background: var(--fm-accent);
  color: #fff;
  font-weight: 700;
}

.fm-range-day.edge-start {
  border-radius: 6px 0 0 6px;
}

.fm-range-day.edge-end {
  border-radius: 0 6px 6px 0;
}

.fm-range-day.edge-start.edge-end {
  border-radius: 6px;
}

.fm-range-foot {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid var(--fm-line-soft);
}

.fm-range-info {
  flex: 1;
  font-size: .68rem;
  color: var(--fm-ink-3);
}

.fm-range-foot button {
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--fm-ink-2);
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: 7px;
  padding: .4rem .8rem;
  cursor: pointer;
}

.fm-range-foot .fm-range-apply {
  color: #fff;
  font-weight: 700;
  background: var(--fm-accent);
  border-color: var(--fm-accent);
}

.fm-range-foot .fm-range-apply:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .fm-range-pop {
    flex-direction: column;
    max-width: calc(100vw - 16px);
  }

  .fm-range-quick {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--fm-line);
  }

  .fm-range-quick-head {
    width: 100%;
    padding-bottom: .2rem;
  }

  .fm-range-cal {
    width: 100%;
    max-width: 320px;
  }
}

.fm-chips {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  padding: 0 1.1rem .9rem;
}

.fm-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 20px;
  padding: .2rem .35rem .2rem .7rem;
}

.fm-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.fm-chip button:hover {
  background: var(--fm-accent);
  color: #fff;
}

.fm-chips .fm-chip-clear {
  font-size: .8rem;
  font-weight: 600;
  color: var(--fm-ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 .3rem;
}

.fm-chips .fm-chip-clear:hover {
  color: var(--fm-danger);
}

.fm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 11px;
  white-space: nowrap;
}

.fm-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fm-pill.ok {
  background: var(--fm-ok-bg);
  color: var(--fm-ok);
}

.fm-pill.info {
  background: var(--fm-info-bg);
  color: var(--fm-info);
}

.fm-pill.warn {
  background: var(--fm-warn-bg);
  color: var(--fm-warn);
}

.fm-pill.err {
  background: var(--fm-danger-bg);
  color: var(--fm-danger);
}

.fm-pill.muted {
  background: var(--fm-fill);
  color: var(--fm-ink-2);
}

.fm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--fm-ink-3);
  cursor: pointer;
}

.fm-icon-btn:hover {
  background: var(--fm-fill);
  color: var(--fm-accent);
}

.fm-icon-btn.danger:hover {
  color: var(--fm-danger);
}

.fm-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fm-ink-3);
  margin: .5rem 0 .8rem;
}

.fm-form-card .card-body {
  padding: 1.5rem 1.6rem;
}

.fm-form-foot {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--fm-line-soft);
  padding: 1.1rem 1.6rem;
}

.fm-form-foot .fm-hint {
  margin-left: auto;
  font-size: .8rem;
  color: var(--fm-ink-3);
}

kbd {
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--fm-ink-2);
}

.fm-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.fm-toast {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--fm-ink);
  color: var(--fm-bg);
  border-radius: 12px;
  padding: .7rem 1.1rem;
  box-shadow: var(--fm-shadow-pop);
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.fm-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fm-toast svg {
  flex-shrink: 0;
  color: #8fce93;
}

.fm-toast.error svg {
  color: #e8a196;
}

@media (prefers-reduced-motion: reduce) {
  .fm-toast {
    transition: none;
  }
}

.fm-hero {
  padding: 3.6rem 1rem 1.8rem;
  text-align: center;
}

.fm-hero h1 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.fm-hero-underline {
  position: relative;
  white-space: nowrap;
}

.fm-hero-underline svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  width: 100%;
  height: 12px;
  color: var(--fm-accent);
}

.fm-hero p {
  max-width: 480px;
  margin: 1.2rem auto 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--fm-ink-2);
}

.fm-hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.fm-hero-cta .fm-more {
  font-size: .95rem;
  font-weight: 600;
  color: var(--fm-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fm-hero-shot {
  max-width: 780px;
  margin: 2.4rem auto 0;
  background: var(--fm-panel);
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(35, 38, 31, .10);
  overflow: hidden;
  text-align: left;
}

.fm-hero-shot .fm-shot-bar {
  display: flex;
  gap: 5px;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-hero-shot .fm-shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fm-line);
}

.fm-hero-shot table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.fm-hero-shot th {
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fm-ink-3);
  padding: .55rem 1.1rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-hero-shot td {
  padding: .6rem 1.1rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-hero-shot tr:last-child td {
  border-bottom: none;
}

.fm-hero-shot .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fm-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.7rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}

@media (max-width: 991px) {
  .fm-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .fm-features {
    grid-template-columns: 1fr;
  }
}

.fm-feature .fm-feature-icon {
  color: var(--fm-accent);
  margin-bottom: .6rem;
}

.fm-feature h4 {
  font-size: 1rem;
  margin-bottom: .3rem;
}

.fm-feature p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--fm-ink-2);
  margin: 0;
}

.tabulator {
  background: transparent;
  border: none;
  font-size: .9rem;
  color: var(--fm-ink);
}

.tabulator .tabulator-header {
  background: transparent;
  border-top: 1px solid var(--fm-line-soft);
  border-bottom: 1px solid var(--fm-line-soft);
  color: var(--fm-ink-3);
  font-weight: 700;
}

.tabulator .tabulator-header .tabulator-col {
  background: transparent;
  border-right: none;
  border-bottom: none;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
  background: var(--fm-fill);
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: .7rem 1.1rem;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fm-ink-3);
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
  border-bottom-color: var(--fm-ink-3);
}

.tabulator .tabulator-tableholder .tabulator-table {
  background: transparent;
  color: var(--fm-ink);
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background: transparent;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
  background: transparent;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover,
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even:hover {
  background: var(--fm-fill);
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.fm-row-active,
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even.fm-row-active {
  background: var(--fm-accent-soft);
}

.tabulator-row {
  border-bottom: 1px solid var(--fm-line-soft);
  min-height: 0;
}

.tabulator-row .tabulator-cell {
  padding: .7rem 1.1rem;
  border-right: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabulator .tabulator-footer {
  background: transparent;
  border-top: 1px solid var(--fm-line-soft);
  padding: .45rem .7rem;
  color: var(--fm-ink-2);
  font-size: .85rem;
}

.tabulator .tabulator-footer .tabulator-paginator {
  color: var(--fm-ink-2);
}

.tabulator .tabulator-footer .tabulator-page {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fm-ink-2);
  font-weight: 600;
  margin: 0 1px;
  padding: .25rem .6rem;
}

.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
  background: var(--fm-fill);
  color: var(--fm-ink);
}

.tabulator .tabulator-footer .tabulator-page.active,
.tabulator .tabulator-footer .tabulator-page.active:hover {
  background: var(--fm-accent);
  color: #fff;
}

.tabulator .tabulator-footer .tabulator-page-size {
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  background: var(--fm-panel);
  color: var(--fm-ink);
}

.tabulator .tabulator-tableholder .tabulator-placeholder {
  background: transparent;
}

.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents {
  color: var(--fm-ink-3);
  font-size: .9rem;
  font-weight: 500;
}

.fm-grid-clickable .tabulator-row {
  cursor: pointer;
}

.fm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 38, 31, .38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 1040;
}

.fm-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--fm-panel);
  border-left: 1px solid var(--fm-line);
  box-shadow: -18px 0 50px rgba(35, 38, 31, .16);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 1045;
}

.fm-drawer.show {
  transform: translateX(0);
}

.fm-drawer-wide {
  width: min(780px, 100%);
}

@media (max-width: 991.98px) {
  .fm-drawer, .fm-drawer-wide {
    width: 100%;
    border-left: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-drawer, .fm-drawer-backdrop {
    transition: none;
  }
}

.fm-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.15rem 1.35rem 1rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-drawer-head h2 {
  font-size: 1.1rem;
  margin: 0;
}

.fm-drawer-head .fm-drawer-sub {
  margin: .2rem 0 0;
  font-size: .85rem;
  color: var(--fm-ink-2);
}

.fm-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.35rem 1.5rem;
}

.fm-drawer-foot {
  display: flex;
  gap: .5rem;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--fm-line-soft);
  background: var(--fm-bg);
}

.fm-drawer-section {
  margin-bottom: 1.4rem;
}

.fm-drawer-section:last-child {
  margin-bottom: 0;
}

.fm-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
}

.fm-fact .fm-fact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fm-ink-3);
  margin-bottom: .15rem;
}

.fm-fact .fm-fact-value {
  font-size: .92rem;
  color: var(--fm-ink);
}

.fm-drawer table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.fm-drawer table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fm-ink-3);
  padding: .4rem .55rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-drawer table td {
  padding: .5rem .55rem;
  border-bottom: 1px solid var(--fm-line-soft);
  color: var(--fm-ink);
}

.fm-drawer table tr:last-child td {
  border-bottom: none;
}

.fm-drawer table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fm-drawer-empty {
  font-size: .85rem;
  color: var(--fm-ink-3);
}

.fm-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-right: 3px;
  border-radius: 6px;
  background: var(--fm-fill);
  color: var(--fm-ink-2);
  font-size: .7rem;
  font-weight: 700;
}

.fm-table-wrap {
  overflow-x: auto;
}

.fm-table-wrap:focus-visible {
  outline: 2px solid var(--fm-accent);
  outline-offset: -2px;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  color: var(--fm-ink);
}

.fm-table thead th {
  padding: .7rem 1.1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fm-ink-3);
  white-space: nowrap;
  border-top: 1px solid var(--fm-line-soft);
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.fm-table thead th.sortable:hover {
  background: var(--fm-fill);
}

.fm-table thead th.sortable::after {
  content: "";
  display: inline-block;
  margin-left: .4rem;
  border: 4px solid transparent;
  border-bottom-color: var(--fm-line);
  transform: translateY(-2px);
}

.fm-table thead th.sorted::after {
  border-bottom-color: var(--fm-ink-2);
}

.fm-table thead th.sorted.desc::after {
  border-bottom-color: transparent;
  border-top-color: var(--fm-ink-2);
  transform: translateY(2px);
}

.fm-table tbody td {
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--fm-line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.fm-table tbody tr:last-child td {
  border-bottom: none;
}

.fm-table tbody tr:hover {
  background: var(--fm-fill);
}

.fm-table tfoot td {
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--fm-line-soft);
  white-space: nowrap;
}

.fm-table tbody tr.fm-row-active,
.fm-table tbody tr.fm-row-active:hover {
  background: var(--fm-accent-soft);
}

.fm-table-clickable .fm-table tbody tr {
  cursor: pointer;
}

.fm-table td.fm-table-empty,
.fm-table td.fm-table-loading {
  padding: 1.6rem 1.1rem;
  text-align: center;
  color: var(--fm-ink-3);
  font-weight: 500;
}

.fm-table td.fm-table-empty:hover,
.fm-table td.fm-table-loading:hover {
  background: transparent;
}

.fm-table .fm-negative {
  color: var(--fm-danger);
}

.fm-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem 1.1rem;
  border-top: 1px solid var(--fm-line-soft);
  color: var(--fm-ink-2);
  font-size: .85rem;
}

.fm-table-foot-left {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.fm-table-size {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  color: var(--fm-ink-3);
  white-space: nowrap;
}

.fm-table-size .form-select {
  width: auto;
  padding: .15rem 1.7rem .15rem .5rem;
  font-size: .82rem;
}

@media (max-width: 575.98px) {
  .fm-table-size span {
    display: none;
  }
}

.fm-table-foot .page-link {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fm-ink-2);
  font-weight: 600;
  padding: .25rem .6rem;
}

.fm-table-foot .page-item.active .page-link,
.fm-table-foot .page-item.active .page-link:hover {
  background: var(--fm-accent);
  color: #fff;
}

.fm-table-foot .page-link:hover {
  background: var(--fm-fill);
  color: var(--fm-ink);
}

.fm-picker {
  position: relative;
  display: flex;
}

.fm-picker-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  min-width: 0;
  padding: .55rem .8rem;
  border: 1px solid transparent;
  border-radius: var(--fm-radius);
  background: var(--fm-fill);
  color: var(--fm-ink);
  text-align: left;
  cursor: pointer;
}

.fm-picker-value:focus-visible {
  outline: none;
  background: var(--fm-panel);
  border-color: var(--fm-accent);
  box-shadow: 0 0 0 3px var(--fm-accent-soft);
}

.fm-picker-value svg {
  flex: none;
  color: var(--fm-ink-3);
}

.fm-picker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-picker-text.fm-picker-placeholder {
  color: var(--fm-ink-3);
}

.fm-picker-clear {
  position: absolute;
  top: 50%;
  right: 2.1rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--fm-line);
  color: var(--fm-ink-2);
  cursor: pointer;
}

.fm-picker-clear:hover {
  background: var(--fm-danger);
  color: #fff;
}

.fm-picker-value:has(+ .fm-picker-clear:not(.d-none)) .fm-picker-text {
  padding-right: 1.3rem;
}

.fm-detail-block {
  border: 1px solid var(--fm-line-soft);
  border-radius: var(--fm-radius);
  margin-bottom: .8rem;
}

.fm-detail-block:last-child {
  margin-bottom: 0;
}

.fm-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .75rem;
}

.fm-detail-block-head .fm-section-label {
  margin: 0;
}

.fm-detail-block .fm-table thead th {
  padding: .4rem .75rem;
  border-top: 1px solid var(--fm-line-soft);
}

.fm-detail-block .fm-table tbody td {
  padding: .45rem .75rem;
  font-size: .85rem;
}

.fm-detail-block .fm-table td.fm-table-empty {
  padding: .7rem .75rem;
  text-align: left;
  font-size: .82rem;
}

.fm-detail-empty {
  padding: 2.4rem 1.1rem;
  text-align: center;
  color: var(--fm-ink-3);
  font-size: .9rem;
}

.fm-burger {
  padding: .35rem .5rem;
  color: var(--fm-ink-2);
  border: 0;
  border-radius: 8px;
  line-height: 1;
}

.fm-burger:hover {
  color: var(--fm-ink);
  background: var(--fm-fill);
}

.fm-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.fm-sidebar {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--fm-panel);
  border-right: 1px solid var(--fm-line-soft);
  position: sticky;
  top: 0;
  height: 100vh;
  overscroll-behavior: contain;
  transition: width .16s ease;
}

.fm-side-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 57px;
  flex-shrink: 0;
  padding: 0 .8rem;
  border-bottom: 1px solid var(--fm-line-soft);
}

.fm-side-logo {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fm-ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.fm-burger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--fm-line);
  border-radius: 9px;
  background: var(--fm-fill);
  color: var(--fm-ink);
  transition: background .13s ease, border-color .13s ease;
}

.fm-burger:hover {
  background: var(--fm-fill-hover);
  border-color: var(--fm-ink-3);
}

.fm-side-scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .55rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.fm-sidebar-off .fm-sidebar {
  width: 72px;
}

body.fm-sidebar-off .fm-side-logo {
  display: none;
}

body.fm-sidebar-off .fm-side-brand {
  justify-content: center;
  padding: 0;
}

body.fm-sidebar-off .fm-side-link,
body.fm-sidebar-off .fm-side-group-toggle {
  justify-content: center;
  padding: .5rem;
  gap: 0;
}

body.fm-sidebar-off .fm-side-link span,
body.fm-sidebar-off .fm-side-group-toggle span,
body.fm-sidebar-off .fm-side-caret {
  display: none;
}

body.fm-sidebar-off .fm-side-link {
  font-size: 0;
}

body.fm-sidebar-off .fm-side-link svg {
  font-size: 1rem;
}

body.fm-sidebar-off .fm-side-group {
  display: none;
  grid-template-rows: none;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

body.fm-sidebar-off .fm-side-link.active::before {
  left: -.55rem;
}

body.fm-sidebar-off .fm-side-group-toggle.has-active {
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

body.fm-sidebar-off .fm-side-group-toggle.has-active svg {
  color: var(--fm-accent);
}

.fm-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fm-topbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 57px;
  flex-shrink: 0;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--fm-line-soft);
  background: var(--fm-bg);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.fm-topbar-burger {
  display: none;
}

.fm-avatar-button {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.fm-avatar-button::after {
  display: none;
}

.fm-account-menu {
  width: 260px;
  padding: .35rem;
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  box-shadow: var(--fm-shadow-pop);
}

.fm-account-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem .65rem;
  border-bottom: 1px solid var(--fm-line-soft);
  margin-bottom: .3rem;
}

.fm-account-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fm-account-id strong {
  font-size: .9rem;
  color: var(--fm-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-account-mail,
.fm-account-role {
  font-size: .78rem;
  color: var(--fm-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .885rem;
}

.fm-account-menu .dropdown-item svg {
  color: var(--fm-ink-3);
}

.fm-narrow-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.fm-lang-choice {
  display: flex;
  gap: .5rem;
}

.fm-lang-choice a {
  padding: .45rem .9rem;
  border: 1px solid var(--fm-line);
  border-radius: 9px;
  color: var(--fm-ink-2);
  font-size: .885rem;
  font-weight: 600;
  text-decoration: none;
}

.fm-lang-choice a:hover {
  background: var(--fm-fill);
  color: var(--fm-ink);
}

.fm-lang-choice a.active {
  border-color: var(--fm-accent);
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-side-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fm-side-link,
.fm-side-group-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 38px;
  padding: .45rem .65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fm-ink-2);
  font-weight: 600;
  font-size: .885rem;
  line-height: 1.25;
  text-decoration: none;
  text-align: left;
  transition: background .13s ease, color .13s ease;
}

.fm-side-link svg,
.fm-side-group-toggle svg {
  flex-shrink: 0;
  color: var(--fm-ink-3);
}

.fm-side-link:hover,
.fm-side-group-toggle:hover {
  color: var(--fm-ink);
  background: var(--fm-fill);
}

.fm-side-link:hover svg,
.fm-side-group-toggle:hover svg {
  color: var(--fm-ink-2);
}

.fm-side-group-toggle.open {
  color: var(--fm-ink);
}

.fm-side-link.active {
  color: var(--fm-accent);
  background: var(--fm-accent-soft);
  font-weight: 650;
}

.fm-side-link.active svg {
  color: var(--fm-accent);
}

.fm-side-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--fm-accent);
}

.fm-side-group-toggle span {
  flex: 1 1 auto;
}

.fm-side-caret {
  transition: transform .18s ease;
}

.fm-side-group-toggle.open .fm-side-caret {
  transform: rotate(180deg);
}

.fm-side-group {
  display: grid;
  grid-template-rows: 0fr;
  margin-left: 1.35rem;
  padding-left: .35rem;
  border-left: 1px solid transparent;
  transition: grid-template-rows .18s ease, border-color .18s ease;
}

.fm-side-group > * {
  min-height: 0;
  overflow: hidden;
}

.fm-side-group.open {
  grid-template-rows: 1fr;
  border-left-color: var(--fm-line-soft);
}

.fm-side-no-anim .fm-side-group,
.fm-side-no-anim .fm-side-caret {
  transition: none;
}

.fm-side-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 0 3px;
}

.fm-side-link.sub {
  min-height: 34px;
  padding: .38rem .6rem;
  font-weight: 500;
  font-size: .855rem;
}

.fm-side-link.sub.active::before {
  left: -.35rem;
  height: 16px;
}

.fm-side-nav + .fm-side-nav {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--fm-line-soft);
}

.fm-side-group-toggle + .fm-side-group,
.fm-side-link + .fm-side-group-toggle,
.fm-side-group + .fm-side-group-toggle,
.fm-side-group + .fm-side-link {
  margin-top: 1px;
}

.fm-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: .85rem 1.4rem 0;
  display: flex;
  flex-direction: column;
}

.fm-content-footer {
  margin-top: auto;
  padding: 1.5rem 0 .9rem;
  color: var(--fm-ink-3);
  font-size: .8rem;
}

.fm-sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .fm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 300px);
    height: 100vh;
    z-index: 1045;
    transform: translateX(-100%);
    transition: transform .18s ease;
    box-shadow: var(--fm-shadow-pop);
  }

  .fm-side-scroll {
    padding: .6rem .55rem 1.2rem;
    justify-content: flex-start;
  }

  .fm-topbar-burger {
    display: grid;
  }

  .fm-topbar {
    padding: 0 1rem;
  }

  body.fm-sidebar-off .fm-sidebar {
    width: min(84vw, 300px);
  }

  body.fm-sidebar-off .fm-side-logo {
    display: block;
  }

  body.fm-sidebar-off .fm-side-brand {
    justify-content: flex-start;
    padding: 0 .8rem;
  }

  body.fm-sidebar-off .fm-side-link,
  body.fm-sidebar-off .fm-side-group-toggle {
    justify-content: flex-start;
    gap: .6rem;
  }

  body.fm-sidebar-off .fm-side-link span,
  body.fm-sidebar-off .fm-side-group-toggle span,
  body.fm-sidebar-off .fm-side-caret {
    display: inline;
  }

  body.fm-sidebar-off .fm-side-link {
    font-size: .925rem;
  }

  body.fm-sidebar-off .fm-side-group {
    display: grid;
  }

  .fm-side-link,
  .fm-side-group-toggle {
    min-height: 44px;
    padding: .62rem .7rem;
    font-size: .925rem;
  }

  .fm-side-link.sub {
    min-height: 42px;
    padding: .58rem .7rem;
    font-size: .9rem;
  }

  .fm-side-nav + .fm-side-nav {
    margin-top: .35rem;
    padding-top: .35rem;
  }

  body.fm-sidebar-off .fm-sidebar {
    display: flex;
  }

  body.fm-sidebar-open .fm-sidebar {
    transform: none;
  }

  body.fm-sidebar-open {
    overflow: hidden;
  }

  body.fm-sidebar-open .fm-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(35, 38, 31, .35);
  }

  .fm-side-brand .fm-burger {
    display: none;
  }

  .fm-content {
    padding: .65rem 1rem 0;
  }

  .fm-crumb {
    display: none;
  }

  .fm-page-head {
    align-items: stretch;
    gap: .7rem;
    margin: .35rem 0 .9rem;
  }

  .fm-page-head > .btn,
  .fm-page-head > .d-flex,
  .fm-page-head > form {
    width: 100%;
  }

  .fm-page-head > .btn {
    justify-content: center;
  }

  .fm-page-head > .d-flex > .btn,
  .fm-page-head > .d-flex > a.btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.fm-impersonation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .45rem .8rem;
  background: var(--fm-warn-bg);
  color: var(--fm-warn);
  border-bottom: 1px solid var(--fm-line);
  font-weight: 600;
  font-size: .875rem;
}

.fm-setup-progress {
  margin-bottom: 1.2rem;
}

.fm-setup-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .45rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--fm-ink-2);
}

.fm-setup-percent {
  font-weight: 700;
  color: var(--fm-accent);
}

.fm-wizard-bar {
  height: .5rem;
  border-radius: 999px;
  background: var(--fm-fill);
  overflow: hidden;
}

.fm-wizard-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--fm-accent);
  transition: width .25s ease;
}

.fm-setup-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  align-items: start;
  gap: 1.2rem;
}

.fm-setup-steps {
  padding: .5rem;
  position: sticky;
  top: 1rem;
}

.fm-setup-step {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .7rem .8rem;
  border: none;
  border-radius: var(--fm-radius);
  background: none;
  text-align: start;
  font-size: 1rem;
  color: var(--fm-ink-2);
}

.fm-setup-step:hover {
  background: var(--fm-fill);
}

.fm-setup-step.current {
  background: var(--fm-accent-soft);
  color: var(--fm-ink);
  font-weight: 700;
}

.fm-setup-step.done {
  color: var(--fm-ink-2);
}

.fm-setup-step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--fm-fill);
  font-size: .85rem;
  font-weight: 700;
}

.fm-setup-step.current .fm-setup-step-mark {
  background: var(--fm-accent);
  color: #fff;
}

.fm-setup-step.done .fm-setup-step-mark {
  background: var(--fm-ok-bg);
  color: var(--fm-ok);
}

.fm-setup-main {
  padding: 1.6rem 1.8rem 1.8rem;
}

.fm-step h2 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.fm-step-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--fm-ink-2);
  margin-bottom: 1.4rem;
  max-width: 46rem;
}

.fm-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  max-width: 46rem;
}

.fm-step-wide {
  grid-column: 1 / -1;
}

.fm-step .form-label {
  font-size: 1rem;
  font-weight: 600;
}

.fm-step .form-control-lg,
.fm-step .form-select-lg {
  font-size: 1.05rem;
  min-height: 3rem;
}

.fm-step .btn-lg {
  min-height: 3rem;
  font-size: 1.02rem;
  padding-inline: 1.4rem;
}

.fm-step-hint {
  margin: .4rem 0 0;
  font-size: .95rem;
  color: var(--fm-ink-2);
}

.fm-step-added {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.fm-step-added li {
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--fm-ok-bg);
  color: var(--fm-ok);
  font-size: .95rem;
  font-weight: 600;
}

.fm-step-add {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  max-width: 46rem;
}

.fm-step-add .form-control-lg {
  flex: 1;
}

.fm-step-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.fm-step-skip {
  border: none;
  background: none;
  padding: .5rem .2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fm-ink-2);
  text-decoration: underline;
}

.fm-step-skip:hover {
  color: var(--fm-ink);
}

.fm-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  max-width: 46rem;
}

.fm-pick {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  font-size: 1.05rem;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  background: var(--fm-panel);
  cursor: pointer;
}

.fm-pick:hover {
  background: var(--fm-fill);
}

.fm-pick input {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  accent-color: var(--fm-accent);
}

.fm-step-done {
  padding: 1.5rem 0;
  text-align: center;
}

.fm-step-done .fm-step-foot {
  justify-content: center;
}

.fm-step-done .fm-step-lead {
  max-width: none;
}

.fm-step-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--fm-ok-bg);
  color: var(--fm-ok);
}

.fm-setup-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--fm-line);
  border-radius: var(--fm-radius-lg);
  background: var(--fm-panel);
}

.fm-setup-sample p {
  margin: .25rem 0 0;
  color: var(--fm-ink-2);
}

.fm-setup-sample-actions {
  display: flex;
  gap: .8rem;
}

.fm-setup-help {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 1rem;
}

.fm-setup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}

.fm-setup-next {
  margin: .9rem 0 1.2rem;
  font-size: 1.05rem;
  color: var(--fm-ink-2);
}

.fm-setup-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .fm-setup-layout {
    grid-template-columns: 1fr;
  }

  .fm-setup-steps {
    position: static;
    display: flex;
    flex-direction: row;
    gap: .4rem;
    overflow-x: auto;
    padding: .5rem;
    scrollbar-width: none;
  }

  .fm-setup-steps::-webkit-scrollbar {
    display: none;
  }

  .fm-setup-step {
    width: auto;
    flex: none;
    white-space: nowrap;
  }

  .fm-setup-main {
    padding: 1.2rem 1.1rem 1.4rem;
  }

  .fm-step-grid,
  .fm-picks {
    grid-template-columns: 1fr;
  }

  .fm-step-add {
    flex-direction: column;
  }

  .fm-step-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .fm-setup-sample,
  .fm-setup-sample-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.fm-missing.form-control,
.fm-missing.form-select {
  border-color: var(--fm-danger);
  background: var(--fm-danger-bg);
}

.fm-missing .fm-picker-value,
.fm-missing .fm-range-trigger {
  border-color: var(--fm-danger);
  background: var(--fm-danger-bg);
}

.fm-field-error {
  margin: .3rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fm-danger);
}

.fm-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}

.fm-chart-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 2px;
  vertical-align: baseline;
}

.fm-line-number {
  min-width: 5rem;
}
