#header {
  min-height: var(--sb-header-height, 60px);
}

.sb-has-platform-footer {
  padding-bottom: 0;
}

#platform-footer {
  min-height: var(--sb-footer-height, 40px);
}

.sb-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 60px;
  min-height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.98), rgba(5, 7, 12, 0.92));
  color: #ffffff;
  font-family: Inter, "Segoe UI", sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.sb-header__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
  padding-left: 18px;
}

.sb-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0 18px 0 12px;
  position: relative;
  min-width: max-content;
  overflow: visible;
}

.sb-logo--editor {
  width: 206px;
  min-width: 206px;
  margin-left: 0;
  padding: 0 10px 0 0;
  background: transparent;
  border-right: 0;
}

.sb-logo--editor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 172px;
  padding: 10px 20px;
  background: #08b34e;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.sb-logo-text {
  display: grid;
  align-content: center;
}

.sb-logo-main {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.sb-logo-sub {
  margin-top: 2px;
  color: #ffe44b;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0;
}

.sb-logo--dischem .sb-logo-main {
  font-size: 14px;
}

.sb-logo--dischem .sb-logo-sub {
  font-size: 7px;
}

.sb-logo--image {
  width: 172px;
  min-width: 172px;
  padding: 0;
  background: transparent;
  border-right: 0;
  overflow: hidden;
}

.sb-logo--editor.sb-logo--image {
  background: transparent;
  border-right: 0;
}

.sb-logo-image-frame {
  width: 100%;
  height: 100%;
  display: block;
}

.sb-logo-image-frame[hidden],
.sb-logo-text[hidden] {
  display: none;
}

.sb-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sb-nav::-webkit-scrollbar {
  display: none;
}

.sb-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  position: relative;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sb-nav-item:hover,
.sb-nav-item:focus-visible {
  background: #dcff58;
  border-color: #dcff58;
  color: #05070c;
  outline: none;
}

.sb-nav-item.active:hover,
.sb-nav-item.active:focus-visible {
  background: #dcff58;
  border-color: #dcff58;
  color: #05070c;
  outline: none;
}

.sb-nav-item.active {
  color: #05070c;
  background: #dcff58;
  border-color: #dcff58;
  box-shadow: none;
}

.sb-nav-item__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
}

.sb-nav-item:hover .sb-nav-item__icon,
.sb-nav-item:focus-visible .sb-nav-item__icon,
.sb-nav-item.active .sb-nav-item__icon {
  color: #05070c;
}

.sb-nav-item__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  appearance: none;
  outline: none;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sb-icon-btn:hover,
.sb-icon-btn:focus-visible,
.sb-icon-btn[aria-expanded="true"] {
  background: #dcff58;
  border-color: #dcff58;
  color: #05070c;
  outline: none;
}

.sb-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-search-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  z-index: 35;
  transition: width 0.22s ease, flex-basis 0.22s ease;
}

.sb-search-panel.is-open {
  flex-basis: min(300px, calc(100vw - 120px));
  width: min(300px, calc(100vw - 120px));
}

.sb-search-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sb-search-panel.is-open .sb-search-trigger {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.sb-search-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #2a2d35;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.92);
  transform-origin: right center;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.sb-search-panel.is-open .sb-search-shell {
  opacity: 1;
  pointer-events: auto;
  transform: scaleX(1);
}

.sb-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f5f7fb;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  outline: none;
}

.sb-search-input::placeholder {
  color: rgba(245, 247, 251, 0.4);
}

.sb-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.sb-search-submit:hover,
.sb-search-submit:focus-visible {
  background: transparent;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

.sb-search-submit svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.sb-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(9, 12, 20, 0.14);
}

.sb-search-results[hidden] {
  display: none;
}

.sb-search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #1f2937;
  text-decoration: none;
}

.sb-search-result + .sb-search-result {
  margin-top: 4px;
}

.sb-search-result:hover,
.sb-search-result:focus-visible {
  background: #f3f7fb;
  outline: none;
}

.sb-search-result strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.sb-search-result p,
.sb-search-empty p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.sb-search-empty {
  padding: 14px;
  color: #1f2937;
}

.sb-search-empty strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.sb-user-menu {
  position: relative;
  flex: 0 0 auto;
}

