.cn { display: flex; flex-direction: column; gap: 16px; }
.cn-sub, .cn-tabs, .cn-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.cn-sub a, .cn-tabs a, .cn-toggle button.on { text-decoration: none; border-bottom: 2px solid var(--ink); padding: 8px 2px; }
.cn-tabs a { text-transform: uppercase; font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: 0.08em; padding: 10px 8px; }
.cn-tabs a.on, .cn-sub a.on { background: var(--lime); }
.cn-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--card); }
.cn-stats div { padding: 16px; border-right: 1px solid var(--line); }
.cn-stats div:last-child { border-right: 0; }
.cn-stats b { display: block; font-family: "Playfair Display", serif; font-size: 36px; font-weight: 500; line-height: 1; }
.cn-stats span, .cn-meta span { color: var(--mute); }
.cn-filters, .cn-meta, .cn .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.cn-filters > div { min-width: 160px; flex: 1; }
.cn-panel { border: 1px solid var(--line); background: var(--card); padding: 16px; }
.cn-cards, .cn-intel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cn-card, .cn-roles article { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: #fbfaf6; padding: 14px; text-decoration: none; color: inherit; }
.cn-card h3, .cn-roles h3 { margin: 0; font-size: 18px; }
.cn-card p, .cn-roles p { margin: 0; color: var(--mute); }

.cn-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cn-chips .mono { margin-right: 4px; }
.cn .chip {
  border: 1px solid var(--ink); background: transparent; min-height: 32px; padding: 4px 10px;
  font: inherit; font-size: 13px; cursor: pointer;
}
.cn .chip.on { background: var(--lime); }
.editor .cn-chips { grid-column: 1 / -1; }

.cn-line { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cn-line b { font-weight: 500; }
.cn-photo { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.cn-stars { color: #c8c6bc; letter-spacing: 2px; }
.cn-stars .on { color: #8fb83a; }
.cn-total { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.cn-total b { font-family: "Playfair Display", serif; font-size: 56px; font-weight: 500; line-height: .9; }
.cn-bar { flex: 1; height: 8px; background: #e7e4d8; min-width: 180px; }
.cn-bar span { display: block; height: 100%; background: var(--lime); width: 0; }
.cn-score { display: flex; flex-direction: column; gap: 16px; }
.cn-score h3 { margin: 0; }
.cn-score p { margin: 4px 0; color: var(--mute); }
.cn-score input[type="range"] { width: 100%; }
.cn-rate { display: grid; grid-template-columns: 140px 1fr 90px; gap: 8px; align-items: center; }
.cn table small { display: block; color: var(--mute); }
.cn .page-head .button { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 800px) {
  .cn-stats, .cn-cards, .cn-intel, .cn-line, .cn-rate { display: flex; flex-direction: column; }
  .cn-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
}

.cn .page-head { margin-bottom: 12px; }
.cn .page-head h1 { font-size: clamp(32px, 4vw, 44px); }
.cn h3 { margin: 14px 0 6px; }
.cn .click-row { cursor: pointer; }
.cn .click-row:hover { background: #f7f6ef; }
