/* RECATOOLS — Derivative / Integral / Limit shared look */
.dv-wrap { padding: 1.25rem; }
.dv-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.dv-field { display: flex; flex-direction: column; gap: .25rem; }
.dv-field.grow { flex: 1; min-width: 200px; }
.dv-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9b968d; }
.dv-field input { padding: .65rem .8rem; border: 1px solid #ebebeb; border-radius: 10px; font-size: 1.05rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dv-field input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.dv-var { width: 64px; } .dv-at { width: 90px; }
.dv-examples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.dv-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; }
.dv-ex:hover { background: #e0e7ff; }
.dv-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; }
.dv-result { margin-top: 1.5rem; }
.dv-main { font-size: 1.2rem; color: #1a1814; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; word-break: break-word; }
.dv-main strong { color: #4338ca; }
.dv-lbl { color: #6366f1; font-weight: 700; }
.dv-rules { margin-top: .75rem; font-size: .9rem; color: #6b6760; }
.dv-eval { margin-top: 1rem; padding: .75rem 1rem; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px; font-size: .95rem; }
.dv-eval strong { color: #4338ca; } .dv-eval-note { color: #9b968d; font-size: .82rem; }

/* Deep-prefill cross-links (Phase 8) — "continue with this function" */
.dv-next { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #e5e3df; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dv-next-l { font-size: .82rem; color: #6b6760; }
.dv-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; }
.dv-next-a:hover { background: #e0e7ff; }
