:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --surface-2: #e2e8f0;
    --surface-3: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --primary: #927c51;
    --primary-dark: #7a6640;
    --accent: #a68f58;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --border: #b0bbc8;
    --border-subtle: #94a3b8;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(51, 65, 85, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(146, 124, 81, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4%;
    background: rgba(240, 244, 248, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-link { text-decoration: none !important; color: inherit; }
.logo-link .logo-text { text-decoration: none !important; }
.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    padding: 2px;
}
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -1px; }
.logo-for { font-family: 'Playfair Display', serif; color: var(--text); }
.logo-int { font-family: 'JetBrains Mono', monospace; color: var(--accent); }

.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.site-nav a:hover { color: var(--primary); }

main { padding: 3rem 4% 6rem; max-width: 1200px; margin: 0 auto; }

.hero { text-align: center; padding: 4rem 0 2rem; }
.badge {
    display: inline-block; padding: 0.35rem 0.85rem;
    border-radius: 999px; background: rgba(166, 143, 88, 0.12);
    border: 1px solid rgba(166, 143, 88, 0.25);
    color: var(--accent); font-size: 0.78rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 1rem;
    color: var(--text);
}
.gradient-text { color: var(--accent); }
.hero-sub { color: var(--text-muted); max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

.search-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
    max-width: 760px; margin: 0 auto;
}
.intel-cta {
    margin: 1.15rem auto 0;
    max-width: 760px;
    font-size: 0.88rem;
}
.intel-cta a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.intel-cta a:hover { color: var(--primary); }
.input-row { display: flex; gap: 0.75rem; }
.turnstile-box {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    min-height: 65px;
}
.input-wrap { position: relative; flex: 1; }
.input-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
input[type="text"] {
    width: 100%; padding: 0.95rem 1rem 0.95rem 2.8rem;
    background: var(--surface-3); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text); font-size: 1rem;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(146, 124, 81, 0.15);
}
input[type="text"]::placeholder { color: var(--text-muted); }

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0 1.4rem; background: var(--primary);
    border: none; border-radius: 12px; color: #fff;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--primary-dark); box-shadow: 0 8px 20px rgba(146, 124, 81, 0.25); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Profile Summary */
.profile-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    align-items: start;
    box-shadow: var(--shadow);
}
.summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.summary-left { display: flex; flex-direction: column; gap: 0.5rem; min-width: 220px; flex: 1; }
.summary-info { display: flex; flex-direction: column; gap: 0.35rem; }
.summary-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--text); }

.summary-section { margin-top: 0.25rem; }
.summary-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-avatars {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    flex-shrink: 0;
    max-height: 60px;
}
.avatars-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    height: 50px;
}
.avatar-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--surface-2);
    cursor: zoom-in;
    transition: transform 0.15s, border-color 0.15s;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.1);
}
.avatar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-thumb:hover { transform: scale(1.08); border-color: var(--primary); }
.avatar-thumb-initial {
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    cursor: default;
}

.roles-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.role-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(146, 124, 81, 0.1);
    border: 1px solid rgba(146, 124, 81, 0.25);
    color: var(--primary);
}
.role-tag.staff {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.25);
    color: var(--danger);
}

