/* Правка AI-блока на сайте (19.10.2026): панель справа, страница с живым предпросмотром — слева */
.aed-open { white-space: nowrap; }
.aed-open[hidden] { display: none !important; }
.aed {
  position: fixed; inset: 64px 0 0 auto; width: min(560px, 100vw); height: auto; max-height: none; margin: 0; padding: 0;
  display: none; flex-direction: column; z-index: 400;
  background: #12141B; color: #EFE9DC; border: 0; border-left: 1px solid rgba(255,223,162,.22);
  box-shadow: -24px 0 60px rgba(0,0,0,.45); font-family: 'Styrene B', 'Segoe UI', sans-serif; font-size: 14px;
}
.aed[open] { display: flex; }
html.aed-on .snav { right: 572px; }
.aed__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.aed__head > div { flex: 1; display: grid; gap: 2px; }
.aed__head b { font-size: 16px; }
.aed__state { font-size: 12px; color: #8E95A8; }
.aed__state.is-dirty { color: #F2C46D; }
.aed__x { background: none; border: 0; color: #B8BCC8; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.aed__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.aed__tabs button, .aed__hist, .aed__ghost, .aed__ctl button, .aed__add {
  font: inherit; font-size: 12.5px; color: #EFE9DC; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px; padding: 5px 11px; cursor: pointer;
}
.aed__tabs button.on { background: linear-gradient(135deg, #F6D9A4, #C9965A); color: #1B1408; border-color: transparent; font-weight: 700; }
.aed__tabs button:hover, .aed__ghost:hover, .aed__hist:hover, .aed__add:hover { border-color: rgba(255,223,162,.5); }
.aed__body { flex: 1; overflow: auto; padding: 4px 16px 20px; overscroll-behavior: contain; }
.aed__sec { padding: 14px 0 6px; border-bottom: 1px dashed rgba(255,255,255,.08); }
.aed__sec h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #E9C887; }
.aed__f { display: grid; gap: 4px; margin-bottom: 10px; min-width: 0; }
.aed__l { font-size: 12px; color: #9CA2B4; }
.aed__f small, .aed__note { font-size: 11.5px; color: #7F8699; line-height: 1.35; }
.aed__note { margin: 0 0 10px; }
.aed input[type=text], .aed textarea, .aed select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px; color: #F4EFE4; background: #1B1E28;
  border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 7px 9px;
}
.aed textarea { resize: vertical; min-height: 54px; line-height: 1.35; }
.aed input:focus, .aed textarea:focus, .aed select:focus { outline: none; border-color: #E2B672; box-shadow: 0 0 0 3px rgba(226,182,114,.18); }
.aed input.is-bad { border-color: #F0624F; box-shadow: 0 0 0 3px rgba(240,98,79,.18); }
.aed__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.aed__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aed__chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #C9CDD8; margin: 18px 0 10px; }
.aed__list { display: grid; gap: 8px; margin: 4px 0 10px; }
.aed__lt { font-size: 12px; color: #9CA2B4; }
.aed__lt:empty { display: none; }
.aed__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 10px 2px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.aed__item .aed__item { background: rgba(255,255,255,.03); }
.aed__list--compact .aed__item { padding: 6px 8px 0; }
.aed__list--compact .aed__f { margin-bottom: 6px; }
.aed__fields { min-width: 0; }
.aed__ctl { display: flex; gap: 4px; }
.aed__ctl button { padding: 3px 8px; border-radius: 8px; }
.aed__ctl button:disabled { opacity: .3; cursor: default; }
.aed__ctl .aed__del:hover { border-color: #F0624F; color: #FF9A8B; }
.aed__add { justify-self: start; border-style: dashed; background: none; }
.aed__foot { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 16px 14px; display: grid; gap: 10px; background: #151821; }
.aed__btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.aed__save { font: inherit; font-weight: 700; font-size: 13.5px; color: #1B1408; background: linear-gradient(135deg, #F6D9A4, #C9965A); border: 0; border-radius: 99px; padding: 8px 18px; cursor: pointer; }
.aed__save:disabled { opacity: .6; cursor: wait; }
.aed__msg { font-size: 12.5px; line-height: 1.4; color: #B8BCC8; min-height: 0; }
.aed__msg:empty { display: none; }
.aed__msg[data-kind="ok"] { color: #8EE0D2; }
.aed__msg[data-kind="err"] { color: #FF9A8B; }
.aed__ver { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.035); margin-bottom: 6px; font-size: 13px; }
.aed__ver.is-cur { border: 1px solid rgba(142,224,210,.4); }
.aed__ver span { color: #9CA2B4; }
@media (max-width: 760px) {
  .aed { inset: 56px 0 0 0; width: 100vw; }
  .aed__grid, .aed__grid--3 { grid-template-columns: minmax(0, 1fr); }
  html.aed-on .snav { right: 0; }
}
