/* Service portal home — Figma «Dashboard • Default» (node 2092:3648) */

.view-portal {
  display: flex;
  width: 100%;
  flex: 1;
  min-height: 100vh;
  background: var(--bg);
  align-items: stretch;
}

.portal-sidebar {
  box-sizing: border-box;
  width: 296px;
  min-width: 296px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border-right: 0.33px solid var(--stroke-2);
  overflow: clip;
  transition: width 0.18s ease, min-width 0.18s ease, padding 0.18s ease;
}

.portal-sidebar__logo {
  padding: 12px;
}

.portal-logo {
  display: block;
  text-decoration: none;
}

.portal-logo__img {
  width: 123px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.portal-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-nav__item:hover {
  background: #1a1b21;
  color: var(--text);
}

.portal-nav__item--active {
  background: #1e1f26;
  color: var(--text);
}

.portal-nav__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.portal-nav__ico img {
  width: 24px;
  height: 24px;
}

.portal-nav__text {
  flex: 1;
  min-width: 0;
}

.portal-sidebar__spacer {
  flex: 1;
  min-height: 16px;
}

.portal-sidebar__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.portal-sidebar__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-sidebar__footer:hover {
  background: #1e1f26;
  color: var(--text);
}

.portal-sidebar__footer img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.85;
  transform: translateY(-1px);
}

.portal-sidebar__collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-sidebar__collapse:hover {
  background: #1e1f26;
  color: var(--text);
}

.portal-sidebar__collapse-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  color: currentColor;
  filter: invert(74%) sepia(5%) saturate(183%) hue-rotate(21deg) brightness(96%) contrast(87%);
}

.portal-sidebar__collapse:hover .portal-sidebar__collapse-icon {
  filter: invert(100%);
}

.portal-sidebar__collapse-icon--expand {
  display: none;
}

.portal-sidebar__collapse-text {
  display: none;
}

.view-portal.is-sidebar-collapsed .portal-sidebar {
  width: 52px;
  min-width: 52px;
  padding: 16px 10px;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__logo {
  width: 32px;
  height: 32px;
  padding: 0;
}

.view-portal.is-sidebar-collapsed .portal-logo {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  background: url("images/portal/onboard-chef.png") center / 32px 32px no-repeat;
}

.view-portal.is-sidebar-collapsed .portal-logo__img {
  display: none;
}

.view-portal.is-sidebar-collapsed .portal-nav {
  align-items: center;
}

.view-portal.is-sidebar-collapsed .portal-nav__item,
.view-portal.is-sidebar-collapsed .portal-sidebar__collapse {
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
}

.view-portal.is-sidebar-collapsed .portal-nav__item {
  position: relative;
}

@media (min-width: 721px) {
  .view-portal.is-sidebar-collapsed .portal-nav__item::after {
    content: attr(aria-label);
    position: absolute;
    left: 40px;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--stroke-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
  }

  .view-portal.is-sidebar-collapsed .portal-nav__item:hover::after {
    opacity: 1;
  }
}

.view-portal.is-sidebar-collapsed .portal-nav__text,
.view-portal.is-sidebar-collapsed .portal-sidebar__collapse-text {
  display: none;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__footer {
  display: none;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__bottom {
  justify-content: center;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__collapse {
  align-self: center;
  margin-top: 0;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__collapse-icon--collapse {
  display: none;
}

.view-portal.is-sidebar-collapsed .portal-sidebar__collapse-icon--expand {
  display: block;
}

.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: clip;
}

.portal-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1e1f26;
  background: var(--bg);
}

.portal-bc__icon {
  flex-shrink: 0;
}

.portal-bc__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--muted);
}

.portal-body {
  flex: 1;
  min-height: 0;
  padding: 16px 16px 48px;
  display: flex;
  justify-content: center;
  overflow: auto;
}

.portal-body__inner {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-intro {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-intro__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  color: var(--text);
}

.portal-intro__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--muted);
}

.portal-grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.portal-grid--top .portal-card--hero {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 622 / 302;
  max-height: 340px;
}

.portal-grid--top .portal-card--docs {
  flex: 0 0 302px;
  width: 302px;
  max-width: 302px;
  max-height: 302px;
}

