.ci-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.ci-pair { display: flex; gap: 8px; }
.ci-pair span { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ci-pair input, .ci-pair select { min-width: 0; }
.ci-pair i { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 600; }
.ci-res { margin-top: 10px; }
.ci-res .stat b { font-size: clamp(18px, 5vw, 24px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ci-main { background: color-mix(in srgb, var(--c) 12%, var(--card)) !important; border-color: var(--c) !important; }
.ci-chart { margin: 16px 0 0; }
.ci-chart svg { width: 100%; height: auto; display: block; }
.ci-chart svg text { fill: var(--muted); font-size: 12px; font-family: inherit; }
.ci-chart svg .grid { stroke: var(--line); }
.ci-chart figcaption { font-size: 13.5px; color: var(--muted); text-align: center; }
.ci-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.k0 { background: #94a3b8; } .k1 { background: var(--brand); } .k2 { background: var(--c); }
.ci-formula { margin-top: 16px; font-size: 14.5px; overflow-wrap: anywhere; }
.ci-formula p { margin: 4px 0; }
.ci-formula code { font-family: inherit; font-weight: 700; }
.ci-sched h3 { margin: 18px 0 8px; font-size: 18px; }
.ci-tw { overflow: auto; max-height: 440px; border: 1px solid var(--line); border-radius: 12px; }
.ci-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.ci-table th, .ci-table td { padding: 7px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ci-table th:first-child, .ci-table td:first-child { text-align: left; }
.ci-table thead th { position: sticky; top: 0; background: var(--bg); }
@media (max-width: 560px) { .ci-table { font-size: 12.5px; } .ci-table th, .ci-table td { padding: 6px; } }
@media (max-width: 560px) { .ci-chart svg text { font-size: 21px; } }
