:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-header: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --accent-strong: #1d4ed8;
}

body[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #111827;
  --bg-header: #020617;
  --border-subtle: #1f2937;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-soft: #1d4ed8;
  --accent-strong: #60a5fa;
}

html, body { height:100%;  margin:0; padding:0; }
        body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.header { background: var(--bg-header); border-bottom: 1px solid var(--border-subtle);  margin:0;  padding:0; }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding:0 16px 6px;
  display: flex;
  align-items:flex-start;
  gap: 12px;
}
.logo { font-size: 20px; font-weight: 700; white-space: nowrap; }
.subtitle { font-size: 12px; color: var(--text-muted); }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; }
.search-input { flex: 1; position: relative; }
.search-input input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn,
.btn-ghost {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  cursor: pointer;
}
.btn { background: var(--accent-soft); color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }

.page { max-width: 1200px; margin: 0 auto; padding: 16px; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 16px; }
.column { display: flex; flex-direction: column; gap: 12px; }

.card { background: var(--bg-elevated); border-radius: 6px; border: 1px solid var(--border-subtle); padding: 10px 12px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; position: relative; padding-left: 6px; }
.card-title-sub { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

ul { list-style: none; margin: 0; padding: 0; }
li { font-size: 12px; padding: 2px 0; }
.small-text { font-size: 11px; color: var(--text-muted); }

.category-name a { color: var(--text-main); font-weight: 500; }
.category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.05);
  margin-bottom: 4px;
  transition: background 0.15s, transform 0.15s;
}
.category-pill:hover { background: rgba(37, 99, 235, 0.12); transform: translateX(2px); }
.category-count { font-size: 11px; color: var(--text-muted); }

.contact-list li { display: flex; align-items: center; margin-bottom: 4px; }
.contact-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 6px;
}
.contact-text { flex: 1; }

.friend-links { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px 8px; }

.friend-links li { padding:0; }

.friend-links + .small-text { text-align:left; }

.friend-links li a {

    text-align:left;
  display: block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.04);
  transition: background 0.15s, transform 0.15s;
}
.friend-links li a:hover { background: rgba(37, 99, 235, 0.12); transform: translateX(2px); }
.new-sites-list li a { display: inline-block; padding: 3px 0; }

.meta-line { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
body { font-size: 14px; line-height: 1.7; }

.hidden-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px dashed var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
}
.hidden-block-placeholder {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px dashed var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 12px;
}
[data-hidden-marker^="comment-only"] {
  display: none !important;
}

.list-compact li { border-bottom: 1px dashed #e5e7eb; }
.list-compact li.comment-reply { position: relative; padding-left: 14px; font-size: 11px; color: #4b5563; }
.list-compact li.comment-reply::before { content: "\21B3"; position: absolute; left: 0; top: 2px; color: #9ca3af; }

.emoji-bar button { border: none; background: transparent; cursor: pointer; font-size: 16px; margin-right: 4px; }

.form-row { display: flex; gap: 8px; margin-bottom: 8px; }
.form-row label { width: 70px; font-size: 13px; }
.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 13px;
}
.form-row textarea { min-height: 80px; resize: vertical; }

.auth-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.auth-form-group { margin-bottom: 8px; }
.auth-form-group label { display: block; font-size: 13px; margin-bottom: 4px; }
.auth-form-group input { width: 100%; padding: 6px 8px; border-radius: 4px; border: 1px solid #d1d5db; font-size: 14px; background: var(--bg-elevated); color: var(--text-main); }
.auth-btn { border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; padding: 6px 12px; cursor: pointer; width: 100%; margin-top: 6px; }
.errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 8px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 10px; }
.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 8px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 10px; }

.member-card-header { display: flex; align-items: center; justify-content: space-between; }
.member-card-title-main { font-size: 14px; font-weight: 600; }
.member-card-title-sub { font-size: 11px; color: var(--text-muted); }
.member-actions .btn { font-size: 12px; padding: 4px 10px; width: 100%; text-align: center; margin-top: 4px; }
.member-guest-actions { display: flex; gap: 8px; margin-top: 6px; }
.member-guest-actions .btn { flex: 1; font-size: 12px; padding: 5px 0; }

.site-footer { margin-top: 16px; border-top: 1px solid var(--border-subtle); background: var(--bg-header); color: var(--text-muted); font-size: 12px; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px 16px; text-align: center; }
.site-footer a { color: var(--accent); }

@media (max-width: 768px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .header-inner { flex-wrap: wrap; }
  .search-box { min-width: 100%; }
}