.sb-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background-color: #d7dbe2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sb-avatar:hover,
.sb-avatar:focus-visible,
.sb-avatar[aria-expanded="true"] {
  background-color: #cfd4dc;
  border-color: #cfd4dc;
  outline: none;
}

.sb-avatar__label {
  font-size: 0;
}

.sb-user-popup {
  --sb-user-popup-title-size: 14px;
  --sb-user-popup-body-size: 12px;
  --sb-user-popup-meta-size: 10px;
  --sb-user-popup-label-size: 12px;
  --sb-user-popup-control-height: 30px;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(244px, calc(100vw - 28px));
  background: #ffffff;
  color: #2f3340;
  border: 1px solid rgba(40, 47, 64, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(18, 24, 39, 0.18);
  overflow: hidden;
  z-index: 30;
  box-sizing: border-box;
  font-size: var(--sb-user-popup-body-size);
  line-height: 1.4;
}

.sb-user-popup[hidden] {
  display: none;
}

.sb-user-popup__panel[hidden] {
  display: none;
}

.sb-avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
}

.sb-avatar-modal[hidden] {
  display: none;
}

.sb-avatar-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
  cursor: pointer;
}

.sb-avatar-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(40, 47, 64, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.sb-avatar-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sb-avatar-modal__head strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.sb-avatar-modal__head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.sb-avatar-modal__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #1f2937;
  cursor: pointer;
}

.sb-avatar-modal__dismiss svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.sb-avatar-modal__body {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 20px;
}

.sb-avatar-modal__preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #eef2f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.sb-avatar-modal__actions,
.sb-avatar-modal__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sb-avatar-modal__footer {
  justify-content: flex-end;
  margin-top: 20px;
}

.sb-avatar-modal__button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.sb-avatar-modal__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sb-avatar-modal__button--primary {
  background: #111827;
  color: #ffffff;
}

.sb-avatar-modal__button--secondary {
  background: #DCFF58;
  color: #17181d;
}

.sb-avatar-modal__button--ghost {
  background: #ffffff;
  color: #374151;
  border-color: rgba(17, 24, 39, 0.12);
}

.sb-avatar-modal__status {
  min-height: 20px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.sb-avatar-modal__status.is-success {
  color: #17803d;
}

.sb-avatar-modal__status.is-error {
  color: #d14343;
}

.sb-user-popup__profile,
.sb-user-popup__section {
  padding: 14px 15px;
}

.sb-user-popup__section + .sb-user-popup__section {
  border-top: 1px solid #eceef3;
}

.sb-user-popup__profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sb-user-popup__photo {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 79px;
  height: 79px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #d7dbe2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  cursor: pointer;
}

.sb-user-popup__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 35%, rgba(15, 23, 42, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sb-user-popup__photo:hover::after,
.sb-user-popup__photo:focus-visible::after {
  opacity: 1;
}

.sb-user-popup__photo:focus-visible {
  outline: 2px solid #DCFF58;
  outline-offset: 3px;
}

.sb-user-popup__photo-label {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sb-user-popup__photo:hover .sb-user-popup__photo-label,
.sb-user-popup__photo:focus-visible .sb-user-popup__photo-label {
  opacity: 1;
}

.sb-user-popup__edit {
  position: absolute;
  top: 21px;
  right: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #5b6881;
  cursor: pointer;
}

.sb-user-popup__edit svg,
.sb-user-popup__icon svg,
.sb-user-popup__chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-user-popup__profile h3 {
  margin: 10px 0 4px;
  font-size: var(--sb-user-popup-title-size);
  font-weight: 400;
  color: #2e3443;
}

.sb-user-popup__profile p {
  margin: 0;
  font-size: var(--sb-user-popup-body-size);
  color: #8c93a4;
}

.sb-user-popup__meta {
  display: inline-block;
  margin-top: 4px;
  font-size: var(--sb-user-popup-meta-size);
  color: #a1a8b6;
}

.sb-user-popup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: var(--sb-user-popup-control-height);
  padding: 0;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: #2f3340;
  text-decoration: none;
  font: inherit;
}

.sb-user-popup__row + .sb-user-popup__row {
  margin-top: 11px;
}

.sb-user-popup__row--button {
  cursor: pointer;
}

.sb-user-popup__row-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--sb-user-popup-body-size);
  font-weight: 400;
}

