/* The free tools (/tools/, templates/tools): a tool's own box inside the guides' frame (swap.css). */
.tl .tl-box { margin-top: 36px; padding: 24px 28px 28px; border-radius: 12px; background: var(--card); }
.tl .tl-needjs { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.tl-form { display: grid; gap: 16px; }
.tl-row { display: flex; flex-wrap: wrap; gap: 16px; }
.tl-f { display: grid; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.tl-grow { flex: 1 1 240px; }
.tl-f input, .tl-f select, .tl-f textarea { width: 100%; min-width: 0; padding: 11px 13px; border: 0; border-radius: 8px; background: var(--raise); color: var(--text); font: inherit; font-size: 16px; line-height: 24px; box-shadow: inset 0 0 0 1px var(--hair, rgba(255, 255, 255, .1)); }
.tl-f textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; resize: vertical; overflow-wrap: anywhere; }
.tl-f input:focus-visible, .tl-f select:focus-visible, .tl-f textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.tl-f input::placeholder, .tl-f textarea::placeholder { color: var(--faint); }
.tl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tl .tl-note { margin: 0; color: var(--faint); font-size: 14px; line-height: 20px; }
.tl .notice { margin: 0; }
.tl-out { display: grid; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair, rgba(255, 255, 255, .1)); }
.tl .tl-sum { margin: 0; color: var(--text); font-size: 17px; line-height: 26px; overflow-wrap: anywhere; }
.tl .tl-sum span { display: block; color: var(--body, #dcdce0); }
.tl-rows { display: grid; gap: 0; margin: 0; }
.tl-r { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--hair, rgba(255, 255, 255, .1)); }
.tl-r:first-child { border-top: 0; padding-top: 0; }
.tl-r:last-child { padding-bottom: 0; }
.tl-r dt { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 15px; font-weight: 600; line-height: 24px; }
.tl-r dd { display: grid; gap: 8px; margin: 0; min-width: 0; }
.tl .tl-r dd p { margin: 0; color: var(--body, #dcdce0); font-size: 15px; line-height: 24px; }
.tl-state { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 20px; }
.tl-r.is-good .tl-state { color: var(--ok); }
.tl-r.is-weak .tl-state { color: var(--warn); }
.tl-r.is-missing .tl-state { color: var(--bad); }
.tl-r code, .tl code { display: block; padding: 8px 10px; border-radius: 6px; background: var(--raise); color: var(--body, #dcdce0); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; white-space: pre-wrap; }
.tl .sx-body code { display: inline; padding: 1px 5px; white-space: normal; }
@media (max-width: 640px) {
  .tl .tl-box { margin-top: 28px; padding: 20px 16px 22px; }
  .tl-r { grid-template-columns: minmax(0, 1fr); }
  .tl-acts .btn { flex: 1 1 auto; text-align: center; }
}