.summary-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mini-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: help;
    position: relative;
}
.mini-badge:hover {
    color: var(--primary);
}
.mini-badge-val {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.summary-timeline {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.625rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--border);
}
.timeline-item { position: relative; display: flex; align-items: baseline; gap: 0.6rem; }
.timeline-dot {
    position: absolute;
    left: -0.875rem;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid var(--primary);
    transform: translateX(-50%);
}
.timeline-content { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.timeline-date { font-size: 0.75rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.timeline-forum { font-size: 0.78rem; color: var(--text); font-weight: 500; }

/* Scrollbars */
.summary-avatars::-webkit-scrollbar,
.summary-timeline::-webkit-scrollbar {
    width: 5px;
}
.summary-avatars::-webkit-scrollbar-track,
.summary-timeline::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: 4px;
}
.summary-avatars::-webkit-scrollbar-thumb,
.summary-timeline::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.summary-avatars::-webkit-scrollbar-thumb:hover,
.summary-timeline::-webkit-scrollbar-thumb:hover {
    background: var(--border-subtle);
}

/* Results */
.results-section { margin-top: 3rem; }
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.results-header-left { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.results-header h2 { font-size: 1.4rem; color: var(--text); }
.stats-inline { font-size: 0.85rem; color: var(--text-muted); }
.stats-inline .num { color: var(--primary); font-weight: 700; }

.result-controls { display: flex; align-items: center; gap: 1rem; }
.toggle-wrap { display: flex; align-items: center; gap: 0.6rem; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px; transition: 0.2s;
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: #fff; border-radius: 50%; transition: 0.2s;
}
.switch input:checked + .slider { background-color: var(--primary); border-color: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.toggle-label { font-size: 0.85rem; color: var(--text-muted); user-select: none; }

.loading { text-align: center; padding: 3rem 0; color: var(--text-muted); }
.spinner {
    width: 40px; height: 40px; margin: 0 auto 1rem;
    border: 3px solid var(--surface-2);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-wrap {
    width: 220px; max-width: 80%;
    height: 6px;
    margin: 1rem auto 0.5rem;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.btn-cancel {
    margin-top: 1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-cancel:hover { border-color: var(--danger); color: var(--danger); }
.error-summary {
    display: none;
}
.filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: -0.5rem 0 1.5rem;
    flex-wrap: wrap;
}
.filter-bar[hidden] { display: none; }
.scan-scope {
    margin: 0.85rem 0 0;
    text-align: left;
}
.scan-scope.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.sensitive-optin {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    text-align: left;
    line-height: 1.35;
}
.sensitive-optin input {
    margin-top: 0.15rem;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding-top: 0.45rem;
    flex-shrink: 0;
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.filter-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    min-width: 1.4rem;
    text-align: center;
}
.filter-chip.active .filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.results-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.category-group { display: flex; flex-direction: column; gap: 0.85rem; }
.category-heading {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.category-heading-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(146, 124, 81, 0.12);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}
.cat-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    background: rgba(146, 124, 81, 0.1);
    border: 1px solid rgba(146, 124, 81, 0.22);
    border-radius: 999px;
    padding: 0.08rem 0.4rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    box-shadow: var(--shadow);
}
.result-card:hover { transform: translateY(-2px); border-color: var(--border-subtle); box-shadow: 0 8px 30px rgba(51, 65, 85, 0.1); }
.result-card.status-found {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(166, 143, 88, 0.06), var(--surface));
}
.result-card.status-partial {
    border-color: var(--border);
}
.result-card.status-error { border-color: rgba(220, 38, 38, 0.3); }

.result-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 0.6rem;
}
.result-header-left { display: flex; flex-direction: column; gap: 0.2rem; }
.result-name { font-weight: 700; font-size: 1.05rem; word-break: break-word; color: var(--text); }
.result-meta-line {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.result-meta-line .flag { font-size: 1rem; }
.result-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.error-meta { color: var(--danger); }

.status-badge {
    font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.6rem;
    border-radius: 999px; white-space: nowrap;
}
.status-badge.found { background: rgba(22, 163, 74, 0.1); color: var(--success); border: 1px solid rgba(22, 163, 74, 0.2); }
.status-badge.notfound { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.status-badge.error { background: rgba(220, 38, 38, 0.08); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }

.result-matches { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.75rem; }

.match-block { display: flex; flex-direction: column; gap: 0.35rem; }

.match-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.45rem 0.65rem; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    text-decoration: none; color: var(--text);
    transition: background 0.15s;
}
.match-row.exact {
    background: rgba(166, 143, 88, 0.1);
    border: 1px solid rgba(166, 143, 88, 0.25);
}
.match-row.similar {
    background: var(--surface-3);
    border: 1px solid var(--border);
}
.match-row:hover { background: rgba(166, 143, 88, 0.06); }
.match-row img {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: cover; background: var(--surface-2);
}
.match-row .match-name { flex: 1; font-weight: 600; }
.match-open {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    opacity: 0.55;
    flex-shrink: 0;
}
.match-row:hover .match-open { opacity: 1; color: var(--primary); }
.match-avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    flex-shrink: 0;
}
.match-row .match-badge {
    font-size: 0.6rem; font-weight: 700; padding: 0.2rem 0.45rem;
    border-radius: 999px; text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-grid; place-items: center;
    line-height: 1;
    min-height: 18px;
}
.match-row.exact .match-badge { background: rgba(22, 163, 74, 0.12); color: var(--success); border: 1px solid rgba(22, 163, 74, 0.2); }
.match-row.similar .match-badge { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.enriched-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 0.2rem;
}
.enriched-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.enriched-row.identity { min-height: 22px; }
.enriched-row.stats,
.enriched-row.dates {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.enrich-role,
.enrich-title {
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.enrich-role {
    background: rgba(146, 124, 81, 0.12);
    border: 1px solid rgba(146, 124, 81, 0.25);
    color: var(--primary);
}
.enrich-role.staff {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}
.enrich-role.moderator {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--success);
}
.enrich-title {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.enrich-stat { display: flex; align-items: center; gap: 0.25rem; }
.enrich-stat.date { color: var(--text-muted); }
.enrich-icon { font-size: 0.8rem; }
.enrich-val {
    color: var(--text);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.enrich-sep { color: var(--border-subtle); margin: 0 0.15rem; }

.match-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    padding: 0.3rem 0.6rem; background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-muted);
    cursor: pointer; transition: all 0.15s;
}
.match-pill:hover { background: var(--surface-3); color: var(--text); }

.result-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }

.icon-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.65rem; background: var(--surface-3);
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-muted); font-size: 0.75rem;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.disabled {
    opacity: 0.35; cursor: not-allowed; pointer-events: none;
}

.empty-state { text-align: center; padding: 4rem 0; color: var(--text-muted); }
.empty-icon { margin-bottom: 1rem; opacity: 0.4; }

.legal-section {
    margin-top: 5rem; padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.legal-section h2 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--primary); }
