/* Lead Finder, the hosted inbox. One stylesheet for every page. */

/* Atkinson Hyperlegible Next (SIL Open Font License, fonts/OFL.txt), served
   from this site so no page talks to a font service. */
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f7f9;
  --sheet: #ffffff;
  --ink: #172033;
  --ink-2: #4a5568;
  --rule: #d9dee7;
  --marker: #ffe45c;
  --marker-2: #cfe3ff;
  --act: #2046c8;
  --act-ink: #ffffff;
  --good: #1d6b3a;
  --warn: #a4262c;
  --focus: #2046c8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1320;
    --sheet: #151b2b;
    --ink: #e6eaf2;
    --ink-2: #a9b2c3;
    --rule: #2a3346;
    --marker: rgba(255, 228, 92, 0.3);
    --marker-2: rgba(120, 160, 255, 0.24);
    --act: #8da8ff;
    --act-ink: #0e1320;
    --good: #6fcf8f;
    --warn: #ff8a8f;
    --focus: #8da8ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--act); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 22px 0 18px; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 0.95rem; min-width: 0; }
.who span { overflow-wrap: anywhere; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--act); text-decoration: underline; cursor: pointer; }
main { padding-bottom: 48px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sign-in and messages: one narrow, left-aligned column. */
.intro { max-width: 34rem; padding: 36px 0 12px; }
.intro h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 18px; }
.intro p { margin: 0 0 14px; color: var(--ink-2); max-width: 32rem; }
form.signin { display: grid; gap: 10px; margin: 26px 0 10px; max-width: 26rem; }
form.signin p { margin: 0; color: var(--ink); }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
label.field input, label.field select, label.field textarea { font-weight: 400; font-size: 1rem; }
::placeholder { color: var(--ink-2); opacity: 0.7; }
input[type="email"], input[type="number"], input[type="text"], input[type="url"], select, textarea {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input#code { font-size: 1.4rem; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
textarea { resize: vertical; min-height: 2.6em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--act); background: var(--act); color: var(--act-ink); font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.btn.quiet { background: transparent; color: var(--act); }
.btn.danger { background: var(--warn); border-color: var(--warn); color: var(--sheet); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.fine { font-size: 0.9rem; color: var(--ink-2); }
.notice { border-left: 4px solid var(--act); padding: 10px 14px; background: var(--sheet); margin: 16px 0; max-width: 40rem; }
.notice.error { border-left-color: var(--warn); }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }

/* Profile form. */
.profile h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 24px 0 0; }
.profile h2 { font-size: 1.35rem; margin: 30px 0 6px; letter-spacing: -0.01em; }
.profile .lead-in { color: var(--ink-2); margin: 0 0 12px; }
.groups { display: grid; gap: 16px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend { font-weight: 700; padding: 0; margin-bottom: 6px; float: left; margin-right: 12px; }
.group .group-toggle { font-size: 0.9rem; }
.group .choices { clear: both; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); }
.choice input:checked + span { background: var(--marker); border-color: transparent; font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* The inbox: a list of rows, each with a timing column. */
.summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; padding: 8px 0 14px; border-bottom: 2px solid var(--ink); }
.summary h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0; }
.summary p { margin: 2px 0 0; color: var(--ink-2); max-width: 36rem; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.controls select { width: auto; padding: 6px 10px; }
.tabs { display: flex; gap: 4px; margin: 14px 0 0; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px 9px; cursor: pointer; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-weight: 400; margin-left: 4px; }
ol.leads { list-style: none; margin: 0; padding: 0; }
.lead { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.timing { font-variant-numeric: tabular-nums; }
.timing .age { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.timing .bids { display: block; color: var(--ink-2); font-size: 0.92rem; margin-top: 4px; }
.lead h2 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; }
.lead h2 .mark { padding: 0 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead.tier-top h2 .mark { background: var(--marker); }
.lead.tier-worth h2 .mark { background: var(--marker-2); }
.meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.meta b { color: var(--ink); font-weight: 700; }
.tier { font-weight: 800; color: var(--ink); }
ul.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.93rem; }
ul.checks li::before { font-weight: 800; margin-right: 5px; }
ul.checks li.ok::before { content: "✓"; color: var(--good); }
ul.checks li.no::before { content: "✗"; color: var(--warn); }
ul.checks li.unclear::before { content: "?"; color: var(--ink-2); }
.lead details { margin-top: 8px; }
.lead details summary { cursor: pointer; color: var(--act); font-size: 0.93rem; }
.lead .body { white-space: pre-line; color: var(--ink-2); font-size: 0.95rem; margin: 8px 0 0; max-width: 44rem; overflow-wrap: anywhere; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.lead-actions .btn { min-height: 40px; padding: 0 14px; }
/* Only a top pick gets the solid button: the highlighter already says which. */
.lead:not(.tier-top) .lead-actions .btn.bid { background: transparent; color: var(--act); }
.lead-actions .btn.quiet { background: var(--sheet); border-color: var(--rule); color: var(--ink); }
.lead-actions select { width: auto; padding: 6px 10px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.reasons > span { font-size: 0.93rem; color: var(--ink-2); margin-right: 4px; }
.reasons button { border: 1px solid var(--rule); background: var(--sheet); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.track { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 10px; margin-top: 12px; max-width: 44rem; }
.track .note { grid-column: 1 / -1; }
.saved-state { font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }
.lead.gone { display: block; padding: 12px 0; color: var(--ink-2); }
.lead.gone .linkbtn { margin-left: 8px; }
.empty { padding: 28px 0; color: var(--ink-2); max-width: 36rem; }

/* "Lead Finder missed this": one panel above the tabs. */
.missed { border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); padding: 16px 18px; margin: 16px 0 4px; max-width: 46rem; }
.missed h2 { font-size: 1.2rem; margin: 0 0 6px; }
.missed-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0 4px; }
.missed-form .field { flex: 1 1 18rem; }
.missed .explained { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; }
.missed .explained h3 { font-size: 1.08rem; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; }
.missed .explained.tier-top h3 .mark { background: var(--marker); }
.missed .explained.tier-worth h3 .mark { background: var(--marker-2); }
.missed .where { font-weight: 700; margin: 10px 0 0; }
ul.parts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 0.93rem; }
.feedback { margin-top: 14px; display: grid; gap: 12px; }
.feedback fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feedback legend { font-weight: 700; padding: 0; margin-bottom: 6px; }

/* History: closed projects, kept without their details. */
.history .when { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.history .when small { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }

footer.site { border-top: 1px solid var(--rule); padding: 18px 0 40px; color: var(--ink-2); font-size: 0.9rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
footer.site .notice { color: var(--ink); font-size: 1rem; }

/* Privacy and terms. */
.doc { max-width: 40rem; padding: 20px 0 40px; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 8px; }
.doc h2 { font-size: 1.2rem; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--ink-2); margin-top: 0; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .timing { display: flex; gap: 10px; align-items: baseline; }
  .timing .age { font-size: 1.2rem; }
  .timing .bids { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lead.just-changed { animation: settle 0.6s ease-out; }
  @keyframes settle { from { background: var(--marker-2); } to { background: transparent; } }
}
/* The beta numbers (owner.html): a health line, then label and value pairs. */
.owner section { margin-top: 8px; }
.health { font-size: 1.15rem; font-weight: 800; margin: 4px 0 10px; max-width: 36rem; }
.health.good { color: var(--good); }
.health.bad { color: var(--warn); }
.figures { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.figures dt { color: var(--ink-2); }
.figures dd { margin: 0; font-variant-numeric: tabular-nums; }
.days-wrap { overflow-x: auto; margin: 6px 0 0; }
.days { border-collapse: collapse; min-width: 34rem; font-variant-numeric: tabular-nums; }
.days th, .days td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.days th:first-child { text-align: left; padding-left: 0; }
.days thead th { color: var(--ink-2); font-weight: 700; }
.owner .refresh { margin-top: 24px; }
@media (max-width: 34rem) {
  .figures { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .figures dd { margin-bottom: 10px; }
}

/* A highlighter stays a highlighter in the dark: bright, with dark ink. Last,
   so it wins over the rules above. */
@media (prefers-color-scheme: dark) {
  .lead.tier-top h2 .mark, .missed .explained.tier-top h3 .mark { background: #f5d94a; color: #172033; }
  .lead.tier-worth h2 .mark, .missed .explained.tier-worth h3 .mark { background: #b9d3ff; color: #172033; }
}
