:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, sans-serif;
  color: #192c28;
  background: #f4f6f4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #174d3e; text-underline-offset: 3px; }
.top { background: #14362c; color: #fff; }
.bar, .shell { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.bar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: #fff5d9; font: 1.5rem Georgia, serif; text-decoration: none; }
.shell { padding-block: 2rem 4rem; }
.narrow { max-width: 31rem; margin-top: clamp(.5rem, 8vh, 4rem); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1.25rem; font-size: clamp(1.65rem, 4vw, 2.15rem); line-height: 1.2; }
h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.panel { background: #fff; border: 1px solid #d6dfda; border-radius: .65rem; }
.login, .pad { padding: clamp(1.15rem, 4vw, 1.75rem); }
.fields { display: grid; gap: 1rem; }
.filters { display: grid; grid-template-columns: 1.3fr 1.15fr .8fr .85fr auto; align-items: end; gap: .75rem; margin-bottom: 1.25rem; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
input, select, textarea, button { min-height: 2.75rem; font: inherit; border-radius: .4rem; }
input, select, textarea { width: 100%; padding: .55rem .7rem; border: 1px solid #9caea6; background: #fff; color: #192c28; font-weight: 400; }
textarea { resize: vertical; }
button { padding: .5rem 1rem; cursor: pointer; border: 1px solid #184535; background: #184535; color: #fff; font-weight: 650; }
button:hover { background: #245947; }
.quiet { background: transparent; border-color: #91a99e; font-size: .9rem; }
:focus-visible { outline: 3px solid #ac6517; outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1.4fr 1.15fr .95fr .8fr; align-items: center; gap: .75rem; padding: .9rem 1.1rem; overflow-wrap: anywhere; }
.row + .row { border-top: 1px solid #e2e9e5; }
.table-head { background: #e8efeb; border-radius: .65rem .65rem 0 0; font-weight: 650; font-size: .9rem; }
.lead-name { font-weight: 700; }
small { display: block; color: #4d645b; font-size: .88rem; }
.date { font-size: .9rem; }
.status { display: inline-block; font-size: .875rem; padding: .19rem .62rem; border-radius: 1rem; background: #ecefed; }
.status.new { background: #f8e9c9; color: #69480a; }
.status.contacted { background: #e1eee7; color: #184535; }
.empty, .pages { padding: 1rem 1.1rem; margin: 0; }
.pages { display: flex; justify-content: center; gap: 1rem; }
.back { display: inline-block; margin-bottom: .85rem; }
.detail { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 1rem; }
dl { margin: 0; display: grid; grid-template-columns: minmax(6rem, .75fr) 1fr; gap: .65rem 1rem; }
dt { font-weight: 620; }
dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { background: #e1eee7; border-radius: .35rem; padding: .65rem .8rem; }
.error { background: #fae7e5; color: #85291f; }
@media (max-width: 49rem) {
  .filters { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .row { grid-template-columns: 1fr 1fr; }
  .table-head { display: none; }
}
