.tool-main { padding-bottom: 24px; }
.tool-intro { max-width: 910px; padding-block: clamp(32px, 6vw, 68px) 30px; }
.tool-intro .eyebrow { color: var(--accent-dark); margin-bottom: 12px; }
.tool-intro h1 { font-size: clamp(43px, 7.3vw, 94px); }
.tool-intro > p:last-child { color: var(--muted); max-width: 620px; margin-top: 17px; font-size: clamp(16px, 2vw, 20px); }
.tool-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { min-width: 0; padding: clamp(17px, 4vw, 34px); border: 1px solid var(--line); background: var(--white); }
.tool-card h2 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 18px; }
.tool-card label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 730; }
.tool-card :is(input, select, textarea) { width: 100%; display: block; margin: 0 0 16px; padding: 10px; border: 1px solid #8e829b; border-radius: 0; color: var(--ink); background: var(--white); }
.tool-card .button-primary { background: var(--ink); color: var(--white); }
.tool-card .button-primary:hover { background: var(--accent); }
.tool-card .button-primary:disabled, .tool-card .text-link:disabled { cursor: wait; opacity: .55; }
.tool-hint { color: var(--muted); font-size: 13px; margin-block: 7px 13px; }
.estimate-result { background: #e6dcf6; border-color: #dbcfed; }
.estimate-result output { display: block; margin-top: 10px; font-size: clamp(29px, 5.7vw, 65px); font-weight: 780; line-height: 1; letter-spacing: -.065em; }
#estimate-detail { margin-top: 9px; font-weight: 650; }
.estimate-draft { margin-top: 17px; padding-top: 15px; border-top: 1px solid #bcb0d2; }
.estimate-draft textarea { resize: vertical; }
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 17px 0 0; border-top: 1px solid var(--line); }
.tool-cta p { font-size: 17px; font-weight: 670; }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-error { color: #9e1741; margin-top: 12px; font-size: 14px; }
.reconcile-result { margin-top: 15px; }
.reconcile-result .section-heading { margin-bottom: 14px; }
.reconcile-result .section-heading h2 { margin-bottom: 6px; }
.count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.count-card { min-width: 0; padding: 11px 12px; background: #eee8f5; font-size: 13px; }
.count-card strong { display: block; font-size: 26px; font-weight: 790; letter-spacing: -.07em; }
.results-scroll { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.result-table th, .result-table td { padding: 9px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
.result-table th { white-space: nowrap; }
.result-table td:first-child { font-weight: 720; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 730px) {
  .tool-layout, .file-grid { grid-template-columns: 1fr; gap: 10px; }
  .count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-intro { padding-bottom: 20px; }
  .result-table th, .result-table td { padding: 8px 5px; }
}

.lead-dashboard, .lead-register { margin-bottom: 15px; }
.lead-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 12px; }
.lead-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 21px; }
.lead-stats > div { padding: 12px; background: #eee8f5; }
.lead-stats > .lead-stat-waiting { background: #f2e4d5; }
.lead-stats dt { font-size: 13px; }
.lead-stats dd { margin: 4px 0 0; font-size: clamp(22px, 4vw, 38px); line-height: 1; font-weight: 770; }
.lead-channels h3 { font-size: 20px; margin-bottom: 8px; }
.lead-channels ul { list-style: none; margin: 0; padding: 0; }
.lead-channels li { display: grid; grid-template-columns: minmax(105px, .6fr) minmax(0, 2fr) minmax(16px, auto); gap: 8px 12px; align-items: center; padding: 5px 0; font-size: 14px; }
.lead-channel-track { display: block; height: 8px; background: #eee8f5; }
.lead-channel-track > span { display: block; height: 100%; background: var(--accent); }
.lead-register-header { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; margin-bottom: 9px; }
.lead-register-header h2 { margin-bottom: 0; }
.tool-card .lead-checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; }
.tool-card .lead-checkbox input { display: inline-block; width: auto; margin: 0; accent-color: var(--accent); }
.lead-status { white-space: nowrap; }
.lead-status-new { color: #7a3827; font-weight: 720; }
.lead-status-won { color: #355222; font-weight: 720; }
@media (max-width: 420px) {
  .lead-stats > div { padding: 8px; }
  .lead-stats dt { font-size: 12px; }
}

.catalog-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.catalog-count { margin-bottom: 8px; }
.catalog-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.catalog-items li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) auto; align-items: center; gap: 10px 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.catalog-items h3 { font-size: 20px; letter-spacing: -.04em; }
.catalog-items p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.catalog-price { font-size: 14px; font-weight: 710; white-space: nowrap; }
#catalog-empty { padding-block: 13px 3px; }
#catalog-empty button { margin-top: 7px; }
.rental-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 730px) {
  .catalog-filters { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .catalog-filters > div:first-child { grid-column: 1 / -1; }
  .catalog-items li { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .catalog-items li > div { grid-column: 1 / -1; }
}