.sb-user-popup__icon {
  width: 16px;
  height: 16px;
  color: #232a37;
  flex: 0 0 auto;
}

.sb-user-popup__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #3b4250;
  font-size: var(--sb-user-popup-meta-size);
  font-weight: 400;
  border: 1px solid #d8dde7;
}

.sb-user-popup__chevron {
  width: 14px;
  height: 14px;
  color: #2f3340;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.sb-user-menu.is-settings-view .sb-user-popup {
  max-height: min(720px, calc(100vh - var(--sb-header-height, 60px) - 28px));
  overflow-y: auto;
}

.sb-user-popup__settings-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #eceef3;
}

.sb-user-popup__settings-head h3 {
  margin: 0;
  font-size: var(--sb-user-popup-title-size);
  font-weight: 400;
  color: #2e3443;
}

.sb-user-popup__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f3340;
  cursor: pointer;
}

.sb-user-popup__back svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-user-popup__settings-body {
  padding: 18px 15px 18px;
}

.sb-user-popup__settings-photo-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.sb-user-popup__settings-photo-wrap strong {
  color: #2e3443;
  font-size: var(--sb-user-popup-label-size);
  font-weight: 400;
}

.sb-user-popup__settings-photo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #d7dbe2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  overflow: hidden;
}

.sb-user-popup__settings-photo-edit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(47, 52, 64, 0.88);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.sb-user-popup__settings-photo-edit svg {
  display: block;
}

.sb-user-popup__field {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.sb-user-popup__field span {
  color: #2e3443;
  font-size: var(--sb-user-popup-label-size);
  font-weight: 400;
}

.sb-user-popup__field input {
  width: 100%;
  height: var(--sb-user-popup-control-height);
  padding: 0 14px;
  border: 1px solid #d4d8e1;
  border-radius: 12px;
  box-sizing: border-box;
  background: #ffffff;
  color: #959aa5;
  font: inherit;
  font-size: var(--sb-user-popup-body-size);
}

.sb-user-popup__field input[readonly] {
  cursor: default;
}

.sb-user-menu.is-settings-editing .sb-user-popup__field input {
  color: #2f3440;
  border-color: #2f3440;
}

.sb-user-menu.is-settings-editing .sb-user-popup__field input[readonly] {
  cursor: text;
}

.sb-user-menu.is-settings-editing .sb-user-popup__settings-photo-edit {
  opacity: 1;
  transform: scale(1);
}

.sb-user-popup__settings-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: right;
  color: #2e3443;
  font-size: var(--sb-user-popup-body-size);
  font-weight: 400;
  text-decoration: underline;
}

.sb-user-popup__settings-status {
  min-height: 16px;
  margin-top: 8px;
  color: #8c93a4;
  font-size: var(--sb-user-popup-meta-size);
  font-weight: 400;
  text-align: right;
}

.sb-user-popup__settings-status.is-success {
  color: #17803d;
}

.sb-user-popup__settings-status.is-error {
  color: #d14343;
}

.sb-user-popup__settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  margin-top: 20px;
}

.sb-user-popup__action {
  height: var(--sb-user-popup-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}

.sb-user-popup__action--muted {
  background: #afb3ba;
  color: #ffffff;
  padding: 0 16px;
}

.sb-user-popup__action--primary {
  background: #2f3440;
  color: #ffffff;
  padding: 0 10px;
  font-size: 10px;
}

.sb-user-popup__action--primary:hover,
.sb-user-popup__action--primary:focus-visible {
  background: #dcff58;
  color: #05070c;
  outline: none;
}

.sb-user-popup__action:disabled {
  cursor: not-allowed;
}


.sb-user-popup__row--logout {
  color: #f04b3e;
}

.sb-user-popup__row--logout .sb-user-popup__icon {
  color: #f04b3e;
}

.sb-platform-footer {
  position: static;
  width: 100%;
  margin-top: 48px;
  background: #ffffff;
  color: #98a1b2;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  font-family: Inter, "Segoe UI", sans-serif;
}

.sb-platform-footer__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 12px;
}

