.tool-entry {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start;gap:clamp(24px,5vw,76px);padding-block:clamp(38px,6vw,84px);color:#172b48}
.tool-intro h1 {font-size:clamp(2.2rem,4vw,3.5rem);letter-spacing:-.045em;line-height:1.15;margin:0 0 18px}
.tool-intro>p {font-size:1.08rem;line-height:1.75;color:#52657c;max-width:32em}
.tool-intro>a {display:inline-block;margin-top:14px}
.tool-sample {margin-top:22px;color:#315a9d}.tool-sample summary {cursor:pointer;font-weight:600;padding-block:8px}
.tool-sample article {background:#f1f6fc;padding:16px 19px;border-left:3px solid #487cbb;color:#334862}
.tool-sample h2,.tool-history h2,.tool-dialog h2 {font-size:1.35rem}.tool-sample p {margin:8px 0}
.tool-form,.tool-dialog {padding:clamp(16px,3vw,30px);border:1px solid #d2dce9;border-radius:16px;background:#fff;box-shadow:0 10px 36px #1736600a}
.tool-modes {display:flex;gap:6px;border-bottom:1px solid #dbe3ee;margin:0 0 20px}
.tool-modes button {min-height:44px;background:transparent;border:0;border-bottom:3px solid transparent;color:#536780;padding:8px 14px;font-weight:600}
.tool-modes button[aria-pressed=true] {color:#2559b4;border-bottom-color:currentColor}
.tool-input-head,.tool-submit,.tool-history header,.tool-record {display:flex;align-items:center;justify-content:space-between;gap:12px}
.tool-input-head label {margin:0}.tool-file-label {position:relative;overflow:hidden;cursor:pointer;padding:9px;color:#2859a5}
.tool-file-label input {position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.tool-file-label:focus-within {outline:2px solid}
.tool-form textarea {width:100%;border-radius:8px;border:1px solid #c8d3e1;background:#fcfdff;padding:12px 15px;line-height:1.65;color:#20334a;resize:vertical}
.tool-hint,.tool-submit span,.tool-sample small {font-size:.85rem;line-height:1.55;color:#52657c}
.tool-submit {border-top:1px solid #e0e7ef;margin-top:17px;padding-top:15px}.tool-submit .btn {flex-shrink:0}
#tool-error {color:#97352a}.tool-form ul {list-style:none;padding:0;margin:0}.tool-form li {display:flex;justify-content:space-between;align-items:center;gap:8px;overflow-wrap:anywhere}.tool-form li button {border:0;background:transparent;padding:4px 12px;font-size:20px;color:#52657c}
.tool-dialog {width:min(420px,92vw);max-height:88vh;margin:auto;color:#243c56}.tool-dialog::backdrop {background:#14233988}.tool-dialog>div {display:flex;justify-content:flex-end;gap:8px}
.tool-history {margin-bottom:44px}.tool-history header {border-bottom:1px solid #cad5e3;padding-bottom:10px}.tool-record {padding:14px 2px;border-bottom:1px solid #e1e6ed;overflow-wrap:anywhere}.tool-record span {color:#536780;font-size:.9rem}.tool-entry [hidden],.tool-dialog [hidden] {display:none!important}
@media(max-width:767px){.tool-entry {grid-template-columns:1fr;gap:15px;padding-block:24px}.tool-intro h1 {font-size:2rem;margin-bottom:8px}.tool-intro>p {margin-bottom:0}.tool-sample {margin-top:4px}.tool-record,.tool-submit {flex-wrap:wrap}.tool-form textarea {font-size:16px}}
.hub-page{width:100%;padding:clamp(18px,4vw,46px);color:#243850}.hub-page>h1{font-size:1.8rem;font-weight:700;margin-bottom:20px}.hub-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:28px}.hub-tools section{background:white;border:1px solid #d0dbe6;border-radius:12px;padding:20px}.hub-tools h2,.hub-page .tool-history h2{font-size:1.15rem;font-weight:650}.hub-tools p{margin:8px 0 16px;color:#51647a}.hub-action,.hub-page a{color:#2256a1}.hub-page .tool-history{background:#fff;border:1px solid #d0dbe6;border-radius:12px;padding:20px}.hub-page .tool-record small{display:block;color:#52657c;margin-top:4px}.hub-page .tool-record:last-child{border:0}
@media(max-width:700px){.hub-tools{grid-template-columns:1fr}}
.tool-sample-passage {padding:10px 12px;margin:10px 0;border-left:3px solid #a0aebc;background:white;scroll-margin-top:6rem}
.tool-sample-passage.low_risk {border-color:#31966e}.tool-sample-passage.high_risk {border-color:#cc6045}.tool-sample-passage.uncertain {border-color:#b99830}
.tool-sample-passage:target,.tool-sample-passage:focus-visible {outline:2px solid #336ac2;outline-offset:2px}
.tool-sample-passage h3 {font-size:.87rem;line-height:1.4;margin:0}.tool-sample-passage p {margin:5px 0 0;line-height:1.55}
