/* RECATOOLS — Integral Calculator look (mirrors the derivative/limit family) */
.iv-wrap { padding: 1.25rem; }
.iv-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.iv-field { display: flex; flex-direction: column; gap: .25rem; }
.iv-field.grow { flex: 1; min-width: 200px; }
.iv-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9b968d; }
.iv-field input { padding: .65rem .8rem; border: 1px solid #ebebeb; border-radius: 10px; font-size: 1.05rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.iv-field input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.iv-var { width: 64px; } .iv-bound { width: 96px; }
.iv-examples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.iv-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; }
.iv-ex:hover { background: #e0e7ff; }
.iv-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; }
.iv-result { margin-top: 1.5rem; }
.iv-main { font-size: 1.2rem; color: #1a1814; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; word-break: break-word; }
.iv-main strong { color: #4338ca; }
.iv-lbl { color: #6366f1; font-weight: 700; font-size: 1.4rem; }
.iv-noanti { font-family: inherit; font-size: .95rem; color: #6b6760; line-height: 1.55; }
.iv-def { margin-top: 1.1rem; padding: .85rem 1rem; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 10px; }
.iv-def-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6366f1; }
.iv-def-val { margin-top: .35rem; font-size: 1.15rem; font-family: ui-monospace, Menlo, monospace; color: #1a1814; }
.iv-def-val strong { color: #4338ca; }
.iv-def-note { font-family: -apple-system, system-ui, sans-serif; font-size: .8rem; color: #9b968d; }
.iv-warn { color: #92400e; font-family: -apple-system, system-ui, sans-serif; font-size: .9rem; }

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