/* =========================================================
   Шаблон «Bootstrap Grid» — альтернативная сетка.
   Все правила изолированы body.template-bootstrap.
   Bootstrap 5.3.3 загружается локально только для этого шаблона.
   ========================================================= */

body.template-bootstrap {
  --bs-primary: var(--terracotta);
  --bs-primary-rgb: 166, 95, 73;
  --bs-primary-soft: var(--bs-primary-soft);
  --bs-link-color: var(--terracotta-deep);
  --bs-link-hover-color: #743d2d;
  --bs-body-bg: #f3f4f6;
  --bs-body-color: #25282c;
  --bs-border-color: #e3e6ea;
  --bs-border-radius: 0.6rem;
  background: #f3f4f6 !important;
  color: #25282c;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.template-bootstrap .ambient,
body.template-bootstrap .app-noise,
body.template-bootstrap .auth-orb {
  display: none !important;
}

body.template-bootstrap :focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.55);
  outline-offset: 2px;
  box-shadow: none;
}

body.template-bootstrap .icon {
  stroke-width: 1.7;
}

/* ---------- Bootstrap shell ---------- */

.bs-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
}

.bs-navbar {
  min-height: 64px;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e5e8eb;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  z-index: 1030;
}

.bs-navbar .container-xxl {
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .bs-navbar .container-xxl {
    flex-wrap: nowrap;
  }
}

.bs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 0.35rem;
  padding: 0;
  color: #25282c;
}

.bs-brand .logo-mark {
  width: 35px;
  height: 35px;
  filter: none;
}

.bs-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.bs-brand__text strong {
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bs-brand__text small {
  color: #8a9099;
  font-size: 0.64rem;
  font-weight: 500;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-navbar .navbar-nav {
  gap: 0.1rem;
}

.bs-navbar .navbar-nav .nav-item {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.bs-navbar .navbar-nav .nav-item::before {
  display: none;
}

.bs-navbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0.4rem 0.65rem;
  border-radius: 0.45rem;
  color: #555d66;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.2;
  transition: background-color 0.16s, color 0.16s;
}

.bs-navbar .navbar-nav .nav-link i {
  font-size: 0.9rem;
  color: #7f8790;
}

.bs-navbar .navbar-nav .nav-link:hover,
.bs-navbar .navbar-nav .nav-link:focus {
  color: #25282c;
  background: #f2f3f5;
}

.bs-navbar .navbar-nav .nav-link.active {
  color: var(--terracotta-deep);
  background: rgba(var(--bs-primary-rgb), 0.1);
}

.bs-navbar .navbar-nav .nav-link.active i {
  color: var(--terracotta);
}

.bs-navbar .dropdown-menu {
  border-color: #e5e8eb;
  border-radius: 0.65rem;
  padding: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.template-bootstrap .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 33px;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  color: #4b5259;
  font-size: 0.8rem;
}

.template-bootstrap .dropdown-item:hover,
.template-bootstrap .dropdown-item:focus {
  color: #25282c;
  background: #f3f4f6;
}

.template-bootstrap .dropdown-item.active {
  color: var(--terracotta-deep);
  background: rgba(var(--bs-primary-rgb), 0.1);
}

.template-bootstrap .dropdown-item svg {
  color: #7d858e;
  flex-shrink: 0;
}

.template-bootstrap .dropdown-item .badge {
  margin-left: auto;
}

.template-bootstrap .dropdown-divider {
  margin: 0.3rem 0;
  border-color: #e9ecef;
}

.bs-dropdown-user {
  max-width: 260px;
}

.bs-dropdown-user .min-w-0 {
  min-width: 0;
}

.bs-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid #e2e5e9;
  border-radius: 0.5rem;
  color: #555d66;
  background: #fff;
  font-size: 0.76rem;
  box-shadow: none;
}

.bs-top-icon:hover {
  background: #f5f6f8;
  color: var(--terracotta-deep);
  border-color: #d9dde2;
}

.bs-top-icon .badge {
  font-size: 0.56rem;
  padding: 0.2em 0.42em;
}

body.template-bootstrap .notification-count {
  border-color: #fff;
  background: var(--terracotta);
}

.bs-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.22rem 0.55rem 0.22rem 0.25rem;
  border: 1px solid #e2e5e9;
  border-radius: 0.52rem;
  background: #fff;
  color: #3d4248;
  font-size: 0.75rem;
  box-shadow: none;
}

.bs-user-toggle strong {
  font-size: 0.75rem;
  font-weight: 600;
}

.bs-user-toggle small {
  font-size: 0.63rem;
  color: #8a9099 !important;
}

.bs-user-toggle:hover {
  background: #f7f8fa;
  border-color: #d9dde2;
}

.template-bootstrap .navbar-toggler {
  width: 38px;
  height: 37px;
  padding: 0;
  border: 1px solid #e2e5e9;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: none;
}

.template-bootstrap .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.16);
}

.template-bootstrap .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23555d66' stroke-width='2' stroke-linecap='round' d='M5 9h20M5 15h20M5 21h20'/%3E%3C/svg%3E");
}

.bs-subbar {
  background: #fff;
  border-bottom: 1px solid #e7eaed;
  padding: 0.52rem 0;
  color: #6c757d;
}

.bs-subbar__caption {
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.bs-subbar strong {
  font-size: 0.75rem;
  color: #3d4248;
  font-weight: 600;
}

.bs-subbar .live-dot {
  width: 6px;
  height: 6px;
}

.bs-main {
  flex: 1;
  padding-top: 1.65rem;
  padding-bottom: 2.6rem;
}

.bs-footer {
  border-top: 1px solid #e5e8eb;
  background: #fff;
  color: #8a9099;
  padding: 0.9rem 0;
  font-size: 0.66rem;
}

body.template-bootstrap .page-header {
  margin-bottom: 1.3rem;
  align-items: flex-start;
}

body.template-bootstrap .page-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.template-bootstrap .page-header__subtitle {
  font-size: 0.79rem;
  color: #737b84;
  max-width: 720px;
}

body.template-bootstrap .eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  color: #8a9099;
}

body.template-bootstrap .back-link {
  color: #78818b;
  font-size: 0.72rem;
}

body.template-bootstrap .back-link:hover {
  color: var(--terracotta);
}

/* ---------- Surfaces and typography ---------- */

body.template-bootstrap .glass-card,
body.template-bootstrap .glass-panel,
body.template-bootstrap .panel {
  background: #fff;
  border: 1px solid #e5e8eb;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.template-bootstrap .glass-card {
  border-radius: 0.8rem;
}

body.template-bootstrap .glass-card--liquid::before,
body.template-bootstrap .glass-card--liquid::after {
  display: none;
}

body.template-bootstrap .panel {
  padding: 1.2rem;
}

body.template-bootstrap .section-heading {
  margin-bottom: 0.9rem;
}

body.template-bootstrap .section-heading h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.template-bootstrap .section-heading p {
  font-size: 0.7rem;
  color: #7c848d;
}

body.template-bootstrap .text-link {
  color: var(--terracotta);
  font-size: 0.72rem;
}

body.template-bootstrap .text-link:hover {
  color: var(--terracotta-deep);
}

/* ---------- Buttons ---------- */

body.template-bootstrap .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 37px;
  padding: 0.42rem 0.78rem;
  border: 1px solid #dfe3e8;
  border-radius: 0.5rem;
  color: #3f464d;
  background: #fff;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.2;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}

body.template-bootstrap .btn:hover {
  background: #f6f7f9;
  border-color: #d5dae0;
  color: #25282c;
  transform: none;
}

body.template-bootstrap .btn--primary {
  color: #fff;
  border-color: var(--terracotta);
  background: var(--terracotta);
}