.portal-grid--bottom .portal-card--tile {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 462 / 302;
  max-height: 340px;
}

.portal-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  overflow: hidden;
}

/* Жёлтая полоска при наведении; яркая «Перейти» — только у docs / tile */
.portal-card--hero::before,
.portal-card--docs::before,
.portal-card--tile::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 2;
}

.portal-card--hero:hover::before,
.portal-card--docs:hover::before,
.portal-card--tile:hover::before {
  opacity: 1;
}

.portal-card--docs:hover .portal-link-btn,
.portal-card--tile:hover .portal-link-btn {
  background: #1e1f26;
  color: var(--text);
}

.portal-card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: var(--text);
}

.portal-card__desc {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--muted);
}

.portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portal-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.portal-card__illo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.portal-card__illo img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.portal-card__illo--dl {
  position: relative;
}

.portal-dl-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  display: block;
}

.portal-dl-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 66px;
  height: 66px;
}

.portal-card--docs .portal-card__illo img {
  width: 58px;
  height: 74px;
}

.portal-card--tile#portal-card-help .portal-card__illo img {
  width: 82px;
  height: 82px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 24px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.portal-btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.portal-btn--primary:hover {
  filter: brightness(1.06);
}

.portal-btn--secondary {
  background: #1e1f26;
  color: var(--muted);
}

.portal-btn--secondary:hover {
  color: var(--text);
  background: #25262e;
}

.portal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 12px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-link-btn--button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.portal-link-btn:hover {
  background: #1e1f26;
  color: var(--text);
}

.portal-link-btn__chev {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.portal-link-btn__chev img {
  display: none;
}

.portal-link-btn__chev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--stroke-2);
  border-right: 2px solid var(--stroke-2);
  transform: rotate(45deg);
  margin-right: 1px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.portal-card--docs:hover .portal-link-btn__chev::before,
.portal-card--tile:hover .portal-link-btn__chev::before {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  transform: translateX(1px) rotate(45deg);
}

/* Decorative recipe mosaic — hero card */
.portal-hero-deco {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-hero-deco__rot {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.portal-hero-deco__row {
  display: flex;
  gap: 12px;
}

.portal-hero-deco__row img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  background: #1e1f26;
}

.portal-docs {
  max-width: 940px;
  gap: 0;
}

.docs-page-head {
  padding: 16px 0 28px;
}

.docs-page-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
}

.docs-page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 24px 0 16px;
  border: 1px solid #1e1f26;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.docs-row:hover,
.docs-row--active {
  background: var(--panel);
  border-color: #1e1f26;
  color: var(--text);
}

.docs-row__chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.docs-row__chev::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--stroke-2);
  border-right: 2px solid var(--stroke-2);
  transform: rotate(45deg);
}

.docs-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

.docs-pagination__btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1e1f26;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.docs-pagination__btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.docs-pagination__btn:hover {
  color: var(--text);
  background: #25262e;
}

.docs-pagination__btn.is-active:hover {
  color: var(--bg);
  background: var(--accent);
}

.portal-doc-detail {
  max-width: 940px;
  gap: 0;
  padding-bottom: 24px;
}

.doc-detail__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}

.doc-detail__crumb-sep {
  color: var(--hint);
}

.doc-detail__head {
  max-width: 760px;
  margin-bottom: 24px;
}

.doc-detail__head h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
}

