.compat-input{padding:20px;border:1px solid #efe3d2;border-radius:22px;background:#fffdf9;margin:0 0 20px;color:#6e5a45}
.compat-input h2{font-size:18px;color:#3a2a1c;margin:0 0 12px}.compat-input h2 span{font-size:13px;font-weight:500}
.compat-selected{display:flex;align-items:center;justify-content:space-between;gap:12px}.compat-selected h2{margin:0}.compat-selected button{border:0;background:none;font:inherit;font-size:13px;min-height:44px;padding:8px 0;text-decoration:underline;cursor:pointer;flex:none}
.compat-selected h2{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.compat-input select{width:100%;font:inherit;min-height:54px;appearance:auto}.compat-input #other-next{margin-top:18px;width:100%}.compat-input .compat-private{font-size:12px;margin-bottom:0}
.compat-basis{margin:22px 0 12px;color:#6e5a45;font-size:13px;line-height:1.7}.compat-basis summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}.compat-basis p{text-align:left}
.compat-input p{font-size:14px;line-height:1.7;margin:10px 0;word-break:keep-all;overflow-wrap:anywhere}
.compat-input .field{margin-top:18px}.compat-edit{font-size:13px;color:#a64932;text-underline-offset:3px}
.compat-uncertain{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;font-size:13px;line-height:1.7}
.compat-uncertain input{width:20px;height:20px;flex:none;accent-color:#a64932;margin-top:1px}
#other-year-error{color:#a64932;font-weight:600}.compat-pick-note{font-size:14px;line-height:1.7;color:#6e5a45;word-break:keep-all}
.year-compat h3{font-size:20px;line-height:1.5;margin:6px 0 14px;color:#3a2a1c;word-break:keep-all}
.year-compat .panel__label:not(:first-child){margin-top:18px}.year-compat-basis{font-size:13px;line-height:1.7;color:#6e5a45;word-break:keep-all;overflow-wrap:anywhere}
.year-compat-basis:empty{display:none}.year-compat-basis:not(:empty){margin-top:16px}
.compat-snapshot .pair-stage{display:flex;align-items:center;justify-content:center;gap:12px;margin:24px 0}
.compat-snapshot .pair-stage img{width:44%;max-width:205px;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 10px 18px #3a2a1c20)}
.compat-snapshot .lines{padding:18px 20px;text-align:left}.compat-snapshot .lines h2{font-size:20px;line-height:1.5;word-break:keep-all;margin:8px 0 14px}
.compat-snapshot .lines p{font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.compat-snapshot .lines p:last-child{margin-bottom:0}.compat-snapshot .year-compat-basis{font-size:13px!important}
.compat-snapshot .pair-detail{font-size:15px;line-height:1.7;word-break:keep-all}

.compat-input a.compat-edit{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;box-sizing:border-box}
.compat-uncertain{align-items:center;min-height:44px;padding:8px 0;box-sizing:border-box;cursor:pointer}
.compat-uncertain input{margin:0}
#compat-start-form .btn{width:100%;margin-top:22px;min-height:54px}
.compat-social{display:grid;gap:10px;margin:18px 0 22px}
.compat-social .btn{margin:0;width:100%}
.compat-follow,.compat-fortune-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 12px;box-sizing:border-box;color:#6e5a45;font-size:14px;text-decoration:underline;text-underline-offset:3px}
#step-result .shared-compat{padding:12px 16px;margin:0 0 16px}
#step-result .shared-compat p{margin:0;font-size:14px}
#step-result .shared-compat .btn{margin-top:8px}
.compat-snapshot .compat-top-action{margin:12px 0 18px}
.compat-snapshot .compat-top-action a{min-height:54px}
.compat-snapshot .compat-social button{display:flex;align-items:center;justify-content:center;min-height:54px;padding:14px 20px;border:0;border-radius:16px;background:#a64932;color:white;font:inherit;font-weight:700;cursor:pointer}
.compat-social button:focus-visible,.compat-follow:focus-visible,.compat-fortune-link:focus-visible{outline:3px solid #a64932;outline-offset:3px}
.compat-share-status{min-height:24px;margin:0;color:#6e5a45;font-size:14px}
#compat-card-dialog{width:min(360px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:18px;border:1px solid #dfcdb9;border-radius:20px;background:#fffaf3;color:#3a2a1c;box-sizing:border-box}
#compat-card-dialog::backdrop{background:#24170fc9}
#compat-card-dialog h2{font-size:18px;margin:0 0 12px;text-align:center}
#compat-card-dialog canvas{display:block;width:100%;height:auto;max-height:58dvh;object-fit:contain}
#compat-card-dialog button{display:block;width:100%;min-height:44px;margin-top:10px;border:1px solid #dfcdb9;border-radius:12px;padding:10px;font:inherit;color:#6e5a45;background:#fff;cursor:pointer}
#compat-card-dialog #compat-card-save{background:#a64932;color:#fff;border:0}
.compat-social .compat-follow,.compat-social .compat-fortune-link{background:transparent;border:0;border-radius:0;box-shadow:none;color:#6e5a45;font-weight:400}
.compat-snapshot .compat-social #compat-share-card{background:#fffdf9;border:1px solid #dfcdb9;color:#6e5a45;font-size:15px}

.compat-person{box-sizing:border-box;min-width:0;margin:0 0 12px;padding:16px 18px;border:1px solid #e8dac8;border-radius:18px;background:#fffdf9;color:#3a2a1c;text-align:left}
.compat-person--other{border-color:#edd5c8;background:#fff7f1}
.compat-person .compat-person__label,.compat-person legend{margin:0 0 8px;padding:0;color:#a64932;font-size:13px;font-weight:700;line-height:1.6}
.compat-person legend{padding:0 5px;margin:0}
.compat-person__identity{display:flex;align-items:center;gap:12px;min-width:0}
.compat-person__identity img{display:block;flex:0 0 44px;width:44px;height:44px;object-fit:contain}
.compat-person__identity>div{flex:1;min-width:0}
.compat-person .compat-person__name{margin:0;color:#3a2a1c;font-size:16px;font-weight:700;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.compat-person .compat-person__detail{margin:3px 0 0;color:#6e5a45;font-size:13px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.compat-person .compat-edit{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;padding:6px 0;font-size:13px;color:#6e5a45}
#compat-start-form{padding:0;border:0;background:none}
#compat-start-form .compat-person{margin-top:14px}
#compat-start-form .compat-person .field{margin-top:12px}
#compat-start-form .compat-person .field[hidden]{display:none}
#compat-start-form .btn{margin-top:6px}
#compat-year-input{margin-top:16px}
#compat-year-input #other-next{min-height:50px}
@media(max-width:359px){.compat-person{padding:14px}.compat-person__identity{gap:10px}}
