/* Free tools (/tools/), on top of the public site's look (static/front/site.css) */
.tl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.tl-crumbs a { font-weight: 600; }
.tl-crumbs i { font-size: .62rem; opacity: .6; }
.tl-grid-wrap { padding-block: 40px 20px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tl-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--body); transition: border-color .18s, box-shadow .18s; }
.tl-card:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--body); }
.tl-card h2, .tl-card h3 { font-size: 1.12rem; color: var(--ink); }
.tl-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--teal); display: grid; place-items: center; font-size: 1.1rem; }
.tl-go { margin-top: auto; font-weight: 800; color: var(--teal); font-size: .92rem; }
.tl-more { margin-top: 36px; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; justify-items: start; }
.tl-more p { max-width: 62ch; }
.tl-tool { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-block: 36px; }
.tl-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 18px; }
.tl-panel h2 { font-size: 1.15rem; }
.tl-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tl-field { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.tl-field small { font-weight: 500; color: var(--muted); }
.tl-field input, .tl-field select, .tl-bline input, .tl-bline select { font: inherit; font-weight: 500; font-size: 1rem; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
.tl-field input:focus, .tl-field select:focus, .tl-bline input:focus, .tl-bline select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.tl-rates { border-top: 1px solid var(--line); padding-top: 14px; }
.tl-rates summary { cursor: pointer; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.tl-rates summary small { font-weight: 500; color: var(--muted); }
.tl-result { position: sticky; top: 90px; background: var(--ink); color: #D7E3EA; border-radius: var(--r); padding: 24px; display: grid; gap: 8px; }
.tl-result small { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.tl-big { font-size: 3rem; line-height: 1; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.tl-mid { font-size: 2rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.tl-lines { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.tl-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 6px; }
.tl-lines b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-note { font-size: .88rem; color: #B8CAD4; margin: 4px 0 8px; }
.tl-result .btn { justify-content: center; white-space: normal; text-align: center; }
.tl-result, .tl-panel { min-width: 0; }
.tl-result .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.tl-budget { display: grid; gap: 0; }
.tl-bline { display: grid; grid-template-columns: minmax(0, 1fr) 130px 140px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-bline:first-child { border-top: 0; }
.tl-bline b { display: block; color: var(--ink); font-size: .95rem; }
.tl-bline small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.tl-money { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.tl-free { grid-column: span 2; text-align: right; font-weight: 800; color: #166534; }
.tl-names { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.tl-names button { width: 100%; text-align: left; font: inherit; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.tl-names button:hover { border-color: var(--mint); }
.tl-read { max-width: 820px; padding-block: 20px 40px; display: grid; gap: 14px; }
.tl-read h2 { font-size: 1.5rem; margin-top: 12px; }
.tl-read .q { border-bottom: 1px solid var(--line); padding: 12px 0; }
.tl-read .q summary { font-weight: 800; color: var(--ink); cursor: pointer; }
.tl-read .q p { margin-top: 8px; }
.tl-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.tl-steps a { font-weight: 700; }
.tl-chosen { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-weight: 800; color: var(--ink); }
.tl-links { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tl-others { padding-block: 20px 60px; }
.tl-others h2 { font-size: 1.4rem; margin-bottom: 16px; }
.tl-grid-small .tl-card { padding: 18px; }
.tl-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tl-doc-wrap { padding-block: 32px; }
.tl-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 40px; max-width: 860px; margin: 0 auto; color: #1F2937; display: grid; gap: 18px; font-size: .95rem; }
.tl-doc h3 { font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.tl-doc-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.tl-doc-head b { display: block; font-size: 1.3rem; color: var(--ink); }
.tl-doc-head span { color: var(--muted); font-weight: 700; }
.tl-doc-meta { display: grid; gap: 6px; text-align: right; font-size: .9rem; }
.tl-blank { display: inline-block; min-width: 140px; border-bottom: 1px solid #94A3B8; height: 1.1em; vertical-align: bottom; }
.tl-blank.short { min-width: 56px; } .tl-blank.wide { min-width: 220px; } .tl-blank.xwide { min-width: 320px; max-width: 100%; }
.tl-blank-line { border-bottom: 1px dashed #94A3B8; padding-bottom: 2px; }
.tl-doc-note { color: var(--muted); font-size: .88rem; }
.tl-doc-warn { background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 10px 14px; font-size: .88rem; font-weight: 600; }
.tl-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.tl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-checks li { display: flex; gap: 10px; align-items: flex-start; }
.tl-checks li::before { content: ""; flex: 0 0 16px; height: 16px; border: 1.5px solid var(--ink); border-radius: 4px; margin-top: 3px; }
.tl-checks li.deep::after { content: " \2605"; color: var(--teal); }
.tl-terms { margin: 0; padding-left: 22px; display: grid; gap: 12px; line-height: 1.9; }
.tl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; line-height: 2; }
.tl-table { width: 100%; border-collapse: collapse; }
.tl-table th, .tl-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tl-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tl-table td:last-child, .tl-table th:last-child { text-align: right; white-space: nowrap; }
.tl-total td { font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--ink); }
.tl-doc-sign { display: grid; gap: 16px; margin-top: 10px; line-height: 2.2; }
@media (max-width: 900px) {
  .tl-tool { grid-template-columns: minmax(0, 1fr); }
  .tl-result { position: static; }
  .tl-check-grid, .tl-two { grid-template-columns: minmax(0, 1fr); }
  .tl-doc { padding: 22px; }
}
@media (max-width: 560px) {
  .tl-bline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tl-bline > div:first-child { grid-column: 1 / -1; }
  .tl-blank.xwide { min-width: 200px; }
  .tl-doc { padding: 16px; overflow-x: auto; }
  .tl-table th, .tl-table td { padding: 8px 4px; font-size: .88rem; }
  .tl-table .tl-blank { min-width: 60px; } .tl-table .tl-blank.short { min-width: 34px; } .tl-table .tl-blank.wide { min-width: 90px; }
}
@media print {
  header.nav, footer, .tl-noprint, .mr-pop, .skip, #mrPop { display: none !important; }
  body { background: #fff; }
  .tl-doc-wrap { padding: 0; }
  .tl-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
}
