.resource-page, .tool-page { max-width: 1050px; margin-inline: auto; }
.tool-page > h1 { margin: 1.4rem 0 .5rem; }
.tool-intro { max-width: 58ch; color: var(--ink); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.tool-grid, .example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.tool-grid { margin: 1.7rem 0 1rem; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.35rem,3vw,2.3rem); background: #2b3247; color: #fff; border-radius: 16px; text-decoration: none; }
.tool-card:nth-child(2) { background: #eaf5ed; color: #243a30; }
.tool-card h2 { font-size: clamp(1.9rem,3.7vw,3rem); margin: 1.8rem 0 .5rem; color: inherit; }
.tool-card p { color: inherit; margin: 0 0 1.5rem; max-width: 40ch; }
.tool-symbol { font: 400 1.65rem/1 var(--display); border: 1px solid currentColor; border-radius: 8px; padding: .5rem .7rem; }
.tool-open { margin-top: auto; display: flex; align-self: stretch; justify-content: space-between; border-top: 1px solid currentColor; padding-top: .8rem; font-weight: 650; }
.tool-card:hover .tool-open { text-decoration: underline; }
.prep-resource { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; margin-bottom: 3rem; }
.prep-resource h2, .prep-resource p { margin: 0; }
.prep-resource h2 { font-size: 1.5rem; }
.tool-workbench { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); gap: 1.4rem; margin: 1.6rem 0; align-items: start; }
.tool-form, .tool-review, .tool-guide { border-radius: 16px; padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--line); }
.tool-guide { background: #f7f8f7; }
.tool-guide h2, .tool-review h2 { margin-top: 0; font-size: 2rem; }
.tool-page label, .tool-guide dt { display: block; font-weight: 700; margin-bottom: .35rem; }
.tool-page textarea, .tool-page input { width: 100%; font: inherit; padding: .75rem; border: 1px solid #7d8981; border-radius: 6px; color: var(--ink); background: white; }
.tool-page textarea { resize: vertical; }
.tool-guide dd { margin: 0 0 .85rem; }
.tool-context { margin: 1rem 0; border-block: 1px solid var(--line); padding: .8rem 0; }
.tool-context label { margin-top: .9rem; }
.tool-page summary { cursor: pointer; font-weight: 650; }
.tool-count, .source-label, .score-rows h3 span { font: 400 .8rem/1.5 var(--mono); }
.tool-privacy { color: var(--muted); font-size: .88rem; }
.tool-form [role=status]:empty { margin: 0; }
.tool-score { font: 400 3.5rem/1 var(--display); color: var(--green); margin: .7rem 0; }
.tool-score small { font: 400 1.3rem var(--mono); }
.score-rows article, .tool-examples article { border-top: 1px solid var(--line); padding-block: 1rem; }
.score-rows h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.score-rows h3 span { color: var(--green); }
.tool-review h3, .tool-examples h3 { font: 700 1.12rem/1.35 var(--sans); }
.quoted-draft { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f8f7; padding: 1rem; border-left: 3px solid var(--green); }
.tool-review p { overflow-wrap: anywhere; }
.tool-examples { margin: 2.5rem 0; }
.tool-examples h3, .tool-examples p { margin: .4rem 0; }
.source-label { color: var(--muted); }
@media (max-width: 700px) {
  .tool-grid, .tool-workbench, .example-grid { grid-template-columns: 1fr; }
  .tool-card h2 { margin-top: 1rem; }
}
