.fc-ci {
    --fc-ci-navy: #102d53;
    --fc-ci-blue: #1669b4;
    --fc-ci-border: #d7e4f3;
    --fc-ci-soft: #eff6ff;
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--fc-ci-border);
    border-radius: 18px;
    background: #fff;
    color: #243b55;
    line-height: 1.45;
}
.fc-ci *, .fc-ci *::before, .fc-ci *::after { box-sizing: border-box; }
.fc-ci [hidden] { display: none !important; }
.fc-ci h2, .fc-ci h3 { margin: 0 0 8px; color: var(--fc-ci-navy); font-weight: 700; line-height: 1.15; }
.fc-ci h2 { font-size: clamp(24px, 4vw, 34px); }
.fc-ci h3 { font-size: 20px; }
.fc-ci p.fc-ci-intro { margin: 0 0 20px; }
.fc-ci-form, .fc-ci-chart {
    margin: 0 0 16px;
    padding: 15px;
    border: 1px solid var(--fc-ci-border);
    border-radius: 12px;
}
.fc-ci-form { background: var(--fc-ci-soft); }
.fc-ci-inputs, .fc-ci-summary { display: grid; gap: 12px; }
.fc-ci-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fc-ci label { display: block; font-size: 14px; font-weight: 650; color: var(--fc-ci-navy); }
.fc-ci input[type=number] {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #a6bad3;
    border-radius: 7px;
    background: #fff;
    color: var(--fc-ci-navy);
    font-size: 16px;
}
.fc-ci input[aria-invalid=true] { border-color: #a42e26; }
.fc-ci :focus-visible { outline: 2px solid var(--fc-ci-blue); outline-offset: 2px; }
.fc-ci-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.fc-ci button[type=reset] { padding: 6px 15px; border: 1px solid #aac3df; border-radius: 7px; background: #fff; color: var(--fc-ci-navy); font-weight: 650; cursor: pointer; }
.fc-ci button[type=reset]:hover { background: #dbeafe; }
.fc-ci p.fc-ci-status { margin: 0 0 12px; font-size: 14px; }
.fc-ci p.fc-ci-status:empty { display: none; }
.fc-ci-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.fc-ci-summary > div { min-width: 0; padding: 12px; border: 1px solid var(--fc-ci-border); border-radius: 11px; background: var(--fc-ci-soft); }
.fc-ci-summary > div:first-child { background: var(--fc-ci-navy); color: #fff; }
.fc-ci-summary span, .fc-ci-summary small { display: block; font-size: 13px; }
.fc-ci-summary small { font-size: 11px; }
.fc-ci-summary strong { display: block; margin: 2px 0; font-size: clamp(18px, 2.5vw, 27px); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fc-ci-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.fc-ci-legend span::before { display: inline-block; width: 16px; margin-right: 5px; border-top: 3px solid var(--fc-ci-blue); vertical-align: middle; content: ''; }
.fc-ci-legend span:last-child::before { border-top: 3px dashed #536a83; }
.fc-ci-chart svg { display: block; width: 100%; height: 206px; }
.fc-ci-chart text { fill: #405a76; font: 11px system-ui, sans-serif; }
.fc-ci-gridline { stroke: #dce6f1; }
.fc-ci-chart polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.fc-ci-line-balance { stroke: var(--fc-ci-blue); }
.fc-ci-line-contributed { stroke: #536a83; stroke-dasharray: 5 4; }
.fc-ci-table { max-height: 270px; overflow: auto; border: 1px solid var(--fc-ci-border); border-radius: 9px; }
.fc-ci table { margin: 0; width: 100%; border: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.fc-ci table :is(th, td) { padding: 8px; border: 0; border-bottom: 1px solid var(--fc-ci-border); text-align: right; white-space: nowrap; }
.fc-ci table :is(th, td):first-child { text-align: left; }
.fc-ci thead th { position: sticky; top: 0; background: #e7f1fe; color: var(--fc-ci-navy); }
.fc-ci tbody tr:nth-child(even) { background: #f7faff; }
.fc-ci p.fc-ci-note { margin: 14px 0 0; font-size: 13px; }
@media (max-width: 760px) {
    .fc-ci-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .fc-ci-inputs { grid-template-columns: 1fr; gap: 8px; }
    .fc-ci-table { max-height: 235px; }
    .fc-ci table { font-size: 12px; }
    .fc-ci table :is(th, td) { padding: 6px; }
    .fc-ci thead th { white-space: normal; }
}
