/* «Мастерская» in Контент (public/workshop-content-ui.js). Unlayered, follows the tidy rules:
   text 11–24 px, 36 px controls, one orange primary (the content bar's «Опубликовать»). */
.wsa { display: grid; gap: 16px; }
.wsa .builder-section-head h2 { font-size: 20px; margin: 4px 0; }
.wsa .builder-section-head p { margin: 0; color: #5f6972; font-size: 13px; }
.wsa-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wsa-list { position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow-y: auto; padding: 12px; border: 1px solid #dfe4e7; border-radius: 12px; background: #fff; }
.wsa-list h3 { margin: 6px 4px 8px; color: #77828a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wsa-list h3 small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.wsa-rows { display: grid; gap: 2px; margin: 0 0 12px; padding: 0; list-style: none; }
.wsa-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px 2px 2px; border: 1px solid transparent; border-radius: 9px; }
.wsa-row:hover { background: #f6f8f9; }
.wsa-row.is-active { border-color: rgba(201, 71, 10, .35); background: #fff6f1; }
.wsa-row.is-dragging { opacity: .45; }
.wsa-row.is-drop { box-shadow: inset 0 2px 0 #c9470a; }
.wsa-row[draggable="true"] { cursor: grab; }
.wsa-row__main { display: grid; flex: 1; min-width: 0; gap: 1px; padding: 6px 8px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.wsa-row__main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wsa-row__main small { overflow: hidden; color: #77828a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wsa-row__flags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 96px; }
.wsa-row__move { display: flex; gap: 2px; }
.wsa-row__move .ow-icon, .wsa-item__tools .ow-icon { flex: 0 0 28px; width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; border-radius: 7px; }
.wsa-row__move .ow-icon svg, .wsa-item__tools .ow-icon svg { width: 15px; height: 15px; }
.wsa-flag { padding: 1px 6px; border-radius: 999px; background: #eef2f4; color: #46525a; font-size: 11px; font-style: normal; line-height: 1.5; white-space: nowrap; }
.wsa-flag.is-hidden { background: #fbeceb; color: #a93428; }
.wsa-flag.is-edited { background: #fff1e9; color: #c9470a; }
.wsa-editor { display: grid; gap: 16px; min-width: 0; }
.wsa-block { display: grid; gap: 14px; padding: 16px 18px; border: 1px solid #dfe4e7; border-radius: 12px; background: #fff; }
.wsa-block__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wsa-block__head h3 { margin: 2px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.wsa-fields { display: grid; gap: 12px; }
.wsa-fields label, .wsa-inline label { display: grid; gap: 5px; }
.wsa-fields label > span, .wsa-inline label > span, .wsa-tags legend { color: #46525a; font-size: 12px; font-weight: 650; }
.wsa-fields textarea, .wsa-item textarea { min-height: 72px; resize: vertical; }
.wsa-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wsa-count { justify-self: end; color: #77828a; font-size: 11px; }
.wsa-count.is-over { color: #b9382a; font-weight: 650; }
.wsa-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.wsa-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; border: 0; }
.wsa-tags legend { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.wsa-tags legend small { color: #77828a; font-weight: 500; }
.wsa-tags label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.wsa-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.wsa-preview { margin: 0; }
.wsa-preview figcaption { margin-top: 6px; color: #77828a; font-size: 11px; text-align: center; }
.wsa-preview__card { display: grid; gap: 6px; padding: 10px 10px 14px; border: 1px solid #e3e8eb; border-radius: 14px; background: #fbfaf7; }
.wsa-preview__card.is-hidden { opacity: .45; }
.wsa-preview__media { position: relative; height: 96px; border-radius: 10px; background: linear-gradient(135deg, #ef6d4e 0%, #f3a13b 100%); }
.wsa-preview__media b { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #c9470a; font-size: 11px; }
.wsa-preview__card strong { font-size: 15px; }
.wsa-preview__card small { color: #5f6972; font-size: 12px; line-height: 1.4; }
.wsa-snippet { display: grid; gap: 2px; padding: 12px 14px; border: 1px dashed #cfd6da; border-radius: 10px; background: #fafbfc; }
.wsa-snippet strong { color: #1a0dab; font-size: 16px; font-weight: 500; }
.wsa-snippet span { color: #0d652d; font-size: 12px; }
.wsa-snippet p { margin: 2px 0 0; color: #4d5156; font-size: 13px; line-height: 1.45; }
.wsa-sub { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #eef1f3; }
.wsa-sub__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wsa-sub__head h4 { margin: 0; font-size: 16px; }
.wsa-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wsa-item { display: grid; gap: 6px; padding: 10px; border: 1px solid #e6eaed; border-radius: 10px; background: #fbfcfc; }
.wsa-item__head { display: flex; gap: 8px; align-items: center; }
.wsa-item__head input { flex: 1; min-width: 0; font-weight: 600; }
.wsa-item__tools { display: flex; gap: 2px; }
.wsa-default { padding: 6px 10px; border: 1px solid #eef1f3; border-radius: 8px; background: #fafbfc; }
.wsa-default summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.wsa-default p { margin: 6px 0 2px; color: #5f6972; font-size: 13px; line-height: 1.5; }
.wsa-hint { margin: 0; color: #77828a; font-size: 12px; }
.wsa-note { margin: 0; padding: 8px 12px; border-radius: 8px; background: #f3f6f8; color: #46525a; font-size: 13px; }
.wsa-note.is-warning { background: #fff6e8; color: #7a4b00; }
@media (max-width: 1100px) {
  .wsa-layout { grid-template-columns: 1fr; }
  .wsa-list { position: static; max-height: 320px; }
  .wsa-card-grid { grid-template-columns: 1fr; }
  .wsa-preview { max-width: 260px; }
}
