/* PTC Tình duyên — dùng biến màu / font của giao diện mới (tc-ui.css) */
.ptc-td .td-person { margin: 0 0 18px; padding: 0 0 18px; border: 0; border-bottom: 1px dashed var(--tc-line); min-width: 0; }
.tc-scope .ptc-td .td-person legend.tc-form__title { padding: 0; width: 100%; }
.ptc-td .td-person--f .tc-form__title { color: #b0245e; }
.ptc-td .td-nhuan[hidden] { display: none; }
.ptc-td .td-xem { margin-bottom: 4px; }

.td-error { margin-top: 24px; padding: 14px 16px; border-radius: 10px; background: #fdecea; border: 1px solid #f1b8b2; color: #8d161a; font-size: 15px; }

.td-result { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.td-result > * { min-width: 0; }
.tc-scope .td-result dt, .tc-scope .td-result dd, .tc-scope .td-table th, .tc-scope .td-table td { text-transform: none; letter-spacing: 0; }
.td-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-radius: 16px; color: #fbeedd;
  background: radial-gradient(ellipse at 15% 0%, #a82222, transparent 60%), linear-gradient(135deg, var(--tc-red-2), var(--tc-red-dark)); box-shadow: var(--tc-shadow); }
.td-sum__who { min-width: 0; flex: 1 1 320px; }
.td-sum__k { margin: 0 0 2px !important; color: #f0d58c; font-size: 14px; font-weight: 600; }
.tc-scope .td-sum h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); overflow-wrap: anywhere; }
.td-heart { color: #ff9fb8; }
.td-sum p { margin: 4px 0 0; color: #f3dcc4; font-size: 15px; }
.td-score { display: grid; justify-items: center; min-width: 120px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(240, 213, 140, .6); }
.td-score b { font: 700 40px/1 var(--tc-serif); color: #fff; }
.td-score small { font-size: 14px; color: #f0d58c; }
.td-score span { margin-top: 4px; font-weight: 700; color: #f0d58c; font-size: 15px; }
.td-verdict { margin: 0 !important; padding: 14px 18px; border-radius: 12px; background: #fbf4e4; border: 1px solid var(--tc-line); font-size: 15.5px; color: var(--tc-text); }

.tc-scope .td-h { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 22px; }
.tc-scope .td-h .tc-ic--d { width: 28px; height: 28px; }

.td-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.td-p { min-width: 0; padding: 16px 18px; border: 1px solid var(--tc-line); border-top: 4px solid #2f6fb0; border-radius: 12px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
.td-p--f { border-top-color: #c2417a; }
.tc-scope .td-p h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; font-size: 18px; color: var(--tc-red-2); overflow-wrap: anywhere; }
.tc-scope .td-p h3 .tc-ic--d { width: 26px; height: 26px; }
.td-p h3 small { font: 500 13.5px var(--tc-sans); color: var(--tc-muted); }
.td-p dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 14px; font-size: 14.5px; }
.td-p dt { color: var(--tc-muted); }
.td-p dd { margin: 0; color: var(--tc-ink); font-weight: 600; }
.td-h--kim { color: #a07d12; } .td-h--moc { color: #3f8a4a; } .td-h--thuy { color: #2f6fb0; } .td-h--hoa { color: #c0392b; } .td-h--tho { color: #9a6a32; }
.tc-scope .td-p .td-tuvi { width: 100%; }

.td-table-wrap { overflow-x: auto; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
.td-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14.5px; }
.td-table th, .td-table td { padding: 10px 12px; border: 0; border-top: 1px solid var(--tc-line); text-align: left; vertical-align: middle; color: var(--tc-ink); }
.td-table thead th { border-top: 0; background: #f7eedb; font-weight: 700; color: var(--tc-red-2); white-space: nowrap; }
.td-table tbody th { font-weight: 600; line-height: 1.35; }
.td-table td small { color: var(--tc-muted); white-space: nowrap; }
.td-table .td-table__y td { border-top: 0; padding-top: 0; font-size: 13.5px; color: var(--tc-muted); }
.td-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.td-tag--good { background: #e7f4e8; color: #2e7d32; }
.td-tag--mid { background: #fdf3dc; color: #8a6514; }
.td-tag--bad { background: #fdecea; color: #b3261e; }

.tc-scope .td-stars { margin: 0 0 10px; padding-left: 18px; list-style: disc; font-size: 14.5px; }
.td-stars li { margin-bottom: 6px; }
.td-stars small { color: var(--tc-muted); }
.td-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px !important; font-size: 13.5px; }
.td-chips > span { color: var(--tc-muted); font-weight: 600; }
.td-chip { font-style: normal; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.td-chip--good { background: #e7f4e8; color: #2e7d32; }
.td-chip--bad { background: #fdecea; color: #b3261e; }
.td-muted { margin: 0 0 6px !important; font-size: 13.5px; color: var(--tc-muted); }

.tc-scope .td-year { margin: 0; padding-left: 18px; list-style: disc; font-size: 14.5px; }
.td-year li { margin-bottom: 4px; }
.td-year .is-bad { color: #b3261e; }
.td-year .is-good { color: #2e7d32; }

.td-note { display: flex; gap: 12px; margin-top: 8px; padding: 16px 18px; border-radius: 12px; background: #f4ecdc; border: 1px dashed #d6c09a; font-size: 14.5px; }
.tc-scope .td-note .tc-ic--d { flex: none; width: 28px; height: 28px; }
.tc-scope .td-note ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.td-note li { margin-bottom: 4px; }
.td-note a { color: var(--tc-red); text-decoration: underline; }

@media (max-width: 700px) {
  .td-people { grid-template-columns: 1fr; }
  .td-sum { padding: 16px; }
  .td-score { width: 100%; }
  .tc-scope .td-h { font-size: 20px; }
  .td-table th, .td-table td { padding: 8px; }
  .td-table { font-size: 13.5px; }
  .td-p dl { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
}
