/* Редакторский раздел наследует палитру и шрифт рабочего Performance. */
/* На рабочем сервере базовая панель всё ещё рассчитана на три вкладки.
   Четвёртая (Контент) иначе падает во второй ряд. Для трёх вкладок
   эта сетка остаётся такой же, как в базовом приложении. */
.nav {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
@media (max-width: 345px) {
  .nav { gap: 2px; padding: 0 4px; }
  .nav__btn { font-size: 10px; padding: 6px 2px; }
}
.content-intro { margin: 0 0 20px; color: var(--ink-2); line-height: 1.45; }
.content-list { border-top: 1px solid var(--edge); }
.content-plan-add { width: 100%; min-height: 50px; margin: 0 0 24px; }
.content-topic {
  width: 100%; min-height: 78px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 15px 2px;
  border: 0; border-bottom: 1px solid var(--edge);
  background: transparent; color: var(--ink); text-align: left;
  font: inherit; cursor: pointer;
}
.content-topic__copy { display: grid; gap: 6px; min-width: 0; }
.content-topic__title { font-weight: 650; line-height: 1.28; }
.content-topic__status { color: var(--ink-2); font-size: 13px; }
.content-topic__arrow { flex: 0 0 auto; color: var(--ink-2); font-size: 21px; }
.content-topic:focus-visible, .content-back:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.content-topic:active { background: var(--panel); }
.content-note { margin: 24px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.content-back { min-height: 44px; margin: 0 0 12px; padding: 0; border: 0;
  background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.content-detail-title { margin: 0 0 10px; font-size: clamp(21px, 6vw, 27px); line-height: 1.12; letter-spacing: -.025em; }
.content-angle { margin: 0 0 18px; color: var(--ink-2); line-height: 1.4; }
.content-status { display: inline-block; margin: 0 0 24px; padding: 6px 10px;
  border: 1px solid var(--edge-2); border-radius: 999px; color: var(--ink-2); font-size: 12px; }
.content-status--ready { color: var(--signal); border-color: var(--signal); }
.content-review-note { margin: -8px 0 22px; padding-left: 12px;
  border-left: 2px solid var(--amber); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.content-block { padding: 20px 0; border-top: 1px solid var(--edge); }
.content-block h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.2; }
.content-block > p { color: var(--ink-2); line-height: 1.45; }
.content-field { display: block; margin: 18px 0; }
.content-field__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.content-field textarea, .content-field input:not([type=checkbox]) {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 13px 14px;
  border: 1px solid var(--edge-2); border-radius: 12px; outline: none;
  background: var(--lift); color: var(--ink); font: 400 16px/1.4 var(--text);
}
.content-field textarea { min-height: 106px; resize: vertical; }
.content-field textarea:focus, .content-field input:focus { border-color: var(--ink-2); }
.content-check { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0;
  color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.content-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--signal); }
.content-action { width: 100%; min-height: 50px; margin-top: 12px; }
.content-action + .content-action { margin-top: 16px; }
.content-article { padding: 2px 0 8px; }
.content-article h3 { margin: 22px 0 8px; font-size: 17px; }
.content-article p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.content-error { margin: 14px 0; color: var(--stamp); line-height: 1.4; }
.content-saved { margin: 14px 0; color: var(--signal); }

/* Это именно лист будущей статьи, а не ещё одна карточка рабочего экрана.
   Фото и текст говорят за студию; зелёный оставлен только у подписи марки. */
.content-preview-label { margin: 4px 0 12px; color: var(--ink-2); font-size: 13px; }
.content-preview {
  min-width: 0; overflow: hidden; background: #F3F3EF; color: #1B1B1B;
  padding: 24px 20px 30px; border-radius: 4px;
  font-family: var(--text); box-shadow: 0 14px 32px rgba(0,0,0,.20);
}
.content-preview__eyebrow {
  margin: 0 0 17px !important; color: #146B34; font-size: 11px;
  font-weight: 700; letter-spacing: .12em; line-height: 1.3;
}
.content-preview .content-preview__title {
  margin: 0 0 14px; font-size: clamp(23px, 6.3vw, 34px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.content-preview .content-preview__lead {
  margin: 0 0 25px; font-size: 15px; line-height: 1.55; color: #555650;
  overflow-wrap: anywhere;
}
.content-preview__section { margin: 24px 0 0; }
.content-preview__section h4 {
  margin: 0 0 10px; font-size: 19px; line-height: 1.22;
  letter-spacing: -.015em; overflow-wrap: anywhere;
}
.content-preview__section p {
  margin: 0; font-size: 15px; line-height: 1.65; white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.content-preview__figure { margin: 24px -20px 0; }
.content-preview__figure img {
  display: block; width: 100%; height: auto; max-height: 480px;
  object-fit: contain; background: #E2E3DE;
}
.content-preview__figure figcaption {
  padding: 10px 20px 0; color: #65665F; font-size: 12px; line-height: 1.4;
}
.content-preview .content-preview__missing {
  margin: 0; padding: 18px 20px; color: #773529; background: #F6E6E0;
  font-size: 13px; line-height: 1.4;
}
.content-photo-heading { margin: 28px 0 8px; font-size: 17px; }
.content-photo-help { margin: 0 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.content-photo-row { padding: 8px 0 20px; border-bottom: 1px solid var(--edge); }
.content-photo-row + .content-photo-row { padding-top: 20px; }
.content-field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--edge-2); border-radius: 12px;
  background: var(--lift); color: var(--ink); font: 400 16px/1.4 var(--text);
}
.content-remove { min-height: 44px; padding: 8px 0; border: 0; background: transparent;
  color: var(--ink-2); font: inherit; cursor: pointer; }
.content-remove:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.content-view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 7px 0 22px; border-bottom: 1px solid var(--edge); }
.content-view-tab { min-height: 50px; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 2px; background: transparent; color: var(--ink-2);
  font: 600 14px/1.3 var(--text); }
.content-view-tab.is-active { border-bottom-color: var(--signal); color: var(--ink); }
.content-view-panel[hidden] { display: none !important; }

/* Редактор и список живут в той же оболочке, что наряды и приёмка.
   Светлый лист оставлен только внутри предпросмотра публикации. */
.content-screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 0 0;
  font-family: inherit;
}
.content-home-title {
  margin: 0 0 7px;
  color: var(--ink);
  font: 600 20px/1.2 var(--text);
  letter-spacing: -.02em;
}
.content-screen .content-intro {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}
.content-screen .content-plan-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--btn-h);
  margin: 0 0 24px;
  padding: 12px 17px;
  text-align: left;
}
.content-screen .content-plan-add::after {
  content: "›";
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
.content-feature {
  padding: 21px 0 0;
  border-top: 1px solid var(--edge);
}
.content-section-label {
  display: block;
  margin: 0 0 13px;
  color: var(--ink-2);
  font: 600 12px/1.3 var(--text);
  letter-spacing: .08em;
}
.content-feature__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--lift);
}
.content-feature__title {
  margin: 16px 0 9px;
  color: var(--ink);
  font: 650 clamp(22px, 6vw, 28px)/1.13 var(--text);
  letter-spacing: -.025em;
}
.content-feature__date,
.content-feature__excerpt {
  color: var(--ink-2);
  font-size: 14px;
}
.content-feature__date { margin: 0 0 8px; }
.content-feature__excerpt { margin: 0 0 18px; line-height: 1.45; }
.content-feature__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--btn-h);
  padding: 11px 16px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 600 15px/1.3 var(--text);
}
.content-feature__open::after { content: "›"; font-size: 25px; font-weight: 400; line-height: 1; }
.content-feature__open:active { background: var(--raise); }
.content-other, .content-versions { margin-top: 28px; }
.content-screen .content-list { border-top: 0; }
.content-screen .content-topic { min-height: 68px; padding: 13px 1px; }
.content-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto) 15px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 600 15px/1.3 var(--text);
}
.content-version__state { color: var(--ink-2); font-size: 12px; font-weight: 400; white-space: nowrap; }
.content-version__state::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--faint);
  vertical-align: 1px;
}
.content-version > :last-child { color: var(--ink-2); font-size: 23px; font-weight: 400; }
.content-screen .content-note {
  margin: 28px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--edge);
}
.content-screen .content-back { margin: -5px 0 18px; }
.content-screen .content-detail-title {
  margin: 0 0 10px;
  font-size: clamp(21px, 6vw, 27px);
}
.content-screen .content-angle { color: var(--ink-2); font-size: 14px; }
.content-screen .content-preview { box-shadow: 0 14px 32px rgba(0,0,0,.20); }

