/* NearX signed-in home preview (design sample). Loaded only by preview.html */
.app-ribbon {
  background: var(--ink); color: #d6dbe3; font-size: 0.9rem; padding: 10px 24px;
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center; text-align: center;
}
.app-ribbon a { color: #fff; font-weight: 700; }
.app { background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; }
.app a { text-decoration: none; }

.ap-top { background: #fff; border-bottom: 1px solid var(--line); }
.ap-top .in { max-width: none; margin: 0; padding: 12px clamp(20px, 4vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ap-nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px; }
.ap-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.ap-nav a:hover { background: var(--bg); color: var(--ink); }
.ap-nav a[aria-current='page'] { background: var(--brand-t); color: var(--brand-d); font-weight: 700; }
.ap-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--coral); color: #fff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ap-tools { display: flex; align-items: center; gap: 10px; }
.ap-boost { height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: var(--amber); color: #2b1b00; font: 700 0.9rem var(--font-body); display: inline-flex; align-items: center; gap: 8px; }
.ap-round { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.ap-round .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.ap-avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e2e8f0; color: #334155; font: 700 1rem var(--font-body); }

.ap-main { flex: 1 1 auto; width: 100%; max-width: none; margin: 0; padding: 28px clamp(20px, 4vw, 72px) 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ap-left { flex: 1 1 260px; min-width: 0; max-width: 290px; display: flex; flex-direction: column; gap: 16px; }
.ap-center { flex: 999 1 520px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.ap-right { flex: 1 1 320px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }

.ap-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ap-card h2 { margin: 0; font-size: 1.1rem; }
.ap-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-card .row a { font-size: 0.9rem; font-weight: 700; color: var(--brand-d); }
.ap-card.boost { background: var(--amber-t); border-color: #f3dca6; }
.ap-me { display: flex; align-items: center; gap: 14px; }
.ap-me .av { width: 64px; height: 64px; border-radius: 50%; background: #e2e8f0; color: #334155; display: flex; align-items: center; justify-content: center; font: 700 1.6rem var(--font-display); }
.ap-me .nm { font: 700 1.25rem var(--font-display); }
.ap-verified { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--brand-d); }
.ap-verified svg { width: 16px; height: 16px; }
.ap-btn { height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 0.9rem var(--font-body); border: 1px solid #cbd5e1; background: #fff; color: var(--ink); }
.ap-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; height: 44px; font-size: 0.95rem; }
.ap-btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-btn.outline { border-color: var(--brand); color: var(--brand-d); }
.ap-plan { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--soft); }
.ap-likes-left { font: 700 1.25rem var(--font-display); }
.ap-bar { height: 8px; border-radius: 4px; background: #e6e9ee; overflow: hidden; }
.ap-bar i { display: block; width: 70%; height: 8px; background: var(--brand); }
.ap-note { font-size: 0.88rem; line-height: 1.45; color: var(--muted); margin: 0; }
.ap-list { padding: 8px 20px; }
.ap-list a { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 0.95rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid #eef0f3; }
.ap-list a:last-child { border-bottom: 0; }
.ap-list .i { width: 16px; height: 16px; color: var(--soft); stroke-width: 2; }

.ap-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-filters .sp { flex: 1 1 0; }
.ap-chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #cbd5e1; background: #fff; font: 700 0.88rem var(--font-body); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ap-chip.on { border-color: var(--brand); color: var(--brand-d); }

.ap-profile { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.ap-photo { position: relative; height: 440px; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.ap-photo .who { width: 170px; height: 170px; fill: currentColor; stroke: none; }
.ap-segs { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 6px; }
.ap-segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }
.ap-segs i:first-child { background: #fff; }
.ap-pill { position: absolute; padding: 6px 12px; border-radius: 16px; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.ap-pill.online { top: 32px; right: 16px; background: #fff; color: var(--ink); }
.ap-pill.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ap-pill.dist { left: 16px; bottom: 16px; background: rgba(17, 21, 28, 0.8); color: #fff; }
.ap-pill.dist .i { width: 14px; height: 14px; stroke-width: 2.2; }
.ap-info { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.ap-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ap-title .nm { display: inline-flex; align-items: center; gap: 10px; font: 700 1.9rem var(--font-display); letter-spacing: -0.01em; }
.ap-title .nm svg { width: 22px; height: 22px; }
.ap-match { padding: 6px 12px; border-radius: 16px; background: var(--green-t); color: var(--green-d); font-size: 0.8rem; font-weight: 700; }
.ap-looking { font-size: 0.9rem; color: var(--soft); margin: 0; }
.ap-looking strong { color: var(--ink); }
.ap-about { font-size: 1.12rem; line-height: 1.45; margin: 0; }
.ap-interests { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-interests li { margin: 0; padding: 7px 14px; border-radius: 16px; background: #f0f2f5; font-size: 0.88rem; font-weight: 500; }
.ap-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px; padding-top: 4px; }
.ap-act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--soft); }
.ap-act b { color: var(--ink); }
.ap-circle { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; background: #fff; color: var(--ink); }
.ap-circle.s48 { width: 48px; height: 48px; color: var(--muted); }
.ap-circle.s64 { width: 64px; height: 64px; }
.ap-circle.like { width: 76px; height: 76px; background: var(--coral); border: 0; color: #fff; }
.ap-circle.spark { background: var(--amber); border: 0; color: #2b1b00; }
.ap-circle .i { width: 24px; height: 24px; }
.ap-circle.like .i { width: 34px; height: 34px; }
.ap-circle.s64 .i { width: 28px; height: 28px; }
.ap-tip { text-align: center; font-size: 0.82rem; color: var(--soft); margin: 0; }

.ap-locks { display: flex; align-items: center; }
.ap-locks span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; margin-left: -14px; }
.ap-locks span:first-child { margin-left: 0; }
.ap-locks .i { width: 18px; height: 18px; stroke-width: 2; }
.ap-new { padding: 4px 10px; border-radius: 12px; background: var(--coral-t); color: #a3192f; font-size: 0.8rem; font-weight: 700; }
.ap-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--soft); }
.ap-matches { display: flex; gap: 14px; }
.ap-matches a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex: 0 0 auto; position: relative; }
.av.l { width: 56px; height: 56px; font-size: 1.25rem; }
.av.m { width: 44px; height: 44px; font-size: 1.05rem; }
.t1 { background: #e2e8f0; color: #334155; }
.t2 { background: #f7e1dc; color: #9a3b2a; }
.t3 { background: #ddf1e6; color: #1f6b44; }
.t4 { background: #efe5f8; color: #6a3c94; }
.t5 { background: #fbefd2; color: #8a5a00; }
.ap-sep { height: 1px; background: #eef0f3; }
.ap-stack { display: flex; flex-direction: column; gap: 14px; }
.ap-conv { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.ap-conv .tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-conv .tx b { font-size: 0.95rem; }
.ap-conv .tx span { font-size: 0.88rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-conv .side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.75rem; color: var(--soft); }
.ap-unread { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.ap-online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.ap-hi { flex: 0 0 auto; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid #cbd5e1; background: #fff; font: 700 0.8rem var(--font-body); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.ap-hi .i { width: 13px; height: 13px; color: var(--soft); stroke-width: 2.2; }

.ap-foot { background: #fff; border-top: 1px solid var(--line); }
.ap-foot .in { max-width: none; margin: 0; padding: 20px clamp(20px, 4vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; color: var(--soft); }
.ap-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ap-foot a { color: var(--soft); }
.ap-foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .ap-top .in, .ap-main, .ap-foot .in { padding-left: 16px; padding-right: 16px; }
  .ap-photo { height: 340px; }
  .ap-left, .ap-right { max-width: none; flex-basis: 100%; }
  .ap-center { order: -1; flex-basis: 100%; }
}