body.template-bootstrap .btn--primary:hover {
  color: #fff;
  border-color: var(--terracotta-deep);
  background: var(--terracotta-deep);
}

body.template-bootstrap .btn--glass {
  color: #3f464d;
  border-color: #dfe3e8;
  background: #fff;
  box-shadow: none;
}

body.template-bootstrap .btn--glass:hover {
  background: #f6f7f9;
}

body.template-bootstrap .btn--ghost {
  color: #5c646d;
  border-color: #e5e8eb;
  background: transparent;
}

body.template-bootstrap .btn--ghost:hover {
  color: #25282c;
  background: #f3f4f6;
}

body.template-bootstrap .btn--danger {
  color: #fff;
  border-color: #b05243;
  background: #b05243;
}

body.template-bootstrap .btn--danger-ghost {
  color: #a54a3e;
  border-color: #efd8d4;
  background: #fdf4f2;
}

body.template-bootstrap .btn--danger-ghost:hover {
  background: #fae9e6;
}

body.template-bootstrap .btn--sm {
  min-height: 32px;
  padding: 0.32rem 0.6rem;
  border-radius: 0.42rem;
  font-size: 0.7rem;
}

body.template-bootstrap .btn--lg {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
}

body.template-bootstrap .btn__count {
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
}

body.template-bootstrap .bs-top-icon {
  width: auto;
  min-width: 37px;
  min-height: 37px;
  padding: 0 0.55rem;
  gap: 0.35rem;
}

body.template-bootstrap .bs-top-icon .badge.text-bg-success {
  color: #fff;
  background: #5f7d5b;
}

body.template-bootstrap .bs-user-toggle {
  min-height: 38px;
  padding: 0.22rem 0.55rem 0.22rem 0.25rem;
  gap: 0.45rem;
  font-size: 0.75rem;
}

body.template-bootstrap .dropdown-item .badge.text-bg-danger {
  color: #fff;
  background: #a54a3e;
}

body.template-bootstrap .nav-link .badge.text-bg-light {
  color: #59616a;
  background: #edf0f2;
}

body.template-bootstrap .icon-btn {
  width: 33px;
  height: 33px;
  border: 1px solid #e5e8eb;
  border-radius: 0.45rem;
  background: #fff;
  color: #656d76;
}

body.template-bootstrap .icon-btn:hover {
  color: var(--terracotta);
  background: #f7f8fa;
  transform: none;
}

body.template-bootstrap .icon-btn--sm {
  width: 28px;
  height: 28px;
}

/* ---------- Badges ---------- */

body.template-bootstrap .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.3em 0.58em;
  border: 1px solid transparent;
  border-radius: 50rem;
  color: #525a63;
  background: #f1f3f5;
  font-size: 0.65rem;
  font-weight: 550;
  line-height: 1.1;
  vertical-align: middle;
}

