.sm-profile-layer {
  width: 244px;
  max-height: calc(100vh - 86px);
  overflow: auto;
  border: 1px solid #313136;
  border-radius: 4px;
  background: #0d0d0f;
  box-shadow: 0 24px 64px rgba(0,0,0,.62);
  color: #fff;
}
.dropdown-menu.sm-profile-layer {
  display: block;
  width: 244px;
  max-height: calc(100vh - 86px);
  padding: 0;
  overflow: auto;
  border: 1px solid #313136;
  border-radius: 4px;
  background: #0d0d0f;
  box-shadow: 0 24px 64px rgba(0,0,0,.62);
  backdrop-filter: none;
}
.dropdown-menu.sm-profile-layer::before { content: none; }
.sm-profile-layer a { color: inherit; text-decoration: none; }
.sm-profile-layer button { font: inherit; }
.sm-profile-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 24px 16px 13px;
}
.sm-profile-avatar-lg {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
}
.sm-profile-avatar-lg svg,
.sm-profile-avatar-lg img { width: 100%; height: 100%; display: block; }
.sm-profile-copy { display: grid; gap: 7px; min-width: 0; }
.sm-profile-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
}
.sm-profile-name span {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.sm-profile-membership-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(143, 122, 255, .36);
  border-radius: 999px;
  color: #dcd6ff;
  background: linear-gradient(120deg, rgba(111, 82, 255, .24), rgba(72, 215, 255, .1));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
  cursor: pointer;
}
.sm-profile-membership-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #9b87ff;
  box-shadow: 0 0 10px rgba(155, 135, 255, .8);
}
.sm-profile-membership-badge.active {
  border-color: rgba(83, 237, 178, .38);
  color: #b7ffe2;
  background: rgba(83, 237, 178, .1);
}
.sm-profile-membership-badge.active::before {
  background: #53edb2;
  box-shadow: 0 0 10px rgba(83, 237, 178, .85);
}
.sm-profile-membership-badge.plan-enterprise {
  min-height: 18px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1;
}
.sm-profile-membership-badge.plan-enterprise::before {
  width: 4px;
  height: 4px;
  margin-right: 4px;
  box-shadow: 0 0 6px rgba(83, 237, 178, .7);
}
.sm-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 14px 16px;
  text-align: center;
}
.sm-profile-stats a { display: grid; gap: 4px; }
.sm-profile-stats strong { color: #f3f3f5; font-size: 19px; font-weight: 1000; line-height: 1; }
.sm-profile-stats span { color: #8b8b92; font-size: 12px; font-weight: 700; }
.sm-profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 16px 10px;
}
.sm-profile-shortcut {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #303036;
  border-radius: 7px;
  color: #dcdce2;
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-weight: 900;
}
.sm-profile-shortcut:hover { border-color: #55545f; background: rgba(255,255,255,.06); }
.sm-profile-limit {
  display: grid;
  gap: 6px;
  margin: 0 16px 10px;
  padding: 11px 12px;
  border: 1px solid rgba(83, 237, 178, .28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, rgba(33, 112, 91, .34), rgba(77, 60, 150, .28));
}
.sm-profile-limit > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sm-profile-limit small { color: #9da7a4; font-size: 10px; font-weight: 850; }
.sm-profile-limit strong { font-size: 12px; }
.sm-profile-limit b { color: #72f2c3; font-size: 16px; }
.sm-profile-limit em { color: #aeb7b4; font-size: 10px; font-style: normal; }
.sm-profile-shortcut > span,
.sm-row-icon { width: 15px; height: 15px; position: relative; flex: 0 0 15px; }
.sm-profile-shortcut > span::before {
  content: "";
  position: absolute;
  inset: 4px 1px 1px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
}
.sm-profile-shortcut > span::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 1px; height: 5px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.sm-profile-shortcut > span.request::after {
  left: 3px; right: 3px; top: 3px; height: 7px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}
.sm-profile-shortcut > span.request::before {
  inset: auto 1px 0;
  height: 4px;
  border-radius: 5px 5px 1px 1px;
}
.sm-profile-primary-actions {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}
.sm-profile-primary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.24);
  transition: transform .16s ease, filter .16s ease;
}
.sm-profile-primary.desktop { background: linear-gradient(120deg, #6748e8, #8268ff 58%, #40afd2); }
.sm-profile-primary.market { background: linear-gradient(120deg, #18395d, #176579 54%, #159d82); }
.sm-profile-primary:hover { transform: translateY(-1px); filter: brightness(1.09); }
.sm-profile-primary > span { display: grid; gap: 1px; }
.sm-profile-primary small { font-size: 9px; font-weight: 850; letter-spacing: .12em; opacity: .72; }
.sm-profile-primary strong { font-size: 15px; line-height: 1.15; font-weight: 1000; }
.sm-profile-primary i { font-size: 19px; font-style: normal; font-weight: 700; opacity: .9; }
.sm-profile-divider.strong {
  height: 9px;
  background: #000;
  border-top: 1px solid #08080a;
  border-bottom: 1px solid #202024;
}
.sm-profile-section { padding: 10px 0; border-bottom: 1px solid #2a2a2f; }
.sm-profile-section:last-child { border-bottom: 0; }
.sm-profile-row {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border: 0;
  color: #f3f3f5;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.sm-profile-row:hover { background: rgba(255,255,255,.045); }
.sm-profile-row strong { font-size: 14px; font-weight: 900; white-space: nowrap; }
.sm-profile-row em { color: #8f8f96; font-size: 13px; font-style: normal; font-weight: 900; }
.sm-profile-membership-state.active { color: #72f2c3; }
.sm-profile-membership-row {
  min-height: 52px;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.sm-profile-membership-row .sm-row-icon { grid-row: 1 / span 2; }
.sm-profile-membership-row .sm-profile-membership-state { grid-column: 2; font-size: 12px; }
.sm-row-icon::before,
.sm-row-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.sm-row-icon.card::before { inset: 3px 1px; border: 1.7px solid currentColor; border-radius: 2px; }
.sm-row-icon.card::after { left: 2px; right: 2px; top: 7px; height: 1.7px; background: currentColor; }
.sm-row-icon.point::before { inset: 2px 3px; border: 1.7px solid currentColor; border-radius: 50%; }
.sm-row-icon.point::after { left: 4px; right: 4px; top: 7px; height: 1.7px; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; background: currentColor; opacity: .75; }
.sm-row-icon.ticket::before { inset: 4px 0; border-top: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; }
.sm-row-icon.ticket::after { left: 2px; right: 2px; top: 7px; height: 5px; border-left: 1.7px solid currentColor; border-right: 1.7px solid currentColor; }
.sm-row-icon.doc::before { inset: 1px 3px; border: 1.7px solid currentColor; border-radius: 2px; }
.sm-row-icon.doc::after { left: 6px; right: 5px; top: 6px; height: 1.5px; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor; background: currentColor; }
.sm-row-icon.cube::before { inset: 2px; border: 1.7px solid currentColor; transform: rotate(45deg) scale(.82); }
.sm-row-icon.notice::before { left: 1px; top: 5px; width: 11px; height: 8px; border: 1.7px solid currentColor; border-radius: 2px; }
.sm-row-icon.notice::after { right: 1px; top: 2px; width: 6px; height: 12px; border: 1.7px solid currentColor; border-left: 0; border-radius: 0 99px 99px 0; }
.sm-row-icon.headset::before { inset: 2px 1px; border: 1.7px solid currentColor; border-bottom-color: transparent; border-radius: 50% 50% 0 0; }
.sm-row-icon.headset::after { left: 2px; right: 2px; bottom: 2px; height: 6px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.sm-row-icon.gear::before { inset: 3px; border: 1.8px solid currentColor; border-radius: 50%; box-shadow: 0 -5px 0 -2px currentColor, 0 5px 0 -2px currentColor, 5px 0 0 -2px currentColor, -5px 0 0 -2px currentColor; }
.sm-row-icon.logout::before { left: 1px; top: 3px; width: 9px; height: 10px; border: 1.7px solid currentColor; border-right: 0; border-radius: 2px 0 0 2px; }
.sm-row-icon.logout::after { right: 0; top: 7px; width: 10px; height: 2px; background: currentColor; box-shadow: 3px -3px 0 -1px currentColor, 3px 3px 0 -1px currentColor; }
