/* Шапка студии и конструктора каруселей (12.10.2026).
   Восемь пунктов в строку не помещались: творческие разделы собраны в «Создать ▾»
   с карточками, «Кабинет» и «Выйти» -- в кнопке счёта справа. Поверх sc.css. */
.sh-nav { align-items: center; }
.sh-nav > a, .sh-dd-btn {
  padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px;
  color: var(--text-soft, #46536b); text-decoration: none; white-space: nowrap;
}
.sh-nav > a:hover, .sh-dd-btn:hover, .sh-dd.open .sh-dd-btn { color: var(--text, #16202f); background: var(--surface, #fff); }
.sh-nav > a[aria-current="page"] { color: var(--accent, #2563eb); }

.sh-dd { position: relative; }
.sh-dd-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-family: inherit; }
.sh-dd-btn svg { transition: transform .2s; }
.sh-dd.open .sh-dd-btn svg { transform: rotate(180deg); }
.sh-dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(600px, calc(100vw - 32px)); display: none; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px; padding: 10px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e2e7f0); border-radius: 18px;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, .28); z-index: 60;
}
.sh-dd.open .sh-dd-panel { display: grid; }
.sh-nav .sh-dd-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px;
  color: var(--text, #16202f); text-decoration: none;
  /* sc.css запрещает перенос у ссылок меню -- карточкам он нужен: у владельца
     пояснение вылезало за панель (шрифт шире, чем на моём экране). */
  white-space: normal; min-width: 0;
}
.sh-dd-item > span:last-child { min-width: 0; }
.sh-dd-item:hover { background: var(--surface-3, #f1f5f9); }
.sh-dd-item[aria-current="page"] { background: var(--accent-soft, #e8efff); }
.sh-dd-ico {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft, #e8efff); color: var(--accent, #2563eb);
}
.sh-dd-item b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.sh-dd-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-soft, #46536b); }
.sh-new { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: var(--accent, #2563eb); border-radius: 999px; padding: 2px 7px; }
.sh-dd-wide { grid-column: 1 / -1; }

/* Кнопка счёта: «⚡ 53 459» + меню «Кабинет / Пополнить / Выйти» */
.st-who { position: relative; }
.st-who .sh-acc-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 9px;
  border: 1px solid var(--border, #e2e7f0); border-radius: 12px; background: var(--surface, #fff);
  color: var(--text, #16202f); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.st-who .sh-acc-btn:hover { border-color: var(--accent, #2563eb); }
.sh-acc-dot { display: inline-grid; place-items: center; width: 18px; font-size: 17px; line-height: 1; }
.sh-acc-btn small { color: var(--text-soft, #46536b); font-weight: 500; }
.sh-acc-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; display: none; flex-direction: column;
  padding: 8px; background: var(--surface, #fff); border: 1px solid var(--border, #e2e7f0); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, .28); z-index: 60;
}
.st-who.open .sh-acc-panel { display: flex; }
.st-who .sh-acc-panel a, .st-who .sh-acc-panel button {
  display: block; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 14px; line-height: 1.3;
  font-family: inherit; color: var(--text, #16202f); text-decoration: none; background: none; border: 0; cursor: pointer;
  width: 100%;
}
.sh-acc-panel a:hover, .sh-acc-panel button:hover { background: var(--surface-3, #f1f5f9); }
.sh-acc-panel .sh-acc-sum { padding: 8px 12px 10px; font-size: 13px; color: var(--text-soft, #46536b);
  border-bottom: 1px solid var(--border, #e2e7f0); margin-bottom: 4px; }
.sh-acc-panel .sh-acc-sum b { display: block; font-size: 18px; color: var(--text, #16202f); }
.st-who .sh-acc-panel button { color: var(--text-soft, #46536b); }

@media (max-width: 1100px) {
  .sh-nav > a, .sh-dd-btn { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 980px) {
  /* Бургер: меню списком, «Создать» -- раскрытой группой карточек. */
  .sh-nav { align-items: stretch; max-height: calc(100vh - 70px); overflow-y: auto; }
  .sh-nav > a { padding: 12px 8px; font-size: 16px; }
  .sh-dd-btn { display: none; }
  .sh-dd-panel { position: static; transform: none; width: auto; display: grid; grid-template-columns: 1fr;
    box-shadow: none; border: 0; padding: 0 0 6px; border-bottom: 1px solid var(--border, #e2e7f0); border-radius: 0; }
  .sh-dd-item { padding: 10px 6px; }
  .st-who { display: block !important; }
}
@media (max-width: 560px) {
  .sh-acc-btn small { display: none; }
}

/* Язык кабинета: флаг в шапке и меню из шести языков */
.sh-lang { position: relative; }
.sh-lang-btn svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 26, 46, .12); }
.sh-lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px; padding: 6px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(15, 26, 46, .28); }
.sh-lang.open .sh-lang-menu { display: grid; gap: 2px; }
.sh-lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--text, #16202f); font: 500 14px/1.2 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.sh-lang-menu button:hover, .sh-lang-menu button.on { background: var(--surface-3, #f1f5f9); }
.sh-lang-menu svg { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 26, 46, .12); }
