:root {
  color-scheme: dark;
  --bg: #101211;
  --panel: #181a18;
  --panel-raised: #1d201d;
  --line: #2d302b;
  --text: #f4f2ec;
  --muted: #b0b1a8;
  --gold: #edca87;
  --gold-dim: #332a1b;
  --green: #a7d3b5;
  --green-dim: #22382c;
  --blue: #a7c6d9;
  --blue-dim: #22313b;
  --font: Inter, "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
a:hover { color: #ffe0a1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { width: min(100% - 72px, 1296px); margin-inline: auto; }
.top { background: #151714; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 69px; display: flex; align-items: center; gap: 19px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); letter-spacing: .105em; font-weight: 820; line-height: .95; font-size: 14px; }
.brand small { display: block; color: var(--gold); font-size: 8px; margin-top: 5px; letter-spacing: .24em; }
.top-divider { width: 1px; height: 25px; background: var(--line); }
.workspace-name { color: var(--muted); font-size: 13px; font-weight: 610; }
.top-method { margin-left: auto; color: var(--muted); border: 0; background: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 3px; font-size: 13px; }
.top-method:hover { color: var(--text); }
.private { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; background: #23261f; border: 1px solid #35392f; color: #d6d6c4; border-radius: 20px; padding: 6px 11px; font-size: 12px; }
.private .icon, .top-method .icon { width: 15px; height: 15px; }
.hero { isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 201px; margin-top: 29px; border: 1px solid #453b29; border-radius: 15px; background: linear-gradient(105deg,#222019 8%,#1a1c17 63%,#2a2519); }
.hero-content { padding: 29px 35px; position: relative; z-index: 1; }
.hero-kicker { display: flex; gap: 8px; align-items: center; font-size: 10px; font-weight: 740; letter-spacing: .17em; color: var(--gold); }
.hero-kicker span { width: 17px; height: 1px; background: var(--gold); }
h1 { margin: 10px 0 8px; font-size: clamp(32px, 4.35vw, 60px); line-height: 1.04; letter-spacing: -.06em; font-weight: 760; }
h1 em { font-style: normal; color: var(--gold); }
.hero p, .catalog-head p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 52%; height: 100%; pointer-events: none; }
.summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin: 15px 0 31px; }
.stat { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 13px 15px; min-height: 77px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.stat-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: none; color: var(--gold); background: #2c271c; border-radius: 8px; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat strong { display: block; font-size: 23px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span:last-child { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 17px; }
h2 { margin: 0 0 4px; font-size: 27px; line-height: 1.12; letter-spacing: -.045em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-radius: 8px; border: 1px solid #3c3e36; background: var(--panel-raised); color: var(--text); font-weight: 670; font-size: 13px; white-space: nowrap; }
.button:hover, .icon-button:hover { background: #292c25; border-color: #666454; }
.button[aria-pressed="true"] { border-color: #826a3f; color: var(--gold); background: var(--gold-dim); }
.button .icon, .icon-button .icon { width: 16px; height: 16px; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #21180e; }
.button.gold:hover { background: #ffdc9b; }
.button:disabled, .icon-button:disabled { opacity: .5; cursor: default; }
.mini-count { background: #30332b; color: #d6d8ca; border-radius: 6px; min-width: 20px; text-align: center; padding: 2px 4px; font-size: 11px; }
.segments { display: flex; gap: 6px; margin-bottom: 13px; }
.segment { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: none; color: var(--muted); border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; min-height: 39px; font-size: 13px; font-weight: 630; }
.segment:hover { background: var(--panel); color: var(--text); }
.segment[aria-pressed="true"] { border-color: #645233; color: var(--gold); background: var(--gold-dim); }
.segment small { font-size: 11px; opacity: .82; }
.controls { display: grid; grid-template-columns: minmax(180px,1fr) auto auto auto; gap: 9px; }
.search, .select { position: relative; display: flex; min-width: 0; align-items: center; color: var(--muted); }
.search > .icon, .select > .icon:first-child { position: absolute; left: 11px; pointer-events: none; width: 17px; }
.search input, .select select { width: 100%; min-width: 0; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 8px 12px 8px 36px; font-size: 13px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.select select { appearance: none; padding-right: 29px; }
.select .chevron { position: absolute; right: 8px; width: 15px; pointer-events: none; }
.results-meta { min-height: 37px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.text-button { padding: 5px 1px; border: 0; background: transparent; color: var(--gold); font-size: 12px; font-weight: 660; }
.text-button:hover { text-decoration: underline; }
.list-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.list-head, .lead-row { display: grid; grid-template-columns: minmax(215px,1.4fr) minmax(166px,1fr) minmax(117px,.57fr) minmax(170px,1.05fr) 84px; column-gap: 11px; align-items: center; padding-inline: 15px; }
.list-head { min-height: 38px; background: #1d201b; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.results { padding: 0; margin: 0; list-style: none; }
.lead-row { border-top: 1px solid var(--line); min-height: 75px; padding-block: 10px; }
.lead-row:hover { background: #1c1e1a; }
.lead-identity { display: flex; align-items: center; min-width: 0; gap: 10px; }
.flag { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid #3a3e34; border-radius: 7px; color: #d6d8ca; background: #242720; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.lead-title { display: block; max-width: 100%; padding: 0; text-align: left; border: 0; background: transparent; color: var(--text); font-weight: 720; font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.lead-title:hover { color: var(--gold); }
.lead-location { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { display: inline-block; border-radius: 5px; padding: 4px 6px; font-size: 10px; line-height: 1.2; white-space: nowrap; font-weight: 670; }
.tag.silage { background: var(--green-dim); color: var(--green); }
.tag.agri { background: #34301e; color: #e2cf97; }
.tag.rdf { background: var(--blue-dim); color: var(--blue); }
.score { display: flex; align-items: center; gap: 6px; color: #e3d0a7; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 790; }
.score.high { color: var(--green); }
.score.review { color: var(--muted); }
.score small { font-weight: 550; font-size: 10px; }
.score-track { display: block; width: 55px; height: 3px; background: #393e35; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.score-track span { display: block; height: 100%; background: currentColor; }
.lead-contact { display: grid; gap: 4px; min-width: 0; }
.lead-contact a { font-size: 11px; text-decoration: none; overflow-wrap: anywhere; color: #dddccf; }
.lead-contact a:hover { text-decoration: underline; color: var(--gold); }
.lead-actions { display: flex; justify-content: flex-end; gap: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 27px; height: 35px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); padding: 0; }
.icon-button[aria-pressed="true"] { color: var(--gold); background: var(--gold-dim); }
.icon-button.arrow { color: var(--gold); }
.empty { color: var(--muted); text-align: center; padding: 40px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 20px 0 24px; margin-top: 32px; color: var(--muted); font-size: 11px; }
.footer strong { color: #e4ddce; font-weight: 650; }
body:has(.compare-bar:not([hidden])) .footer { padding-bottom: 108px; }
.compare-bar { position: fixed; z-index: 3; inset: auto 20px 17px; width: min(620px,calc(100% - 40px)); margin-inline: auto; display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 15px; border: 1px solid #655336; border-radius: 11px; background: #242219; box-shadow: 0 10px 35px #000a; }
.compare-bar div { flex: 1; min-width: 0; }
.compare-bar strong { display: block; font-size: 13px; }
.compare-bar span { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
dialog { width: min(610px,calc(100% - 28px)); max-height: min(88dvh,830px); margin: auto; padding: 0; border: 1px solid #57503d; border-radius: 14px; color: var(--text); background: #181a17; box-shadow: 0 22px 70px #000a; }
dialog.compare-dialog { width: min(940px,calc(100% - 28px)); }
dialog::backdrop { background: #080907bf; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 23px 24px 16px; border-bottom: 1px solid var(--line); }
.dialog-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.dialog-head .icon-button { flex: none; width: 39px; height: 39px; border-color: var(--line); }
.dialog-content { display: grid; gap: 18px; padding: 19px 24px 25px; }
.dialog-content h3 { margin: 0 0 7px; font-size: 14px; }
.dialog-content p { margin: 0; color: #d7d7cd; font-size: 13px; line-height: 1.55; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.detail-score { font-size: 16px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-grid, .source-list { display: grid; gap: 6px; }
.contact-grid a, .source-list a { display: flex; align-items: center; gap: 6px; font-size: 13px; overflow-wrap: anywhere; text-decoration: none; }
.contact-grid a:hover, .source-list a:hover { text-decoration: underline; }
.contact-grid .icon, .source-list .icon { width: 13px; height: 13px; }
.source-date { margin-top: 9px !important; font-size: 11px !important; color: var(--muted) !important; }
.score-breakdown { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; gap: 6px; }
.score-breakdown div { border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; }
.score-breakdown dt { color: var(--muted); font-size: 11px; }
.score-breakdown dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.compare-grid { display: grid; grid-template-columns: repeat(var(--columns), minmax(0,1fr)); gap: 10px; }
.compare-card { display: grid; align-content: start; gap: 13px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; }
.compare-card h3 { margin-bottom: 3px; }
.compare-card .lead-location { font-size: 11px; }
.method-list { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: #d7d7cd; font-size: 13px; line-height: 1.55; }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 40px); }
  .list-head, .lead-row { grid-template-columns: minmax(165px,1.2fr) minmax(130px,.86fr) minmax(87px,.5fr) minmax(130px,.92fr) 77px; padding-inline: 11px; column-gap: 7px; }
  .lead-actions { gap: 0; }
  .lead-actions .icon-button { width: 25px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 58px; gap: 10px; }
  .top-method span, .top-divider, .workspace-name { display: none; }
  .top-method { min-width: 38px; min-height: 38px; justify-content: center; }
  .top-method .icon { width: 19px; height: 19px; }
  .hero { margin-top: 16px; min-height: 164px; }
  .hero-content { padding: 22px 17px; }
  h1 { margin: 9px 0 7px; letter-spacing: -.05em; }
  .hero p { font-size: 13px; max-width: 435px; }
  .hero-art { width: 82%; opacity: .6; }
  .summary { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 10px 0 23px; gap: 8px; }
  .stat { padding: 9px; gap: 8px; min-height: 58px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat strong { font-size: 19px; }
  .stat span:last-child { font-size: 11px; }
  h2 { font-size: 24px; }
  .catalog-head { align-items: flex-start; margin-bottom: 13px; }
  .catalog-head p { font-size: 12px; }
  .catalog-head .button { min-height: 39px; padding: 7px 8px; }
  .catalog-head .button .icon { width: 14px; }
  .segments { flex-wrap: wrap; gap: 4px; }
  .segment { padding: 6px 8px; min-height: 36px; font-size: 12px; }
  .controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .search, .select.sort { grid-column: 1 / -1; }
  .search input, .select select { font-size: 16px; }
  .select select { padding-left: 30px; padding-right: 19px; }
  .select > .icon:first-child { left: 8px; width: 15px; }
  .select .chevron { right: 4px; width: 13px; }
  .list-panel { border: 0; overflow: visible; background: transparent; }
  .list-head { display: none; }
  .results { display: grid; gap: 8px; }
  .lead-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "identity score" "tags tags" "contact actions"; gap: 9px 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px; }
  .lead-identity { grid-area: identity; }
  .lead-title { font-size: 14px; }
  .lead-row .tags { grid-area: tags; }
  .lead-row .rating { grid-area: score; justify-self: end; }
  .lead-contact { grid-area: contact; }
  .lead-contact a { font-size: 12px; }
  .lead-actions { grid-area: actions; }
  .lead-actions .icon-button { width: 34px; height: 39px; }
  .footer { flex-wrap: wrap; gap: 8px; }
  .compare-bar { inset-inline: 9px; width: calc(100% - 18px); gap: 8px; }
  .compare-grid { grid-template-columns: 1fr; }
  .dialog-head { padding: 16px; }
  .dialog-content { padding: 15px 16px 20px; }
}

.demo-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.demo-tools>span{flex:1 1 240px;color:var(--muted);font-size:13px}#crm-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}#crm-form label{display:grid;gap:8px;color:var(--muted)}#crm-form .wide{grid-column:1/-1}#crm-form input,#crm-form select,#crm-form textarea{width:100%;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit}#crm-status{color:var(--green);font-size:13px}.footer{gap:20px}.footer span{line-height:1.7}@media(max-width:600px){#crm-form{grid-template-columns:1fr}.demo-tools .button{font-size:12px}.private{font-size:11px}.footer{flex-direction:column;align-items:flex-start}}
