.comments-main {
  flex: 1;
  padding: 48px 20px 64px;
}

.comments-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.comments-header {
  margin-bottom: 28px;
}

.comments-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.comments-header p {
  font-size: 14px;
  color: #8b92a8;
  margin-top: 8px;
  line-height: 1.45;
}

.comments-compose {
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.comments-compose label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #c8cdd8;
  margin-bottom: 8px;
}

.comments-name-field {
  margin-bottom: 16px;
}

.comments-name-field input {
  width: 100%;
  padding: 10px 12px;
  background: #0a0c10;
  border: 1px solid #2e3344;
  border-radius: 8px;
  color: #e8eaef;
  font-family: inherit;
  font-size: 14px;
}

.comments-name-field input:focus {
  outline: none;
  border-color: #5b8def;
}

.comments-compose textarea {
  width: 100%;
  padding: 12px;
  background: #0a0c10;
  border: 1px solid #2e3344;
  border-radius: 8px;
  color: #e8eaef;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 100px;
}

.comments-compose textarea:focus {
  outline: none;
  border-color: #5b8def;
}

.comments-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.comments-compose-actions .login-submit {
  width: auto;
  padding: 10px 18px;
}

.comments-char-count {
  font-size: 12px;
  color: #6b7289;
}

.comments-legal-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7289;
}

.comments-legal-note a {
  color: #5b8def;
  text-decoration: none;
}

.comments-legal-note a:hover {
  text-decoration: underline;
}

.comments-signin {
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
  font-size: 14px;
  color: #8b92a8;
}

.comments-signin a {
  color: #5b8def;
  text-decoration: none;
}

.comments-signin a:hover {
  text-decoration: underline;
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
  padding: 16px 18px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #c8cdd8;
}

.comment-date {
  font-size: 12px;
  color: #6b7289;
}

.comment-body {
  font-size: 14px;
  line-height: 1.5;
  color: #e8eaef;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-delete {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #8b92a8;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}

.comment-delete:hover {
  color: #ff6b6b;
}

.comments-empty {
  text-align: center;
  font-size: 14px;
  color: #6b7289;
  padding: 24px 0;
}

.comments-load-error {
  margin-bottom: 16px;
}

.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card {
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e8eaef;
}

.stat-label {
  font-size: 12px;
  color: #8b92a8;
  line-height: 1.35;
}

.comments-wrap.stats-page-wrap {
  max-width: 820px;
}

.stats-breakdown {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stats-breakdown-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: #e8eaef;
  margin: 0 0 6px;
}

.stats-breakdown-note {
  font-size: 13px;
  color: #8b92a8;
  line-height: 1.45;
  margin: 0 0 12px;
}

.stats-breakdown-empty {
  font-size: 13px;
  color: #6b7289;
  margin: 0;
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid #1e2230;
  border-radius: 10px;
  background: #12141c;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #1e2230;
  vertical-align: top;
}

.stats-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b92a8;
  background: #0f1118;
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-table tbody tr.stats-row-you {
  background: rgba(91, 141, 239, 0.08);
}

.stats-email {
  word-break: break-all;
}

.stats-guest-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #c8cdd8;
}

.stats-you-badge,
.stats-admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.stats-you-badge {
  background: rgba(91, 141, 239, 0.2);
  color: #8eb4ff;
}

.stats-admin-badge {
  background: rgba(107, 114, 128, 0.25);
  color: #a8b0c0;
}
