/* Possible matches, match conversation, voice messages, "Already Claimed" */

/* ---- possible matches panel ---- */
.match-panel { margin: 24px 0 0; padding: 20px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--surface, #fff); }
.match-panel h3 { margin: 0 0 4px; font-size: 1.15rem; }
.match-panel-note { margin: 0 0 14px; color: var(--muted, #64748b); font-size: .9rem; }
.match-list-cards { display: flex; flex-direction: column; gap: 10px; }
.match-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.match-card.is-done { opacity: .85; background: rgba(22, 163, 74, .06); }
.match-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.match-card-info strong { overflow-wrap: anywhere; }
.match-card-info span { color: var(--muted, #64748b); font-size: .85rem; }
.match-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.match-score { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e0f2fe; color: #075985; white-space: nowrap; }
.match-msgcount { font-size: .78rem; color: var(--muted, #64748b); }
.match-viewer-box { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; border: 1px solid #93c5fd; background: #eff6ff; color: #1e3a8a; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
:root[data-theme="dark"] .match-viewer-box { background: #10243f; color: #bfdbfe; border-color: #1d4ed8; }

/* ---- Already Claimed ---- */
.already-claimed-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.already-claimed-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #dcfce7; color: #14532d; border: 1px solid #86efac; display: flex; flex-direction: column; gap: 2px; }
:root[data-theme="dark"] .already-claimed-banner, :root[data-theme="dark"] .already-claimed-badge { background: #12301f; color: #8be0ad; border-color: #166534; }
.item-card-done img, .item-card-done .item-no-photo { filter: grayscale(.6); opacity: .8; }

/* ---- conversation page ---- */
.match-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; display: flex; flex-direction: column; gap: 2px; }
.match-banner.is-claimed { background: #dcfce7; color: #14532d; border-color: #86efac; }
.match-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match-pair-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); background: var(--surface, #fff); text-decoration: none; color: inherit; }
.match-pair-card.is-lost { border-left: 5px solid #f59e0b; }
.match-pair-card.is-found { border-left: 5px solid #16a34a; }
.match-pair-kind { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #64748b); }
.match-pair-card small { color: var(--muted, #64748b); overflow-wrap: anywhere; }
.match-list { max-height: 460px; }
.match-audio { display: block; width: 100%; max-width: 280px; margin-top: 6px; height: 36px; }
.match-audio-len { font-size: .72rem; opacity: .8; }
.match-voice { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line, #cbd5e1); border-radius: 10px; }
.match-voice-row, .match-voice-preview { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.match-voice-timer { font-weight: 700; color: #dc2626; font-variant-numeric: tabular-nums; animation: match-pulse 1s infinite; }
.match-voice-hint { margin: 8px 0 0; font-size: .8rem; color: var(--muted, #64748b); }
.match-voice-hint.is-error { color: #dc2626; }
@keyframes match-pulse { 50% { opacity: .45; } }
@media (max-width: 600px) { .match-pair { grid-template-columns: 1fr; } }
