/* GEO-админка: стили вкладок направления.
   Оболочка (токены, сайдбар, модалки, мобилка) — platform/shared-ui/shell.css,
   переключатель направлений — switcher.css. Здесь только своё. */

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.stat b { display: block; font-size: 30px; font-weight: 800; margin-top: 6px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.proj { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.proj:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.proj .preview { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--tone-blue), var(--tone-lavender)); position: relative; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.35); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; overflow: hidden; }
.proj .preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj .preview-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; }
.proj .status-badge { position: absolute; top: 10px; left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); cursor: pointer; border: 1px solid transparent; transition: border-color .15s, background .15s; z-index: 2; }
.proj .status-badge:hover { border-color: var(--text); background: #fff; }
.proj .body { padding: 14px 16px 16px; flex: 1; }
.proj h3 { margin: 4px 0; font-size: 17px; font-weight: 700; }
.proj .niche { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.proj-add { border: 2px dashed var(--border); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--dim); min-height: 240px; cursor: pointer; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.proj-add:hover { border-color: var(--lime); color: var(--text); }
.proj-add .big { font-size: 32px; margin-bottom: 4px; }

/* kanban */
.kb-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.col { background: rgba(255,255,255,.55); border: 1px solid var(--border); border-radius: 18px; padding: 10px; min-height: 300px; }
.col-head { display: flex; justify-content: space-between; padding: 4px 6px 10px; }
.col-head strong { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--text); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.04); position: relative; }
.card:hover { border-color: var(--dim); }
.card.dragging { opacity: .4; }
.card .title { font-weight: 600; font-size: 13px; line-height: 1.35; margin: 6px 0 6px; }
.badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.badge { font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; background: var(--hover); color: var(--muted); border: 1px solid var(--border); }
.badge.id { background: #1a1a1a; color: #fff; cursor: pointer; border-color: #1a1a1a; }
.badge.id:hover { background: var(--lime); color: #1a1a1a; border-color: var(--lime); }
.badge.comments-count { background: var(--tone-yellow); color: #6b4c00; border-color: #f0c800; }
.col.drag-over { outline: 2px dashed var(--lime); }
.card .card-drag { position: absolute; top: 6px; right: 26px; cursor: grab; color: var(--dim); opacity: 0; transition: opacity .15s; padding: 2px; }
.card:hover .card-drag { opacity: 1; }
.card .del { position: absolute; top: 6px; right: 6px; border: none; background: none; color: var(--dim); cursor: pointer; font-size: 12px; padding: 4px; line-height: 1; }
.card .del:hover { color: var(--danger); }
.card.flash { outline: 3px solid var(--lime); }
.saving { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); margin-left: 8px; }

/* list-card generic */
.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 6px 4px; }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: center; cursor: pointer; }
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--hover); }
.list-row.active { background: var(--lime); }
.list-row strong { font-weight: 600; }
.list-row .meta { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; }

