/* Matching report only: keep shared page resets from removing card padding. */
html#kl-fresh-root body.public-site.matching-page .site-main :is(.matching-score-meaning,.matching-question-card,.matching-guide) {
    box-sizing:border-box!important; min-width:0!important; padding:24px!important; margin:20px 0!important;
    text-align:left!important; overflow-wrap:anywhere;
}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band-grid {
    display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:12px!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band {
    min-width:0!important; min-height:0!important; padding:16px!important; border:1px solid #c8d7ea!important;
    border-top:3px solid #ea802e!important; border-radius:10px!important; background:#fff!important;
    text-align:left!important; transform:none!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band.is-current {
    background:#fff9e6!important; border-color:#28519f!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band p {font-size:13px!important;line-height:1.7!important;margin:8px 0 0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band h3 {font-size:16px!important;margin:10px 0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band__top {margin:0!important;padding:0!important;min-height:0!important;justify-content:flex-start!important;gap:8px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band__top span {width:25px!important;height:25px!important;font-size:14px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band em {font-size:13px!important}
html#kl-fresh-root body.public-site.matching-page .site-main :is(.matching-score-meaning,.matching-question-card) h2 {font-size:22px!important;line-height:1.5!important;margin:4px 0 10px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-question-card > header {display:flex!important;gap:16px!important;justify-content:space-between!important;margin-bottom:18px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-question-card form {display:grid!important;gap:14px!important;min-width:0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-question-card label {min-width:0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .matching-question-card :is(select,button) {max-width:100%!important;min-width:0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-report-panel {
    box-sizing:border-box!important; min-width:0!important; max-width:100%!important; margin:20px 0!important;
    padding:0!important; border:1px solid #c5d5e9!important; border-radius:12px!important; background:#fff!important;
    overflow:hidden!important; box-shadow:0 3px 12px #172e5a08!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-report-panel > h2 {
    margin:0!important; padding:14px 20px!important; background:#224380!important; color:#fffcf0!important;
    font-size:20px!important; line-height:1.5!important; font-weight:700!important; text-align:left!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-table-scroll {overflow-x:auto!important;max-width:100%!important;margin:0!important;padding:0!important;overscroll-behavior-x:contain}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table {
    width:100%!important; border-collapse:collapse!important; margin:0!important; table-layout:fixed!important;
    font-size:14px!important; line-height:1.6!important; background:#fff!important;
}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table :is(th,td) {
    padding:12px 14px!important; border:1px solid #cfdced!important; text-align:left!important;
    vertical-align:middle!important; color:#443b38!important; background:transparent!important;
    font-size:14px!important; line-height:1.6!important; white-space:normal!important; overflow-wrap:anywhere;
}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table thead th {background:#ebf2fc!important;color:#203966!important;font-weight:700!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table tbody tr:nth-child(even) {background:#f6f8fb!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table tfoot :is(th,td) {background:#fff7db!important;font-weight:800!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table small {display:block!important;font-size:12px!important;color:#da6b16!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table .milan-number {text-align:center!important;font-variant-numeric:tabular-nums}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table .milan-degree {white-space:nowrap!important;font-variant-numeric:tabular-nums}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-kootas-table {min-width:780px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-planets-table {min-width:720px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-personal-table {min-width:0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-table-hint {padding:12px 20px!important;margin:0!important;font-size:12px!important;line-height:1.6!important;color:#796861!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-panel-copy {padding:16px 20px!important;margin:0!important;line-height:1.8!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-status {display:inline-block;padding:3px 8px;border-radius:5px;background:#fff7db;color:#1f3e78;font-size:12px}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-status.is-favourable {background:#eff4f8;color:#25643e}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;padding:20px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card {min-width:0!important;padding:0!important;margin:0!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card h3 {font-size:16px!important;line-height:1.5!important;text-align:center!important;margin:0 0 14px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card .k-planet {padding:1px 3px!important;line-height:1.1!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card .k-planet-name {font-size:11px!important;line-height:1.1!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card .k-planets {gap:2px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card .k-rashi {font-size:12px!important;margin-bottom:3px!important}
html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-card .k-house-no {font-size:8px!important;margin-bottom:2px!important}
@media(max-width:1000px) {
    html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-grid {grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px) {
    html#kl-fresh-root body.public-site.matching-page .site-main :is(.matching-score-meaning,.matching-question-card,.matching-guide) {padding:16px!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .matching-score-band-grid {grid-template-columns:minmax(0,1fr)!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .milan-report-panel > h2 {font-size:18px!important;padding:12px 14px!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .milan-comparison-table :is(th,td) {padding:10px!important;font-size:13px!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .milan-chart-grid {padding:14px!important}
    html#kl-fresh-root body.public-site.matching-page .site-main .matching-question-card > header {flex-wrap:wrap!important}
}
