/* Otoolia — Simulateur de circuits RC, RL, RLC (styles limités à .ci / .ci-*) */
.ci { --ci-accent: #2563eb; }
.ci-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .2em; }
.ci h2 { font-size: 1.05rem; margin: 0 0 10px; }
.ci h3 { font-size: .95rem; margin: 14px 0 6px; }
.ci-top { display: grid; gap: var(--ot-space); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .ci-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.ci-top > *, .ci-two > * { min-width: 0; }
.ci-two { display: grid; gap: var(--ot-space); grid-template-columns: minmax(0, 1fr); margin-top: var(--ot-space); }
@media (min-width: 1100px) { .ci-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; } }
.ci-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin-bottom: 10px; }
.ci-f { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--ot-text-soft); font-weight: 600; }
.ci-f .ot-select, .ci-f .ot-input { min-height: 34px; padding: 4px 8px; font-size: .92rem; width: auto; }
.ci-f > .ot-input { width: 110px; }
.ci-q { display: inline-flex; gap: 4px; }
.ci-q .ot-input { width: 96px; }
.ci-range { width: 100%; min-width: 150px; accent-color: var(--ci-accent); }
.ci-opts { align-items: center; font-size: .88rem; }
.ci-lab { font-weight: 600; color: var(--ot-text-soft); font-size: .82rem; }
.ci-chk { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; cursor: pointer; }
.ci-chk input { width: 16px; height: 16px; accent-color: var(--ci-accent); }
.ci-dot { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ci-sum { font-size: .9rem; margin: 8px 0 0; color: var(--ot-text-soft); }
.ci-sch svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--ot-border); border-radius: var(--ot-radius-s); }
.ci-plot svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.ci-plot[data-inv] { cursor: crosshair; }
.ci-plot--sq { max-width: 520px; }
.ci-scope { max-width: 620px; }
.ci-scope svg { width: 100%; height: auto; display: block; }
.ci-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 4px 0 10px; font-size: .86rem; }
.ci-legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ci-tab { border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; margin: 6px 0; }
.ci-tab th, .ci-tab td { border-bottom: 1px solid var(--ot-border); padding: 4px 10px; text-align: right; white-space: nowrap; }
.ci-tab th:first-child, .ci-tab td:first-child { text-align: left; }
.ci-curbar { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--ot-text-soft); flex-wrap: wrap; }
.ci-curbar button { min-height: 30px; padding: 3px 10px; font-size: .82rem; }
.ci-calc { font-size: .95rem; }
.ci-calc h3:first-child { margin-top: 0; }
.ci-m, .ci-calc { overflow-x: auto; overflow-y: hidden; }
.ci .katex { position: relative; }
.ci-exp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ci-exp > span { font-size: .85rem; color: var(--ot-text-soft); }
.ci-sm { min-height: 32px; padding: 4px 12px; font-size: .85rem; }
.ci-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ot-text); color: var(--ot-bg); padding: 8px 16px; border-radius: 10px; font-size: .88rem; z-index: 50; }
@media print { #ot-header, #ot-footer, .ot-skip, .ot-consent, .ci-exp, .ci-about, .ci-curbar button, #ci-form, #ci-opts, #ci-bopts { display: none !important; } }
#ci-cur { overflow-x: auto; }
.ci-f { min-width: 0; max-width: 100%; }
.ci-q { flex-wrap: wrap; }
@media (max-width: 600px) { .ci-q .ot-input { width: 84px; } .ci-f > .ot-input { width: 96px; } }
.ci-ex { color: var(--ot-text-soft); font-style: italic; font-size: .9rem; }
.ci-explain { margin: 4px 0 10px; padding: 8px 12px; border-left: 3px solid var(--ci-accent); background: var(--ot-surface-2); border-radius: 0 var(--ot-radius-s) var(--ot-radius-s) 0; font-size: .9rem; }