.sb-platform-footer__inner p {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.sb-platform-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.sb-platform-footer__links a {
  color: inherit;
  text-decoration: none;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.sb-platform-footer__links a:hover {
  color: #4c515c;
}

.sb-platform-footer__editor-mode {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #17181d;
  color: #DCFF58;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .sb-header {
    gap: 10px;
  }

  .sb-header__left {
    padding-left: 14px;
    overflow: hidden;
  }

  .sb-nav {
    justify-content: center;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sb-header__right {
    justify-content: flex-end;
    padding: 0 14px 0 8px;
  }

  .sb-search-panel {
    flex-basis: 40px;
  }

  .sb-user-popup {
    top: calc(100% + 10px);
  }

  .sb-platform-footer__inner {
    width: min(100%, calc(100% - 32px));
  }
}

@media (max-width: 1040px) {
  .sb-header {
    gap: 8px;
  }

  .sb-header__left {
    padding-left: 12px;
  }

  .sb-header__right {
    padding: 0 12px 0 6px;
    gap: 8px;
  }

  .sb-logo {
    min-width: 148px;
    padding: 10px 14px;
  }

  .sb-logo--image {
    width: 148px;
    min-width: 148px;
    padding: 0;
  }

  .sb-logo--editor {
    width: 176px;
    min-width: 176px;
    padding-right: 6px;
  }

  .sb-nav {
    gap: 8px;
    padding: 0 6px;
  }

  .sb-nav-item {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .sb-nav-item__icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 860px) {
  .sb-logo {
    min-width: 132px;
    padding: 10px 12px;
  }

  .sb-logo--image {
    width: 132px;
    min-width: 132px;
  }

  .sb-logo--editor {
    width: 156px;
    min-width: 156px;
    padding-right: 4px;
  }

  .sb-nav-item {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .sb-header {
    gap: 8px;
  }

  .sb-nav {
    justify-content: flex-start;
  }

  .sb-logo {
    min-width: 0;
    padding: 12px;
  }

  .sb-logo--image {
    width: 112px;
    min-width: 112px;
    padding: 0;
  }

  .sb-logo-image-frame {
    width: 100%;
    height: 100%;
  }

  .sb-logo-main {
    font-size: 13px;
  }

  .sb-logo-sub {
    font-size: 7px;
  }

  .sb-nav {
    gap: 12px;
  }

  .sb-logo--editor {
    width: 160px;
    min-width: 160px;
    margin-left: 0;
    padding: 0 10px;
  }

  .sb-nav-item {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .sb-nav-item__icon {
    width: 18px;
    height: 18px;
  }

  .sb-icon-btn,
  .sb-avatar {
    width: 36px;
    height: 36px;
  }

  .sb-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .sb-search-panel {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
  }

  .sb-search-shell {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 0 14px 0 16px;
  }

  .sb-search-panel.is-open {
    flex-basis: min(240px, calc(100vw - 96px));
    width: min(240px, calc(100vw - 96px));
  }

  .sb-search-input {
    font-size: 16px;
  }

  .sb-search-submit {
    width: 36px;
    height: 36px;
  }

  .sb-user-popup {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .sb-avatar-modal__dialog {
    width: min(100vw - 28px, 420px);
    padding: 18px;
  }

  .sb-avatar-modal__footer {
    justify-content: stretch;
  }

  .sb-avatar-modal__footer .sb-avatar-modal__button {
    flex: 1 1 0;
  }

  .sb-user-popup__profile,
  .sb-user-popup__section {
    padding: 14px;
  }

  .sb-user-popup__photo {
    width: 79px;
    height: 79px;
  }

  .sb-user-popup__edit {
    top: 21px;
    right: 49px;
  }

  .sb-user-popup__profile h3 {
    font-size: var(--sb-user-popup-title-size);
  }

  .sb-user-popup__row-main {
    font-size: var(--sb-user-popup-body-size);
  }

  .sb-user-menu.is-settings-view .sb-user-popup {
    max-height: calc(100vh - 92px);
  }

  .sb-user-popup__settings-body {
    padding: 18px 14px;
  }

  .sb-user-popup__settings-photo {
    width: 88px;
    height: 88px;
  }

  .sb-user-popup__settings-actions {
    grid-template-columns: 1fr;
  }

  .sb-platform-footer__inner {
    min-height: 52px;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
  }

  .sb-platform-footer__links {
    justify-content: center;
    gap: 16px;
  }
}
