/* ReadTomato brand guide: Montserrat only, navy on white or cream, green buttons,
   square corners, no bars, no dark backgrounds, left-aligned. */
:root {
  color-scheme: light;
  --navy: #273249; --green: #76BC43; --deep-green: #2D9A47; --red: #D71920; --deep-red: #B2282E;
  --slate: #474B5F; --silver: #C5CACD; --cream: #E9DFCD; --white: #ffffff; --page: #fbf9f4;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; border-radius: 0; }
body { margin: 0; background: var(--page); color: var(--navy); font: 400 16px/1.55 var(--font); padding-inline: 16px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-block: 20px 120px; display: grid; gap: 22px; }
h1 { margin: 0; font: 300 clamp(28px, 4vw, 40px)/1.15 var(--font); text-wrap: balance; }
h2 { margin: 0; font: 500 20px/1.25 var(--font); }
p { margin: 0; text-wrap: pretty; }
.cap { color: var(--slate); font-size: 14px; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.panel { background: var(--white); }
.panel > header { background: var(--cream); padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.panel > .body { padding: 20px; display: grid; gap: 18px; }
.help { display: inline-block; width: 22px; height: 22px; background: var(--green); color: var(--navy); font: 700 14px/22px var(--font); text-align: center; cursor: help; }
.tip { position: relative; }
.tip .t { display: none; position: absolute; left: 0; top: 30px; width: 300px; background: var(--white); border: 1px solid var(--silver); padding: 10px 12px; font-size: 14px; z-index: 5; }
.tip:hover .t, .tip:focus-within .t { display: block; }
label, .label { display: grid; gap: 4px; font-size: 14px; color: var(--slate); font-weight: 500; }
select, input[type=text], input[type=email], input[type=password], textarea { font: 400 16px var(--font); color: var(--navy); background: var(--white); border: 1px solid var(--silver); padding: 9px 12px; width: 100%; }
textarea { min-height: 320px; line-height: 1.65; resize: vertical; }
select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.form { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.form > * { flex: 1 1 200px; min-width: 0; }
.form > .go { flex: 0 0 auto; }
.btn { font: 600 14px var(--font); background: var(--green); color: var(--navy); border: 0; padding: 11px 22px; cursor: pointer; position: relative; overflow: hidden; }
.btn:hover:not([disabled]) { background: var(--deep-green); color: var(--white); }
.btn[disabled] { background: var(--silver); color: var(--slate); cursor: not-allowed; }
.btn.working { background: var(--green); color: var(--navy); cursor: progress; }
.btn .fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--deep-green); opacity: .35; transition: width .4s; }
.btn span { position: relative; }
.btn.text { background: none; color: var(--navy); text-decoration: underline; padding: 4px 6px; font-weight: 500; }
.btn.text:hover:not([disabled]) { background: none; color: var(--deep-green); }
.btn.text[aria-pressed="true"], .btn.text[aria-current="page"] { font-weight: 700; text-decoration: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.spread { justify-content: space-between; }
.past .r { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr .8fr .8fr auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--silver); font-size: 14px; }
.past .h { color: var(--slate); font-size: 12px; font-weight: 600; }
.past a { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .past .r { grid-template-columns: 1fr 1fr; } }
.stages { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stages li { display: flex; gap: 10px; align-items: baseline; color: var(--silver); font-weight: 500; }
.stages li.done { color: var(--slate); } .stages li.now { color: var(--navy); font-weight: 700; }
.stages li .m { width: 18px; font-weight: 700; color: var(--deep-green); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--slate); }
.cand { background: var(--cream); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 14px 24px; align-items: center; }
.cand.dim { color: var(--silver); } .cand.dim *:not(.btn) { color: var(--silver) !important; }
.cand .score { font: 700 30px/1 var(--font); font-variant-numeric: tabular-nums; }
.cand .parts { font-size: 13px; color: var(--slate); }
@media (max-width: 860px) { .cand { grid-template-columns: 1fr; } }
.hl { font: 700 18px/1.3 var(--font); }
.field-h { font-weight: 600; font-size: 14px; }
.metagrid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.metagrid .n { font-size: 12px; font-weight: 600; color: var(--slate); padding-top: 11px; }
.count { font-size: 12px; color: var(--slate); margin-top: 2px; }
@media (max-width: 640px) { .metagrid { grid-template-columns: 1fr; } .metagrid .n { padding-top: 0; } }
.drop { background: var(--cream); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.drop .zone { position: relative; width: 130px; height: 130px; background: var(--white); border: 1px dashed var(--slate); display: grid; align-content: center; padding: 10px; font-size: 12px; font-weight: 600; color: var(--deep-green); text-decoration: underline; cursor: pointer; }
.drop .zone.over { background: var(--cream); }
.drop .zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .info { flex: 1 1 320px; display: grid; gap: 6px; min-width: 0; }
.imgs { display: grid; gap: 12px; }
.img { background: var(--cream); padding: 16px 20px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 22px; align-items: start; }
.img.dim { color: var(--silver); } .img.dim .ph { opacity: .6; } .img.dim *:not(.btn) { color: var(--silver) !important; }
.ph { width: 200px; height: 200px; max-width: 100%; background: var(--silver); display: block; object-fit: cover; }
@media (max-width: 560px) { .img { grid-template-columns: 1fr; } }
.logo { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; background: transparent; }
.note { background: var(--cream); padding: 12px 16px; font-size: 14px; }
.note.err { background: var(--white); border: 2px solid var(--deep-red); color: var(--deep-red); font-weight: 600; }
.sample { background: var(--cream); padding: 10px 16px; font-size: 14px; font-weight: 600; }
.login { max-width: 420px; margin: 8vh auto 0; display: grid; gap: 16px; }
[hidden] { display: none !important; }
