/* ============================================================
   logos.css — «Логотипы и бренд» (/logos). Самодостаточно.
   ============================================================ */

body[data-page="logos"] .studio-empty,
body[data-page="logos"] .composer-wrap { display: none !important; }

.lg-root { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: 0 auto; width: 100%; padding: 8px 0 40px; }

.lg-head { text-align: center; margin-bottom: 4px; }
.lg-head h2 { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lg-head p { margin: 0; color: var(--text-3, #8a8a93); font-size: 13.5px; line-height: 1.5; }

.lg-name {
  background: rgba(255,255,255,.04); border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 13px; padding: 14px 16px; color: var(--text, #fff);
  font-family: inherit; font-size: 16px; font-weight: 600;
}
.lg-name:focus { outline: none; border-color: var(--accent, #E4F482); }
.lg-name::placeholder { color: var(--text-3, #8a8a93); font-weight: 400; }

.pc-label { font-family: var(--font-ui, inherit); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3, #8a8a93); }

.lg-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; }
.lg-style {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  background: rgba(255,255,255,.04); color: var(--text-2, #c7c7cf);
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 13px;
  padding: 13px 8px; font-family: inherit; font-weight: 600; font-size: 12px; cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.lg-style svg { width: 22px; height: 22px; }
.lg-style:hover { background: rgba(255,255,255,.07); }
.lg-style.active { background: #ffffff; color: var(--accent-ink, #1a1f05); border-color: transparent; }

.pc-extra {
  resize: none; min-height: 44px; max-height: 110px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 13px; padding: 12px 15px; color: var(--text, #fff);
  font-family: inherit; font-size: 14px; line-height: 1.4;
}
.pc-extra:focus { outline: none; border-color: var(--accent, #E4F482); }

/* результат */
.lg-result { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lg-canvas {
  width: 100%; max-width: 460px; aspect-ratio: 1/1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.03);
}
.lg-canvas img { width: 100%; height: 100%; object-fit: contain; }

.lg-spin { width: 16px; height: 16px; border-width: 2px; margin-right: 2px; }

/* ---------- общие .ie-* ---------- */
.ie-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #ffffff; color: var(--accent-ink, #1a1f05);
  border: 0; border-radius: 13px; padding: 14px 22px;
  font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 10px 26px -12px var(--accent-ring, rgba(228,244,130,.5));
  transition: filter .15s, transform .1s, opacity .15s;
}
.ie-apply:hover { filter: brightness(1.05); }
.ie-apply:active { transform: scale(.98); }
.ie-apply:disabled { opacity: .6; cursor: default; box-shadow: none; }
.ie-apply svg { width: 18px; height: 18px; }
.ie-result-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ie-rbtn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05); color: var(--text, #fff);
  border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px;
  padding: 11px 18px; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.ie-rbtn:hover { background: rgba(255,255,255,.09); }
.ie-rbtn.primary { background: #ffffff; color: var(--accent-ink, #1a1f05); border-color: transparent; }
.ie-rbtn svg { width: 16px; height: 16px; }
.ie-spin { display: inline-block; width: 38px; height: 38px; border: 3px solid rgba(0,0,0,.18); border-top-color: var(--accent-ink, #1a1f05); border-radius: 50%; animation: ie-spin 1s linear infinite; vertical-align: middle; }
@keyframes ie-spin { to { transform: rotate(360deg); } }
.ie-err { color: #ff6b8a; font-size: 13px; text-align: center; padding: 4px 0; }

@media (max-width: 820px) {
  .lg-root { padding-bottom: 30px; }
  .lg-styles { grid-template-columns: repeat(3, 1fr); }
}

/* ── Полный редактор: палитры, сегменты, свотчи ── */
.lg-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.lg-pal {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: rgba(255,255,255,.04); color: var(--text-2, #c7c7cf);
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 11px;
  padding: 9px 10px; font-family: inherit; font-weight: 600; font-size: 12px; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.lg-pal:hover { background: rgba(255,255,255,.07); }
.lg-pal.active { border-color: var(--accent, #E4F482); background: rgba(228,244,130,.08); color: var(--text, #fff); }
.lg-sw { width: 20px; height: 20px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

.lg-seg { display: flex; gap: 6px; background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; padding: 4px; }
.lg-seg-b { flex: 1; padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2, #c7c7cf); font-family: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: background .14s, color .14s; }
.lg-seg-b:hover { color: var(--text, #fff); }
.lg-seg-b.active { background: #ffffff; color: #111111; }

.lg-canvas-busy { display: grid; place-items: center; min-height: 280px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-strong, rgba(255,255,255,.14)); }
.lg-spin-big { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent, #E4F482); border-radius: 50%; animation: lgSpin .8s linear infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }

/* Нерабочие фильтры image-шаблона (стиль/формат/качество) на логотипах не нужны */
body[data-page="logos"] .settings-panel { display: none !important; }

/* ── Селектор модели генерации (шейп → модалка) ── */
.lg-genmodel {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 14px; padding: 11px 13px; color: var(--text, #fff); font-family: inherit;
  transition: border-color .14s, background .14s;
}
.lg-genmodel:hover { background: rgba(255,255,255,.07); border-color: var(--line-strong, rgba(255,255,255,.14)); }
.lg-gm-prev { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: #222; }
.lg-gm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-gm-body b { font-size: 14.5px; font-weight: 700; }
.lg-gm-body small { font-size: 12px; color: var(--text-3, #8a8a93); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-gm-cost { flex: none; font-size: 12px; font-weight: 700; color: var(--accent, #E4F482); background: rgba(228,244,130,.1); padding: 4px 9px; border-radius: 8px; }
.lg-gm-caret { width: 18px; height: 18px; flex: none; color: var(--text-3, #8a8a93); }

/* ── Блок размера скачивания (бегунок + свой размер) ── */
.lg-sizebox { background: rgba(255,255,255,.03); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.lg-size-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lg-size-lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3, #8a8a93); }
.lg-size-val { font-family: var(--font-display, inherit); font-weight: 700; font-size: 14px; color: var(--accent, #E4F482); white-space: nowrap; }
.lg-size-range { width: 100%; accent-color: var(--accent, #E4F482); cursor: pointer; }
.lg-size-ticks { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: var(--text-3, #8a8a93); }
.lg-size-custom { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.lg-size-custom label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2, #c7c7cf); font-weight: 600; }
.lg-size-custom input { width: 100px; background: rgba(255,255,255,.05); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 9px; padding: 8px 11px; color: var(--text, #fff); font: inherit; font-size: 14px; }
.lg-size-custom input:focus { outline: none; border-color: var(--accent, #E4F482); }
/* «Новый чат» на логотипах не нужен */
body[data-page="logos"] #studio-new, body[data-page="logos"] .new-btn { display: none !important; }
