.neo-composer{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(280px,2.4fr) minmax(210px,1fr);border:1px solid var(--line,#cad8d0);border-radius:20px;background:var(--panel,#fff);overflow:hidden;box-shadow:0 14px 32px #173b2920}.neo-panel{min-width:0;padding:20px 15px}.neo-panel h3{font-size:.9rem;margin:0 0 9px}.neo-panel h3:not(:first-child){margin-top:22px}.neo-help,.neo-meta{font-size:.78rem;opacity:.8}.neo-assets,.neo-options{display:flex;gap:6px;flex-wrap:wrap}.neo-assets{display:grid;grid-template-columns:1fr 1fr;margin-bottom:12px;max-height:235px;overflow:auto}.neo-composer button[data-neo],.neo-assets button{font:inherit;font-weight:650;color:inherit;background:var(--panel,#fff);border:1px solid #809b8a60;border-radius:9px;padding:6px 8px;cursor:pointer}.neo-composer button[aria-pressed=true]{outline:2px solid #35805f;outline-offset:-2px}.neo-assets button{min-width:0;display:grid;font-size:.7rem;gap:3px;overflow:hidden;text-align:left}.neo-assets img{width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:5px}.neo-assets span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neo-range{margin-block:9px;display:grid;grid-template-columns:65px minmax(0,1fr);gap:6px;font-size:.75rem}.neo-range input{width:100%;accent-color:#287253}.neo-stage{min-width:0;border-inline:1px solid #85a49155;background:#e6efe9;color:#17392e}.neo-stage-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px}.neo-stage .neo-stage-head button,.neo-strip button{color:#19382c;background:#fafffa;font-size:.73rem}.neo-surface{min-height:430px;display:grid;place-items:center;padding:20px;background:repeating-linear-gradient(0deg,#a5beb22c 0 1px,transparent 1px 19px),repeating-linear-gradient(90deg,#a5beb22c 0 1px,transparent 1px 19px)}.neo-art{width:min(350px,100%);aspect-ratio:4/5;position:relative;box-shadow:0 18px 35px #143d3a44;background:#163e31}.neo-art[data-layout=story]{width:min(256px,100%);aspect-ratio:9/16}.neo-art img{width:100%;height:100%;display:block;object-fit:contain}.neo-safe{position:absolute;inset:7% 6%;border:1px dashed #fff;box-shadow:0 0 0 1px #19382c88;pointer-events:none}.neo-art[data-layout=story] .neo-safe{inset:11% 5% 13%}.neo-meta{text-align:center;margin:6px 0 12px}.neo-sequence{border-top:1px solid #809b8a60}.neo-strip{display:flex;gap:7px;padding:0 12px 14px;overflow:auto}.neo-strip button{min-width:115px;max-width:180px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.neo-strip span{display:block;font-size:.64rem;opacity:.7}.neo-templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.neo-templates button{font-size:.65rem!important}.neo-templates span{display:grid;place-items:center;margin-bottom:5px;min-height:32px;border-radius:4px;background:#102f27;color:#dbfb68;font-size:1.1rem}.neo-templates span[data-template=flash]{background:#24254a;color:#bec7ff}.neo-templates span[data-template=focus]{background:#f1ead8;color:#235642}.neo-panel details{margin-bottom:12px}.neo-panel .gw-field{min-width:0}
@media(max-width:1050px){.neo-composer{grid-template-columns:1fr 1fr}.neo-stage{grid-column:1/-1;grid-row:1;border-inline:0}.neo-surface{min-height:385px}}
@media(max-width:620px){.neo-composer{grid-template-columns:minmax(0,1fr)}.neo-surface{min-height:0}.neo-stage-head{flex-wrap:wrap}}

.neo-panel .social-photo-library{display:none}

.neo-templates span[data-template=review]{background:#f3f1e8;color:#154538}.neo-panel [data-neo-visual]{margin-bottom:14px}.neo-panel [hidden]{display:none}
.neo-metric{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px}.neo-metric label{display:grid;gap:3px;font-size:.72rem;min-width:0}.neo-metric input{width:100%;min-width:0;font-size:.82rem}

#gzw #dialog:has(#article-telegram-composer) {
  width: min(1360px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overscroll-behavior: contain;
}
#gzw #dialog:has(#article-telegram-composer) #modal-title { padding-inline-end: 2.25rem; }
#article-telegram-composer .article-tg-title { margin: 0 0 14px; overflow-wrap: anywhere; }
.neo-article-composer { grid-template-columns: minmax(230px, 1fr) minmax(300px, 1.9fr) minmax(235px, 1.1fr); }
.neo-article-composer .neo-stage-head h3 { margin: 0; font-size: .9rem; }
.neo-article-composer .neo-stage-head .gw-field { margin: 0; max-width: min(100%, 15rem); color: inherit; }
.neo-article-composer .neo-surface { min-height: 360px; }
.neo-article-composer .article-tg-preview { width: min(390px, 100%); min-width: 0; overflow: hidden; overflow-wrap: anywhere; border-radius: 14px; background: #fff; color: #18392e; box-shadow: 0 18px 35px #143d3a36; }
.neo-article-composer .article-tg-preview-head, .article-tg-platform { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
#gzw .neo-article-composer .ds-news-preview { margin: 0; border: 0; border-top: 1px solid #cfdfd5; border-radius: 0; background: #fafffa; color: #18392e; }
.neo-article-composer .ds-news-preview img { display: block; width: 100%; max-height: 248px; object-fit: contain; }
.neo-article-composer .ds-news-preview a { color: #075682; }
.neo-article-composer .article-tg-destinations { min-inline-size: 0; margin: 0 0 16px; padding: 0; border: 0; }
.neo-article-composer legend { padding: 0; margin-bottom: 10px; font-size: .9rem; font-weight: 700; }
.neo-article-composer .tg-channel-grid { grid-template-columns: minmax(0, 1fr); max-height: 310px; overflow: auto; padding: 3px; margin-inline: -3px; }
.neo-article-composer .article-tg-receipts { max-height: 170px; overflow: auto; margin: 0 12px 12px; overflow-wrap: anywhere; font-size: .84rem; }
.neo-article-composer .article-tg-receipts p { margin: 0; padding-block: 7px; }
.neo-article-composer .article-tg-receipts p + p { border-top: 1px solid #809b8a60; }
#article-telegram-composer .dialog-footer { flex-wrap: wrap; margin-top: 16px; }
#article-telegram-composer [hidden],
#article-telegram-composer .form-error:empty,
#article-telegram-composer [data-status]:empty { display: none; }
@media (max-width: 1050px) {
  .neo-article-composer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-article-composer .neo-surface { min-height: 260px; }
}
@media (max-width: 620px) {
  #gzw #dialog:has(#article-telegram-composer) { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 18px 12px; }
  .neo-article-composer { grid-template-columns: minmax(0, 1fr); }
  .neo-article-composer .neo-panel { padding: 14px 12px; }
  .neo-article-composer .neo-surface { min-height: 0; padding: 14px; }
}

#gzw #dialog:has(.neo-deals-publication) {
  width: min(1320px, calc(100% - 32px));
  max-width: none;
  height: min(680px, calc(100dvh - 32px));
  max-height: none;
  padding: 18px 20px;
  box-sizing: border-box;
  overflow: hidden;
}
#gzw #dialog:has(.neo-deals-publication) #dialog-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}
#gzw #dialog:has(.neo-deals-publication) #modal-title {
  margin: 0 0 10px;
  padding-inline-end: 44px;
}
#gzw #dialog:has(.neo-deals-publication) .close-dialog {
  position: absolute;
  inset: 12px 14px auto auto;
  z-index: 1;
}
#modal-form:has(.neo-deals-publication) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
}
#modal-form:has(.neo-deals-publication) > .form-error:empty { display: none; }
#modal-form:has(.neo-deals-publication) > .dialog-footer {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.neo-deals-publication {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
#gzw #dialog .neo-deals-title {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  font-size: .84rem;
}
.neo-deals-composer {
  grid-row: 2;
  grid-template-columns: minmax(280px, 1.35fr) minmax(245px, 1.1fr) minmax(230px, .85fr);
  min-height: 0;
}
.neo-deals-composer > .neo-panel { padding: 12px 14px 8px; overflow: auto; }
.neo-deals-composer .neo-panel .tg-channel-card { min-height: 44px; }
.neo-deals-composer legend { padding: 0; margin-bottom: 9px; font-size: .9rem; font-weight: 700; }
.neo-deals-composer .ds-destinations { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.neo-deals-composer .tg-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.neo-deals-agenda {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--gw-line, #85a49155);
  font-size: .8rem;
}
.neo-deals-agenda > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#gzw #dialog .neo-deals-agenda h3 { margin: 0; font-size: .9rem; }
#gzw #dialog .neo-deals-agenda button { min-height: 0; padding: 4px 9px; font-size: .78rem; }
#gzw #dialog .neo-deals-agenda p { margin: 5px 0 0; color: var(--gw-muted, inherit); }
.neo-deals-agenda-group { margin-top: 9px; padding: 8px; border-radius: 8px; background: var(--glass-soft, #85a4911c); }
#gzw #dialog .neo-deals-agenda-group h4 { margin: 0; font-size: .8rem; overflow-wrap: anywhere; }
.neo-deals-agenda-group ul { margin: 5px 0 0; padding: 0; list-style: none; }
.neo-deals-agenda-group li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; padding: 4px 0; }
.neo-deals-agenda-group time { font-weight: 700; font-variant-numeric: tabular-nums; }
.neo-deals-agenda-group li span { overflow-wrap: anywhere; }
.neo-deals-agenda-group small { display: block; color: var(--gw-muted, inherit); }
.neo-deals-history ul { list-style: none; margin: 8px 0 0; padding: 0; }
.neo-deals-history li { padding: 6px 0; border-top: 1px solid var(--gw-line, #85a49155); overflow-wrap: anywhere; }
.neo-deals-history li small { display: block; margin-top: 2px; color: var(--gw-muted, inherit); }
#gzw #dialog .neo-deals-composer .tg-channel-card { padding: 0; }
#gzw #dialog .neo-deals-composer .tg-channel-card label {
  margin: 0;
  padding: 6px 8px;
  gap: 6px;
  border: 0;
  line-height: 1.23;
}
.neo-deals-composer .tg-channel-card .tg-channel-icon { width: 28px; height: 28px; flex-basis: 28px; }
#gzw #dialog .neo-deals-composer .tg-channel-copy { min-width: 0; font-size: .78rem; overflow-wrap: anywhere; }
#gzw #dialog .neo-deals-composer .tg-channel-copy strong { font-size: inherit; }
#gzw #dialog .neo-deals-composer .tg-channel-copy small {
  margin: 0;
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neo-deals-composer .neo-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}
.neo-deals-composer .neo-stage-head h3 { margin: 0; font-size: .9rem; }
.neo-deals-composer .neo-stage-head .gw-field { min-width: 0; max-width: min(58%, 16rem); margin: 0; color: inherit; }
.neo-deals-composer .neo-stage-head select { width: 100%; min-width: 0; }
.neo-deals-composer .neo-surface { min-height: 0; padding: 12px; overflow: auto; align-items: start; }
.neo-deals-message {
  width: min(100%, 370px);
  overflow: hidden;
  overflow-wrap: anywhere;
  border-radius: 13px;
  background: #fff;
  color: #18392e;
  box-shadow: 0 10px 24px #143d3a32;
}
.neo-deals-message header { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.neo-deals-message header .tg-channel-icon { flex: none; }
.neo-deals-message-body { border-top: 1px solid #cfdfd5; background: #fafffa; }
.neo-deals-message-body img { display: block; width: 100%; max-height: 138px; object-fit: contain; background: #f2f8f3; }
.neo-deals-message-body img[hidden] { display: none; }
.neo-deals-message-body [data-deal-preview-caption] { padding: 10px; font-size: .78rem; line-height: 1.42; white-space: pre-line; }
.neo-deals-message-body a { color: #075682; }
#gzw #dialog .neo-deals-composer .neo-panel .gw-field { margin: 0 0 9px; gap: 4px; }
#gzw #dialog .neo-deals-composer .neo-panel .gw-field.checkbox { line-height: 1.32; gap: 8px; }
#gzw #dialog .neo-deals-composer input[type=checkbox] { min-height: 0; margin-block: 0; }
#gzw #dialog .neo-deals-composer .neo-panel :is(input[type=datetime-local], select) {
  min-width: 0;
  padding: 7px 9px;
  font-size: .84rem;
}
.neo-deals-composer .neo-panel .neo-help { margin: 8px 0 0; line-height: 1.35; }
#modal-form:has(.neo-deals-publication) [data-deal-selection] {
  margin: 0 auto 0 0;
  font-size: .8rem;
  color: var(--gw-muted, inherit);
}
@media (max-width: 1050px) {
  .neo-deals-composer .neo-stage { grid-column: auto; grid-row: auto; border-inline: 1px solid #85a49155; }
  .neo-deals-composer .tg-channel-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  #gzw #dialog:has(.neo-deals-publication) { width: calc(100% - 16px); height: calc(100dvh - 16px); padding: 14px 12px; }
  .neo-deals-publication { display: block; overflow: auto; }
  .neo-deals-composer { grid-template-columns: minmax(0, 1fr); }
  .neo-deals-composer > .neo-panel { overflow: visible; }
  .neo-deals-composer .neo-stage { border-inline: 0; border-block: 1px solid #85a49155; }
  .neo-deals-composer .neo-surface { max-height: 300px; }
  .neo-deals-composer .tg-channel-grid { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
}

@media (min-width: 821px) and (max-height: 640px) {
  .neo-deals-composer .neo-surface { padding: 8px 12px; }
  .neo-deals-message-body img { max-height: 108px; }
}
