/* Matching owns only its content. The mandatory navigation lives in site-glass.css. */
.matching-page-body { --match-accent:#e0e2dd; --match-accent-ink:#191b19; --match-soft:#a5a5a512; }
html[data-theme="light"] .matching-page-body { --match-accent:#343734; --match-accent-ink:#fff; --match-soft:#7e7e7e0d; }
.match-main { padding-inline:24px; }
.match-main *, .match-dialog * { box-sizing:border-box; }
.match-main button,.match-dialog button,.match-main a,.match-dialog a { -webkit-tap-highlight-color:transparent; }
.match-main button,.match-dialog button { font:inherit; cursor:pointer; }
.match-main button:disabled,.match-dialog button:disabled { opacity:.48; cursor:not-allowed; }
.match-main :is(button,a,input,select,textarea):focus-visible,.match-dialog :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--match-accent); outline-offset:4px; }
.match-main [hidden],.match-dialog [hidden] { display:none!important; }
.match-page-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 28px; }
.match-page-heading h1 { font-size:27px; line-height:1.35; letter-spacing:-1.2px; margin:5px 0 0; font-weight:650; }
.match-eyebrow { color:var(--glass-muted); font-size:11px; line-height:1.6; letter-spacing:0; margin:0; }
.match-heading-actions { display:flex; gap:7px; align-items:center; flex:none; }
.match-wallet-button,.match-profile-button { display:flex; align-items:center; justify-content:center; gap:6px; min-width:44px; height:44px; padding:0 10px; border:1px solid var(--glass-line); border-radius:15px; color:var(--glass-text); background:linear-gradient(125deg,var(--glass-panel),transparent); flex:none; }
.match-wallet-button svg,.match-profile-button svg { width:20px; height:20px; stroke:currentColor; stroke-width:1.5; }
.match-wallet-button small { font-size:10px; color:var(--glass-muted); }
.match-profile-button[aria-pressed="true"] { background:var(--glass-panel); border-color:var(--glass-muted); }
.match-intro { position:relative; border:1px solid var(--glass-line); border-radius:28px; overflow:hidden; background:radial-gradient(ellipse at 100% 0%,#aaa9a521,transparent 65%),linear-gradient(145deg,var(--glass-panel),transparent); box-shadow:inset 0 1px 1px #ffffff0d; }
.match-intro-copy { position:relative; padding:31px 25px 23px; }
.match-intro-copy h2 { margin:17px 0 19px; font-size:38px; line-height:1.24; letter-spacing:-1.8px; font-weight:550; }
.match-intro-copy>p:not(.match-eyebrow) { color:var(--glass-muted); font-size:14px; line-height:1.85; }
.match-intro-copy>small { display:block; margin-top:13px; font-size:11px; line-height:1.7; text-align:center; color:var(--glass-muted); }
.match-intro-path { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:29px 0 0; padding-block:16px; border-top:1px solid var(--glass-line); font-size:11px; color:var(--glass-text); }
.match-intro-path i { font-style:normal; color:var(--glass-muted); }
.match-primary,.match-secondary,.match-danger { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; padding:12px 15px; border-radius:14px; border:1px solid transparent; text-decoration:none; font-size:14px; font-weight:600; }
.match-primary { background:var(--match-accent); color:var(--match-accent-ink); }
.match-primary>span:last-child { margin-left:auto; }
.match-secondary { background:var(--glass-panel); color:var(--glass-text); border-color:var(--glass-line); }
.match-danger { color:#efb7bd; border-color:#d0848b40; background:#c5747e12; }
html[data-theme="light"] .match-danger { color:#842d3c; }
.match-intro .match-primary { margin-top:7px; }
.match-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 17px; }
.match-section-heading h2 { margin:0; font-size:19px; font-weight:600; letter-spacing:-.65px; line-height:1.5; }
.match-section-heading .match-eyebrow { margin-bottom:5px; }
.match-caption { color:var(--glass-muted); font-size:11px; line-height:1.6; }
.match-explainer { margin-top:37px; }
.match-explainer ol { margin:0; padding:0; list-style:none; }
.match-explainer li { display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--glass-line); }
.match-explainer li>span { flex:none; display:grid; place-items:center; width:30px; height:30px; color:var(--glass-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.match-explainer h3 { margin:0 0 7px; font-size:14px; font-weight:600; }
.match-explainer li p { color:var(--glass-muted); font-size:13px; line-height:1.8; margin:0; }
.match-product-strip { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; color:var(--glass-text); margin-top:24px; padding:20px 17px; border:1px solid var(--glass-line); border-radius:19px; background:linear-gradient(130deg,var(--match-soft),var(--glass-panel)); text-align:left; }
.match-product-strip strong { font-size:14px; font-weight:600; }
.match-product-strip small { display:block; color:var(--glass-muted); font-size:10px; margin-top:7px; }
.match-product-strip b { white-space:nowrap; font-size:15px; color:var(--match-accent); }
html[data-theme] .matching-page-body .match-footer { text-align:center; color:var(--glass-muted); background:transparent; padding:21px 0 0; border-top:1px solid var(--glass-line); font-size:10px; line-height:1.8; margin:38px 0 0; }
.match-footer a { color:inherit; }
.match-global-message,.match-dialog-error { border:1px solid #b5b5b545; background:var(--match-soft); color:var(--glass-text); border-radius:14px; padding:13px 15px; font-size:12px; line-height:1.65; white-space:pre-line; }
.match-gate,.match-empty { padding:28px 21px; border:1px solid var(--glass-line); border-radius:22px; background:linear-gradient(135deg,var(--glass-panel),transparent); text-align:center; }
.match-gate { margin-top:18px; text-align:left; }
.match-gate h2,.match-empty h3 { font-size:18px; margin:0 0 11px; letter-spacing:-.5px; }
.match-gate p,.match-empty p { margin:0 0 20px; color:var(--glass-muted); font-size:13px; line-height:1.85; word-break:keep-all; overflow-wrap:anywhere; }
.match-empty-mark { width:45px; height:45px; display:grid; place-items:center; margin:0 auto 18px; border:1px solid var(--glass-line); border-radius:16px; color:var(--glass-muted); }
.match-empty-mark svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.3; }
.match-gate .match-secondary { margin-top:9px; }
.match-gate .match-checklist { display:grid; gap:10px; margin:20px 0; padding:0; list-style:none; font-size:12px; }
.match-checklist li { display:flex; gap:9px; }
.match-checklist li span { color:var(--match-accent); }
.match-profile-summary { display:flex; align-items:center; gap:12px; padding:0 0 23px; }
.match-profile-summary>div:not(.match-avatar) { flex:1; min-width:0; }
.match-profile-summary strong { display:block; font-size:14px; font-weight:550; overflow-wrap:anywhere; }
.match-profile-summary span { display:block; font-size:11px; color:var(--glass-muted); line-height:1.7; margin-top:3px; }
.match-profile-summary .match-text-button { flex:none; }
.match-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--glass-line); border-radius:17px; padding:4px; background:var(--glass-panel); margin:0 0 28px; gap:3px; }
.match-tabs button { background:none; border:0; border-radius:12px; min-height:44px; color:var(--glass-muted); padding:10px 3px; font-size:13px; }
.match-tabs button[aria-current="page"] { background:var(--glass-solid); box-shadow:0 2px 5px #0000000f,inset 0 1px #ffffff0a; color:var(--glass-text); font-weight:650; }
.match-tabs button span:not(:empty) { display:inline-grid; place-items:center; min-width:16px; height:16px; padding:0 4px; font-size:9px; background:var(--match-accent); color:var(--match-accent-ink); border-radius:10px; }
.match-purpose-switch { display:flex; gap:7px; margin-bottom:15px; }
.match-purpose-switch button { flex:1; min-height:44px; border:1px solid var(--glass-line); border-radius:14px; color:var(--glass-muted); background:transparent; font-size:13px; }
.match-purpose-switch button[aria-pressed="true"] { background:var(--match-soft); border-color:color-mix(in srgb,var(--match-accent) 45%,transparent); color:var(--glass-text); }
.match-text-button { border:0; background:none; color:var(--match-accent); min-height:44px; padding:10px 0 10px 8px; font-size:12px; }
.match-helper,.match-disclaimer { font-size:12px; line-height:1.8; color:var(--glass-muted); margin:12px 0 18px; overflow-wrap:anywhere; }
.match-disclaimer { font-size:11px; margin-top:23px; }
.match-filter-summary { font-size:11px; color:var(--glass-muted); line-height:1.8; margin:0 0 19px; }
.match-privacy-note { border-top:1px solid var(--glass-line); padding-top:18px; margin-top:28px; color:var(--glass-muted); font-size:11px; line-height:1.8; }
.match-privacy-note summary { cursor:pointer; padding:6px 0; }
.match-privacy-note p { margin:10px 0 0; }
.match-candidate-list { display:grid; gap:17px; }
.match-person-card { overflow:hidden; border-radius:24px; border:1px solid var(--glass-line); background:linear-gradient(140deg,var(--glass-panel),transparent 140%); box-shadow:inset 0 1px #ffffff08; }
.match-person-art { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:23px 23px 20px; }
.match-avatar { display:flex; align-items:center; justify-content:center; flex-direction:column; width:76px; height:86px; border:1px solid var(--glass-line); background:linear-gradient(145deg,#acacac20,#44444408); border-radius:20px; flex:none; overflow:hidden; color:var(--glass-text); }
.match-avatar strong { font-size:23px; font-family:Georgia,'Noto Serif KR',serif; font-weight:400; line-height:1.4; letter-spacing:-.6px; }
.match-avatar small { font-size:10px; color:var(--glass-muted); margin-top:5px; }
.match-avatar img { width:100%; height:100%; object-fit:cover; }
.match-avatar--small { width:46px; height:51px; border-radius:14px; }
.match-avatar--small strong { font-size:15px; }
.match-avatar--small small { font-size:8px; margin-top:2px; }
.match-score { text-align:right; }
.match-score span { display:block; font-size:10px; color:var(--glass-muted); }
.match-score strong { display:inline-block; font-size:37px; font-weight:450; letter-spacing:-1.8px; color:var(--glass-text); margin:5px 2px 0 0; }
.match-score small { font-size:11px; color:var(--glass-muted); }
.match-score em { display:block; font-size:12px; font-style:normal; margin-top:9px; color:var(--glass-muted); }
.match-person-body { padding:0 23px 22px; }
.match-person-body h3 { font-size:19px; font-weight:600; letter-spacing:-.5px; margin:0 0 8px; overflow-wrap:anywhere; }
.match-person-meta { font-size:11px; color:var(--glass-muted); line-height:1.7; }
.match-person-summary { font-size:13px; color:var(--glass-text); line-height:1.8; margin:14px 0 19px; }
.match-person-body .match-secondary { background:var(--match-soft); justify-content:space-between; font-size:13px; }
.match-list-card { padding:18px 17px; border:1px solid var(--glass-line); border-radius:20px; background:linear-gradient(135deg,var(--glass-panel),transparent); margin-bottom:12px; }
.match-list-person { display:flex; align-items:center; gap:13px; }
.match-list-person>div:not(.match-avatar) { min-width:0; flex:1; }
.match-list-person h3 { margin:0 0 5px; font-size:15px; overflow-wrap:anywhere; }
.match-list-person p { margin:0; font-size:11px; color:var(--glass-muted); line-height:1.65; }
.match-list-person .match-status-label { margin-left:auto; color:var(--match-accent); white-space:nowrap; font-size:10px; border:1px solid var(--glass-line); border-radius:20px; padding:4px 9px; }
.match-list-card .match-helper { margin-bottom:0; }
.match-button-row { display:flex; gap:8px; margin-top:17px; }
.match-button-row>* { flex:1; min-width:0; }
.match-button-row :is(.match-primary,.match-secondary,.match-danger) { min-height:44px; padding:10px 8px; font-size:12px; border-radius:12px; }
.match-last-message { margin:13px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--glass-muted); font-size:12px; }
.match-dialog { color:var(--glass-text); background:var(--glass-solid); border:1px solid var(--glass-line); border-radius:27px 27px 0 0; padding:0; width:min(100%,520px); max-width:100%; margin:auto auto 0; max-height:min(92dvh,920px); box-shadow:0 -20px 80px #0006; overscroll-behavior:contain; }
.match-dialog::backdrop { background:#08090bb8; backdrop-filter:blur(7px); }
.match-dialog-shell { padding:0 23px max(26px,env(safe-area-inset-bottom)); }
.match-sheet-handle { display:grid; place-items:center; width:100%; height:27px; padding:0; border:0; background:transparent; touch-action:none; }
.match-sheet-handle span { width:34px; height:4px; border-radius:8px; background:var(--glass-muted); opacity:.5; }
.match-dialog-heading { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:58px; padding:0 0 15px; background:var(--glass-solid); z-index:2; }
.match-dialog-heading h2 { margin:0; font-size:18px; letter-spacing:-.6px; }
.match-close { display:grid; place-items:center; width:44px; height:44px; margin-right:-9px; flex:none; border:0; color:var(--glass-text); background:transparent; line-height:1; }
.match-close svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.5; }
.match-dialog p { font-size:13px; line-height:1.8; }
.match-dialog-error { position:sticky; top:58px; z-index:2; background:var(--glass-solid); border-color:var(--glass-muted); margin:0 0 15px; }
.match-discard-dialog .match-dialog-shell { padding-top:22px; }
.match-discard-dialog .match-dialog-heading { min-height:0; padding-bottom:8px; }
.match-discard-dialog p { color:var(--glass-muted); }
.match-form { display:grid; gap:19px; }
.match-field { display:grid; gap:9px; min-width:0; }
.match-field>span,.match-fieldset>legend { color:var(--glass-text); font-size:12px; font-weight:550; }
.match-field>small { color:var(--glass-muted); font-size:11px; line-height:1.75; }
.match-field :is(input,textarea,select) { width:100%; min-height:48px; padding:12px 13px; border-radius:13px; border:1px solid var(--glass-line); color:var(--glass-text); background:var(--glass-panel); font:inherit; font-size:16px; }
.match-field input::placeholder,.match-field textarea::placeholder { color:var(--glass-muted); }
.match-field textarea { min-height:95px; resize:vertical; }
.match-field option { background:var(--glass-solid); color:var(--glass-text); }
.match-fieldset { border:0; padding:0; margin:0; min-width:0; }
.match-fieldset legend { margin-bottom:11px; }
.match-check-options { display:flex; gap:9px; }
.match-check-option { display:flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--glass-line); border-radius:13px; color:var(--glass-text); font-size:12px; flex:1; }
.match-form input[type="checkbox"],.match-form input[type="radio"] { accent-color:#939393; width:17px; height:17px; flex:none; }
.match-consent { display:flex; align-items:flex-start; gap:10px; font-size:11px; line-height:1.8; color:var(--glass-muted); }
.match-consent input { margin-top:3px; }
.match-form-section { padding:18px 15px; border:1px solid var(--glass-line); border-radius:18px; display:grid; gap:15px; }
.match-form-section h3 { margin:0; font-size:13px; }
.match-range { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.match-inline-notice { padding:15px; background:var(--match-soft); border:1px solid var(--glass-line); border-radius:15px; color:var(--glass-muted); font-size:11px; line-height:1.8; }
.match-preview-profile { display:flex; align-items:center; gap:15px; padding:17px; border:1px solid var(--glass-line); border-radius:19px; }
.match-preview-profile>div:not(.match-avatar) { min-width:0; }
.match-preview-profile h3 { margin:0 0 7px; font-size:17px; overflow-wrap:anywhere; }
.match-preview-profile p { margin:0; color:var(--glass-muted); font-size:11px; line-height:1.7; }
.match-analysis-section { border-top:1px solid var(--glass-line); padding:20px 0; }
.match-analysis-section h3 { font-size:14px; margin:0 0 12px; color:var(--match-accent); }
.match-analysis-section ul { margin:0; padding-left:17px; font-size:14px; line-height:1.85; color:var(--glass-text); }
.match-analysis-section li+li { margin-top:9px; }
.match-detail-profile { padding:2px 0 22px; }
.match-detail-profile .match-person-art { padding:5px 0 20px; }
.match-detail-profile h3 { font-size:22px; margin:0 0 7px; }
.match-detail-profile>p { margin:13px 0 0; color:var(--glass-muted); }
.match-products { display:grid; gap:11px; }
.match-product { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px 17px; border:1px solid var(--glass-line); border-radius:19px; background:var(--glass-panel); }
.match-product.is-featured { border-color:color-mix(in srgb,var(--match-accent) 65%,transparent); background:var(--match-soft); }
.match-product h3 { margin:0 0 7px; font-size:17px; line-height:1.5; }
.match-product p { color:var(--glass-muted); margin:0; font-size:10px; }
.match-product button { width:auto; flex:none; padding-inline:14px; font-size:13px; }
.match-wallet-total { display:flex; justify-content:space-between; align-items:baseline; margin:0 0 24px; }
.match-wallet-total span { color:var(--glass-muted); font-size:12px; }
.match-wallet-total strong { color:var(--match-accent); font-size:30px; font-weight:500; }
.match-purchase-rules { padding-left:17px; color:var(--glass-muted); font-size:11px; line-height:1.85; margin:21px 0; }
.match-chat-head { display:flex; align-items:center; justify-content:space-between; padding:0 0 15px; gap:15px; }
.match-chat-head .match-list-person { min-width:0; }
.match-chat-head .match-text-button { color:var(--glass-muted); font-size:11px; }
.match-chat-notice { font-size:10px!important; color:var(--glass-muted); text-align:center; margin:0 0 13px; }
.match-history-control { display:flex; align-items:center; justify-content:center; min-height:38px; margin-bottom:5px; }
.match-history-control button { padding:8px 14px; min-height:34px; border:1px solid var(--glass-line); border-radius:12px; color:var(--match-accent); background:var(--glass-panel); font-size:11px; }
.match-history-control small { color:var(--glass-muted); font-size:9px; }
.match-message-list { display:flex; flex-direction:column; gap:16px; height:43dvh; min-height:140px; overflow-y:auto; overscroll-behavior:contain; padding:12px 1px 18px; scrollbar-width:thin; }
.match-message { max-width:85%; align-self:flex-start; }
.match-message.is-own { align-self:flex-end; }
.match-message p { margin:0; padding:11px 14px; color:var(--glass-text); background:var(--glass-panel); border:1px solid var(--glass-line); border-radius:17px 17px 17px 4px; font-size:14px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.match-message.is-own p { border-color:#a7a7a750; background:var(--match-soft); border-radius:17px 17px 4px 17px; }
.match-message time { display:block; font-size:9px; color:var(--glass-muted); padding:5px 3px 0; }
.match-message.is-own time { text-align:right; }
.match-chat-compose { display:flex; align-items:flex-end; gap:8px; margin-top:13px; padding-top:15px; border-top:1px solid var(--glass-line); }
.match-chat-compose textarea { resize:none; flex:1; width:100%; min-width:0; height:50px; max-height:120px; padding:13px; border-radius:15px; border:1px solid var(--glass-line); color:var(--glass-text); background:var(--glass-panel); font:inherit; font-size:16px; line-height:1.5; }
.match-chat-compose button { width:55px; min-height:48px; border-radius:15px; flex:none; padding-inline:0; white-space:nowrap; }
.match-chat-counter { font-size:9px; color:var(--glass-muted); text-align:right; margin:5px 0 0; }
.match-demo-banner { border:1px dashed #a9a9a9; background:var(--match-soft); border-radius:16px; padding:14px; display:flex; align-items:center; flex-wrap:wrap; gap:9px; font-size:11px; margin-bottom:20px; }
.match-demo-banner b { color:var(--match-accent); }
.match-demo-banner span { line-height:1.7; }
.match-demo-banner button,.match-demo-banner a { padding:8px; border:1px solid var(--glass-line); border-radius:9px; color:var(--glass-text); font-size:10px; text-decoration:none; background:var(--glass-panel); }
.match-loading { display:flex; align-items:center; gap:9px; padding:18px 3px; font-size:12px; color:var(--glass-muted); }
.match-loading>span { width:13px; height:13px; border:1px solid var(--glass-line); border-top-color:var(--glass-muted); border-radius:50%; }
.match-skeleton { padding:25px; border:1px solid var(--glass-line); border-radius:24px; display:grid; gap:20px; }
.match-skeleton i { display:block; width:100%; height:16px; border-radius:6px; background:var(--glass-panel); }
.match-skeleton i:first-of-type { width:76px; height:86px; border-radius:20px; }
.match-skeleton i:last-of-type { width:70%; }
.match-settings-pause { margin-top:25px; }
.match-settings-pause h3 { font-size:15px; margin:0; }
.match-settings-pause .match-secondary { margin-top:14px; }
.match-open-return { margin-bottom:19px; }
@media (min-width:600px) { .match-dialog { margin:auto; border-radius:28px; } }
@media (max-width:360px) { .match-main { padding-inline:17px; }.match-page-heading h1 { font-size:24px; }.match-page-heading { gap:5px; }.match-page-heading .match-eyebrow { max-width:150px; }.match-heading-actions { gap:4px; }.match-wallet-button { padding-inline:8px; }.match-intro-copy { padding-inline:21px; }.match-intro-copy h2 { font-size:33px; }.match-product-strip { padding-inline:13px; }.match-product-strip b { font-size:13px; }.match-dialog-shell { padding-inline:18px; }.match-product { padding:17px 14px; gap:9px; }.match-product h3 { font-size:15px; }.match-caption { max-width:100px; text-align:right; }.match-intro-path { font-size:10px; } }
@media (prefers-reduced-motion:no-preference) { .match-person-card { animation:match-appear .32s ease-out; }.match-loading>span { animation:match-spin 1s linear infinite; }.match-skeleton { animation:match-pulse 1.4s ease-in-out infinite alternate; } @keyframes match-appear { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } } @keyframes match-spin { to { transform:rotate(360deg); } } @keyframes match-pulse { from { opacity:.55; } to { opacity:1; } } }
