.neighbour-disclosure { display: flex; align-items: flex-start; gap: 17px; padding: 22px; border-color: #dddff0; background: #f7f7fc; }
.neighbour-disclosure h2 { font-size: 17px; margin-bottom: 7px; }
.neighbour-disclosure p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.neighbour-ai-seal { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px dashed #7e84b4; border-radius: 14px; color: #5b65a8; font-size: 13px; font-weight: 700; background: #fff; }
.neighbours-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 24px 0 10px; }
.neighbour-runtime { color: var(--muted); font-size: 12px; margin: 12px 0; }
.neighbours-toolbar .neighbour-runtime { margin-right: auto; }
.neighbour-runtime[data-state="running"] { color: var(--green-ink); }
.neighbour-runtime[data-state="stale"], .neighbour-runtime[data-state="offline"] { color: #94653a; }
.neighbour-feedback { font-size: 13px; color: var(--muted); min-height: 1.5em; margin: 12px 0; }
.neighbour-feedback.error { color: #a23d3d; }
.neighbours-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.neighbour-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.neighbour-card-heading { display: flex; align-items: center; gap: 14px; }
.neighbour-card h2 { font-size: 18px; margin-bottom: 3px; }
.neighbour-card a:hover h2 { color: var(--blue); }
.neighbour-artificial-label { color: #676e9f; font-size: 11px; font-weight: 600; }
.neighbour-avatar { --neighbour-color: #5b65a8; display: inline-grid; position: relative; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; color: var(--neighbour-color); isolation: isolate; }
.neighbour-avatar::before { content: ''; position: absolute; inset: 4px; background: #f3f3fa; border: 1.5px solid var(--neighbour-color); border-radius: 19px 24px 18px 25px; transform: rotate(-8deg); z-index: -1; }
.neighbour-avatar::after { content: ''; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border: 1.5px solid var(--neighbour-color); background: white; border-radius: 50%; }
.neighbour-avatar-initials { font-size: 18px; font-weight: 650; letter-spacing: -.06em; }
.neighbour-avatar-ai { position: absolute; bottom: 0; right: -1px; border: 1px solid var(--neighbour-color); border-radius: 6px; background: white; padding: 0 4px; font-size: 8px; font-weight: 750; line-height: 16px; letter-spacing: .04em; }
.neighbour-card .neighbour-bio { font-size: 13px; line-height: 1.65; color: var(--muted); }
.neighbour-topics { display: flex; gap: 6px; flex-wrap: wrap; }
.neighbour-topics span { padding: 4px 8px; border-radius: 20px; background: #f1f4f8; font-size: 10px; color: #5a6b80; }
.neighbour-current { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.neighbour-current span { color: var(--muted); }
.neighbour-card > .text-link { margin-top: auto; min-height: 44px; align-self: flex-start; }
.neighbour-empty { grid-column: 1 / -1; padding: 35px; }
.neighbour-profile { padding: 30px; margin: 16px 0; }
.neighbour-profile .neighbour-card-heading { margin-bottom: 20px; }
.neighbour-profile .neighbour-avatar { width: 85px; height: 85px; flex-basis: 85px; }
.neighbour-profile .neighbour-avatar-initials { font-size: 26px; }
.neighbour-profile h1 { font-size: 30px; }
.neighbour-profile .neighbour-bio { color: var(--muted); line-height: 1.75; margin: 14px 0; }
.neighbour-profile .neighbour-current { margin-top: 18px; }
.neighbour-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.neighbour-actions button { min-height: 44px; }
.neighbour-forget-confirm { margin-bottom: 22px; padding: 20px; background: #fff9f5; }
.neighbour-forget-confirm p { font-size: 13px; margin-bottom: 12px; }
.neighbour-forget-confirm button { min-height: 44px; }
.neighbour-conversation { padding: 28px; margin: 28px 0; }
.neighbour-conversation .section-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.neighbour-conversation h2 { font-size: 21px; }
.neighbour-engine { font-size: 12px; color: var(--muted); padding: 12px 0; line-height: 1.7; }
.neighbour-ai-consent { border: 1px solid #dddff0; border-radius: 12px; padding: 14px; margin: 12px 0; background: #f7f7fc; }
.neighbour-ai-consent label { display: flex; gap: 9px; font-size: 13px; align-items: flex-start; min-height: 44px; }
.neighbour-ai-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.neighbour-ai-consent p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.neighbour-chat-gate { font-size: 13px; padding: 12px 0; color: var(--muted); }
.neighbour-messages { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 16px 0 24px; gap: 16px; max-height: 640px; overflow-y: auto; }
.neighbour-message { max-width: 92%; padding: 15px 18px; background: #f4f5fa; border-radius: 16px 16px 16px 4px; }
.neighbour-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 18px; padding: 12px 16px; border: 1px solid #dddff0; border-radius: 12px; background: #f7f7fc; font-size: 12px; color: #596395; }
.neighbour-pending[hidden] { display: none; }
.neighbour-pending button { min-height: 44px; margin-left: auto; }
.neighbour-message.pending { opacity: .8; }
.neighbour-message.user { align-self: flex-end; background: #eaf2ff; border-radius: 16px 16px 4px 16px; }
.neighbour-message strong { display: block; font-size: 11px; color: #576692; margin-bottom: 5px; }
.neighbour-message p { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.neighbour-message small, .neighbour-message time { display: block; font-size: 10px; color: var(--muted); margin-top: 8px; }
.neighbour-message-sources { font-size: 10px; color: var(--muted); margin: 6px 0 0; padding-left: 15px; }
.neighbour-compose label { font-size: 12px; font-weight: 600; }
.neighbour-compose textarea { width: 100%; min-height: 100px; margin: 8px 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; }
.neighbour-compose > div { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.neighbour-compose > div > span { max-width: 320px; }
.neighbour-image-upload { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; padding: 14px; min-width: 0; }
.neighbour-image-upload legend { font-size: 12px; font-weight: 600; padding: 0 6px; }
.neighbour-image-upload input[type=file] { display: block; width: 100%; max-width: 100%; margin: 8px 0; min-height: 44px; font-size: 12px; }
.neighbour-image-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; overflow-wrap: anywhere; }
.neighbour-image-selected button { min-height: 44px; }
.neighbour-image-consent { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 8px 0; line-height: 1.6; }
.neighbour-image-consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.neighbour-image-upload p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.neighbour-simulation { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.neighbour-simulation h2 { font-size: 16px; margin-bottom: 12px; }
.neighbour-needs { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; }
.neighbour-needs label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.neighbour-needs progress { width: 100%; height: 8px; accent-color: #676e9f; }
.neighbour-needs span, .neighbour-plan span { font-size: 11px; color: var(--muted); }
.neighbour-plan { border-left: 3px solid #c9ccdf; padding-left: 12px; margin: 14px 0; }
.neighbour-plan strong { font-size: 12px; }
.neighbour-simulation p, .neighbour-memory li { font-size: 12px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; }
.neighbour-memory summary, .neighbour-tool-trace summary { display: list-item; min-height: 44px; padding-top: 12px; cursor: pointer; font-size: 12px; color: #596395; }
.neighbour-memory ul, .neighbour-tool-trace ul { padding-left: 18px; }
.neighbour-tool-trace li { font-size: 11px; overflow-wrap: anywhere; }
.neighbour-entry { margin: 22px 0; padding: 18px 22px; display: flex; gap: 14px; align-items: center; border-color: #dddff0; }
.neighbour-entry strong { display: block; font-size: 14px; }
.neighbour-entry p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.map-neighbours-control { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #f8f8fc; }
.map-neighbours-control label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; color: #596395; }
.map-neighbours-control input { width: 17px; height: 17px; accent-color: #676e9f; }
.map-neighbours-control > span { color: var(--muted); font-size: 11px; }
.map-neighbours-control > a { margin-left: auto; min-height: 44px; font-size: 12px; display: inline-flex; align-items: center; color: var(--navy); }
.artificial-map-marker { position: absolute; top: 0; left: 0; z-index: 7; display: grid; justify-items: center; gap: 2px; pointer-events: auto; will-change: transform; }
.artificial-map-marker .neighbour-avatar { width: 43px; height: 43px; flex-basis: 43px; }
.artificial-map-marker .neighbour-avatar::before { border-style: dashed; border-radius: 14px; }
.artificial-map-marker .neighbour-avatar-initials { font-size: 13px; }
.artificial-map-marker .neighbour-avatar-ai { font-size: 7px; padding: 0 3px; line-height: 12px; }
.artificial-map-marker > span:last-child { padding: 3px 7px; background: #fff; border: 1px dashed #c9ccdf; border-radius: 7px; font-size: 9px; font-weight: 600; color: #596395; max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media(max-width:767px) { .neighbours-grid { grid-template-columns: 1fr; } .neighbour-disclosure { padding: 18px; gap: 12px; } .neighbour-profile, .neighbour-conversation { padding: 20px; } .neighbour-profile h1 { font-size: 25px; } .neighbour-profile .neighbour-avatar { width: 70px; height: 70px; flex-basis: 70px; } .neighbour-compose > div { align-items: flex-start; flex-direction: column; gap: 12px; } .neighbour-compose .button { align-self: flex-end; } .map-neighbours-control { gap: 4px 12px; } .map-neighbours-control > a { margin-left: 0; } }
