:root { --ui-scale: 1; }
html { font-size: 16px; }
@media (min-width: 1024px) {
  :root { --ui-scale: 0.9; }
  html { font-size: 14.4px; }
}
@media (max-width: 768px) {
  :root { --ui-scale: 1; }
  html { font-size: 16px; }
}

/* 💬 Комментарии к дайджесту и сводке по часам — читают все, пишут зарегистрированные */

.comments-host {
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 0 22px;
}
.comments-host .cc-card {
  border: 1px solid var(--border, #1b2434);
  background: linear-gradient(180deg, rgba(13,18,32,0.92), rgba(10,14,24,0.7));
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.comments-host h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-host .cc-sub {
  color: var(--muted, #8493a8);
  font-size: 0.8rem;
  margin-bottom: 12px;
  line-height: 1.45;
}
.cc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}
.cc-msg {
  border: 1px solid var(--border, #1b2434);
  background: rgba(12,18,34,0.85);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c8d6f2;
  word-break: break-word;
}
.cc-msg.admin {
  border-color: #3a2d1a;
  background: #1a160e;
}
.cc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #7f93b8;
  margin-bottom: 3px;
}
.cc-name { font-weight: 700; color: #a9bee8; }
.cc-msg.admin .cc-name { color: #ffcc66; }
.cc-time { opacity: 0.75; }
.cc-text { white-space: pre-wrap; }
.cc-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cc-foot input, .cc-foot textarea {
  flex: 1 1 240px;
  min-width: 0;
  background: #0a1226;
  border: 1px solid #223055;
  color: #dbe6ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}
.cc-foot textarea {
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
}
.cc-foot input:focus, .cc-foot textarea:focus { border-color: #35508a; }
.cc-foot button {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #3d70ff, #00d6ff);
  color: #060a12;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
}
.cc-foot button:hover { filter: brightness(1.08); }
.cc-foot button:disabled { opacity: 0.45; cursor: default; }
.cc-hint { flex: 1 1 100%; font-size: 0.75rem; color: #7f93b8; min-height: 16px; }
.cc-hint.error { color: #ff6b7a; }
.cc-hint a { color: #8ab4ff; text-decoration: underline; }
.cc-empty { color: var(--muted, #8493a8); font-size: 0.84rem; padding: 8px 0; }
.cc-count { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(61,112,255,0.18);
  border: 1px solid rgba(61,112,255,0.35);
  font-size: 0.72rem;
  padding: 0 6px;
}
@media (max-width: 640px) {
  .comments-host { padding: 0 14px; margin-top: 18px; }
  .comments-host .cc-card { padding: 14px 12px 12px; }
}
