.private-space-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.private-header {
  text-align: center;
  padding: 32px 0 24px;
}

.private-header h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 6px;
}

.private-header p {
  color: #888;
  font-size: 0.9rem;
}

.private-notice {
  background: #f0f9ff;
  border: 1px solid #bae0f5;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.private-notice .notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.private-compose {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.private-compose h3 {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.private-compose textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.private-compose textarea:focus {
  border-color: var(--color-primary, #3b82f6);
}

.private-compose textarea::placeholder {
  color: #aaa;
}

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

.private-compose-actions label {
  font-size: 0.85rem;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.private-compose-actions input[type="file"] {
  display: none;
}

.btn-compose {
  padding: 7px 18px;
  background: var(--color-primary, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-compose:hover {
  opacity: 0.85;
}

.btn-compose:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.private-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.private-post {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.private-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.private-post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.private-post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.private-post-avatar.is-admin {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.private-post-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.private-post-author-badge {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.badge-admin {
  background: #fee2e2;
  color: #dc2626;
}

.badge-svip {
  background: #ede9fe;
  color: #7c3aed;
}

.badge-vip {
  background: #dbeafe;
  color: #2563eb;
}

.private-post-time {
  font-size: 0.78rem;
  color: #aaa;
}

.private-post-content {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.private-post-file {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.private-post-file a {
  color: var(--color-primary, #3b82f6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.private-post-file a:hover {
  text-decoration: underline;
}

.private-post-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-delete-post {
  font-size: 0.8rem;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.7;
}

.btn-delete-post:hover {
  opacity: 1;
  background: #fee2e2;
}

.private-empty {
  text-align: center;
  padding: 48px 0;
  color: #bbb;
}

.private-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.private-empty p {
  font-size: 0.95rem;
}

.private-loading {
  text-align: center;
  padding: 24px;
  color: #aaa;
}

.file-name-display {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