/* md-editor */
.md-shell { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.md-editor { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; min-height: 500px; display: flex; flex-direction: column; gap: 10px; }
.md-editor .path { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.md-editor textarea { flex: 1; min-height: 400px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.55; resize: vertical; }
.md-editor .actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* project dashboard */
/* ── первый экран проекта: Статус · Ядро · Tone of Voice ─────── */
.pj-top { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.pj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px; max-height: 420px; overflow-y: auto;
}
.pj-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pj-card-meta { font-size: 10px; color: var(--dim); margin-bottom: 8px; }
.pj-status { margin: 4px 0 10px; font-size: 18px; }
.pj-card dl { margin: 0; font-size: 12px; }
.pj-card dt { font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pj-card dd { margin: 2px 0; overflow-wrap: anywhere; }
.pj-card-body { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.pj-card-body h1, .pj-card-body h2, .pj-card-body h3 { font-size: 13px; margin: 10px 0 4px; color: var(--text); }
.pj-card-body p, .pj-card-body ul { margin: 0 0 8px; }
.pj-card-body ul { padding-left: 18px; }
.pj-empty { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pj-empty code { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--hover); padding: 1px 5px; border-radius: 4px; }

.pj-editor { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.pj-editor-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pj-editor-head .mono { font-size: 10px; color: var(--dim); overflow-wrap: anywhere; }
.pj-editor textarea {
  width: 100%; min-height: 420px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  line-height: 1.6; padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); resize: vertical;
}

@media (max-width: 1100px) { .pj-top { grid-template-columns: 1fr; } .pj-card { max-height: none; } }

/* Список статей — треть, предпросмотр — две трети: читают тут статью, а не список */
.pj-shell { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 14px; align-items: start; margin-top: 18px; }
@media (max-width: 900px) { .pj-shell { grid-template-columns: 1fr; } }
.pj-articles-line { margin-top: 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pj-info { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; position: sticky; top: 20px; }
.pj-info h3 { margin: 8px 0; font-size: 18px; }
.pj-info dl { margin: 8px 0 0; font-size: 12px; }
.pj-info dt { font-family: 'JetBrains Mono', monospace; font-size: 9px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pj-info dd { margin: 2px 0; }
.pj-cat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
.pj-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; min-height: 400px; max-height: calc(100vh - 200px); overflow-y: auto; }
.pj-preview iframe { width: 100%; height: 500px; border: none; border-radius: 12px; }
.preview-toolbar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.article-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; }
.article-body { line-height: 1.65; font-size: 15px; }
.article-body h1 { font-size: 26px; font-weight: 700; margin: .3em 0 .5em; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 1.4em 0 .4em; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 1.2em 0 .3em; }
.article-body p { margin: .7em 0; }
.article-body ul, .article-body ol { padding-left: 22px; margin: .7em 0; }
.article-body code { background: var(--hover); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.article-body pre { background: var(--text); color: var(--lime); padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 12px; }
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body blockquote { border-left: 3px solid var(--lime); padding-left: 14px; margin: 1em 0; color: var(--muted); font-style: italic; }
.article-body table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 13px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.article-body th { background: var(--hover); font-weight: 600; }
#articleEditor textarea { width: 100%; min-height: 500px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; font: 13px/1.5 'JetBrains Mono', monospace; }

/* Чек-лист подключений на карточке проекта */
.checklist-shell { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
.checklist-shell summary { cursor: pointer; display: flex; align-items: center; gap: 14px; list-style: none; font-size: 14px; }
.checklist-shell summary::-webkit-details-marker { display: none; }
.checklist-shell summary::before { content: '▸'; transition: transform .15s; color: var(--muted); }
.checklist-shell[open] summary::before { transform: rotate(90deg); }
.checklist-progress { background: var(--lime); color: var(--text); font-weight: 700; padding: 3px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.checklist-hint { margin-left: auto; opacity: .6; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.check-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.check-item.status-ok { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: color-mix(in srgb, var(--success) 6%, var(--surface)); }
.check-item.status-warn { border-color: color-mix(in srgb, var(--tone-yellow) 60%, var(--border)); background: color-mix(in srgb, var(--tone-yellow) 10%, var(--surface)); }
.check-item.status-todo { border-color: var(--border); }
/* Пропущено осознанно: жёлтый и приглушённый. Не «плохо» и не «сделано» —
   решение, что в этом проекте шага не будет. Конвейер такой пункт игнорирует. */
.check-item.status-skip { border-color: color-mix(in srgb, var(--tone-yellow) 70%, var(--border));
  background: color-mix(in srgb, var(--tone-yellow) 14%, var(--surface)); border-style: dashed; }
.check-item.status-skip .check-note, .check-item.status-skip strong { opacity: .72; }
.check-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.check-item.status-info { background: var(--surface); }
.check-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.check-mark { font-size: 16px; font-weight: 700; }
.status-ok .check-mark { color: var(--success); }
.status-warn .check-mark { color: #a17800; }
.status-todo .check-mark { color: var(--danger); }
.status-info .check-mark { color: var(--muted); }
.check-note { font-size: 12px; color: var(--muted); line-height: 1.4; margin-bottom: 4px; }
.check-help { font-size: 11px; color: var(--dim); line-height: 1.45; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }

/* ── ручные отметки поверх автопроверки ──────────────────────── */
.check-item[role=button] { cursor: pointer; transition: border-color .15s, transform .12s; }
.check-item[role=button]:hover { border-color: var(--dim); transform: translateY(-1px); }
.check-item[role=button]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.check-item.is-manual { border-style: dashed; }
.check-manual { margin-left: auto; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
/* расхождение отметки с фактом — единственное, что здесь обязано бросаться в глаза */
.check-conflict { margin-top: 6px; font-size: 10.5px; color: var(--danger); line-height: 1.4; }
.check-reset {
  margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10px; cursor: pointer;
  background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline;
}
.check-reset:hover { color: var(--text); }

/* Расписание публикаций */
.schedule-panel { background: color-mix(in srgb, var(--tone-lavender) 20%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone-lavender) 60%, var(--border)); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.schedule-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-top: 8px; }
.schedule-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13px; transition: border-color .12s; }
.schedule-item:hover { border-color: var(--text); }
.schedule-date { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.schedule-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* datetime-local в модалке публикации */
.publish-row input[type="datetime-local"], .publish-row input[type="date"] { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 12px; }
.publish-row { flex-wrap: wrap; gap: 8px; }

/* Тумблер Канбан/Таблица */
.view-toggle { display: inline-flex; gap: 4px; }
.view-toggle .pill-btn { font-size: 12px; padding: 6px 14px; }

/* Табличная view конвейера */
.content-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.content-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.content-table th { background: var(--hover); text-align: left; padding: 10px 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.content-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.content-table tr:hover td { background: color-mix(in srgb, var(--lime) 6%, transparent); }
.content-table select, .content-table input {
  width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 12px; background: var(--surface);
}
.content-table select:focus, .content-table input:focus { outline: none; border-color: var(--text); }
.content-table .c-title a { text-decoration: none; color: var(--text); }
.content-table .c-title a:hover { color: var(--danger); }
.content-table .c-title strong { display: block; font-size: 13px; margin-bottom: 2px; }
.content-table .cov-thumb { width: 90px; height: 56px; object-fit: cover; border-radius: 6px; display: block; }
.content-table .c-cover .pill-btn { font-size: 11px; padding: 5px 10px; white-space: nowrap; }
.content-table .stage-track { flex-wrap: wrap; }
.content-table .c-open .pill-btn { padding: 5px 12px; font-size: 11px; }

/* Тянущиеся колонки. table-layout: fixed обязателен — иначе браузер пересчитывает
   ширины по содержимому и заданная мышью ширина держится только до перерисовки. */
.content-table.resizable { table-layout: fixed; }
.content-table.resizable th { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-table.resizable td { overflow: hidden; text-overflow: ellipsis; }
.content-table.resizable td .mono, .content-table.resizable td strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-resizer { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; user-select: none; touch-action: none; z-index: 2; }
.col-resizer:hover { background: var(--text); opacity: .35; }

/* Метка проекта у строки — только в режиме «Все проекты» */
.proj-tag { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* Сетка тем (вкладка «Темы»): 2-3 колонки, больше места, без правой панели */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 12px; }
.topics-grid .topic-card { min-width: 0; }
.topics-grid .topic-card.rejected { opacity: .55; background: color-mix(in srgb, var(--danger) 5%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }

/* Опубликованные карточки (вкладка «Публикация», нижний раздел) */
.published-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 8px; }
.published-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.published-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.published-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.published-card .cov-ph { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--tone-blue), var(--tone-lavender)); display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.35); }
.published-card .body { padding: 12px 14px; }
.published-card .body strong { display: block; font-size: 14px; margin: 4px 0; line-height: 1.35; }

/* ── КОНВЕЙЕР ─────────────────────────────────────────────── */
/* «Что делать дальше» — осмысленная панель вместо старых чёрных надписей */
.pipe-hint {
  background: color-mix(in srgb, var(--tone-blue) 25%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tone-blue) 60%, var(--border));
  border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
  font-size: 14px; line-height: 1.5;
}
.pipe-hint.success {
  background: color-mix(in srgb, var(--lime) 20%, var(--surface));
  border-color: color-mix(in srgb, var(--lime) 60%, var(--border));
}
.pipe-hint .mono { margin-top: 8px; }
.cmd-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; flex-wrap: wrap; }
.cmd-row code {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: var(--text); color: var(--lime);
  padding: 8px 12px; border-radius: 8px;
  white-space: nowrap; overflow-x: auto; max-width: 100%;
}
.pipe-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pipe-grid { grid-template-columns: 1fr; } }
.pipe-inbox { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.topic-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--bg); cursor: pointer; transition: border-color .15s, transform .12s; }
.topic-card:hover { border-color: var(--dim); transform: translateY(-1px); }
.topic-card.approved { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, var(--surface)); }
.topic-card .title { font-weight: 600; font-size: 13px; line-height: 1.35; margin: 8px 0 6px; }
.topic-summary { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.topic-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn.sm { padding: 5px 12px; font-size: 12px; }
.badge.score-hi { background: var(--tone-sage); color: #1a4d1a; border-color: #8cc98c; }
.badge.score-mid { background: var(--tone-yellow); color: #6b4c00; border-color: #f0c800; }
.badge.score-lo { background: var(--tone-peach); color: #7a3d1a; border-color: #e0a880; }

.pipe-board { min-width: 0; }
/* Столбики Конвейера: горизонтальный скролл, фиксированная ширина колонок — карточки читаемы, не сжимаются */
.pipe-cols {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.pipe-cols::-webkit-scrollbar { height: 10px; }
.pipe-cols::-webkit-scrollbar-track { background: var(--hover); border-radius: 8px; }
.pipe-cols::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 8px; }
.pipe-cols::-webkit-scrollbar-thumb:hover { background: var(--text); }
.pipe-col {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  min-height: 200px;
  max-height: calc(100vh - 340px);
  overflow-y: auto;
}
.pipe-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, transform .15s; }
.pipe-card:hover { border-color: var(--dim); transform: translateY(-1px); }
.pipe-card .title { font-weight: 600; font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
.stage-track { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 8px; }
.stage {
  font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: .04em;
  padding: 2px 4px; border-radius: 4px;
  background: var(--hover); color: var(--dim); border: 1px solid var(--border);
}
.stage.done { background: var(--lime); color: #1a1a1a; border-color: var(--lime); font-weight: 700; }
.needs-human {
  margin-top: 8px; font-size: 11px; line-height: 1.4;
  background: color-mix(in srgb, var(--tone-yellow) 25%, transparent);
  border-radius: 8px; padding: 6px 8px;
}
.pipe-output { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.pipe-output summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.pipe-output pre { white-space: pre-wrap; word-break: break-word; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.5; margin-top: 8px; max-height: 300px; overflow-y: auto; }
.pipe-output.empty { color: var(--dim); border-style: dashed; }

/* Баги (Grandis-стиль карточек) */
.bugs-shell { display: flex; flex-direction: column; gap: 10px; }
.bug-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; transition: opacity .3s; }
.bug-card.closed { opacity: .55; }
.bug-card.closed .bug-desc { text-decoration: line-through; color: var(--muted); }
.bug-body { flex: 1; min-width: 0; }
.bug-num { display: inline-block; font-size: 12px; font-weight: 700; color: var(--success); background: rgba(34,197,94,.12); border-radius: 6px; padding: 2px 8px; text-decoration: none; margin-right: 8px; }
.bug-card.closed .bug-num { color: #fff; background: #9ca3af; }
.bug-desc { font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.bug-meta { font-size: 11px; color: var(--muted); }
.bug-meta a { color: var(--text); }
.bug-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bug-btn { height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.bug-btn:hover { border-color: var(--text); color: var(--text); }
.bug-btn.fix { border-color: var(--success); color: var(--success); }
.bug-btn.fix:hover { background: var(--success); color: #fff; }
.bug-btn.reopen { border-color: #f59e0b; color: #f59e0b; }
.bug-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14px; }
.bug-section-head { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--dim); margin: 18px 0 10px; letter-spacing: .06em; }

/* task modal (кликабельная карточка задачи с чатом-комментами) */
.task-modal .badges { margin-bottom: 12px; }
.task-modal .task-title-input { font-size: 18px; font-weight: 700; padding: 10px 14px; }
.task-chat { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; }
.task-chat .comments { max-height: 260px; overflow-y: auto; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.task-comment { background: var(--hover); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.task-comment .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.task-comment .head strong { font-size: 12px; }
.task-comment .head .when { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.task-comment.own { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
.task-comment.claude { background: color-mix(in srgb, var(--tone-lavender) 30%, var(--surface)); }
.task-chat-input { display: flex; gap: 8px; align-items: center; }
.task-chat-input input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; font: inherit; margin: 0; }

/* ── Переключатель проектов в топбаре ────────────────────────── */
.project-switcher { display: inline-flex; align-items: center; gap: 8px; }
.project-switcher .proj-sel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
}
.project-switcher .proj-sel:hover { border-color: var(--dim); }

/* ── Вкладка «Ядро» ──────────────────────────────────────────── */
.core-view {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px 34px; margin-top: 16px; line-height: 1.6; font-size: 15px;
  max-width: 900px;
}
.core-view h1, .core-view h2, .core-view h3, .core-view h4 { font-weight: 700; margin: 1.2em 0 .5em; line-height: 1.25; }
.core-view h1 { font-size: 28px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.core-view h2 { font-size: 22px; color: var(--text); margin-top: 1.6em; }
.core-view h3 { font-size: 17px; }
.core-view p { margin: .8em 0; }
.core-view ul, .core-view ol { padding-left: 24px; margin: .8em 0; }
.core-view li { margin: .3em 0; }
.core-view code { background: var(--hover); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.core-view pre { background: #1a1a1a; color: #f5f5f5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.core-view pre code { background: none; color: inherit; padding: 0; }
.core-view blockquote { border-left: 3px solid var(--lime); padding: 4px 14px; margin: 1em 0; background: var(--hover); border-radius: 0 8px 8px 0; }
.core-view a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); }
.core-view a:hover { text-decoration-color: var(--text); }
.core-view hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.core-view table { border-collapse: collapse; margin: 1em 0; width: 100%; }
.core-view th, .core-view td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.core-view th { background: var(--hover); font-weight: 600; }
.core-editor { margin-top: 16px; }
.core-editor textarea {
  width: 100%; min-height: 65vh; padding: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  resize: vertical;
}
.core-editor textarea:focus { outline: none; border-color: var(--text); }

/* ── Обложка в модалке Конвейера ─────────────────────────────── */
.cover-block { border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.cover-block.has-cover { background: var(--surface); border: 1px solid var(--border); }
.cover-block.needs-cover { background: color-mix(in srgb, var(--tone-yellow) 18%, transparent); border: 1px solid var(--tone-yellow); }
.cover-alert { font-weight: 600; margin-bottom: 10px; color: var(--text); }
.cover-preview { border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: var(--hover); max-width: 400px; }
.cover-preview img { display: block; width: 100%; height: auto; }
.cover-meta { margin-bottom: 10px; overflow-wrap: anywhere; }
.cover-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cover-prompt {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5;
  white-space: pre-wrap; margin: 8px 0; max-height: 220px; overflow-y: auto;
}
.pill-btn.sm { padding: 4px 10px; font-size: 11px; }

/* ── Публикация: состояние пути «запись в Teable → живой сайт» ── */
.pub-block {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
}
.pub-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-phase {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--hover); color: var(--text); white-space: nowrap;
}
.pub-phase.ok { background: color-mix(in srgb, var(--tone-sage) 55%, transparent); }
.pub-phase.wait { background: color-mix(in srgb, var(--tone-yellow) 26%, transparent); }
.pub-phase.bad { background: color-mix(in srgb, var(--tone-peach) 70%, transparent); }
.pub-blockers, .pub-warns { margin: 8px 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.pub-blockers li { color: var(--text); }
.pub-warns li { color: var(--muted); }
.pub-preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.5;
  white-space: pre-wrap; max-height: 50vh; overflow-y: auto;
}
.pub-auto { display: flex; align-items: center; gap: 7px; margin-left: auto; cursor: pointer; }
.content-table .c-pub { white-space: nowrap; }

/* Обложки в списке статей проекта: «нет обложки» — это статус, а не битая картинка */
.art-row { display: flex; align-items: center; gap: 10px; }
.art-cov { width: 42px; height: 26px; object-fit: cover; border-radius: 4px; flex: none; }
.art-cov.none {
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tone-yellow) 30%, transparent);
  color: var(--muted); font-size: 11px;
}
.pj-nocover-count { color: var(--text); font-weight: 600; }
.pj-nocover-hint {
  margin: 0 8px 10px; padding: 9px 11px; border-radius: 10px; line-height: 1.55;
  background: color-mix(in srgb, var(--tone-yellow) 16%, transparent);
}

/* ── Мастер нового сайта ──────────────────────────────────────────── */
.np-form { display: flex; flex-direction: column; gap: 11px; }
.np-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.np-form label span.mono { font-weight: 400; font-size: 11px; color: var(--muted); }
.np-form input[type=text], .np-form input:not([type]), .np-form textarea {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px;
  background: var(--bg); color: var(--text); }
.np-form input:focus, .np-form textarea:focus { outline: none; border-color: var(--lime); }
.np-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: end; }
.np-check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400; }
.np-note { border-left: 3px solid var(--border); padding: 4px 0 4px 11px; font-size: 12.5px; color: var(--muted); }
.np-note ol { margin: 6px 0 0; padding-left: 20px; }
.np-state { color: var(--muted); font-size: 12px; min-height: 16px; }

/* Заметка человека в карточке чек-листа: короткая, курсивом, чтобы не путалась
   с автопроверкой — та описывает факт, а эта то, что решил человек. */
.check-usernote { margin-top: 6px; padding-left: 9px; border-left: 2px solid var(--border);
  font-size: 12.5px; font-style: italic; color: var(--muted); white-space: pre-wrap; }

/* ── прогоны конвейера ───────────────────────────────────────────
   Карта прогона показывается в iframe во всю доступную высоту: это отдельный
   экран внутри админки, а не карточка среди карточек. Шапка и сайдбар остаются. */
.run-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.run-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px 16px;
  text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
.run-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--dim); }
.run-no { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.run-card h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.run-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.run-meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--dim); margin-bottom: 12px; }
.run-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.run-num { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.run-num .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.run-num .v { font-size: 14px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.run-gist { font-size: 13px; line-height: 1.5; color: var(--text); margin: 0 0 12px; }
.run-go { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.run-card:hover .run-go { color: var(--text); }

/* экран прогона: маршрут этапов в светлой теме админки */
.run-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.run-back { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.run-back:hover { color: var(--text); border-color: var(--dim); }
.run-title { margin: 0 0 2px; font-size: 21px; font-weight: 700; }

.run-switch { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.run-pill { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.run-pill:hover { border-color: var(--dim); }
.run-pill.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.run-pill img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.run-pill span b { display: block; font-size: 13px; font-weight: 650; }
.run-pill span i { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.run-ds { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--tone-sage); font-size: 10px; font-weight: 800; }
.run-pill.docs { margin-left: auto; }

.run-lane { display: none; --sys: var(--tone-lavender); }
.run-lane.on { display: block; }
.run-lane-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; font-size: 14px; }
.run-lane-head .run-tot { margin-left: auto; color: var(--muted); }

/* Маршрут занимает всю ширину: колонки распределяются по свободному месту, а не жмутся
   влево кучкой. Ореолы и свечение — из тёмной карты, тут они на светлом фоне мягче. */
.run-track { position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: clamp(18px, 3vw, 60px); overflow-x: auto; padding: 30px 8px 20px; min-height: 300px; }
.run-wires { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.run-wires path { fill: none; stroke: var(--sys); stroke-width: 1.8; opacity: .5;
  stroke-dasharray: 9 11; animation: run-flow 1.6s linear infinite; }
@keyframes run-flow { to { stroke-dashoffset: -20; } }
.run-col { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 1; flex: 0 0 auto; }
.run-node { background: none; border: 0; font: inherit; color: var(--sys); cursor: pointer; width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0;
  animation: run-pop .42s cubic-bezier(.22,.9,.3,1.2) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes run-pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.run-node .ring { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: currentColor; position: relative; transition: transform .18s, box-shadow .18s;
  box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 20%, transparent),
              0 0 0 18px color-mix(in srgb, currentColor 9%, transparent),
              0 10px 26px -8px color-mix(in srgb, currentColor 70%, transparent); }
.run-node .ring svg { width: 26px; height: 26px; stroke: #14141c; stroke-width: 2.1; }
.run-node:hover .ring { transform: translateY(-3px) scale(1.06); }
.run-node.fail { color: var(--danger); }
.run-node.none { color: var(--dim); }
.run-node.none .ring { background: var(--surface); border: 1px dashed var(--dim); box-shadow: none; }
.run-node.none .ring svg { stroke: var(--dim); }
.run-node.sel .ring { box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 30%, transparent),
  0 0 0 20px color-mix(in srgb, currentColor 14%, transparent), 0 12px 30px -6px color-mix(in srgb, currentColor 85%, transparent); }
.run-node .nname { font-size: 12.5px; font-weight: 650; line-height: 1.2; text-align: center; color: var(--text); }
.run-node .nmeta { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .run-wires path { animation: none; }
  .run-node { animation: none; }
}

.run-hermes { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.run-hermes b { color: var(--text); }
/* попап этапа — тот же модальный слой админки, только шире */
.modal.run-win { max-width: 980px; padding: 24px 26px; }
.modal.run-win.wide { max-width: 1240px; }
.modal.run-win.full { max-width: none; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
.run-win-bar { position: absolute; top: 16px; right: 18px; display: flex; gap: 8px; align-items: center; }
.btn-ghost { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 6px 11px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg); color: var(--muted); cursor: pointer; }
.btn-ghost:hover { color: var(--text); border-color: var(--dim); }
.btn-x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.btn-x:hover { color: var(--danger); border-color: var(--danger); }
.modal.run-win h3 { padding-right: 260px; font-size: 19px; }
.run-agent { color: var(--muted); font-weight: 500; font-size: 14px; }
.run-who { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.run-verdict { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
.run-verdict.issue { border-color: var(--danger); color: var(--danger); }
.run-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 14px; }
.run-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.run-tab { font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; }
.run-tab:hover { color: var(--text); }
.run-tab.on { background: var(--text); color: var(--surface); }
.run-sec { margin-bottom: 14px; }
.run-sec > .t { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.run-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px; font-size: 13px; }
.run-pre { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
  max-height: 58vh; overflow: auto; }
.run-pre.short { max-height: 26vh; }
.run-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.run-cmp h4 { margin: 0 0 4px; font-size: 13px; }

/* читательский вид статьи */
.paper { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 34px 40px;
  max-height: 66vh; overflow: auto; font-size: 15.5px; line-height: 1.72; }
.modal.run-win.full .paper { max-height: calc(100vh - 250px); }
.paper h1 { font-size: 29px; line-height: 1.2; margin: 0 0 18px; }
.paper h2 { font-size: 22px; margin: 30px 0 10px; }
.paper h3 { font-size: 17.5px; margin: 22px 0 8px; }
.paper p { margin: 0 0 14px; }
.paper ul, .paper ol { margin: 0 0 14px 22px; padding: 0; }
.paper li { margin-bottom: 6px; }
.paper blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--border); background: var(--bg); color: var(--muted); }
.paper table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 13.5px; }
.paper th, .paper td { border: 1px solid var(--border); padding: 8px 11px; text-align: left; vertical-align: top; }
.paper th { background: var(--bg); font-weight: 650; }
.paper code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.paper a { color: var(--text); }
.paper hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.paper .ph { background: color-mix(in srgb, var(--tone-yellow) 35%, transparent); border: 1px dashed var(--tone-yellow); padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }
.paper .summary { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
.paper .summary p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .run-cells { grid-template-columns: repeat(2, 1fr); } .modal.run-win h3 { padding-right: 0; } .run-win-bar { position: static; justify-content: flex-end; margin-bottom: 8px; } }

/* ── Голос и опыт ──────────────────────────────────────────────── */
.voice-ok { color: var(--text); }
.voice-todo { color: var(--danger); }
.voice-variants { display: grid; gap: 12px; margin: 12px 0; }
.voice-variant { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); }
.voice-variant:hover { border-color: var(--text); }
.voice-variant:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.voice-variant p { margin: 8px 0 6px; line-height: 1.55; }
.voice-variant strong { font-size: 15px; }
.probe-cell { white-space: nowrap; }

/* ── Диаграммы в итогах прогона ─────────────────────────────────
   Во всю ширину: слева кольцо, справа легенда. Наведение гасит всё, кроме доли,
   на которую смотрят — пока сегменты одинаково яркие, глаз их не разделяет. */
.dn { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.dn-svg { width: 170px; height: 170px; display: block; }
.dn-seg { transition: opacity .16s, stroke-width .16s; }
.dn.dim .dn-seg { opacity: .22; }
.dn.dim .dn-seg.hot { opacity: 1; stroke-width: 26; }
.dn-c-v { font-size: 15px; font-weight: 800; fill: var(--text); }
.dn-c-k { font-family: 'JetBrains Mono', monospace; font-size: 7px; fill: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dn-leg { display: flex; flex-direction: column; gap: 2px; }
.dn-row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 13px; cursor: default; transition: opacity .16s, background .16s; }
.dn-row:last-child { border-bottom: none; }
.dn.dim .dn-row { opacity: .35; }
.dn.dim .dn-row.hot { opacity: 1; background: var(--hover); border-radius: 8px; }
.dn-sw { width: 11px; height: 11px; border-radius: 3px; display: block; }
.dn-val { font-weight: 700; }
.dn-pct { font-size: 11px; color: var(--muted); min-width: 46px; text-align: right; }
.dn-read { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.55; color: var(--muted); }
.dn-read b { color: var(--text); }
@media (max-width: 700px) { .dn { grid-template-columns: 1fr; justify-items: center; } }

/* ── Три пути к голосу площадки ─────────────────────────────────── */
.voice-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.voice-way { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.voice-way .vw-h { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.voice-way p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.voice-way .pill-btn { align-self: flex-start; }
.vw-drop { border: 2px dashed var(--border); border-radius: 12px; padding: 16px 10px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.vw-drop.over { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 14%, transparent); color: var(--text); }

/* ── Tone of Voice и Опыт: витрина карточек ────────────────────────
   Раздел открывается карточками площадок, а не мастерской одной из них:
   голосов и банков опыта столько, сколько площадок, и статус у каждого свой.
   Клик по карточке — мастерская (#voice/tov/<slug> или #voice/exp/<slug>). */
.vsec { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.vsec h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.vsec .mono { color: var(--muted); font-size: 11px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vc { display: flex; flex-direction: column; gap: 6px; text-align: left; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px; font: inherit; cursor: pointer; }
.vc:hover { border-color: var(--text); }
.vc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vc-top b { font-size: 15px; }
.vc-dom { font-size: 11px; color: var(--dim); }
.vc-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.vc-path { font-size: 10px; color: var(--dim); word-break: break-all; }
.vc-badge { font-size: 10px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
  letter-spacing: .05em; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.vc-badge.vc-ok { background: var(--lime); }
.vc-badge.vc-todo { background: #f6d5d0; }
.vc-badge.vc-skip { background: var(--hover); color: var(--muted); }
.vc.vc-todo { border-style: dashed; }
.vc.vc-skip { opacity: .72; }
.vc-add { align-items: center; justify-content: center; text-align: center; gap: 2px;
  border-style: dashed; color: var(--muted); }
.vc-add .big { font-size: 26px; line-height: 1; }
.vc-add .mono { font-size: 10.5px; color: var(--dim); }
.voice-way.vw-skip { background: var(--surface); }
.vback { color: var(--muted); text-decoration: none; }
.vback:hover { color: var(--text); }
.vpick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.vpick .pill-btn { justify-content: flex-start; text-align: left; }
.vpick .mono { color: var(--dim); font-size: 11px; margin-left: 6px; }
