/* X Match card for the 480×480 Player Card. Fluid; switches to a compact layout below ~420px. */
.k {
  --bg: #170e1c; --bg2: #22162a; --line: #3a2a45; --ink: #fbf3f6; --mute: #b5a2bf;
  --pink: #ff4f8b; --pink2: #ff8fb3; --lime: #d8ef9a; --lime-ink: #1d2a06;
  --paper: #fff7f9; --paper-ink: #25162c; --paper-mute: #7f6a89; --paper-2: #f5e8ef;
  container: k / size;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  width: 100%; height: 100%;
  background:
    radial-gradient(110% 70% at 100% 0%, #4a1535 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, #2d1245 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 13px/1.35 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased; outline: none;
}
.k :where(*, *::before, *::after) { box-sizing: border-box; margin: 0; }
.k :where(button) { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.k button:focus-visible, .k input:focus-visible { outline: 2px solid var(--pink2); outline-offset: 2px; }
.k main { flex: 1; min-height: 0; }

/* Shared parts */
.k-eyebrow { font-size: 10.5px; letter-spacing: .14em; font-weight: 750; color: var(--pink2); }
.k-eyebrow.dark { color: #c2336c; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; font-weight: 750; font-size: 14px; white-space: nowrap; transition: transform .15s, filter .15s; }
.k-btn:hover { filter: brightness(1.06); } .k-btn:active { transform: scale(.97); }
.k-btn-x { width: 100%; background: var(--ink); color: var(--bg); }
.k-btn-x b { font-size: 17px; }
.k-btn-pink { background: var(--pink); color: #fff; box-shadow: 0 10px 26px -10px var(--pink); }
.k-btn-ghost { background: #ffffff14; color: var(--ink); }
.k-av {
  --s: 40px; --h: 300;
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .32);
  background: linear-gradient(140deg, hsl(var(--h) 88% 70%), hsl(calc(var(--h) + 40) 72% 46%));
  color: #fff; font-weight: 800; font-size: calc(var(--s) * .36); letter-spacing: -.02em; text-shadow: 0 1px 2px #0003;
}
.k-av.sm { --s: 28px; } .k-av.md { --s: 36px; } .k-av.lg { --s: 64px; } .k-av.xl { --s: 84px; }
.k-av.on::after { content: ''; position: absolute; inset-inline-end: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2.5px solid var(--paper); }
.k-av.sm.on::after, .k-av.md.on::after { width: 10px; height: 10px; border-color: var(--bg); }
.k-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.k-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--paper-2); color: var(--paper-ink); white-space: nowrap; }
.k-chip.c { background: var(--pink); color: #fff; }
.k-toast { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 650; box-shadow: 0 10px 30px -10px #000c; animation: k-pop .25s ease-out; z-index: 20; text-align: center; }

/* Top bar */
.k-top { flex: none; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.k-brand { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.k-brand b { color: var(--pink); font-size: 16px; }
.k-tabs { margin-inline-start: auto; display: flex; padding: 3px; border-radius: 999px; background: #ffffff10; }
.k-tabs button { display: flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--mute); }
.k-tabs button.on { background: var(--ink); color: var(--bg); }
.k-tabs i { font-style: normal; display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 800; }
.k-me { border-radius: 10px; }
.k-me.on .k-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink); }
.k-live { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
.k-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8488; animation: k-pulse 1.8s infinite; }

/* 01 Login */
.k-login { display: grid; grid-template-columns: 1fr 39cqw; grid-template-rows: 1fr auto; gap: 12px 6px; padding: 18px 16px 14px; }
.k-login-copy { align-self: center; }
.k-login h1 { text-wrap: balance; font-size: clamp(21px, 6cqw, 32px); line-height: 1.06; letter-spacing: -.035em; font-weight: 850; margin: 10px 0 18px; }
.k-login h1 em { font-style: normal; color: var(--pink2); }
.k-steps { list-style: none; padding: 0; display: grid; gap: 9px; }
.k-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #eadcef; }
.k-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #ffffff14; color: var(--lime); font-size: 11.5px; }
.k-teaser { position: relative; align-self: center; height: 250px; }
.k-tc { position: absolute; width: 112px; height: 150px; padding: 11px; border-radius: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 40px -16px #000c; }
.k-tc .k-av { filter: blur(4px); }
.k-tc .l { height: 7px; width: 82%; border-radius: 4px; background: #ead9e3; }
.k-tc .l.s { width: 60%; } .k-tc .l.xs { width: 40%; background: #ffd1e1; }
.k-tc em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 850; padding: 3px 7px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
.k-tc.t0 { left: 0; top: 34px; transform: rotate(-10deg); opacity: .8; }
.k-tc.t1 { left: 58px; top: 52px; transform: rotate(9deg); opacity: .9; }
.k-tc.t2 { left: 28px; top: 8px; transform: rotate(-1deg); z-index: 2; }
.k-teaser-cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 11.5px; color: var(--mute); }
.k-login-cta { grid-column: 1 / -1; }
.k-login-cta .k-btn span { margin-inline-start: auto; }
.k-fine { margin-top: 7px; text-align: center; font-size: 11px; color: var(--mute); }

/* 02 Scan */
.k-analiz { display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 18px; padding: 18px; }
.k-scan-ring { --p: 0; position: relative; width: 156px; height: 156px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--pink) calc(var(--p) * 1%), #ffffff14 0); }
.k-scan-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg2); }
.k-scan-n, .k-scan-ring small { position: relative; }
.k-scan-n { font-size: 40px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.k-scan-ring small { font-size: 11.5px; color: var(--mute); margin-top: 4px; }
.k-scan-steps { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 4px; }
.k-scan-steps li { display: flex; gap: 10px; padding: 5px 0; opacity: .35; transition: opacity .3s; }
.k-scan-steps li.now, .k-scan-steps li.done { opacity: 1; }
.k-scan-steps i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: var(--lime-ink); }
.k-scan-steps li.now i { border-color: #ffffff22; border-top-color: var(--pink); animation: k-spin .7s linear infinite; }
.k-scan-steps li.done i { background: var(--lime); border-color: var(--lime); }
.k-scan-steps li.done i::after { content: '✓'; }
.k-scan-steps b { display: block; font-size: 13px; }
.k-scan-steps span { display: block; font-size: 12px; color: var(--mute); opacity: 0; transform: translateY(3px); transition: opacity .35s, transform .35s; }
.k-scan-steps li.done span { opacity: 1; transform: none; }

/* 03 X persona */
.k-vibe { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.k-vibe-card { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 22px; background: var(--paper); color: var(--paper-ink); }
.k-live-profile { overflow-y: auto; }
.k-live-profile > * { flex-shrink: 0; }
.k-vibe-head { display: flex; align-items: center; gap: 12px; }
.k-vibe-head h2 { font-size: 19px; line-height: 1.12; letter-spacing: -.025em; font-weight: 850; margin: 3px 0 4px; }
.k-vibe-head div > span { font-size: 12px; color: var(--paper-mute); }
.k-top3 { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 14px; background: #f1f7df; color: #34401f; font-size: 12px; font-weight: 700; }
.k-top3 div { display: flex; gap: 10px; }
.k-top3 div span { display: flex; align-items: center; }
.k-top3 em { font-style: normal; font-size: 11.5px; font-weight: 850; margin-inline-start: 4px; }
.k-vibe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-box { padding: 10px 11px; border-radius: 14px; background: var(--paper-2); }
.k-box h3 { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-mute); font-weight: 750; margin: 0 0 7px; }
.k-box h3 ~ h3 { margin-top: 11px; }
.k-box .k-chip:not(.c) { background: #fff; }
.k-bars { display: grid; grid-template-columns: auto minmax(36px, 1fr) auto; align-items: center; gap: 9px 8px; font-size: 12.5px; }
.k-bar { display: contents; }
.k-bar > span:first-child { white-space: nowrap; }
.k-bar b { text-align: end; font-size: 12px; }
.k-bar-t { height: 8px; border-radius: 4px; background: #e8d4df; overflow: hidden; }
.k-bar-t span, .k-split span { display: block; height: 100%; width: var(--w, 0); }
.k-bar-t span { border-radius: 4px; background: linear-gradient(90deg, var(--pink), #ff7aa6); }
.k-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; }
.k-split .s0 { background: var(--pink); } .k-split .s1 { background: #b59bf5; }
.k-legend { font-size: 12px; margin-top: 5px; }
.k-vibe-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* 04 Discover */
.k-disc { display: grid; grid-template-columns: 1fr 148px; gap: 10px; padding: 10px 10px 10px 12px; }
.k-stage { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.k-deck { position: relative; flex: 1; min-height: 0; }
.k-deck::before, .k-deck::after { content: ''; position: absolute; left: 10px; right: 10px; top: 10px; bottom: 0; border-radius: 22px; background: var(--paper); opacity: .14; }
.k-deck::after { left: 20px; right: 20px; top: 20px; bottom: -6px; opacity: .07; }
.k-cand {
  --ol: 0; --or: 0;
  position: absolute; inset: 0 0 8px; z-index: 1; display: flex; flex-direction: column; gap: 9px; padding: 13px;
  border-radius: 22px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 22px 44px -20px #000d;
  cursor: grab; touch-action: pan-y; user-select: none;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .26s; animation: k-in .3s ease-out;
}
.k-cand.drag { transition: none; cursor: grabbing; }
.k-stamp { position: absolute; top: 14px; z-index: 2; padding: 3px 9px; border: 3px solid; border-radius: 10px; font-weight: 900; font-size: 15px; letter-spacing: .08em; pointer-events: none; background: var(--paper); }
.k-stamp.l { right: 14px; color: #8a7a92; transform: rotate(10deg); opacity: var(--ol); }
.k-stamp.r { left: 14px; color: var(--pink); transform: rotate(-10deg); opacity: var(--or); }
.k-cand-head { display: flex; align-items: center; gap: 11px; }
.k-who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.k-who h2 { font-size: 18px; line-height: 1.15; font-weight: 850; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-handle { font-size: 12px; color: var(--paper-mute); }
.k-langs { align-self: flex-start; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: var(--paper-2); font-size: 10.5px; font-weight: 750; letter-spacing: .06em; color: var(--paper-mute); }
.k-ring { --p: 0; position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--pink) calc(var(--p) * 1%), #f0dde7 0); }
.k-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.k-ring b, .k-ring small { position: relative; line-height: 1; }
.k-ring b { font-size: 14px; font-weight: 850; letter-spacing: -.03em; }
.k-ring small { font-size: 9px; color: var(--paper-mute); margin-top: 2px; }
.k-arch { font-size: 12.5px; font-weight: 750; color: #b02a62; }
.k-why { padding: 8px 11px; border-radius: 14px; background: #f1f7df; color: #34401f; font-size: 12.5px; line-height: 1.35; }
.k-why b { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6c7f3b; margin-bottom: 2px; }
.k-why.roast { background: #fff0e4; color: #5a2a12; }
.k-why.roast b { color: #d2551f; }
.k-quote { position: relative; padding-inline-start: 11px; border-inline-start: 3px solid #f3c3d6; font-size: 12.5px; line-height: 1.35; font-style: italic; color: #4c3a55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-quote b { font-style: normal; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-mute); margin-inline-end: 6px; }
.k-facts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--paper-mute); }
.k-acts { direction: ltr; flex: none; height: 58px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.k-act { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: #6e5a78; font-size: 19px; font-weight: 800; box-shadow: 0 10px 24px -10px #000d; transition: transform .15s; }
.k-act:hover { transform: scale(1.07); } .k-act:active { transform: scale(.93); }
.k-act.wave { width: 42px; height: 42px; font-size: 18px; background: #ffffff16; box-shadow: none; }
.k-act.like { width: 58px; height: 58px; font-size: 24px; background: var(--pink); color: #fff; box-shadow: 0 12px 28px -10px var(--pink); }
.k-empty { position: absolute; inset: 0 0 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 22px; }
.k-empty > span { font-size: 30px; color: var(--pink); }
.k-empty b { font-size: 16px; } .k-empty p { color: var(--mute); margin-bottom: 6px; }
.k-profile-summary { font-size: 12px; line-height: 1.45; color: var(--paper-ink); }
.k-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.k-side h3 { display: flex; justify-content: space-between; padding: 4px 3px 2px; font-size: 10px; letter-spacing: .12em; color: var(--mute); font-weight: 750; }
.k-row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 13px; background: #ffffff09; text-align: start; transition: background .15s; }
.k-row:hover { background: #ffffff17; }
.k-row div { flex: 1; min-width: 0; }
.k-row b, .k-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-row b { font-size: 12.5px; } .k-row small { font-size: 11px; color: var(--mute); }
.k-row em { font-style: normal; font-size: 12px; font-weight: 850; color: var(--lime); }
.k-more { margin-top: auto; padding: 8px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; font-size: 11.5px; color: var(--mute); }

/* 05 Match */
.k-matchscr { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 18px; text-align: center; background: radial-gradient(55% 45% at 50% 42%, #ff4f8b55, transparent 70%); }
.k-matchscr > :not(.k-conf) { position: relative; z-index: 1; }
.k-matchscr h2 { font-size: 36px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.k-pair { display: flex; align-items: center; margin: 8px 0 4px; }
.k-pair .k-av { border: 4px solid var(--paper); box-shadow: 0 16px 36px -14px #000d; }
.k-pair .k-av:first-child { transform: rotate(-8deg); } .k-pair .k-av:last-child { transform: rotate(8deg); }
.k-heart { position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -12px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 19px; box-shadow: 0 0 0 4px var(--bg); animation: k-beat 1.2s ease-in-out infinite; }
.k-quip { margin-top: -2px; font-size: 14px; font-weight: 650; font-style: italic; color: var(--pink2); }
.k-match-sub { font-size: 13.5px; color: var(--mute); }
.k-match-sub b { color: var(--ink); }
.k-ice { max-width: 380px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff0d; font-size: 13px; text-align: start; }
.k-ice span { display: block; margin-bottom: 3px; font-size: 10px; letter-spacing: .12em; font-weight: 750; color: var(--lime); }
.k-match-cta { display: flex; gap: 8px; margin-top: 4px; }
.k-conf { position: absolute; top: -14px; width: 7px; height: 12px; border-radius: 2px; background: var(--pink); animation: k-fall 2.8s linear infinite; opacity: .9; }
.k-conf:nth-of-type(3n) { background: var(--lime); } .k-conf:nth-of-type(3n + 1) { background: #b59bf5; }
.k-conf:nth-of-type(1) { left: 6%; animation-delay: -.3s; } .k-conf:nth-of-type(2) { left: 14%; animation-delay: -1.6s; }
.k-conf:nth-of-type(3) { left: 23%; animation-delay: -.9s; } .k-conf:nth-of-type(4) { left: 31%; animation-delay: -2.2s; }
.k-conf:nth-of-type(5) { left: 40%; animation-delay: -.1s; } .k-conf:nth-of-type(6) { left: 49%; animation-delay: -1.3s; }
.k-conf:nth-of-type(7) { left: 58%; animation-delay: -2.5s; } .k-conf:nth-of-type(8) { left: 66%; animation-delay: -.6s; }
.k-conf:nth-of-type(9) { left: 74%; animation-delay: -1.9s; } .k-conf:nth-of-type(10) { left: 82%; animation-delay: -1.1s; }
.k-conf:nth-of-type(11) { left: 90%; animation-delay: -2s; } .k-conf:nth-of-type(12) { left: 96%; animation-delay: -.4s; }

/* 06 Matches */
.k-list { display: flex; flex-direction: column; gap: 7px; padding: 12px; overflow-y: auto; }
.k-list > .k-eyebrow { margin: 2px 2px 3px; }
.k-list > .k-empty { position: static; flex: 1; }
.k-mrow { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #ffffff09; text-align: start; transition: background .15s; }
.k-mrow:hover { background: #ffffff15; }
.k-mrow > div { flex: 1; min-width: 0; }
.k-mrow b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-mrow b small { font-weight: 500; font-size: 11.5px; color: var(--mute); }
.k-mrow p { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-mrow p.new { color: var(--ink); font-weight: 650; }
.k-mside { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.k-mside small { font-size: 11px; color: var(--mute); }
.k-mside em { font-style: normal; font-size: 11.5px; font-weight: 850; color: var(--lime); }
.k-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.k-sub { margin: 8px 2px 0; color: var(--mute); }
.k-prow { display: flex; align-items: center; gap: 9px; padding: 3px 6px; font-size: 12.5px; }
.k-prow > span:not(.k-av) { flex: 1; min-width: 0; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-prow b { color: var(--ink); }
.k-prow em { font-style: normal; font-size: 11.5px; color: var(--pink2); white-space: nowrap; }
.k-likes { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: linear-gradient(90deg, #ff4f8b30, #ffffff08); font-size: 12.5px; }
.k-blur { display: flex; }
.k-blur .k-av { filter: blur(3px); margin-inline-end: -8px; }
.k-likes p { margin-inline-start: 8px; }

/* 07 Chat */
.k-chat { display: flex; flex-direction: column; }
.k-chat-top { flex: none; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.k-back { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #ffffff12; font-size: 15px; }
.k-chat-who { min-width: 0; flex: 1; }
.k-chat-who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-chat-who span { font-size: 11.5px; color: var(--mute); }
.k-xlink { font-size: 12px; font-weight: 650; color: var(--pink2); white-space: nowrap; }
.k-ice-row { flex: none; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
.k-ice-row::-webkit-scrollbar { display: none; }
.k-ice-row button { flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff0c; font-size: 12px; white-space: nowrap; }
.k-ice-row button:hover { border-color: var(--pink2); }
.k-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 12px 10px; overflow-y: auto; }
.k-sys { align-self: center; margin: 4px 0; padding: 4px 10px; border-radius: 999px; background: #ffffff0b; font-size: 11.5px; color: var(--mute); }
.k-msg { align-self: flex-start; max-width: 78%; padding: 8px 12px; border-radius: 16px; border-end-start-radius: 6px; background: #ffffff14; font-size: 13.5px; line-height: 1.35; user-select: text; overflow-wrap: anywhere; animation: k-pop .2s ease-out; }
.k-msg.me { align-self: flex-end; border-radius: 16px; border-end-end-radius: 6px; background: var(--pink); color: #fff; }
.k-send { flex: none; display: flex; gap: 8px; padding: 6px 12px 12px; }
.k-send input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff0c; color: var(--ink); font: inherit; font-size: 13.5px; }
.k-send input::placeholder { color: var(--mute); }
.k-send button { width: 40px; height: 40px; border-radius: 12px; background: var(--pink); color: #fff; font-size: 18px; font-weight: 800; }

/* Compact card (e.g. ~340px on mobile X): hides the side list and secondary details. */
@container k (max-width: 419px) {
  .k-top { height: 40px; padding: 0 10px; }
  .k-brand span { display: none; }
  .k-tabs button { padding: 4px 9px; }
  .k-login { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 12px; }
  .k-btn-x { white-space: normal; line-height: 1.2; text-align: start; }
  .k-login h1 { font-size: 21px; margin: 7px 0 12px; }
  .k-steps { gap: 6px; }
  .k-teaser { display: none; }
  .k-analiz { grid-template-columns: 104px 1fr; gap: 12px; padding: 12px; }
  .k-scan-ring { width: 100px; height: 100px; }
  .k-scan-ring::before { inset: 7px; }
  .k-scan-n { font-size: 28px; }
  .k-scan-ring small { font-size: 10px; }
  .k-scan-steps li { padding: 2px 0; }
  .k-scan-steps b { font-size: 12px; } .k-scan-steps span { font-size: 11px; }
  .k-vibe { padding: 10px 10px 12px; gap: 8px; }
  .k-vibe-card { padding: 12px; gap: 10px; }
  .k-vibe-grid { grid-template-columns: 1fr; }
  .k-box.alt, .k-top3 { display: none; }
  .k-vibe-head .k-av { --s: 52px; }
  .k-vibe-head h2 { font-size: 16px; }
  .k-vibe-cta .k-btn { height: 40px; padding: 0 12px; font-size: 13px; }
  .k-disc { grid-template-columns: 1fr; padding: 8px 10px; }
  .k-side { display: none; }
  .k-cand { padding: 11px; gap: 8px; }
  .k-cand .k-av.lg { --s: 52px; }
  .k-who h2 { font-size: 16px; }
  .k-why { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .k-chip:not(.c), .k-facts, .k-quote { display: none; }
  .k-acts { height: 50px; }
  .k-act { width: 46px; height: 46px; } .k-act.like { width: 50px; height: 50px; } .k-act.wave { width: 38px; height: 38px; }
  .k-matchscr { gap: 7px; padding: 12px; }
  .k-matchscr h2 { font-size: 28px; }
  .k-pair .k-av { --s: 64px; }
  .k-ice, .k-quip { display: none; }
  .k-match-cta .k-btn { height: 40px; padding: 0 14px; font-size: 13px; }
}

/* Arabic and Chinese: tracking breaks Arabic joining and crowds CJK, so letter-spacing is reset. */
.k:is([lang="ar"], [lang="zh"]) * { letter-spacing: 0; }
.k[lang="ar"] { font-size: 13.5px; }
.k[lang="ar"] .k-login h1, .k[lang="zh"] .k-login h1 { line-height: 1.25; }

@keyframes k-pop { from { opacity: 0; transform: translate(var(--tx, 0), 6px); } }
.k-toast { --tx: -50%; }
@keyframes k-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@keyframes k-spin { to { transform: rotate(360deg); } }
@keyframes k-pulse { 70% { box-shadow: 0 0 0 7px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }
@keyframes k-beat { 50% { transform: scale(1.12); } }
@keyframes k-fall { to { transform: translateY(520px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .k *, .k *::before, .k *::after { animation: none !important; transition: none !important; }
  .k-conf { display: none; }
}

/* Live adapter additions; original palette/layout/animations above are retained. */
.k .k-av { position: relative; }
.k .k-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.k .k-cand { overflow: hidden; }
.k .k-arch { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.k .k-brand span { font-size: 12px; }
.k .k-ring small { font-size: 8px; max-width: 58px; text-align: center; }
.k .k-vibe-card { overflow-y: auto; }
.k button:disabled { opacity: .5; cursor: wait; }