body.template-bootstrap .badge--neutral { color: #59616a; background: #f1f3f5; border-color: #e7eaed; }
body.template-bootstrap .badge--terracotta { color: #8d4f3b; background: #fbefeb; border-color: #f1ddd6; }
body.template-bootstrap .badge--sage { color: #5f765b; background: #eef3ec; border-color: #dfe9db; }
body.template-bootstrap .badge--teal { color: #4f7772; background: #ebf3f1; border-color: #d9e8e4; }
body.template-bootstrap .badge--amber { color: #8a642d; background: #fbf5e9; border-color: #f2e6cd; }
body.template-bootstrap .badge--orange { color: #9c5935; background: #fdf2ec; border-color: #f3dfd3; }
body.template-bootstrap .badge--red { color: #a34b3e; background: #fdf1ef; border-color: #f1d9d4; }
body.template-bootstrap .badge--green { color: #5f7d5b; background: #eef5ec; border-color: #dce9d8; }
body.template-bootstrap .badge--gold { color: #84642f; background: #fbf4e7; border-color: #efe2c8; }
body.template-bootstrap .badge--graphite { color: #4c5259; background: #f0f2f4; border-color: #e5e8eb; }
body.template-bootstrap .badge--slate { color: #66727e; background: #eff2f5; }
body.template-bootstrap .badge--sand { color: #80613c; background: #f8f1e7; }
body.template-bootstrap .badge--group { color: #59616a; background: #f4f6f8; border-color: #e7eaed; }

body.template-bootstrap .badge__dot {
  width: 0.38rem;
  height: 0.38rem;
  box-shadow: none;
}

body.template-bootstrap .you-tag {
  color: var(--terracotta);
  background: #fbefeb;
}

/* ---------- Forms ---------- */

body.template-bootstrap .field__label {
  color: #515961;
  font-size: 0.7rem;
  font-weight: 600;
}

body.template-bootstrap .field__control {
  min-height: 40px;
  padding: 0 0.7rem;
  border: 1px solid #d9dee4;
  border-radius: 0.48rem;
  background: #fff;
  box-shadow: none;
  color: #858e97;
}

body.template-bootstrap .field__control:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: #fff;
  box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.12);
}

body.template-bootstrap .field__input {
  color: #25282c;
  font-size: 0.78rem;
}

body.template-bootstrap .field__input::placeholder {
  color: #98a1aa;
}

body.template-bootstrap select.field__input {
  background-color: #fff;
}

body.template-bootstrap .field__input--compact {
  min-height: 38px;
  border-color: #d9dee4;
  border-radius: 0.46rem;
  background-color: #fff;
}

body.template-bootstrap .field__hint {
  color: #8a929b;
  font-size: 0.63rem;
}

body.template-bootstrap .field__action {
  color: #8a929b;
}

body.template-bootstrap .field__action:hover {
  color: var(--terracotta);
  background: #f5f6f8;
}

body.template-bootstrap .search-box {
  min-height: 39px;
  border: 1px solid #d9dee4;
  border-radius: 0.48rem;
  background: #fff;
  box-shadow: none;
  color: #8a929b;
}

body.template-bootstrap .search-box:focus-within {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: #fff;
  box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.12);
}

body.template-bootstrap .search-box input {
  font-size: 0.78rem;
}

body.template-bootstrap .segmented {
  border: 1px solid #e5e8eb;
  border-radius: 0.48rem;
  background: #f3f4f6;
  padding: 0.16rem;
}

body.template-bootstrap .segmented__item {
  min-height: 31px;
  border-radius: 0.36rem;
  color: #69727b;
  font-size: 0.7rem;
}

body.template-bootstrap .segmented__item.is-active {
  color: #25282c;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

body.template-bootstrap .filter-chip {
  min-height: 30px;
  border: 1px solid #e5e8eb;
  border-radius: 0.42rem;
  background: #fff;
  color: #69727b;
  font-size: 0.68rem;
}

body.template-bootstrap .filter-chip.is-active {
  color: #8d4f3b;
  background: #fbefeb;
  border-color: #ecd6ce;
  box-shadow: none;
}

body.template-bootstrap .switch-inline {
  font-size: 0.7rem;
  color: #69727b;
}

body.template-bootstrap .switch-inline__track {
  background: #dfe3e8;
  box-shadow: none;
}

body.template-bootstrap .switch-inline input:checked + .switch-inline__track {
  background: var(--terracotta);
}

body.template-bootstrap .check-row {
  color: #5e666f;
  font-size: 0.72rem;
}

body.template-bootstrap .form-notice,
body.template-bootstrap .form-error {
  border-radius: 0.45rem;
  font-size: 0.7rem;
}

/* ---------- Common page blocks ---------- */

body.template-bootstrap .stats-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

body.template-bootstrap .stats-grid > .stat-card {
  grid-column: span 3;
}

body.template-bootstrap .stat-card {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid #e5e8eb;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  backdrop-filter: none;
}

body.template-bootstrap .stat-card__icon {
  width: 30px;
  height: 30px;
  border: 1px solid #f0e2dc;
  border-radius: 0.45rem;
  background: #fbf3ef;
  color: var(--terracotta);
  box-shadow: none;
}

body.template-bootstrap .stat-card__value {
  margin: 0.65rem 0 0.3rem;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

body.template-bootstrap .stat-card__label {
  color: #646d76;
  font-size: 0.7rem;
}

body.template-bootstrap .stat-card__hint {
  color: #98a1aa;
  font-size: 0.62rem;
}

body.template-bootstrap .privacy-note,
body.template-bootstrap .catalog-footnote,
body.template-bootstrap .requests-footnote,
body.template-bootstrap .admin-note {
  color: #8b939c;
  font-size: 0.66rem;
}

body.template-bootstrap .admin-note {
  border: 1px solid #e5e8eb;
  background: #fff;
}

body.template-bootstrap .alert-banner {
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.74rem;
}

body.template-bootstrap .alert-banner--red {
  border-color: #f1d9d4;
  background: #fdf3f1;
}

body.template-bootstrap .alert-banner__icon {
  width: 30px;
  height: 30px;
  border-radius: 0.4rem;
  background: #fff;
}

body.template-bootstrap .alert-banner strong {
  font-size: 0.75rem;
}

body.template-bootstrap .alert-banner span {
  font-size: 0.66rem;
}

body.template-bootstrap .empty-state {
  padding: 2rem 1rem;
  min-height: 160px;
}

body.template-bootstrap .empty-state__icon {
  width: 46px;
  height: 46px;
  border: 1px solid #eceff2;
  border-radius: 0.7rem;
  background: #f8f9fa;
  box-shadow: none;
  color: var(--terracotta);
}

body.template-bootstrap .empty-state h3 {
  font-size: 0.88rem;
}

body.template-bootstrap .empty-state p {
  font-size: 0.72rem;
  color: #7e8790;
}

/* ---------- Dashboard ---------- */

body.template-bootstrap .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  min-height: 230px;
  padding: 2rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e5e8eb;
  background:
    linear-gradient(112deg, #fff 0%, #fff 63%, #fbf5f1 100%);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

body.template-bootstrap .hero-card__blob,
body.template-bootstrap .hero-orbit {
  display: none;
}

body.template-bootstrap .hero-card__eyebrow {
  color: #8a929b;
  font-size: 0.62rem;
  margin-bottom: 0.8rem;
}

body.template-bootstrap .hero-card h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.045em;
}

body.template-bootstrap .hero-card h1 em {
  color: var(--terracotta);
  font-style: normal;
}

body.template-bootstrap .hero-card__headline {
  margin-top: 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #5e666f;
}

body.template-bootstrap .hero-card__content p {
  margin-top: 0.45rem;
  max-width: 620px;
  font-size: 0.76rem;
  color: #7e8790;
}

body.template-bootstrap .hero-card__actions {
  margin-top: 1.2rem;
  gap: 0.5rem;
}

body.template-bootstrap .hero-mini {
  width: 100%;
  border: 1px solid #eee5e0;
  border-radius: 0.65rem;
  background: #fff;
  transform: none;
  box-shadow: none;
}

body.template-bootstrap .hero-mini__top {
  color: #8a929b;
  font-size: 0.6rem;
}

body.template-bootstrap .hero-mini strong {
  font-size: 0.9rem;
}

body.template-bootstrap .hero-mini__meta {
  color: #7e8790;
  font-size: 0.68rem;
}

body.template-bootstrap .hero-signature {
  color: #8a929b;
  font-size: 0.63rem;
}

body.template-bootstrap .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

body.template-bootstrap .dashboard-grid > .focus-panel { grid-column: span 8; }
body.template-bootstrap .dashboard-grid > .live-panel { grid-column: span 4; }
body.template-bootstrap .dashboard-grid > .leaderboard-card { grid-column: span 5; }
body.template-bootstrap .dashboard-grid > .quick-panel { grid-column: span 7; }

body.template-bootstrap .focus-row {
  border-radius: 0.45rem;
  padding: 0.55rem;
}

body.template-bootstrap .focus-row:hover {
  background: #f7f8fa;
  transform: none;
}

body.template-bootstrap .focus-row__art {
  border-radius: 0.4rem;
}

body.template-bootstrap .focus-row__copy strong {
  font-size: 0.75rem;
}

body.template-bootstrap .focus-row__copy span {
  font-size: 0.66rem;
}

body.template-bootstrap .online-strip .avatar {
  border-color: #fff;
}

body.template-bootstrap .live-panel__head h2 {
  font-size: 1rem;
}

body.template-bootstrap .activity-row__icon {
  border: 1px solid #edf0f2;
  border-radius: 0.4rem;
  background: #f8f9fa;
}

body.template-bootstrap .activity-row__copy p {
  font-size: 0.7rem;
}

body.template-bootstrap .activity-row__copy > span {
  font-size: 0.64rem;
}

body.template-bootstrap .activity-row__copy small {
  font-size: 0.58rem;
}

body.template-bootstrap .podium-row {
  border-radius: 0.45rem;
  padding: 0.45rem;
}

body.template-bootstrap .podium-row.is-me {
  background: #fbf3ef;
}

body.template-bootstrap .star-banner {
  border-color: #efe4d4;
  border-radius: 0.5rem;
  background: #fcf8ef;
}

body.template-bootstrap .quick-tile {
  border: 1px solid #e8ebee;
  border-radius: 0.55rem;
  background: #fff;
}

body.template-bootstrap .quick-tile:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
}

body.template-bootstrap .quick-tile > span {
  background: #fbf3ef;
  color: var(--terracotta);
}

body.template-bootstrap .score-ring {
  background: conic-gradient(var(--score-color, var(--terracotta)) calc(var(--score, 0) * 1%), #edf0f2 0);
  box-shadow: none;
}

body.template-bootstrap .score-ring::before {
  background: #fff;
  box-shadow: none;
}

body.template-bootstrap .mobile-only {
  display: none;
}

/* ---------- Catalog: filters rail + 12-column content ---------- */

body.template-bootstrap .catalog-page {
  display: grid;
  grid-template-columns: minmax(220px, 2.7fr) minmax(0, 9.3fr);
  gap: 1rem 1.35rem;
  align-items: start;
}

body.template-bootstrap .catalog-page > .page-header {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}

body.template-bootstrap .catalog-page > .filter-bar {
  grid-column: 1;
  grid-row: 2 / span 5;
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #fff;
}

body.template-bootstrap .catalog-page > .catalog-toolbar,
body.template-bootstrap .catalog-page > .role-filter-note,
body.template-bootstrap .catalog-page > .catalog-grid,
body.template-bootstrap .catalog-page > .catalog-footnote {
  grid-column: 2;
}

body.template-bootstrap .catalog-page > .catalog-toolbar {
  margin-bottom: 0;
}

body.template-bootstrap .catalog-page .filter-bar .search-box {
  width: 100%;
  flex-basis: auto;
}

body.template-bootstrap .catalog-page .filter-bar .segmented {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

body.template-bootstrap .catalog-page > .filter-bar > .field__input--compact {
  width: 100%;
  min-width: 0;
  flex-basis: auto;
}

body.template-bootstrap .catalog-page .filter-bar .segmented__item {
  justify-content: flex-start;
  width: 100%;
}

body.template-bootstrap .catalog-page .filter-bar .chip-row {
  flex-direction: column;
  align-items: stretch;
}

body.template-bootstrap .filter-bar__groups {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid #eef0f2;
}

body.template-bootstrap .filter-bar__caption {
  color: #8a929b;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.template-bootstrap .catalog-page .filter-bar .filter-chip {
  justify-content: flex-start;
  width: 100%;
}

body.template-bootstrap .catalog-page .catalog-toolbar {
  flex-direction: row;
  align-items: center;
}

body.template-bootstrap .catalog-page .catalog-toolbar .chip-row {
  display: none;
}

body.template-bootstrap .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.template-bootstrap .catalog-card {
  border: 1px solid #e5e8eb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

body.template-bootstrap .catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

body.template-bootstrap .catalog-card__art {
  height: 122px;
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--group-color) 15%, transparent), transparent 52%),
    #f7f8fa;
  border-bottom: 1px solid #eceff2;
}

body.template-bootstrap .catalog-card__art::before,
body.template-bootstrap .catalog-card__art::after,
body.template-bootstrap .catalog-card__glow {
  display: none;
}

body.template-bootstrap .catalog-card__icon {
  filter: none;
}

body.template-bootstrap .catalog-card__body {
  padding: 0.9rem;
}

body.template-bootstrap .catalog-card__group {
  color: #8a929b;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

body.template-bootstrap .catalog-card h3 {
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

body.template-bootstrap .catalog-card__specs {
  font-size: 0.66rem;
  min-height: 25px;
}

body.template-bootstrap .catalog-card__warehouse {
  border-color: #e8ebee;
  background: #f8f9fa;
  color: #5e6771;
  font-size: 0.62rem;
}

body.template-bootstrap .catalog-card__warehouse svg {
  color: var(--terracotta);
}

body.template-bootstrap .catalog-card__barcode {
  color: #969ea7;
  font-size: 0.62rem;
}

body.template-bootstrap .warehouses-modal {
  gap: 0.8rem;
}

body.template-bootstrap .warehouse-admin-summary span {
  border-color: #e5e7eb;
  background: #f8f9fa;
  font-size: 0.65rem;
}

body.template-bootstrap .warehouse-admin-row {
  border-color: #e7eaee;
  background: #fff;
}

body.template-bootstrap .warehouse-admin-row__icon {
  background: var(--bs-primary-soft);
  color: var(--terracotta-deep);
}

body.template-bootstrap .warehouse-admin-row__copy strong {
  font-size: 0.76rem;
}

body.template-bootstrap .warehouse-admin-row__copy span {
  font-size: 0.65rem;
}

body.template-bootstrap .warehouse-admin-row__copy small {
  font-size: 0.62rem;
}

body.template-bootstrap .mini-tag {
  background: var(--bs-primary-soft);
  color: var(--terracotta-deep);
  font-size: 0.55rem;
}

body.template-bootstrap .catalog-card__status {
  margin: 0.55rem 0;
  padding-top: 0.55rem;
  border-color: #eef0f2;
}

body.template-bootstrap .availability {
  font-size: 0.66rem;
}

body.template-bootstrap .availability.is-in {
  color: #5e7d5a;
}

body.template-bootstrap .availability.is-out {
  color: #a54a3e;
}

body.template-bootstrap .catalog-card__inventory {
  color: #969ea7;
  font-size: 0.58rem;
}

body.template-bootstrap .catalog-card__actions .btn {
  flex: 1;
}

body.template-bootstrap .catalog-page .catalog-toolbar__meta {
  color: #8a929b;
  font-size: 0.68rem;
}

body.template-bootstrap .role-filter-note {
  border-radius: 0.45rem;
  margin-bottom: 0;
  background: #f5f7f8;
  color: #68727c;
  border: 1px solid #e8ebee;
  font-size: 0.68rem;
}

/* ---------- Cabinet ---------- */

body.template-bootstrap .profile-band {
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  padding: 1.15rem;
  margin-bottom: 0.9rem;
  border-radius: 0.8rem;
}

body.template-bootstrap .profile-band__identity .avatar {
  --avatar-size: 58px !important;
}

body.template-bootstrap .profile-band__identity h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.template-bootstrap .profile-band__identity p {
  font-size: 0.7rem;
}

body.template-bootstrap .cabinet-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

body.template-bootstrap .cabinet-tab {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5e8eb;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: none;
}

body.template-bootstrap .cabinet-tab:hover {
  transform: none;
  border-color: #d8dde2;
}

body.template-bootstrap .cabinet-tab.is-active {
  border-color: #e5c8bd;
  background: #fbf3ef;
  box-shadow: none;
}

body.template-bootstrap .cabinet-tab__icon {
  width: 30px;
  height: 30px;
  border-radius: 0.4rem;
  background: #f4f5f7;
  color: var(--terracotta);
}

body.template-bootstrap .cabinet-tab__copy strong {
  font-size: 0.76rem;
}

body.template-bootstrap .cabinet-tab__copy small {
  font-size: 0.64rem;
}

body.template-bootstrap .cabinet-tab__mark {
  background: var(--terracotta);
}

body.template-bootstrap .cabinet-content__head h2 {
  font-size: 1.02rem;
}

body.template-bootstrap .cabinet-content__head p {
  font-size: 0.72rem;
}

body.template-bootstrap .holdings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body.template-bootstrap .holding-card {
  border-radius: 0.7rem;
  min-height: 170px;
}

body.template-bootstrap .holding-card__art {
  width: 78px;
  background: #f7f8fa;
  border-color: #eef0f2;
}

body.template-bootstrap .holding-card__category {
  display: none;
}

body.template-bootstrap .holding-card__body {
  padding: 0.8rem;
}

body.template-bootstrap .holding-card h3 {
  font-size: 0.82rem;
}

body.template-bootstrap .holding-card__meta {
  font-size: 0.63rem;
}

body.template-bootstrap .holding-card__foot {
  border-top: 1px solid #f0f2f4;
  margin-top: 0.55rem;
}

body.template-bootstrap .due-line {
  border-radius: 0.4rem;
  font-size: 0.68rem;
}

body.template-bootstrap .cabinet-note {
  border-radius: 0.45rem;
  background: #f7f8fa;
  border-color: #e8ebee;
  color: #707982;
  font-size: 0.68rem;
}

/* ---------- Requests ---------- */

body.template-bootstrap .queue-strip {
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

body.template-bootstrap .queue-strip__item {
  border: 1px solid #e5e8eb;
  border-radius: 0.55rem;
  background: #fff;
  padding: 0.7rem;
}

body.template-bootstrap .queue-strip__item > span {
  background: #f4f5f7;
  border-radius: 0.4rem;
}

body.template-bootstrap .requests-toolbar {
  border-radius: 0.6rem;
  padding: 0.6rem;
  margin-bottom: 1rem;
}

body.template-bootstrap .request-card {
  border-radius: 0.7rem;
}

body.template-bootstrap .request-card__rail {
  width: 58px;
  background: #f7f8fa;
  border-right-color: #eef0f2;
}

body.template-bootstrap .request-card__rail .badge {
  display: none;
}

body.template-bootstrap .request-card__mobile-status {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.15rem;
}

body.template-bootstrap .request-card__body {
  padding: 0.85rem;
}

body.template-bootstrap .request-card__title h3 {
  font-size: 0.86rem;
}

body.template-bootstrap .request-card__number {
  color: #969ea7;
  font-size: 0.6rem;
}

body.template-bootstrap .request-card__note {
  border-radius: 0.35rem;
  background: #f7f8fa;
  font-size: 0.67rem;
}

body.template-bootstrap .request-card__foot {
  border-color: #eef0f2;
}

body.template-bootstrap .request-card__dates {
  color: #969ea7;
  font-size: 0.6rem;
}

body.template-bootstrap .request-card__actions .btn {
  font-size: 0.68rem;
}

body.template-bootstrap .requests-filters {
  gap: 0.25rem;
}

body.template-bootstrap .queue-strip__item.is-alert {
  border-color: #f1d9d4;
  background: #fdf3f1;
}

/* ---------- Ratings ---------- */

body.template-bootstrap .rating-hero {
  grid-template-columns: minmax(0, 8fr) 160px minmax(170px, 3fr);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: #fff;
}

body.template-bootstrap .rating-hero__glow {
  display: none;
}

body.template-bootstrap .rating-hero__copy h2 {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

body.template-bootstrap .rating-hero__copy p {
  font-size: 0.73rem;
  color: #7e8790;
}

body.template-bootstrap .rating-hero__me {
  border: 1px solid #eef0f2;
  border-radius: 0.6rem;
  background: #f8f9fa;
}

body.template-bootstrap .star-big svg {
  fill: rgba(179, 138, 79, 0.12);
  filter: none;
}

body.template-bootstrap .star-halo {
  border-color: #f0e5d4;
}

body.template-bootstrap .rating-layout {
  grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

body.template-bootstrap .podium-full {
  min-height: 220px;
}

body.template-bootstrap .podium-place {
  border-radius: 0.55rem;
  background: #f8f9fa;
  border-color: #e9ecef;
}

body.template-bootstrap .podium-place--1 {
  border-color: #eadcc1;
  background: #fcf8ef;
  box-shadow: none;
}

body.template-bootstrap .formula-visual div {
  border: 1px solid #eef0f2;
  background: #f8f9fa;
}

body.template-bootstrap .formula-note {
  border-radius: 0.45rem;
  background: #f7f8fa;
  border-color: #e8ebee;
  font-size: 0.67rem;
}

body.template-bootstrap .leaderboard-entry {
  border-radius: 0.45rem;
  padding: 0.5rem;
}

body.template-bootstrap .leaderboard-entry:hover {
  background: #f7f8fa;
}

body.template-bootstrap .leaderboard-entry.is-me {
  background: #fbf3ef;
}

body.template-bootstrap .leaderboard-entry__person strong {
  font-size: 0.72rem;
}

body.template-bootstrap .leaderboard-entry__person span {
  font-size: 0.63rem;
}

body.template-bootstrap .star-history__row {
  border-radius: 0.4rem;
  background: #f8f9fa;
}

body.template-bootstrap .rating-lower-grid {
  gap: 1rem;
}

/* ---------- People ---------- */

body.template-bootstrap .people-tabs,
body.template-bootstrap .settings-tabs {
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid #e5e8eb;
  padding: 0.24rem;
  box-shadow: none;
}

body.template-bootstrap .people-tab {
  border-radius: 0.4rem;
  color: #6b747d;
  font-size: 0.72rem;
}

body.template-bootstrap .people-tab.is-active {
  color: #8d4f3b;
  background: #fbefeb;
  box-shadow: none;
}

body.template-bootstrap .people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

body.template-bootstrap .person-card {
  border-radius: 0.65rem;
}

body.template-bootstrap .person-card:hover {
  transform: none;
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.07);
}

body.template-bootstrap .person-card__link {
  padding: 0.8rem;
}

body.template-bootstrap .person-card__identity h3 {
  font-size: 0.78rem;
}

body.template-bootstrap .person-card__identity span {
  font-size: 0.64rem;
}

body.template-bootstrap .person-card__meta {
  font-size: 0.62rem;
}

body.template-bootstrap .person-card__stats span {
  font-size: 0.58rem;
}

body.template-bootstrap .person-card__stats strong {
  font-size: 0.72rem;
}

body.template-bootstrap .org-node__card {
  border-radius: 0.55rem;
}

body.template-bootstrap .org-node__children-list {
  border-left-color: #e9ecef;
}

body.template-bootstrap .position-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.template-bootstrap .position-card {
  border-radius: 0.55rem;
}

body.template-bootstrap .employee-hero {
  grid-template-columns: minmax(0, 8fr) minmax(220px, 3fr) auto;
  padding: 1.2rem;
  border-radius: 0.8rem;
}

body.template-bootstrap .employee-hero__identity h1 {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

body.template-bootstrap .employee-layout {
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: 1rem;
}

body.template-bootstrap .employee-main-column {
  gap: 1rem;
}

body.template-bootstrap .employee-equipment,
body.template-bootstrap .employee-history {
  padding: 1.2rem;
}

body.template-bootstrap .employee-equipment-row {
  border: 1px solid transparent;
  border-radius: 0.45rem;
}

body.template-bootstrap .employee-equipment-row.is-checked {
  background: #f1f6ef;
  border-color: #e0eadd;
}

body.template-bootstrap .dismissal-panel {
  border: 1px solid #f0d9d4;
  border-radius: 0.65rem;
  padding: 1rem;
  background: #fefaf9;
}

body.template-bootstrap .role-check {
  border: 1px solid #e7eaed;
  border-radius: 0.45rem;
  background: #fff;
}

body.template-bootstrap .role-check.is-checked {
  border-color: #ecd6ce;
  background: #fbf5f2;
}

body.template-bootstrap .role-check__mark {
  border-radius: 0.25rem;
  background: #fff;
}

body.template-bootstrap .role-check.is-checked .role-check__mark {
  background: var(--terracotta);
}

body.template-bootstrap .action-row {
  border-radius: 0.45rem;
}

body.template-bootstrap .action-row:hover {
  background: #f7f8fa;
}

/* ---------- Items ---------- */

body.template-bootstrap .item-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

body.template-bootstrap .items-filter {
  border-radius: 0.6rem;
}

body.template-bootstrap .table-panel {
  border-radius: 0.7rem;
}

body.template-bootstrap .data-table {
  font-size: 0.7rem;
}

body.template-bootstrap .data-table th {
  padding: 0.6rem 0.7rem;
  border-bottom-color: #e9ecef;
  background: #f8f9fa;
  color: #7e8790;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

body.template-bootstrap .data-table td {
  padding: 0.55rem 0.7rem;
  border-bottom-color: #eef0f2;
}

body.template-bootstrap .data-table tbody tr:hover {
  background: #fbfcfd;
}

body.template-bootstrap .table-item strong {
  font-size: 0.7rem;
}

body.template-bootstrap .table-item span {
  font-size: 0.6rem;
}

body.template-bootstrap .table-item__icon {
  border-radius: 0.35rem;
}

/* ---------- Roles ---------- */

body.template-bootstrap .roles-intro {
  border-radius: 0.6rem;
  background: #fff;
  border: 1px solid #e5e8eb;
  padding: 0.9rem;
}

body.template-bootstrap .roles-intro__icon {
  border-radius: 0.45rem;
  background: #fbf3ef;
}

body.template-bootstrap .roles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.template-bootstrap .role-card {
  padding: 1rem;
  border-radius: 0.7rem;
}

body.template-bootstrap .role-card--admin {
  border-color: #ecd6ce;
  background: #fff;
}

body.template-bootstrap .role-card__icon {
  background: #f8f9fa;
  border-radius: 0.45rem;
}

body.template-bootstrap .permission-chip {
  background: #f8f9fa;
  border-color: #e9ecef;
  border-radius: 0.28rem;
  font-size: 0.58rem;
}

body.template-bootstrap .group-check {
  border-radius: 0.3rem;
  background: #fff;
}

body.template-bootstrap .group-check.is-checked {
  background: #fbf3ef;
  border-color: #ecd6ce;
}

body.template-bootstrap .role-card__users {
  border-top-color: #eef0f2;
}

/* ---------- Settings: vertical tabs + content ---------- */

body.template-bootstrap .settings-page {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 1rem 1.35rem;
  align-items: start;
}

body.template-bootstrap .settings-page > .page-header {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body.template-bootstrap .settings-tabs {
  grid-column: 1;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.35rem;
}

body.template-bootstrap .settings-tabs .people-tab {
  justify-content: flex-start;
  width: 100%;
}

body.template-bootstrap .settings-content {
  grid-column: 2;
  gap: 1rem;
}

body.template-bootstrap .settings-card,
body.template-bootstrap .settings-info-card {
  padding: 1.2rem;
}

body.template-bootstrap .settings-form {
  gap: 1rem;
}

body.template-bootstrap .setting-toggle {
  border: 1px solid #e9ecef;
  border-radius: 0.45rem;
  background: #fbfcfd;
  padding: 0.65rem;
}

body.template-bootstrap .setting-toggle strong {
  font-size: 0.72rem;
}

body.template-bootstrap .setting-toggle small {
  font-size: 0.63rem;
}

body.template-bootstrap .channel-card {
  border: 1px solid #e9ecef;
  border-radius: 0.45rem;
  background: #fbfcfd;
}

body.template-bootstrap .backup-hero {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background: #fbfcfd;
}

body.template-bootstrap .file-upload {
  border-color: #d9dee4;
  border-radius: 0.45rem;
  background: #fff;
}

body.template-bootstrap .danger-zone {
  border-color: #f0d9d4;
}

body.template-bootstrap .template-card {
  border: 1px solid #e5e8eb;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: none;
}

body.template-bootstrap .template-card:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

body.template-bootstrap .template-card:has(input:checked) {
  border-color: #e5c8bd;
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.12);
}

body.template-bootstrap .template-card__body p {
  color: #7e8790;
}

body.template-bootstrap .template-card__tags span {
  border-color: #e9ecef;
  background: #f8f9fa;
  color: #7e8790;
}

body.template-bootstrap .template-note {
  border: 1px solid #e9ecef;
  border-radius: 0.45rem;
  background: #f8f9fa;
  color: #707982;
}

body.template-bootstrap .template-preview--glass {
  background: #f3f4f6;
  border-color: #e5e8eb;
}

/* ---------- Notifications ---------- */

body.template-bootstrap .notifications-toolbar {
  border-radius: 0.55rem;
}

body.template-bootstrap .notifications-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

body.template-bootstrap .notification-card {
  border-radius: 0.6rem;
  padding: 0.8rem;
}

body.template-bootstrap .notification-card.is-unread {
  border-color: #e5c8bd;
  background: #fffaf7;
}

body.template-bootstrap .notification-card__icon {
  border-radius: 0.45rem;
}

body.template-bootstrap .notification-card h3 {
  font-size: 0.76rem;
}

body.template-bootstrap .notification-card p {
  font-size: 0.7rem;
}

body.template-bootstrap .notifications-note {
  border: 1px solid #e9ecef;
  border-radius: 0.45rem;
  background: #fff;
  color: #7e8790;
}

body.template-bootstrap .channel-chip {
  background: #f8f9fa;
  border-color: #e9ecef;
  font-size: 0.53rem;
}

/* ---------- Browser chrome: modals, toasts ---------- */

body.template-bootstrap .modal-layer {
  background: rgba(33, 37, 41, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.template-bootstrap .modal {
  position: relative;
  inset: auto;
  z-index: auto;
  display: flex;
  width: min(560px, 100%);
  height: auto;
  max-height: 92dvh;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e3e6ea;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.template-bootstrap .modal--sm { width: min(430px, 100%); }
body.template-bootstrap .modal--md { width: min(590px, 100%); }
body.template-bootstrap .modal--lg { width: min(880px, 100%); }

body.template-bootstrap .modal__glow {
  display: none;
}

body.template-bootstrap .modal__header {
  padding: 1.1rem 1.2rem 0.65rem;
  border-bottom: 1px solid #f0f2f4;
}

body.template-bootstrap .modal__icon {
  width: 34px;
  height: 34px;
  border-radius: 0.45rem;
  background: #fbf3ef;
}

body.template-bootstrap .modal__title-wrap h2 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.template-bootstrap .modal__title-wrap p {
  font-size: 0.69rem;
  color: #7e8790;
}

body.template-bootstrap .modal__body {
  padding: 0.8rem 1.2rem 1.1rem;
}

body.template-bootstrap .modal__footer {
  padding: 0.75rem 1.2rem;
  border-top: 1px solid #eef0f2;
  background: #fbfcfd;
}

body.template-bootstrap .modal__footer .btn {
  min-height: 35px;
}

body.template-bootstrap .form-error {
  color: #a54a3e;
  background: #fdf1ef;
  border-color: #f1d9d4;
}

body.template-bootstrap .form-notice {
  background: #f8f9fa;
  border-color: #e9ecef;
}

body.template-bootstrap .toast-stack {
  right: 16px;
  bottom: 16px;
}

body.template-bootstrap .toast {
  display: flex;
  width: 350px;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #e3e6ea;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.16);
  color: #25282c;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.template-bootstrap .toast.is-visible {
  opacity: 1;
  transform: none;
}

body.template-bootstrap .toast__copy {
  font-size: 0.72rem;
}

body.template-bootstrap .toast__copy strong {
  font-size: 0.75rem;
}

body.template-bootstrap .toast__icon {
  border-radius: 0.4rem;
}

body.template-bootstrap .live-drawer {
  background: #fff;
  border: 1px solid #e3e6ea;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
}

body.template-bootstrap .live-drawer__head h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 650;
}

body.template-bootstrap .online-row {
  background: #f8f9fa;
}

body.template-bootstrap .barcode-panel,
body.template-bootstrap .barcode-preview {
  border: 1px solid #e9ecef;
  background: #fbfcfd;
}

body.template-bootstrap .item-detail__head h2,
body.template-bootstrap .request-detail__hero h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

body.template-bootstrap .item-detail__art {
  border: 1px solid #eef0f2;
  background: #f8f9fa;
}

body.template-bootstrap .item-detail__halo {
  border-color: #eceff2;
}

body.template-bootstrap .item-detail__description,
body.template-bootstrap .request-detail__note {
  color: #737c85;
  font-size: 0.72rem;
}

body.template-bootstrap .detail-grid > div {
  border: 1px solid #eef0f2;
  background: #fbfcfd;
}

body.template-bootstrap .request-detail__person {
  border: 1px solid #eef0f2;
  background: #f8f9fa;
}

/* Auth page: fundamentally different centered Bootstrap card */

body.template-bootstrap .auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: #f1f2f4;
  background-image:
    linear-gradient(rgba(108, 117, 125, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 117, 125, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.template-bootstrap .auth-story {
  display: none;
}

body.template-bootstrap .auth-panel {
  width: 100%;
  max-width: 500px;
  gap: 0.75rem;
}

body.template-bootstrap .auth-card {
  max-width: 500px;
  padding: 2rem;
  border: 1px solid #e3e6ea;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.template-bootstrap .auth-card::before,
body.template-bootstrap .auth-card::after {
  display: none;
}

body.template-bootstrap .auth-card__brand {
  display: flex;
  margin-bottom: 1.3rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.template-bootstrap .auth-card__brand .logo-mark {
  width: 36px;
  height: 36px;
  filter: none;
}

body.template-bootstrap .auth-tabs {
  margin-bottom: 1.4rem;
  border: 1px solid #e9ecef;
  border-radius: 0.55rem;
  background: #f3f4f6;
}

body.template-bootstrap .auth-tab {
  border-radius: 0.4rem;
  color: #6b747d;
  font-size: 0.75rem;
}

body.template-bootstrap .auth-tab.is-active {
  color: #25282c;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

body.template-bootstrap .auth-heading h2 {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

body.template-bootstrap .auth-heading p {
  font-size: 0.72rem;
}

body.template-bootstrap .auth-form {
  gap: 0.85rem;
}

body.template-bootstrap .auth-form__row {
  font-size: 0.66rem;
}

body.template-bootstrap .auth-hint {
  font-size: 0.62rem;
}

body.template-bootstrap .auth-legal {
  color: #9aa2ab;
  font-size: 0.58rem;
}

body.template-bootstrap .auth-card__foot {
  border-color: #eef0f2;
  color: #949ca5;
  font-size: 0.6rem;
}

body.template-bootstrap .auth-panel__note {
  color: #8b939c;
  font-size: 0.62rem;
}

body.template-bootstrap .auth-form--register .field-grid {
  grid-template-columns: 1fr;
}

/* ---------- Responsive ---------- */

@media (max-width: 1399.98px) {
  body.template-bootstrap .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.template-bootstrap .position-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.template-bootstrap .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  body.template-bootstrap .catalog-page,
  body.template-bootstrap .settings-page {
    display: block;
  }

  body.template-bootstrap .catalog-page > .filter-bar {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
  }

  body.template-bootstrap .catalog-page .filter-bar .segmented {
    width: auto;
    flex-direction: row;
  }

  body.template-bootstrap .catalog-page .filter-bar .segmented__item {
    width: auto;
    justify-content: center;
  }

  body.template-bootstrap .catalog-page .filter-bar .chip-row {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  body.template-bootstrap .catalog-page .filter-bar .filter-chip {
    width: auto;
  }

  body.template-bootstrap .catalog-page > .catalog-toolbar,
  body.template-bootstrap .catalog-page > .role-filter-note,
  body.template-bootstrap .catalog-page > .catalog-grid,
  body.template-bootstrap .catalog-page > .catalog-footnote {
    width: 100%;
  }

  body.template-bootstrap .settings-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 0.9rem;
  }

  body.template-bootstrap .settings-tabs .people-tab {
    width: auto;
    flex-shrink: 0;
  }

  body.template-bootstrap .settings-content {
    display: grid;
  }

  body.template-bootstrap .dashboard-grid > .focus-panel,
  body.template-bootstrap .dashboard-grid > .live-panel,
  body.template-bootstrap .dashboard-grid > .leaderboard-card,
  body.template-bootstrap .dashboard-grid > .quick-panel {
    grid-column: span 12;
  }

  body.template-bootstrap .notifications-list {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .rating-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body.template-bootstrap .bs-brand__text small {
    display: none;
  }

  body.template-bootstrap .navbar-collapse {
    padding-top: 0.65rem;
    margin-top: 0.55rem;
    border-top: 1px solid #eef0f2;
  }

  body.template-bootstrap .bs-navbar .navbar-nav {
    gap: 2px;
  }

  body.template-bootstrap .bs-navbar .navbar-nav .nav-link {
    display: flex;
    width: 100%;
    min-height: 39px;
    padding: 0.45rem 0.6rem;
  }

  body.template-bootstrap .bs-navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: 0;
    background: #f8f9fa;
    box-shadow: none !important;
    margin: 0.15rem 0 0.35rem 0.8rem;
  }

  body.template-bootstrap .stats-grid > .stat-card {
    grid-column: span 6;
  }

  body.template-bootstrap .hero-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  body.template-bootstrap .hero-card__aside {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
  }

  body.template-bootstrap .hero-mini {
    max-width: 320px;
  }

  body.template-bootstrap .hero-signature {
    display: none;
  }

  body.template-bootstrap .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .position-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .employee-hero {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.6fr);
  }

  body.template-bootstrap .employee-hero__score {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid #eef0f2;
    padding-top: 0.7rem;
  }

  body.template-bootstrap .employee-layout {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .employee-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .profile-band {
    grid-template-columns: 1fr auto;
  }

  body.template-bootstrap .profile-band__meta {
    grid-column: 1 / -1;
  }

  body.template-bootstrap .rating-hero {
    grid-template-columns: 1fr 130px;
  }

  body.template-bootstrap .rating-hero__me {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  body.template-bootstrap .item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .item-stats > .stat-card {
    grid-column: span 1;
  }

  body.template-bootstrap .holdings-grid {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .roles-grid {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .cabinet-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body.template-bootstrap .cabinet-tab {
    min-width: 170px;
    flex: 0 0 auto;
  }

  body.template-bootstrap .request-card__rail {
    width: 52px;
  }

  body.template-bootstrap .request-card__rail .badge {
    display: none;
  }

  body.template-bootstrap .request-card__mobile-status {
    display: flex;
  }

  body.template-bootstrap .queue-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .auth-screen {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  body.template-bootstrap {
    font-size: 13.5px;
  }

  .bs-navbar {
    min-height: 58px;
    padding: 0.2rem 0;
  }

  .bs-brand .logo-mark {
    width: 31px;
    height: 31px;
  }

  .bs-brand__text strong {
    font-size: 0.84rem;
  }

  body.template-bootstrap .bs-top-icon {
    width: auto;
    min-width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0 0.4rem;
  }

  body.template-bootstrap .bs-main {
    padding-top: 1.1rem;
    padding-bottom: 2rem;
  }

  body.template-bootstrap .bs-subbar {
    padding: 0.45rem 0;
  }

  body.template-bootstrap .bs-subbar__caption {
    font-size: 0.52rem;
  }

  body.template-bootstrap .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  body.template-bootstrap .page-header__actions {
    justify-content: flex-start;
  }

  body.template-bootstrap .page-header__actions .btn {
    flex: 1;
  }

  body.template-bootstrap .hero-card {
    padding: 1.2rem;
    border-radius: 0.7rem;
  }

  body.template-bootstrap .hero-card h1 {
    font-size: 1.65rem;
  }

  body.template-bootstrap .hero-card__headline {
    font-size: 0.9rem;
  }

  body.template-bootstrap .hero-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.template-bootstrap .hero-card__actions .btn {
    width: 100%;
  }

  body.template-bootstrap .hero-card__aside {
    display: none;
  }

  body.template-bootstrap .stats-grid {
    gap: 0.6rem;
  }

  body.template-bootstrap .stat-card {
    min-height: 95px;
    padding: 0.75rem;
  }

  body.template-bootstrap .stat-card__value {
    font-size: 1.35rem;
    margin-top: 0.45rem;
  }

  body.template-bootstrap .stat-card__hint {
    display: none;
  }

  body.template-bootstrap .dashboard-grid,
  body.template-bootstrap .panel,
  body.template-bootstrap .focus-panel,
  body.template-bootstrap .live-panel,
  body.template-bootstrap .leaderboard-card,
  body.template-bootstrap .quick-panel {
    padding: 0.85rem;
  }

  body.template-bootstrap .catalog-grid {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .catalog-page > .filter-bar {
    padding: 0.75rem;
  }

  body.template-bootstrap .catalog-page .filter-bar .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  body.template-bootstrap .catalog-page .filter-bar .filter-chip {
    flex-shrink: 0;
  }

  body.template-bootstrap .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.template-bootstrap .catalog-toolbar__meta {
    display: flex;
    justify-content: space-between;
  }

  body.template-bootstrap .filter-bar {
    gap: 0.5rem;
  }

  body.template-bootstrap .filter-bar .search-box {
    flex-basis: 100%;
  }

  body.template-bootstrap .filter-bar .segmented {
    width: 100%;
    justify-content: space-between;
  }

  body.template-bootstrap .filter-bar .segmented__item {
    flex: 1;
  }

  body.template-bootstrap .cabinet-tabs {
    gap: 0.35rem;
  }

  body.template-bootstrap .cabinet-tab {
    min-width: 0;
    flex: 1;
    padding: 0.55rem;
  }

  body.template-bootstrap .cabinet-tab__copy strong {
    font-size: 0.65rem;
  }

  body.template-bootstrap .cabinet-tab__copy small {
    font-size: 0.55rem;
  }

  body.template-bootstrap .cabinet-tab__mark {
    display: none;
  }

  body.template-bootstrap .profile-band {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  body.template-bootstrap .profile-band__rating {
    grid-column: 1;
    grid-row: auto;
    border-top: 1px solid #eef0f2;
    padding-top: 0.6rem;
  }

  body.template-bootstrap .profile-band__meta {
    grid-column: 1;
  }

  body.template-bootstrap .holding-card__art {
    width: 58px;
  }

  body.template-bootstrap .holding-card__foot {
    flex-wrap: wrap;
  }

  body.template-bootstrap .holding-card__foot .btn {
    margin-left: 0;
    flex: 1;
  }

  body.template-bootstrap .queue-strip {
    gap: 0.45rem;
  }

  body.template-bootstrap .requests-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.template-bootstrap .requests-filters {
    flex-wrap: wrap;
  }

  body.template-bootstrap .request-card__body {
    padding: 0.75rem;
  }

  body.template-bootstrap .request-card__head {
    flex-direction: column;
    gap: 0.35rem;
  }

  body.template-bootstrap .request-card__timing {
    text-align: left;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  body.template-bootstrap .request-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  body.template-bootstrap .request-card__actions {
    justify-content: flex-start;
  }

  body.template-bootstrap .request-card__actions .btn {
    flex: 1;
  }

  body.template-bootstrap .rating-hero {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  body.template-bootstrap .rating-hero__star {
    display: none;
  }

  body.template-bootstrap .rating-hero__me {
    grid-column: 1;
    flex-wrap: wrap;
  }

  body.template-bootstrap .podium-full {
    min-height: 190px;
  }

  body.template-bootstrap .podium-place__score {
    font-size: 1.3rem;
  }

  body.template-bootstrap .leaderboard-entry {
    grid-template-columns: 20px 34px minmax(0, 1fr) 48px;
    gap: 0.4rem;
  }

  body.template-bootstrap .leaderboard-entry__metric,
  body.template-bootstrap .leaderboard-entry__stars {
    display: none;
  }

  body.template-bootstrap .people-grid,
  body.template-bootstrap .position-grid {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .employee-side {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .employee-hero {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  body.template-bootstrap .employee-hero__main {
    align-items: flex-start;
  }

  body.template-bootstrap .employee-hero__contacts {
    border-top: 1px solid #eef0f2;
    padding-top: 0.6rem;
  }

  body.template-bootstrap .employee-hero__score {
    border-top: 0;
    padding-top: 0;
  }

  body.template-bootstrap .employee-equipment,
  body.template-bootstrap .employee-history {
    padding: 0.85rem;
  }

  body.template-bootstrap .employee-equipment-row {
    grid-template-columns: 22px 30px minmax(0, 1fr) 50px;
    gap: 0.35rem;
  }

  body.template-bootstrap .employee-equipment-row__meta {
    grid-column: 3 / -1;
    justify-content: flex-start;
  }

  body.template-bootstrap .dismissal-panel {
    flex-wrap: wrap;
  }

  body.template-bootstrap .dismissal-panel .btn {
    width: 100%;
  }

  body.template-bootstrap .item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .table-panel .data-table tr {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  }

  body.template-bootstrap .settings-page {
    display: block;
  }

  body.template-bootstrap .settings-tabs {
    overflow-x: auto;
  }

  body.template-bootstrap .template-grid {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .notifications-list {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .notification-card {
    flex-wrap: wrap;
  }

  body.template-bootstrap .notification-card__actions {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid #eef0f2;
    padding-top: 0.5rem;
  }

  body.template-bootstrap .notifications-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.template-bootstrap .toast-stack {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  body.template-bootstrap .toast {
    width: 100%;
  }

  body.template-bootstrap .modal-layer {
    align-items: flex-end;
    padding: 0;
  }

  body.template-bootstrap .modal {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    border-radius: 0.9rem 0.9rem 0 0;
    border-bottom: 0;
  }

  body.template-bootstrap .modal__footer .btn {
    flex: 1;
  }

  body.template-bootstrap .field__input {
    font-size: 16px;
  }

  body.template-bootstrap .search-box input {
    font-size: 16px;
  }

  body.template-bootstrap .auth-card {
    padding: 1.25rem;
  }

  body.template-bootstrap .auth-card__brand {
    margin-bottom: 1rem;
  }
}

@media (max-width: 479.98px) {
  body.template-bootstrap .bs-brand__text strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.template-bootstrap .queue-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-bootstrap .cabinet-tabs {
    overflow-x: auto;
  }

  body.template-bootstrap .cabinet-tab {
    flex: 0 0 150px;
  }

  body.template-bootstrap .request-card__rail {
    display: none;
  }

  body.template-bootstrap .item-stats {
    grid-template-columns: 1fr;
  }

  body.template-bootstrap .rating-hero__me {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.template-bootstrap *,
  body.template-bootstrap *::before,
  body.template-bootstrap *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Цветовые темы Bootstrap-шаблона. Выбираются в «Настройки → Шаблоны». */
body.template-bootstrap[data-bootstrap-theme="graphite"] {
  --terracotta: #4f5963;
  --terracotta-deep: #39424b;
  --terracotta-soft: #aab2ba;
  --terracotta-wash: rgba(79, 89, 99, 0.11);
  --bs-primary: #4f5963;
  --bs-primary-rgb: 79, 89, 99;
  --bs-primary-soft: #eef1f3;
  --bs-link-color: #39424b;
  --bs-link-hover-color: #252c33;
}

body.template-bootstrap[data-bootstrap-theme="sage"] {
  --terracotta: #6f806b;
  --terracotta-deep: #53624f;
  --terracotta-soft: #b9c5b4;
  --terracotta-wash: rgba(111, 128, 107, 0.12);
  --bs-primary: #6f806b;
  --bs-primary-rgb: 111, 128, 107;
  --bs-primary-soft: #eef3ec;
  --bs-link-color: #53624f;
  --bs-link-hover-color: #3e4b3a;
}

body.template-bootstrap[data-bootstrap-theme="blue"] {
  --terracotta: #476b8a;
  --terracotta-deep: #35536e;
  --terracotta-soft: #9eb7ca;
  --terracotta-wash: rgba(71, 107, 138, 0.12);
  --bs-primary: #476b8a;
  --bs-primary-rgb: 71, 107, 138;
  --bs-primary-soft: #eaf1f6;
  --bs-link-color: #35536e;
  --bs-link-hover-color: #263f55;
}

body.template-bootstrap[data-bootstrap-theme="wine"] {
  --terracotta: #8b4f5e;
  --terracotta-deep: #6f3c49;
  --terracotta-soft: #c8a0aa;
  --terracotta-wash: rgba(139, 79, 94, 0.12);
  --bs-primary: #8b4f5e;
  --bs-primary-rgb: 139, 79, 94;
  --bs-primary-soft: #f5eaed;
  --bs-link-color: #6f3c49;
  --bs-link-hover-color: #542c36;
}

/* Theme picker внутри Bootstrap-админки */
body.template-bootstrap .bs-theme-picker {
  border-color: #e5e7eb;
  background: #f8f9fa;
}

body.template-bootstrap .bs-theme-card {
  border-color: #e2e6ea;
  background: #fff;
  color: #4d5660;
}

body.template-bootstrap .bs-theme-card.is-active,
body.template-bootstrap .bs-theme-card:has(input:checked) {
  border-color: rgba(var(--bs-primary-rgb), 0.55);
  background: var(--bs-primary-soft);
  color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.16);
}

body.template-bootstrap .bs-theme-picker__head span {
  color: #8a929b;
}

body.template-bootstrap .auth-server-points span {
  border-color: #e5e7eb;
  background: #fff;
}

body.template-bootstrap .auth-server-badge {
  background: var(--bs-primary-soft);
  color: var(--bs-primary);
}
