/* RECATOOLS — Limit Calculator look (mirrors the derivative/integral family) */
.lm-wrap { padding: 1.25rem; }
.lm-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.lm-field { display: flex; flex-direction: column; gap: .25rem; }
.lm-field.grow { flex: 1; min-width: 200px; }
.lm-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9b968d; }
.lm-field input, .lm-field select { padding: .65rem .8rem; border: 1px solid #ebebeb; border-radius: 10px; font-size: 1.05rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; }
.lm-field input:focus, .lm-field select:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.lm-var { width: 64px; } .lm-point { width: 100px; }
.lm-examples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.lm-ex { padding: .35rem .75rem; font-size: .78rem; font-family: ui-monospace, Menlo, monospace; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; cursor: pointer; }
.lm-ex:hover { background: #e0e7ff; }
.lm-error { margin: 1rem 0 0; padding: .8rem 1rem; background: #fef2f2; border-left: 4px solid #ef4444; border-radius: 10px; color: #991b1b; font-size: .9rem; line-height: 1.5; }
.lm-result { margin-top: 1.5rem; }
.lm-main { font-size: 1.2rem; color: #1a1814; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.6; word-break: break-word; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; }
.lm-main strong { color: #4338ca; }
.lm-lim { color: #6366f1; font-weight: 700; }
.lm-sub { font-size: .82rem; color: #6b6760; align-self: flex-end; transform: translateY(.1rem); }
.lm-dne { color: #b45309 !important; }
.lm-note { margin-top: .75rem; font-size: .9rem; color: #6b6760; font-family: -apple-system, system-ui, sans-serif; line-height: 1.5; }

/* Deep-prefill cross-links (Phase 8) — "continue with this function" */
.lm-next { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #e5e3df; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.lm-next-l { font-size: .82rem; color: #6b6760; }
.lm-next-a { font-size: .85rem; font-weight: 600; color: #4338ca; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: .35rem .8rem; text-decoration: none; font-family: ui-monospace, Menlo, monospace; }
.lm-next-a:hover { background: #e0e7ff; }
