.hd-intro{margin-bottom:18px}.hd-lead{font-size:1.15rem;font-weight:650;margin:0 0 4px}.hd-muted{font-size:.87rem;color:var(--muted);margin:4px 0}.hd-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hd-form .field{margin:0}.hd-actions{grid-column:1/-1;margin-top:6px}.hd-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-bottom:16px}.hd-fact,.hd-reading{padding:14px;border:1px solid var(--border);border-radius:12px}.hd-fact span{display:block;font-size:.8rem;color:var(--muted)}.hd-fact strong{display:block;margin-top:4px}.hd-board{border:1px solid #e1ded7;border-radius:20px;background:#faf8f4;color:#262433;padding:clamp(12px,3vw,26px)}.hd-board-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px}.hd-board h3{margin:0;color:inherit}.hd-board .hd-muted{color:#575460}.hd-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,.48fr);gap:18px;align-items:start}.hd-graph svg{width:100%;height:auto;display:block;max-height:680px}.hd-graph [role=button]{cursor:pointer}.hd-graph [role=button]:focus-visible{outline:2px solid #3d5e8e;outline-offset:2px}.hd-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hd-column h4{font-size:.86rem;margin:0 0 8px;color:inherit}.hd-column button{width:100%;display:flex;align-items:center;gap:6px;justify-content:space-between;padding:5px 6px;margin-bottom:4px;border:1px solid #dedbe1;border-radius:6px;background:#fff;color:#292633;font:inherit;cursor:pointer}.hd-column button:hover{border-color:#625676}.hd-column button strong{font-variant-numeric:tabular-nums;font-size:.86rem}.hd-column button span{font-size:1rem}.hd-column .hd-design-text{color:#a53049}.hd-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.85rem;margin:12px 0}.hd-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.hd-personality{background:#2b2839}.hd-design{background:#b43b53}.hd-both{background:linear-gradient(90deg,#2b2839 50%,#b43b53 50%)}.hd-inspect{padding:14px;border-radius:12px;background:#eee9e3;min-height:70px}.hd-inspect p{margin:4px 0}.hd-readings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin-top:16px}.hd-reading h3{font-size:1rem;margin:0 0 6px}.hd-reading p{margin:0}.hd-method{margin-top:20px}.hd-method summary{cursor:pointer;font-weight:650}
@media(max-width:690px){.hd-form{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-layout{grid-template-columns:1fr}.hd-graph svg{max-height:580px}}
@media print{.hd-intro,.hd-form,#hd-status,#hd-export{display:none!important}.hd-board{break-inside:avoid}}
.hd-gates{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.hd-gates button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:1px}
.hd-gate-detail{padding:12px;border:1px solid var(--border);border-radius:10px}
.hd-gate-detail p{margin:4px 0}
#hd-margin-result li{margin-block:8px;overflow-wrap:anywhere}
