/* create.jegg.lol — страница Develop Роблокса 2017–2018 поверх leanbase.css.
   Цвета и размеры сняты с той вёрстки: белые панели на #f2f2f2, левое меню
   с серой подсветкой выбранного, строки работ через 1px #e3e3e3, шестерёнка
   справа с выпадающим списком действий. */

.create-body .container-main.create-main { max-width: 1000px; margin: 0 auto; padding: 0 12px; }
.create-navbar { float: left; margin-left: 12px; }
.create-navbar > li { display: inline-block; }
.create-navbar .create-nav-active { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.create-title { font-size: 32px; font-weight: 400; margin: 18px 0 12px; }
.create-tabs { margin-bottom: 0; }
.create-tabs .nav-tabs { display: flex; }
.create-tabs .rbx-tab { flex: 0 0 180px; }

.create-layout { display: flex; background: #fff; border: 1px solid #e3e3e3; border-top: 0; min-height: 420px; }
.create-menu { list-style: none; margin: 0; padding: 12px 0; flex: 0 0 180px; border-right: 1px solid #e3e3e3; }
.create-menu li a { display: block; padding: 7px 18px; color: #191919; font-size: 15px; }
.create-menu li a:hover { background: #f2f2f2; text-decoration: none; }
.create-menu li.active a { background: #e3e3e3; font-weight: 600; box-shadow: inset 4px 0 0 #00a2ff; }

.create-pane { flex: 1 1 auto; padding: 12px 20px 24px; min-width: 0; }
.create-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #e3e3e3; padding-bottom: 10px; margin-bottom: 8px; }
.create-pane-head h2 { margin: 0; font-size: 24px; font-weight: 400; }
.create-hint { margin: 6px 0 10px; }
.create-empty { padding: 40px 0; text-align: center; color: #757575; font-size: 16px; }

.create-items { list-style: none; margin: 0; padding: 0; }
.create-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
.create-thumb { flex: 0 0 70px; width: 70px; height: 70px; border: 1px solid #e3e3e3; background: #f2f2f2 center/cover;
  display: block; overflow: hidden; }
.create-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.create-info { flex: 1 1 auto; min-width: 0; }
.create-name { font-size: 16px; font-weight: 600; color: #191919; word-break: break-word; }
a.create-name:hover { color: #00a2ff; }
.create-copy { cursor: pointer; color: #00a2ff; }
.create-copy.copied::after { content: " скопировано"; color: #02b757; font-weight: 400; }
.create-rename { display: flex; gap: 6px; margin-top: 6px; max-width: 420px; }
.create-rename[hidden] { display: none; }
.create-rename .input-field { height: 30px; }

.create-gear { position: relative; flex: 0 0 auto; }
.create-gear-btn { border: 1px solid #b8b8b8; background: #fff; border-radius: 3px; width: 34px; height: 28px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.create-gear-btn:hover { border-color: #191919; }
.create-dropdown { position: absolute; right: 0; top: 32px; z-index: 20; min-width: 190px; list-style: none; margin: 0;
  padding: 4px 0; background: #fff; border: 1px solid #b8b8b8; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.create-dropdown[hidden] { display: none; }
.create-dropdown li a, .create-dropdown li button { display: block; width: 100%; text-align: left; padding: 6px 14px;
  color: #191919; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.create-dropdown li a:hover, .create-dropdown li button:hover { background: #f2f2f2; text-decoration: none; }
.create-dropdown form { margin: 0; }

.create-play { position: relative; cursor: pointer; padding: 0; background: #393b3d; }
.create-play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  margin: -11px 0 0 -6px; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff; }
.create-play.playing::before { width: 16px; height: 18px; margin: -9px 0 0 -8px; border: 0;
  border-left: 5px solid #fff; border-right: 5px solid #fff; box-sizing: border-box; }
.create-play.playing { background: #00a2ff; }

.create-form { display: flex; flex-direction: column; gap: 6px; max-width: 460px; padding-top: 8px; }
.create-form .text-label { margin-top: 8px; font-weight: 600; }
.create-form .btn-primary-md { margin-top: 14px; align-self: flex-start; }
.create-check { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; font-weight: 400; }

.create-search { display: flex; gap: 8px; margin: 4px 0; }
.create-search .input-field { flex: 1 1 auto; }
.create-grid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.create-card { min-width: 0; }
.create-card-thumb { display: block; width: 100%; aspect-ratio: 1; border: 1px solid #e3e3e3; background: #f2f2f2; overflow: hidden; }
.create-card-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.create-card-name { font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.create-card-name a { color: #191919; }
.create-card-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.create-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }

.create-landing { background: #fff; border: 1px solid #e3e3e3; border-top: 0; padding: 40px 28px; text-align: center; }
.create-landing h2 { font-size: 28px; font-weight: 400; margin: 0 0 12px; }
.create-landing .text-description { max-width: 560px; margin: 0 auto 20px; }
.create-landing .btn-primary-md, .create-landing .btn-control-md { margin: 0 6px; }
.create-login form { max-width: 320px; margin: 0 auto; text-align: left; }

/* ---------- телефоны ----------
   Шапку раскладывает style.css (флекс, @media max-width:767px), но там её высота
   посчитана на две строки — у основного сайта вторая строка это поиск. Здесь
   поиска в шапке нет, поэтому строка одна и высота своя: --jegg-header-h от неё
   двигает и .container-main. */
@media (max-width: 767px) {
  .create-body { --jegg-header-h: 52px; }
  .create-body .container-main.create-main { padding: 0 8px; padding: 0 calc(8px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left)); }

  /* Из ссылок шапки остаётся только «Create» — рядом с логотипом. */
  .create-navbar { display: block; float: none; margin: 0 0 0 6px; order: 1; flex: 0 0 auto; }
  .create-navbar > li { display: none; }
  .create-navbar > li:last-child { display: block; }
  .create-navbar .nav-menu-title { padding: 0 4px; font-size: 16px; }
  .create-body .jegg-brand-logo { height: 32px; margin-top: 0; }

  .create-title { font-size: 22px; margin: 12px 0 8px; }
  .create-tabs .rbx-tab { flex: 1 1 50%; }

  .create-layout { flex-direction: column; min-height: 0; }
  /* Разделы — лента, которая листается пальцем, а не перенос в три строки. */
  .create-menu { display: flex; flex: none; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; border-right: 0; border-bottom: 1px solid #e3e3e3; padding: 6px; gap: 4px; }
  .create-menu::-webkit-scrollbar { display: none; }
  .create-menu li { flex: 0 0 auto; }
  .create-menu li a { padding: 8px 12px; border-radius: 16px; background: #f2f2f2; font-size: 14px; white-space: nowrap; }
  .create-menu li.active a { background: #00a2ff; color: #fff; box-shadow: none; }

  .create-pane { padding: 10px 10px 18px; }
  .create-pane-head { flex-wrap: wrap; }
  .create-pane-head h2 { font-size: 20px; }

  .create-item { gap: 10px; }
  .create-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .create-name { font-size: 15px; }
  .create-info .text-secondary { font-size: 13px; word-break: break-word; }
  .create-gear-btn { width: 40px; height: 36px; }
  .create-dropdown { top: 40px; min-width: 200px; }
  .create-dropdown li a, .create-dropdown li button { padding: 11px 14px; font-size: 15px; }
  .create-rename { max-width: none; flex-wrap: wrap; }
  .create-rename .input-field { flex: 1 1 160px; }

  /* 16px в полях — иначе iOS увеличивает страницу при фокусе. */
  .create-body .input-field, .create-body select, .create-body textarea { font-size: 16px; height: auto; min-height: 38px; }
  .create-form { max-width: none; }
  .create-form .btn-primary-md { align-self: stretch; }
  .create-form input[type=file] { max-width: 100%; }

  .create-search .btn-secondary-md { flex: 0 0 auto; }
  .create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .create-pager { gap: 8px; font-size: 13px; }

  .create-landing { padding: 24px 14px; }
  .create-landing h2 { font-size: 22px; }
  .create-landing .btn-primary-md, .create-landing .btn-control-md { display: block; margin: 8px 0; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .create-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
