:root { --pico-font-size: 100%; }
.brand { text-decoration: none; }
form.inline { display: inline; margin: 0; }
button.small, a.small[role=button] { padding: .35rem .8rem; font-size: .9rem; margin: 0; width: auto; }
.muted { color: var(--pico-muted-color); }
.small { font-size: .875rem; }
.notice { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; background: #eef4ff; border: 1px solid #c9d8ff; }
.notice.success { background: #ecfdf3; border-color: #b7ebc9; }
.notice.error { background: #fff1f0; border-color: #ffccc7; }
.notice.warn { background: #fffbe6; border-color: #ffe58f; }
.auth-card { max-width: 440px; margin: 2rem auto; }
.band-big { font-size: 3.5rem; font-weight: 700; line-height: 1; margin: .25rem 0; }
.band-card { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.prompt-text { font-style: italic; }
.chips a { margin-right: .5rem; display: inline-block; margin-bottom: .5rem; }
.chips a.active { font-weight: 700; text-decoration: underline; }
.writer textarea { min-height: 22rem; font-family: Cambria, "Times New Roman", "Noto Serif", serif; line-height: 1.6; }
.writer-bar { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.late { color: #c0392b; }
.wc.low { color: #c0392b; }
.essay-view { white-space: pre-wrap; font-family: Cambria, "Times New Roman", "Noto Serif", serif; line-height: 1.6; }
table.history td, table.history th { font-size: .9rem; }
.chart { width: 100%; height: auto; }
.chart .grid line { stroke: #e5e7eb; }
.chart .grid text { fill: #6b7280; font-size: 11px; }
.chart path { fill: none; stroke: #1971c2; stroke-width: 2.5; }
.chart circle { fill: #1971c2; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid #c9d8ff; border-top-color: #1971c2; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.consent label { font-size: .9rem; margin-bottom: .75rem; }
.legal { max-width: 52rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.feedback h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.criteria .band-cell { font-weight: 700; font-size: 1.1rem; text-align: center; white-space: nowrap; }
.criteria tr.overall td { border-top: 2px solid var(--pico-muted-border-color); }
.corrections li { margin-bottom: .5rem; }
.corrections del { color: #c0392b; }
.corrections ins { color: #1e7b34; text-decoration: none; font-weight: 600; }
.tag { display: inline-block; font-size: .75rem; padding: 0 .4rem; border-radius: .3rem; background: #eef4ff; margin-right: .25rem; }
blockquote.improved { border-left-color: #1e7b34; }
.engines { margin: 1rem 0; }
.engine-card { display: flex; width: 100%; box-sizing: border-box; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--pico-muted-border-color); border-radius: .5rem; margin-bottom: .5rem; cursor: pointer; }
.engine-card input { margin-top: .3rem; }
.engine-card.disabled { opacity: .55; cursor: not-allowed; }
.engine-card:has(input:checked) { border-color: #1971c2; background: #f3f8ff; }
.price { font-size: .75rem; padding: .05rem .45rem; border-radius: .3rem; margin-left: .35rem; }
.price.free { background: #ecfdf3; color: #1e7b34; }
.price.paid { background: #fff4e5; color: #9a5b00; }
.engines label.engine-card { width: 100%; }  /* Pico sets fit-content on labels with a radio */
