/* Вкладка «Контент»: список, карточка, правка, вставка и правила; только токены темы. */
body.content-mode #filterPanel, body.content-mode #cardsRow, body.content-mode #products, body.content-mode .topbar { display: none !important; }
#contentDashboard { --ct-muted: var(--n12); --ct-border: var(--n6); font-size: 14px; min-width: 0; color: var(--n14); }
#contentDashboard[hidden] { display: none !important; }
#contentDashboard [hidden] { display: none !important; }
#contentDashboard :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
#contentDashboard button, #contentDashboard select, #contentDashboard input { font: inherit; color: var(--n14); }
#contentDashboard button { cursor: pointer; min-height: 34px; padding: 6px 12px; background: var(--n3); border: 1px solid var(--ct-border); border-radius: 8px; }
#contentDashboard button:hover { border-color: var(--sky); }
#contentDashboard button:disabled { cursor: default; opacity: .55; }
#contentDashboard select, #contentDashboard input { min-height: 34px; padding: 6px 10px; background: var(--n2); border: 1px solid var(--ct-border); border-radius: 8px; }
.ct-heading { margin: 8px 0 18px; }
.ct-heading h1 { font-size: 28px; letter-spacing: -.02em; }
.ct-heading p, .ct-muted, .ct-hint { color: var(--ct-muted); }
.ct-heading p { margin-top: 7px; line-height: 1.5; }
.ct-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 12px; }
.ct-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ct-muted); }
.ct-filters .ct-check { flex-direction: row; align-items: center; gap: 6px; min-height: 34px; font-size: 13px; }
#contentDashboard .ct-check input { min-height: 0; width: 16px; height: 16px; padding: 0; accent-color: var(--sky); }
#contentDashboard .ct-primary { background: var(--sky-strong); border-color: var(--sky-strong); color: var(--n14); }
.ct-status { min-height: 20px; margin: 6px 0 10px; color: var(--ct-muted); }
.ct-table-scroll { overflow-x: auto; background: var(--n2); border: 1px solid var(--ct-border); border-radius: 10px; }
.ct-list table { width: 100%; border-collapse: collapse; }
.ct-list th, .ct-list td { padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--ct-border); }
.ct-list thead th { font-size: 12px; font-weight: 600; color: var(--ct-muted); white-space: nowrap; }
.ct-list tbody tr:last-child th, .ct-list tbody tr:last-child td { border-bottom: 0; }
.ct-thumb { width: 52px; }
.ct-thumb img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--paper); }
#contentDashboard .ct-open { min-height: 28px; padding: 3px 8px; font-weight: 600; background: none; border-color: transparent; color: var(--sky); }
#contentDashboard .ct-open:hover { border-color: var(--sky); }
.ct-name { min-width: 200px; }
.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-flag { padding: 2px 7px; font-size: 12px; color: var(--amber); background: var(--amber-tint); border-radius: 999px; }
.ct-badge { display: inline-block; padding: 2px 8px; font-size: 12px; font-weight: 600; border-radius: 999px; color: var(--n13); background: var(--n4); white-space: nowrap; }
.ct-badge-draft { color: var(--blue); background: var(--blue-tint); }
.ct-badge-in_review { color: var(--violet); background: var(--violet-tint); }
.ct-badge-approved { color: var(--green); background: var(--green-tint); }
.ct-badge-published { color: var(--teal); background: var(--teal-tint); }
.ct-badge-drifted { color: var(--red); background: var(--red-tint); }
.ct-empty { padding: 18px; color: var(--ct-muted); }
.ct-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; color: var(--ct-muted); }
.ct-item-head { display: flex; flex-wrap: wrap; align-items: start; gap: 14px; margin-bottom: 14px; }
.ct-item-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 22px; }
.ct-item-head p { margin-top: 4px; line-height: 1.5; }
.ct-item-head a { color: var(--sky); }
.ct-item-image { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--paper); }
.ct-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.ct-siblings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--ct-muted); }
.ct-item-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.ct-panel { min-width: 0; padding: 16px; margin-bottom: 14px; background: var(--n2); border: 1px solid var(--ct-border); border-radius: 10px; }
.ct-panel h2 { font-size: 16px; font-weight: 650; margin-bottom: 10px; }
.ct-field { padding: 10px 0; border-top: 1px solid var(--ct-border); }
.ct-field h3 { font-size: 14px; font-weight: 650; }
.ct-hint { font-size: 12px; margin: 3px 0 6px; }
.ct-source { max-height: 260px; overflow: auto; padding: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--n3); border-radius: 8px; }
.ct-faq dt { font-weight: 600; margin-top: 8px; }
.ct-faq dd { margin: 2px 0 0; line-height: 1.5; }
.ct-alts, .ct-rules, .ct-runs, .ct-versions { display: grid; gap: 6px; padding-left: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.ct-versions { list-style: none; padding-left: 0; }
.ct-versions li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ct-versions li > span:first-child { min-width: 110px; color: var(--ct-muted); }
.ct-warning { margin-bottom: 10px; padding: 8px 10px; color: var(--red); background: var(--red-tint); border-radius: 8px; }
.ct-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#contentDashboard textarea { width: 100%; min-height: 64px; padding: 8px 10px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--n14); background: var(--n2); border: 1px solid var(--ct-border); border-radius: 8px; resize: vertical; }
.ct-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 14px; align-items: start; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
#contentDashboard .mcp-copy { margin-left: 0; }
.ct-note { margin-bottom: 8px; color: var(--ct-muted); }
.ct-review-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; margin-top: 10px; }
.ct-review-fields label, .ct-edit-field label, .ct-rule-form label, .ct-rule-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ct-muted); }
.ct-review-fields .ct-check { flex-direction: row; align-items: center; gap: 6px; }
.ct-editor { display: grid; gap: 12px; }
#contentDashboard .ct-edit-field input[type="text"] { width: 100%; }
.ct-edit-field > label, .ct-edit-field legend { font-size: 14px; font-weight: 650; color: var(--n14); }
.ct-edit-field fieldset, fieldset.ct-edit-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.ct-alt-row { margin-top: 6px; overflow-wrap: anywhere; }
.ct-field-problem { margin-top: 4px; font-size: 12px; color: var(--red); }
.ct-problems ul, .ct-warning ul { margin-top: 6px; padding-left: 18px; line-height: 1.5; }
.ct-problems { padding: 8px 10px; color: var(--red); background: var(--red-tint); border-radius: 8px; }
.ct-warning p + p, .ct-warning button { margin-top: 6px; }
.ct-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ct-panel-head h2 { margin-bottom: 0; }
.ct-rules { list-style: none; padding-left: 0; }
.ct-rule { padding: 8px 0; border-top: 1px solid var(--ct-border); }
.ct-rule.is-skipped > p { color: var(--ct-muted); }
.ct-rule-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.ct-rule-head small { color: var(--ct-muted); }
.ct-chip { padding: 1px 7px; font-size: 12px; color: var(--n13); background: var(--n4); border-radius: 999px; }
.ct-rule-skip { padding: 1px 7px; font-size: 12px; color: var(--amber); background: var(--amber-tint); border-radius: 999px; }
.ct-rule-edit { display: grid; gap: 6px; margin-top: 8px; }
.ct-rule-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ct-border); }
.ct-rule-form h3, .ct-rule-form .ct-wide, .ct-rule-form .ct-actions { grid-column: 1 / -1; }
.ct-rule-form h3 { font-size: 14px; font-weight: 650; }
.ct-faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin-top: 8px; }
#contentDashboard .ct-faq-row textarea { min-height: 40px; }
.ct-manual-copy { margin-top: 6px; }
.ct-check-result { padding-top: 10px; border-top: 1px solid var(--ct-border); }
.ct-check-result h3 { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.ct-checks { display: grid; gap: 4px; margin: 6px 0; padding-left: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.ct-checks .is-fail strong { color: var(--red); }
@media (max-width: 640px) { .ct-faq-row { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .ct-item-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ct-filters label { flex: 1 1 100%; } #contentDashboard select, #contentDashboard input { width: 100%; } }
.ct-run-form { display: grid; gap: 10px; margin-bottom: 10px; }
.ct-run-form fieldset { min-width: 0; padding: 0; border: 0; }
.ct-run-form legend, .ct-run-form > label { font-size: 12px; color: var(--ct-muted); }
.ct-run-form > label { display: flex; flex-direction: column; gap: 4px; }
.ct-run-fields { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.ct-run-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ct-run-cost { margin-bottom: 8px; color: var(--ct-muted); }
.ct-run-steps, .ct-run-sources { display: grid; gap: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.ct-run-steps { list-style: none; }
.ct-run-steps li { display: flex; gap: 8px; }
.ct-run-steps small { display: block; color: var(--ct-muted); }
.ct-run-seq { min-width: 24px; color: var(--ct-muted); text-align: right; }
.ct-run-sources { padding-left: 18px; }
.ct-run h3 { margin: 12px 0 6px; font-size: 14px; }
.ct-reasoning h3 { margin: 12px 0 6px; font-size: 14px; }
.ct-reasoning-list { display: grid; gap: 6px; padding-left: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.ct-reasoning-list small { display: block; color: var(--ct-muted); }
.ct-refs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; font-size: 12px; }
.ct-history { display: grid; gap: 10px; list-style: none; padding-left: 0; overflow-wrap: anywhere; }
.ct-history li { display: grid; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--ct-border); }
.ct-history small { display: block; color: var(--ct-muted); }
.ct-diff-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 10px; }
.ct-diff ins.ct-diff-ins { color: var(--green); background: var(--green-tint); text-decoration: none; }
.ct-diff del.ct-diff-del { color: var(--red); background: var(--red-tint); text-decoration: line-through; }