.doc-detail__head p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.doc-detail__content {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.doc-detail__content > *:first-child {
  margin-top: 0;
}

.doc-detail__content h2,
.doc-detail__content h3 {
  margin: 28px 0 14px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.doc-detail__content h2 {
  font-size: 22px;
  line-height: 28px;
}

.doc-detail__content h3 {
  font-size: 16px;
  line-height: 22px;
  text-transform: uppercase;
}

.doc-detail__content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.doc-detail__content a {
  color: var(--accent);
  text-decoration: none;
}

.doc-detail__content a:hover {
  text-decoration: underline;
}

.doc-detail__content ul,
.doc-detail__content ol {
  margin: 12px 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.doc-detail__content li {
  margin: 8px 0;
}

.doc-detail__content li::marker {
  color: var(--accent);
}

.doc-detail__content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #272832;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.doc-detail__content img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.doc-detail__content img[width],
.help-faq-item__body img {
  display: inline;
  width: auto;
  max-width: 1.5em;
  max-height: 1.25em;
  margin: 0 0.2em;
  vertical-align: -0.15em;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.doc-detail__content img:not([width]) {
  display: block;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid #2a2b36;
  background: var(--panel-2);
}

.doc-detail__content figure {
  margin: 24px 0;
}

.doc-detail__content figure img {
  margin: 0;
}

.doc-detail__content figcaption {
  margin-top: 10px;
  color: var(--hint);
  font-size: 14px;
}

.doc-detail__content strong {
  color: var(--text);
  font-weight: 600;
}

.doc-article-hero {
  margin: 0 0 36px;
}

.doc-article-hero__main {
  overflow: hidden;
  padding: 16px;
  border: 1px solid #2a2b36;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 202, 2, 0.12), rgba(238, 202, 2, 0) 38%),
    var(--panel);
}

.doc-article-hero__toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 40px;
}

.doc-article-hero__toolbar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
}

.doc-article-hero__recipe {
  display: flex;
  align-items: center;
  max-width: 360px;
  margin: 0 auto 44px;
  padding: 18px;
  border: 1px solid rgba(238, 202, 2, 0.35);
  border-radius: 12px;
  background: #16171b;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  gap: 14px;
}

.doc-article-hero__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  place-items: center;
}

.doc-article-hero__recipe strong,
.doc-article-hero__recipe span {
  display: block;
}

.doc-article-hero__recipe strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 20px;
}

.doc-article-hero__recipe span {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.doc-article-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.doc-article-hero__grid span {
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f1014;
  color: var(--hint);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.doc-article-hero figcaption {
  margin-top: 12px;
}

.doc-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.doc-callout__icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  display: grid;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.doc-detail__content .doc-steps {
  padding-left: 0;
  counter-reset: doc-step;
  list-style: none;
}

.doc-detail__content .doc-steps li {
  position: relative;
  min-height: 34px;
  margin: 14px 0;
  padding-left: 48px;
}

.doc-detail__content .doc-steps li::before {
  content: counter(doc-step);
  counter-increment: doc-step;
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.doc-detail__content .doc-check-list {
  padding-left: 0;
  list-style: none;
}

.doc-detail__content .doc-check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
}

.doc-detail__content .doc-check-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.doc-detail__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.doc-detail__nav-card {
  position: relative;
  min-height: 64px;
  padding: 12px 44px;
  border: 1px solid #272832;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.doc-detail__nav-card:hover {
  border-color: #323440;
  background: #1e1f26;
  color: var(--text);
}

.doc-detail__nav-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--hint);
  font-size: 12px;
  line-height: 14px;
}

.doc-detail__nav-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-detail__nav-card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.doc-detail__nav-card--prev::before {
  left: 18px;
  transform: translateY(-50%) rotate(-135deg);
}

.doc-detail__nav-card--next::before {
  right: 18px;
  transform: translateY(-50%) rotate(45deg);
}

.doc-detail__nav-card--next {
  text-align: left;
}

.doc-detail__nav-card.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.portal-download {
  max-width: 940px;
  gap: 0;
}

.download-page-head {
  padding: 16px 0 28px;
}

.download-page-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
}

.download-page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.download-current {
  box-sizing: border-box;
  min-height: 126px;
  padding: 32px 40px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 40px;
}

