.profiles-intro{max-width:900px;padding-bottom:1.5rem}
.profiles-intro h1{font-size:2.8rem;max-width:24ch}
.profiles-intro .lead{max-width:72ch}
.profiles-scope{font-size:.98rem;color:var(--muted);max-width:76ch}
.profiles-tool{border-top:1px solid var(--line);padding-top:1.5rem}
.profiles-tool .tab-row{margin-bottom:1.8rem}
.profiles-tool .tab-row button{font-size:1rem;padding:.8rem .3rem;margin-right:1.4rem}
.profiles-tool fieldset{border:0;padding:0;margin:0;min-width:0}
.profiles-tool legend{font-weight:650;font-size:1.15rem;margin-bottom:1rem;color:var(--navy)}
.profiles-controls{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:3rem;align-items:start}
.profiles-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.profiles-fields .wide{grid-column:1/-1}
.profiles-fields label,.profiles-layer label{display:block;font-weight:650;margin-bottom:.35rem}
.profiles-fields input,.profiles-fields select,.profiles-fields textarea,.profiles-layer select{width:100%;min-height:46px}
.profiles-fields textarea{min-height:105px}
.profiles-help{font-size:.94rem;color:var(--muted);margin:.4rem 0 0;max-width:72ch}
.profiles-context{margin-top:1.7rem;border-top:1px solid var(--line);padding-top:.5rem}
.profiles-context summary,.profiles-reference summary,.profiles-all>summary{cursor:pointer;min-height:46px;padding:.7rem .1rem;color:var(--blue);font-weight:650}
.profiles-context .profiles-fields{padding-block:1rem}
.profiles-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.3rem}
.profiles-layer{margin-bottom:1.4rem;max-width:650px}
.profiles-guidance{background:var(--page);padding:1.5rem;border-radius:10px}
.profiles-guidance h2{font-size:1.3rem;margin-top:0}
.profiles-guidance p{margin:.8rem 0}
.profiles-result{margin-top:2rem;border-top:1px solid var(--line);padding-top:1.5rem;scroll-margin-top:1rem}
.profiles-result h2{font-size:1.55rem;margin-bottom:.7rem}
.profiles-result:focus{outline:3px solid var(--blue);outline-offset:5px}
.profiles-result-status{font-weight:650;color:var(--navy)}
.profiles-result .note{margin-top:1rem}
.profiles-match-row{padding:1.1rem 0;border-top:1px solid var(--line)}
.profiles-match-row h3{font-size:1.2rem;margin:0 0 .5rem}
.profiles-match-row .literal{font-weight:650;margin:.5rem 0}
.profiles-match-row p{margin:.4rem 0}
.profiles-match-row .button{margin-top:.7rem}
.profiles-source-line{color:var(--muted);font-size:.93rem}
.profiles-doc{padding:1rem 0 1.5rem}
.profiles-doc h3{font-size:1.4rem;margin:.4rem 0 1rem}
.profiles-doc h4{font-size:1.13rem;margin:1.6rem 0 .6rem}
.profiles-literal-list{list-style:none;margin:0;padding:0}
.profiles-literal-list li{display:grid;grid-template-columns:2.3rem minmax(0,1fr);gap:.6rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.profiles-literal-list .source-number{font-variant-numeric:tabular-nums;color:var(--muted)}
.profiles-literal-list .entry-condition{display:block;font-size:.94rem;color:var(--muted);margin-top:.35rem}
.profiles-literal-list .source-page{display:block;font-size:.9rem;margin-top:.35rem}
.profiles-use-literal{border:0;background:transparent;color:var(--blue);font:inherit;text-decoration:underline;text-underline-offset:.2em;text-align:left;padding:.55rem 0;min-height:44px}
.profiles-experience{max-width:85ch}
.profiles-experience li{margin:1rem 0}
.profiles-effects{margin-top:1.5rem;background:var(--page);padding:1.2rem;border-radius:10px}
.profiles-effects h4{margin-top:0}
.profiles-effects article+article{border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}
.profiles-effects h5{font-size:1.05rem;margin:.5rem 0}
.profiles-all{margin-top:2.4rem;border-top:1px solid var(--line);padding-top:1rem}
.profiles-reference{border-bottom:1px solid var(--line)}
.profiles-reference summary{color:var(--navy);display:list-item;padding:.9rem .1rem}
.profiles-reference summary span{display:block;font-size:.91rem;font-weight:400;color:var(--muted);margin-left:1.1rem}
.profiles-rules{margin-top:3rem;max-width:94ch}
.profiles-rules details{border-bottom:1px solid var(--line)}
.profiles-rules summary{padding:.9rem 0;cursor:pointer;font-weight:650;color:var(--navy);min-height:46px}
.profiles-rules p{margin:.7rem 0 1rem}
.profiles-rules blockquote{margin:1rem 0;padding:1.1rem;background:var(--page)}
.profiles-pending{margin:.8rem 0;padding-left:1.4rem}
.profiles-pending li{margin:.5rem 0}
.profiles-footnote{font-size:.94rem;color:var(--muted);max-width:85ch}
.profiles-hint{border:1px solid var(--line);padding:1rem;border-radius:8px}
.profiles-tool [aria-invalid=true]{border-color:var(--danger)}
.profiles-tool .field-error{color:var(--danger);font-weight:600}
.profiles-tool .button:disabled{cursor:wait}
@media(max-width:800px){.profiles-controls{grid-template-columns:1fr;gap:1.5rem}.profiles-intro h1{font-size:2.35rem}.profiles-guidance{padding:1.15rem}}
@media(max-width:500px){.profiles-fields{grid-template-columns:1fr}.profiles-tool .tab-row button{flex:1;min-width:100px;margin-right:.5rem}.profiles-actions .button{width:100%}.profiles-intro h1{font-size:2.1rem}.profiles-literal-list li{grid-template-columns:1.7rem minmax(0,1fr)}.profiles-result h2{font-size:1.4rem}}
@media print{.profiles-tool,.profiles-actions,.profiles-use-literal{display:none!important}.profiles-all>summary{display:none}.profiles-reference{break-inside:avoid}.profiles-doc{max-width:none}}
