:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #16324e;
  background: #d8edff;
  --white: #fff;
  --border: #9dbbd3;
  --blue: #165787;
  --muted: #405b73;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.wrap { width: min(63rem, calc(100% - 2rem)); margin-inline: auto; }
header { background: #eaf5ff; border-bottom: 1px solid #b4d1e8; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.25rem; }
header .brand { color: #16324e; font-size: 1.125rem; font-weight: 800; text-decoration: none; }
main { padding-block: clamp(1.75rem, 5vw, 4rem); }
h1, h2, p { margin: 0 0 .65rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; margin: 0; }
p { color: var(--muted); }
.panel { padding: clamp(1.15rem, 4vw, 2rem); background: var(--white); border: 1px solid #b6d1e6; border-radius: 1.15rem; box-shadow: 0 6px 22px #244f7712; }
#sign-in { max-width: 34rem; margin: 0 auto; }
form { display: grid; gap: .7rem; margin-top: 1.15rem; }
label { display: grid; gap: .4rem; font-weight: 700; color: #16324e; }
input, select, button { min-height: 2.75rem; padding: .6rem .8rem; border-radius: .55rem; font: inherit; }
input, select { width: 100%; min-width: 0; border: 1px solid var(--border); background: #fff; color: inherit; }
input::placeholder { color: #537089; }
select { appearance: none; padding-right: 2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%2316324e' stroke-width='2'/%3E%3C/svg%3E") right .55rem center / 1rem no-repeat; }
button { justify-self: start; border: 1px solid transparent; background: var(--blue); color: #fff; font-weight: 750; cursor: pointer; }
button:hover:not(:disabled) { background: #10456d; }
button.secondary { background: #eaf5ff; color: #17496d; border-color: #a5c5df; }
button.secondary:hover:not(:disabled) { background: #d1e9ff; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #1d679f; outline-offset: 3px; }
.key-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
#login > button { width: 100%; }
#notice, .feedback { margin: 0; }
#notice { color: #903424; }
#business-name { font-weight: 700; }
#lead-count { margin-bottom: 1.35rem; }
#leads { display: grid; gap: 1rem; }
.lead-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem; }
.lead-status { background: #d8edff; color: #17496d; border-radius: 2rem; padding: .22rem .72rem; font-size: .875rem; font-weight: 750; }
.details { display: flex; flex-wrap: wrap; gap: .7rem 2rem; margin-block: 1rem; }
.details dt { color: var(--muted); font-size: .875rem; }
.details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; }
.lead-editor { grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.5fr); align-items: end; border-top: 1px solid #cee1f2; padding-top: .9rem; }
.lead-editor .feedback { grid-column: 1 / -1; }
@media (max-width: 35rem) {
  .lead-editor { grid-template-columns: 1fr; }
  .lead-editor button { width: 100%; }
}