.download-current__icon {
  width: 86px;
  height: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.download-current__icon img {
  width: 86px;
  height: 72px;
  object-fit: contain;
}

.download-current__content {
  min-width: 0;
}

.download-current__title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.download-current__date {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.download-current__link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.download-current__link:hover {
  color: var(--accent);
}

.download-versions {
  padding-top: 20px;
}

.download-versions__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.download-versions__list {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}

.download-versions__list li {
  padding-left: 4px;
  margin: 0 0 12px;
}

.download-versions__list a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.download-versions__list a:hover {
  color: var(--text);
}

.portal-help {
  max-width: 940px;
  gap: 0;
}

.help-page-head {
  padding: 16px 0 28px;
}

.help-page-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
}

.help-page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.help-section-title {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.help-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-faq-item {
  border-radius: var(--radius-xl);
  background: var(--panel);
  overflow: hidden;
}

.help-faq-item.is-open {
  background: #1e1f26;
}

.help-faq-item__head {
  width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.help-faq-item.is-open .help-faq-item__head {
  color: var(--text);
  padding-bottom: 10px;
}

.help-faq-item__chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.help-faq-item__chev::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--stroke-2);
  border-bottom: 2px solid var(--stroke-2);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.help-faq-item.is-open .help-faq-item__chev::before {
  top: 11px;
  transform: rotate(225deg);
}

.help-faq-item__body {
  padding: 0 24px 22px;
}

.help-faq-item__body {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.help-faq-item__body > :first-child {
  margin-top: 0;
}

.help-faq-item__body > :last-child {
  margin-bottom: 0;
}

.help-faq-item__body img:not([width]) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
  border: 1px solid #2a2b36;
  background: var(--panel-2);
}

.help-faq-item__body a,
.help-inline-link {
  color: var(--accent);
  font: inherit;
  text-decoration: none;
}

.help-inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.help-contact {
  padding-top: 32px;
}

.help-contact-card {
  min-height: 204px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.help-contact-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.help-contact-card__lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.help-contact-card__phone {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  text-decoration: none;
}

.help-contact-card__mail {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.help-contact-card__messenger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.help-contact-card__messenger img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.help-contact-card__art {
  position: relative;
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  margin-right: 8px;
}

.help-contact-card__heart {
  position: absolute;
  right: 18px;
  top: 4px;
  width: 42px;
  height: 42px;
  background: var(--accent);
  transform: rotate(-45deg);
  border-radius: 8px;
}

.help-contact-card__heart::before,
.help-contact-card__heart::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
}

.help-contact-card__heart::before {
  top: -21px;
  left: 0;
}

.help-contact-card__heart::after {
  top: 0;
  left: 21px;
}

.help-contact-card__hand {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 72px;
  height: 28px;
  border-bottom: 3px solid var(--stroke-2);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.help-contact-card__hand::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 6px;
  width: 54px;
  height: 18px;
  border-top: 3px solid var(--stroke-2);
  border-radius: 50%;
}

.help-contact-card__hand::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 30px;
  height: 18px;
  border-bottom: 3px solid var(--stroke-2);
  border-right: 3px solid var(--stroke-2);
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar {
    width: 52px;
    min-width: 52px;
    padding: 16px 10px;
    align-items: center;
    overflow: visible;
    position: relative;
    z-index: 5;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__logo {
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-logo {
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 50%;
    background: url("images/portal/onboard-chef.png") center / 32px 32px no-repeat;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-logo__img {
    display: none;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-nav {
    align-items: center;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-nav__item,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse {
    width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-nav__text,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse-text {
    display: none;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__footer {
    display: none;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__bottom {
    justify-content: center;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse {
    align-self: center;
    margin-top: 0;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse-icon--collapse {
    display: none;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse-icon--expand {
    display: block;
  }

  .portal-grid--top {
    flex-direction: column;
  }

  .portal-grid--top .portal-card--hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: 260px;
  }

  .portal-grid--top .portal-card--docs {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: 240px;
  }

  .portal-grid--bottom {
    flex-direction: column;
  }

  .portal-grid--bottom .portal-card--tile {
    aspect-ratio: auto;
    max-height: none;
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .view-portal {
    flex-direction: column;
  }

  .portal-sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-right: none;
    border-bottom: 0.33px solid var(--stroke-2);
    overflow-x: auto;
  }

  .portal-sidebar__logo {
    padding: 0;
    flex-shrink: 0;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__logo,
  .view-portal.is-sidebar-collapsed .portal-sidebar__logo {
    width: auto;
    height: auto;
    padding: 0;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-logo,
  .view-portal.is-sidebar-collapsed .portal-logo {
    width: auto;
    height: auto;
    background: none;
  }

  .portal-logo__img,
  .view-portal:not(.is-sidebar-expanded) .portal-logo__img,
  .view-portal.is-sidebar-collapsed .portal-logo__img {
    display: block;
    width: 82px;
    height: 32px;
  }

  .portal-nav {
    flex: 1;
    min-width: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .portal-nav__item,
  .view-portal.is-sidebar-collapsed .portal-nav__item {
    width: auto;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    justify-content: center;
    border-radius: 10px;
    gap: 8px;
  }

  .portal-sidebar__spacer,
  .portal-sidebar__bottom,
  .portal-sidebar__collapse,
  .portal-sidebar__footer {
    display: none;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-sidebar {
    width: 100%;
    min-width: 0;
    padding: 8px 12px;
    align-items: flex-start;
  }

  .view-portal:not(.is-sidebar-expanded) .portal-nav__text,
  .view-portal.is-sidebar-collapsed .portal-nav__text {
    display: inline;
  }

  .portal-intro__title {
    font-size: 26px;
    line-height: 30px;
  }

  .portal-hero-deco {
    opacity: 0.35;
    right: -160px;
    bottom: -160px;
  }

  .download-current {
    padding: 24px;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .portal-sidebar {
    align-items: center;
  }

  .portal-logo__img,
  .view-portal:not(.is-sidebar-expanded) .portal-logo__img,
  .view-portal.is-sidebar-collapsed .portal-logo__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
  }

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

  .portal-nav__item,
  .view-portal.is-sidebar-collapsed .portal-nav__item {
    width: 40px;
    min-width: 40px;
    padding: 0;
    gap: 0;
  }

  .portal-nav__text,
  .view-portal:not(.is-sidebar-expanded) .portal-nav__text,
  .view-portal.is-sidebar-collapsed .portal-nav__text {
    display: none;
  }

  .download-page-head {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .docs-page-head {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .docs-page-title {
    font-size: 26px;
    line-height: 30px;
  }

  .docs-row {
    min-height: 52px;
    padding-right: 14px;
    font-size: 16px;
    line-height: 20px;
  }

  .docs-pagination__btn {
    width: 36px;
    height: 36px;
  }

  .doc-detail__crumb {
    padding-top: 8px;
    padding-bottom: 20px;
    flex-wrap: wrap;
  }

  .doc-detail__head h1 {
    font-size: 26px;
    line-height: 32px;
  }

  .doc-detail__head p,
  .doc-detail__content {
    font-size: 15px;
    line-height: 1.65;
  }

  .doc-detail__nav {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .download-page-title {
    font-size: 26px;
    line-height: 30px;
  }

  .download-current {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .download-current__icon,
  .download-current__icon img {
    width: 72px;
    height: 60px;
  }

  .help-page-head {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .help-page-title {
    font-size: 26px;
    line-height: 30px;
  }

  .help-faq-item__head {
    padding: 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .help-faq-item__body {
    padding: 0 16px 18px;
  }

  .help-contact {
    padding-top: 24px;
  }

  .help-contact-card {
    min-height: 0;
    padding: 20px;
  }

  .help-contact-card__phone {
    font-size: 26px;
    line-height: 30px;
  }

  .help-contact-card__art {
    display: none;
  }
}

/* Onboarding wizard — step 1: Figma ConstructorStartSection (node 2108:4475) */
.onboard-wizard {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.onboard-wizard__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 48px;
  width: 100%;
  box-sizing: border-box;
}

.onboard-wizard__steps {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.onboard-wizard__step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.onboard-wizard__step.is-active {
  display: flex;
}

.onboard-card {
  box-sizing: border-box;
  width: 420px;
  max-width: 92vw;
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.onboard-card[hidden] {
  display: none;
}

.onboard-card__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.onboard-card__chef {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}

.onboard-card__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.onboard-card__lead {
  margin: 0;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--muted);
  text-align: center;
}

.onboard-warning {
  margin: -4px 0 0;
  min-height: 20px;
  color: var(--danger);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.onboard-warning[hidden] {
  display: none;
}

.onboard-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 16px;
  border-top: 0.33px solid var(--stroke-2);
}

.onboard-card__actions--single {
  gap: 0;
}

.onboard-card__btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

.onboard-card__btn--primary:disabled:hover {
  filter: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.onboard-firmware-field {
  position: relative;
  width: 100%;
}

.onboard-firmware-picker {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  box-sizing: border-box;
  border: 0.33px solid var(--stroke-2);
  border-radius: 12px;
  background: var(--bg);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: left;
}

.onboard-firmware-picker__label {
  color: var(--muted);
  pointer-events: none;
}

.onboard-firmware-picker.is-chosen .onboard-firmware-picker__label {
  color: var(--text);
}

.onboard-firmware-picker:focus {
  outline: 2px solid rgba(238, 202, 2, 0.35);
  outline-offset: 2px;
}

.onboard-firmware-picker.is-editing {
  outline: 2px solid rgba(238, 202, 2, 0.35);
  outline-offset: 2px;
}

.onboard-firmware-field::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.onboard-card__btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  padding: 8px 16px 8px 20px;
}

.onboard-card__btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.onboard-card__btn--primary:hover {
  filter: brightness(1.06);
}

.onboard-card__btn--secondary {
  background: #1e1f26;
  color: var(--muted);
}

.onboard-card__btn--secondary:hover {
  color: var(--text);
  background: #25262e;
}

.onboard-help-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(238, 202, 2, 0.22);
  background: rgba(238, 202, 2, 0.10);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.onboard-help-link:hover {
  border-color: rgba(238, 202, 2, 0.38);
  background: rgba(238, 202, 2, 0.16);
  color: var(--accent);
}

.onboard-help-link__chev {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.onboard-help-link__chev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-left: -2px;
}

.onboard-help-link:hover .onboard-help-link__chev::before {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
}

.onboard-card--upload .onboard-card__hero {
  gap: 0;
}

.onboard-card--upload .onboard-dropzone {
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--stroke-2);
  border-radius: 8px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.onboard-card--upload .onboard-dropzone.is-drag {
  border-color: var(--accent);
  background: rgba(238, 202, 2, 0.07);
}

.onboard-card--upload .onboard-dropzone.is-has-files {
  border-color: rgba(238, 202, 2, 0.55);
  background: rgba(238, 202, 2, 0.04);
}

.onboard-card--upload .onboard-dropzone.is-complete {
  border-style: solid;
  background: rgba(238, 202, 2, 0.08);
}

.onboard-dropzone__hint {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--muted);
  width: 100%;
}

.onboard-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  padding: 8px 16px 8px 20px;
  border-radius: 8px;
  border: 0;
  background: #1e1f26;
  color: var(--muted);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.onboard-upload-btn:hover {
  background: #25262e;
  border-color: rgba(255, 255, 255, 0.12);
}

.onboard-upload-btn img {
  flex-shrink: 0;
}

.onboard-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}

.onboard-file-list[hidden] {
  display: none;
}

.onboard-file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #121318;
}

.onboard-file-list__item.is-ok {
  border-color: rgba(238, 202, 2, 0.55);
  background: rgba(238, 202, 2, 0.08);
}

.onboard-file-list__item.is-error {
  border-color: rgba(255, 77, 79, 0.55);
  background: rgba(255, 77, 79, 0.08);
}

.onboard-file-list__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.onboard-file-list__name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.onboard-file-list__meta {
  overflow: hidden;
  color: var(--hint);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboard-file-list__item.is-ok .onboard-file-list__meta {
  color: rgba(255, 255, 255, 0.72);
}

.onboard-file-list__state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}

.onboard-file-list__item.is-ok .onboard-file-list__state {
  background: var(--accent);
  color: var(--bg);
}

.onboard-file-list__item.is-error .onboard-file-list__state {
  background: var(--danger);
  color: #fff;
}

.onboard-hint {
  margin: 0 0 14px;
  min-height: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--danger);
  text-align: center;
}

.onboard-hint--info {
  color: var(--muted);
  font-weight: 500;
}

.onboard-hint--warn {
  color: #e8b84a;
}

.onboard-card--upload .onboard-hint:empty {
  display: none;
  margin: 0;
}

.onboard-card--waiting {
  align-items: center;
}

.onboard-waiting-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.onboard-waiting-icon img {
  width: 24px;
  height: 24px;
  animation: onboard-loading-spin 0.9s linear infinite;
}

.onboard-waiting-text {
  width: 100%;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--muted);
  text-align: center;
}

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

.onboard-back {
  margin-top: 8px;
  padding: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onboard-back:hover {
  color: var(--text);
}

.onboard-card--stub {
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.onboard-card__stub-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.portal-sidebar__backdrop {
  display: none;
}

.portal-sidebar__backdrop[hidden] {
  display: none;
}

@media (max-width: 720px) {
  body.is-portal-menu-open {
    overflow: hidden;
  }

  .view-portal {
    --mobile-sidebar-width: clamp(248px, 64vw, 296px);
    min-height: 100svh;
    flex-direction: column;
    position: relative;
  }

  .portal-sidebar,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar,
  .view-portal.is-sidebar-collapsed .portal-sidebar {
    width: 100%;
    min-width: 0;
    height: 78px;
    flex: 0 0 78px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #151819;
    border-right: 0;
    border-bottom: 1px solid #1e1f26;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .portal-sidebar__logo,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__logo,
  .view-portal.is-sidebar-collapsed .portal-sidebar__logo {
    width: auto;
    height: auto;
    padding: 0;
    flex-shrink: 0;
  }

  .portal-logo,
  .view-portal:not(.is-sidebar-expanded) .portal-logo,
  .view-portal.is-sidebar-collapsed .portal-logo {
    width: auto;
    height: auto;
    display: block;
    background: none;
    border-radius: 0;
  }

  .portal-logo__img,
  .view-portal:not(.is-sidebar-expanded) .portal-logo__img,
  .view-portal.is-sidebar-collapsed .portal-logo__img {
    display: block;
    width: 122px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  .portal-nav,
  .view-portal:not(.is-sidebar-expanded) .portal-nav,
  .view-portal.is-sidebar-collapsed .portal-nav {
    display: none;
  }

  .portal-sidebar__spacer,
  .portal-sidebar__footer {
    display: none;
  }

  .portal-sidebar__bottom,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__bottom,
  .view-portal.is-sidebar-collapsed .portal-sidebar__bottom {
    display: flex;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .portal-sidebar__collapse,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse,
  .view-portal.is-sidebar-collapsed .portal-sidebar__collapse {
    position: relative;
    display: flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1e1f26;
    color: var(--muted);
  }

  .portal-sidebar__collapse-icon,
  .view-portal:not(.is-sidebar-expanded) .portal-sidebar__collapse-icon,
  .view-portal.is-sidebar-collapsed .portal-sidebar__collapse-icon {
    display: none;
  }

  .portal-sidebar__collapse::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  .portal-sidebar__collapse::after {
    content: none;
  }

  .view-portal.is-sidebar-expanded .portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: var(--mobile-sidebar-width);
    min-width: 0;
    height: 100dvh;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 29px 16px 24px;
    border-right: 1px solid #1e1f26;
    border-bottom: 0;
    overflow-y: auto;
  }

  .view-portal.is-sidebar-expanded .portal-nav {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .view-portal.is-sidebar-expanded .portal-nav__item,
  .view-portal.is-sidebar-expanded .portal-nav__item:hover {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .view-portal.is-sidebar-expanded .portal-nav__text {
    display: inline;
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__bottom {
    position: absolute;
    top: 32px;
    right: 24px;
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__collapse {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 0;
    background: transparent;
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__collapse::before,
  .view-portal.is-sidebar-expanded .portal-sidebar__collapse::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: none;
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__collapse::before {
    transform: rotate(45deg);
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__collapse::after {
    transform: rotate(-45deg);
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__backdrop {
    display: block;
    position: fixed;
    inset: 0 0 0 var(--mobile-sidebar-width);
    z-index: 110;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(8, 9, 13, 0.78);
  }

  .view-portal.is-sidebar-expanded .portal-sidebar__backdrop[hidden] {
    display: none;
  }

  .portal-main {
    min-height: 0;
    overflow: visible;
  }

  .portal-bc {
    display: flex;
  }

  body.is-constructor-view .portal-body {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 24px 24px;
  }

  body.is-constructor-view #viewDashboard,
  body.is-constructor-view #viewOnboarding {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  body.is-constructor-view .portal-bc__text {
    font-size: 14px;
    line-height: 18px;
  }

  body.is-constructor-view .onboard-wizard {
    padding-top: 16px;
    padding-bottom: 96px;
  }
}