.legal-section p { color: var(--text-muted); font-size: 0.92rem; max-width: 800px; }

.site-footer {
    text-align: center; padding: 2rem 4%;
    color: var(--text-muted); font-size: 0.82rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brief-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    text-align: center;
}
.brief-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text);
}
.brief-page .hero-sub {
    margin-bottom: 2rem;
}
.brief-card {
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.85rem 1.5rem;
    box-shadow: var(--shadow);
}
.brief-card h2 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 1.35rem 0 0.45rem;
}
.brief-card h2:first-child { margin-top: 0; }
.brief-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 0;
}
.brief-mail {
    display: inline-block;
    margin-top: 1.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}
.brief-mail:hover { color: var(--primary-dark); }
.brief-privacy {
    margin-top: 1rem !important;
    font-size: 0.85rem !important;
}
.brief-privacy a {
    color: var(--text-muted);
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.78rem;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}
.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: all 0.15s;
}
.lang-link:hover { color: var(--text); }
.lang-link.active {
    color: var(--primary);
    font-weight: 700;
}
.lang-sep { color: var(--border); }

.hidden { display: none !important; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
}
.lightbox-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid var(--border);
    z-index: 2;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}
.lightbox-close:hover { background: var(--surface-2); }

.docs-main { padding: 2rem 4% 6rem; max-width: 1200px; margin: 0 auto; }
.docs-header { text-align: center; margin-bottom: 1.5rem; }
.docs-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.docs-sub { color: var(--text-muted); margin-top: 0.5rem; }

@media (max-width: 640px) {
    .input-row { flex-direction: column; }
    .btn-primary { justify-content: center; padding: 0.9rem; }
    .site-nav { display: none; }
    .summary-top { flex-direction: column; }
    .summary-avatars { max-width: 100%; }
    .results-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; gap: 0.45rem; }
    .filter-label { padding-top: 0; }
}