/* Редактор соцсетей тёмный; светлая подложка есть только у макета поста. */
.content-social {
  margin: 34px 0 4px;
  padding: 20px 0 0;
  border-top: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
}
.content-social__kicker {
  margin: 0 0 10px !important;
  color: var(--ink-2) !important;
  font: 600 12px/1.3 var(--text);
  letter-spacing: .08em;
}
.content-social h3 { margin: 0 0 9px; color: var(--ink); font-size: 21px; line-height: 1.18; }
.content-social__lead, .content-social__muted {
  margin: 0 0 18px;
  color: var(--ink-2) !important;
  font-size: 14px;
  line-height: 1.45;
}
.content-social__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 16px; }
.content-social__tab {
  min-height: 52px;
  border: 1px solid var(--edge-2);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font: 600 13px/1.25 var(--text);
}
.content-social__tab.is-active { border-color: var(--ink); color: var(--ink); }
.content-social__preview {
  margin: 22px 0;
  padding: 20px 18px;
  border-radius: 4px;
  background: #F3F3EF;
  color: #1B1B1B;
}
.content-social__preview strong { display: block; margin-bottom: 9px; font-size: 17px; }
.content-social__preview p { margin: 0; color: #555650; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.content-social__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}
.content-social__check span { color: var(--ink-2); }
.content-social__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: auto !important;
  opacity: 1 !important;
  accent-color: var(--signal);
}
.content-social__primary, .content-social__secondary {
  display: block;
  width: 100%;
  min-height: var(--btn-h);
  margin-top: 14px;
  border-radius: var(--r-sm);
  padding: 11px 15px;
  text-align: left;
  font: 600 15px/1.3 var(--text);
}
.content-social__primary {
  border: 0;
  background: var(--white-plate);
  color: #0B0B0D;
  box-shadow: var(--btn-glow);
}
.content-social__secondary {
  border: 1px solid var(--edge-2);
  background: transparent;
  color: var(--ink);
}
.content-social button:disabled { opacity: .45; cursor: not-allowed; }
.content-social .content-error { color: var(--stamp); }
.content-social .content-saved { color: var(--signal); }
@media (max-width: 360px) {
  .content-screen { padding-top: 14px; }
  .content-social__tabs { gap: 8px; }
}
