/* ======================================================================
 * 图片格式转换 · 专用样式
 * 改版：左右双栏 + 6 步外露设置卡
 * 前缀：.ifc-   （与全站 tool-detail.css 配合）
 * ====================================================================== */

[hidden] { display: none !important; }

/* ---------- 工作区外壳 ---------- */
.ifc-hero {
    margin: 18px 0 26px;
    padding: 22px;
    background: linear-gradient(135deg, #eef4ff 0%, #f8faff 52%, #eefaf7 100%);
    border: 1px solid #e3ebf7;
    border-radius: 18px;
}

.ifc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ifc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.ifc-logo {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(64, 108, 190, .16);
}

.ifc-title { font-size: 19px; font-weight: 800; color: #1f2b45; letter-spacing: .3px; }
.ifc-tagline { font-size: 12.5px; color: #6b7a96; margin-top: 2px; }

.ifc-privacy {
    font-size: 12px;
    color: #2f7d55;
    background: #e8f7ef;
    border: 1px solid #c6ead8;
    border-radius: 999px;
    padding: 5px 11px;
    white-space: nowrap;
}

/* ---------- 上传区 ---------- */
.ifc-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border: 2px dashed #c9d8ee;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.ifc-drop:hover,
.ifc-drop.is-drag { border-color: #4b7bec; background: #f5f9ff; }
.ifc-drop.is-drag { transform: scale(1.004); }

.ifc-drop-icon { font-size: 36px; line-height: 1; }
.ifc-drop-title { font-size: 15.5px; font-weight: 700; color: #22304d; }
.ifc-drop-desc { font-size: 12.5px; color: #7b89a3; line-height: 1.7; max-width: 640px; }

.ifc-drop-btn {
    margin-top: 4px;
    padding: 9px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4b7bec, #3867d6);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(75, 123, 236, .3);
    font-family: inherit;
}
.ifc-drop-btn:hover { filter: brightness(1.06); }

/* ---------- 工作区 ---------- */
.ifc-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ifc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.ifc-main,
.ifc-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* ---------- 通用卡片 ---------- */
.ifc-card {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 6px 20px rgba(38, 66, 122, .06);
    min-width: 0;
}

.ifc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #24324f;
    margin-bottom: 8px;
}
.ifc-card-head b { font-weight: 800; }
.ifc-card-info {
    color: #6b7a96;
    font-variant-numeric: tabular-nums;
    text-align: right;
    word-break: break-all;
    font-size: 12px;
}

.ifc-cmp-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.ifc-cmp-info > .ifc-card-info {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ifc-cmp-arrow {
    color: #c5d1e3;
    font-weight: 800;
    font-size: 13px;
}

/* ---------- 对比预览 ---------- */
.ifc-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.ifc-cmp-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 10px;
    border-radius: 10px;
    background: repeating-conic-gradient(#f4f6fa 0% 25%, #eaeef5 0% 50%) 50% / 18px 18px;
    overflow: hidden;
}
.ifc-cmp-box canvas,
.ifc-cmp-box img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    box-shadow: 0 6px 18px rgba(28, 48, 92, .18);
    border-radius: 2px;
}

.ifc-cmp-empty {
    font-size: 12.5px;
    color: #98a4bb;
    text-align: center;
    line-height: 1.8;
    padding: 0 12px;
}

/* ---------- 主操作 ---------- */
.ifc-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr);
    gap: 10px;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(38, 66, 122, .06);
}

.ifc-btn {
    padding: 11px 14px;
    border: 1px solid #dfe6f2;
    border-radius: 10px;
    background: #fbfcfe;
    color: #34445f;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .16s;
    font-family: inherit;
}
.ifc-btn:hover { border-color: #9db8e8; background: #f4f8ff; }
.ifc-btn.primary {
    border: 0;
    background: linear-gradient(135deg, #4b7bec, #3867d6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(75, 123, 236, .3);
}
.ifc-btn.primary:hover { filter: brightness(1.06); }
.ifc-btn.ghost { background: #fff; color: #5b6a86; }
.ifc-btn-block { width: 100%; }
.ifc-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 汇总 ---------- */
.ifc-summary { padding: 12px 14px; }
.ifc-sum-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 12.5px;
    color: #5b6a86;
    margin-bottom: 10px;
}
.ifc-sum-stats b { color: #24324f; font-size: 15px; font-variant-numeric: tabular-nums; }
.ifc-sum-stats .ifc-sum-ok b { color: #2f7d55; }
.ifc-sum-stats .ifc-sum-cut b { color: #2b62d9; }

.ifc-bars { display: flex; flex-direction: column; gap: 6px; }
.ifc-bar { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #7b89a3; }
.ifc-bar > span { flex: none; width: 100px; text-align: right; font-variant-numeric: tabular-nums; }
.ifc-bar-track {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: #eef2f9;
    overflow: hidden;
}
.ifc-bar-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #9db8e8, #6f8fd8);
    transition: width .3s;
}
.ifc-bar.is-new .ifc-bar-track i { background: linear-gradient(90deg, #57c896, #2f9e6f); }

/* ---------- 文件队列 ---------- */
.ifc-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #5b6a86;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8eef8;
    margin-bottom: 10px;
}
.ifc-list-head b { color: #2b62d9; font-variant-numeric: tabular-nums; }
.ifc-list-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.ifc-mini-btn {
    padding: 4px 10px;
    border: 1px solid #dfe6f2;
    background: #fbfcfe;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #5b6a86;
    cursor: pointer;
    transition: all .16s;
}
.ifc-mini-btn:hover { border-color: #9db8e8; background: #f4f8ff; color: #2b62d9; }

.ifc-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-bottom: 4px;
}

.ifc-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1.15fr) 16px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #eaf0f9;
    border-radius: 11px;
    background: #fdfefe;
    cursor: pointer;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.ifc-row:hover { border-color: #b9cdea; background: #fafcff; }
.ifc-row.active {
    border-color: #4b7bec;
    background: #f6faff;
    box-shadow: 0 0 0 3px rgba(75, 123, 236, .12);
}
.ifc-row.is-fail { border-color: #f3c9c9; background: #fffafa; }

.ifc-row-thumb {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    border: 1px solid #e2eaf7;
    background: repeating-conic-gradient(#f2f5fa 0% 25%, #ffffff 0% 50%) 50% / 10px 10px;
    object-fit: cover;
    display: block;
}

.ifc-row-name { min-width: 0; }
.ifc-row-name b {
    display: block;
    font-size: 12.5px;
    color: #24324f;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ifc-row-name span {
    display: block;
    font-size: 11px;
    color: #8b98b1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.ifc-row-arrow { color: #b9c6dc; text-align: center; font-size: 13px; }

.ifc-row-out { min-width: 0; }
.ifc-row-out b {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #2f7d55;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
}
.ifc-row-out span {
    display: block;
    font-size: 11px;
    color: #8b98b1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}
.ifc-row-out.is-idle b { color: #a6b2c7; font-weight: 700; }
.ifc-row-out.is-fail b { color: #d94a4a; }

.ifc-save {
    flex: none;
    padding: 0 6px;
    border-radius: 6px;
    background: #e9f8f0;
    color: #2f7d55;
    font-size: 10.5px;
    font-weight: 800;
    font-style: normal;
    line-height: 17px;
}
.ifc-save.up { background: #fff3e2; color: #b0761a; }

.ifc-row-actions { display: flex; gap: 6px; align-items: center; }

.ifc-icon-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fbfcfe;
    color: #5b6a86;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all .16s;
    font-family: inherit;
}
.ifc-icon-btn:hover { border-color: #9db8e8; background: #f4f8ff; color: #2b62d9; }
.ifc-icon-btn.del:hover { border-color: #eaa; background: #fff5f5; color: #d94a4a; }
.ifc-icon-btn[disabled] { opacity: .4; cursor: not-allowed; }

.ifc-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    background: #eef2f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}
.ifc-tag.f-png { background: #e8f0ff; color: #3b6fd4; }
.ifc-tag.f-jpg { background: #fff1e4; color: #b9691a; }
.ifc-tag.f-webp { background: #e9f6ee; color: #2f8a5c; }
.ifc-tag.f-avif { background: #f2ecff; color: #6d4bc4; }
.ifc-tag.f-gif { background: #fdeaf4; color: #b3457f; }
.ifc-tag.f-bmp { background: #eef1f6; color: #5c6b82; }

/* ================================================================
   右侧设置面板：6 个步骤卡
   ================================================================ */
.ifc-step { padding: 14px 14px 12px; }

.ifc-step-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #1f2b45;
}

.ifc-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, #4b7bec, #3867d6);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(75, 123, 236, .32);
}

.ifc-step-head b { font-weight: 800; letter-spacing: .2px; }

.ifc-step-body { display: flex; flex-direction: column; gap: 10px; }

/* ---------- ① 目标格式 ---------- */
.ifc-fmts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ifc-fmt-btn {
    padding: 9px 8px 8px;
    border: 1px solid #e0e8f4;
    background: #fbfcfe;
    border-radius: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: all .16s;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.ifc-fmt-btn b { font-size: 14.5px; font-weight: 800; color: #24324f; letter-spacing: .5px; }
.ifc-fmt-btn i {
    font-size: 11px;
    font-style: normal;
    color: #98a4bb;
    font-weight: 500;
    line-height: 1.4;
}

.ifc-fmt-btn:hover { border-color: #9db8e8; background: #f4f8ff; }
.ifc-fmt-btn:hover b { color: #2b62d9; }

.ifc-fmt-btn.active {
    border-color: #4b7bec;
    background: linear-gradient(135deg, #eff3ff, #f5faff);
    box-shadow: 0 0 0 2px rgba(75, 123, 236, .16);
}
.ifc-fmt-btn.active b { color: #2b62d9; }
.ifc-fmt-btn.active i { color: #5b6a86; }

.ifc-fmt-btn.no {
    opacity: .55;
    cursor: not-allowed;
    background: repeating-linear-gradient(135deg, #f5f7fb 0 6px, #eceff5 6px 12px);
}
.ifc-fmt-btn.no b { text-decoration: line-through; color: #6b7a96; }
.ifc-fmt-btn.no.active { opacity: 1; background: #fbfcfe; }
.ifc-fmt-btn.no.active b { text-decoration: none; }

.ifc-fmt-note {
    font-size: 11.5px;
    color: #6b7a96;
    line-height: 1.6;
    padding: 6px 10px;
    background: #f5f8fd;
    border-radius: 8px;
    border-left: 3px solid #c9d8ee;
}
.ifc-fmt-note.is-warn { color: #9a6212; border-left-color: #e9b95a; background: #fff8ea; }

/* ---------- ② ③ 行卡（标签 + 滑杆 + 值） ---------- */
.ifc-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 60px;
    gap: 10px;
    align-items: center;
}

.ifc-row .ifc-label,
.ifc-label {
    font-size: 12px;
    font-weight: 600;
    color: #5b6a86;
}

.ifc-slider,
.ifc-row input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: #e3ebf7;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.ifc-slider::-webkit-slider-thumb,
.ifc-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4b7bec;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(75, 123, 236, .45);
    cursor: pointer;
}
.ifc-slider::-moz-range-thumb,
.ifc-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4b7bec;
    border: 2px solid #fff;
    cursor: pointer;
}

.ifc-row > b {
    font-size: 12px;
    font-weight: 800;
    color: #2b62d9;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 画质预设 */
.ifc-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.ifc-preset {
    padding: 6px 4px;
    border: 1px solid #e0e8f4;
    background: #fbfcfe;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #5b6a86;
    cursor: pointer;
    transition: all .16s;
    text-align: center;
}
.ifc-preset:hover { border-color: #9db8e8; background: #f4f8ff; color: #2b62d9; }
.ifc-preset.active {
    border-color: #4b7bec;
    background: #eef4ff;
    color: #2b62d9;
}

/* ---------- ③ 尺寸 ---------- */
.ifc-row2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}
.ifc-row2 .ifc-label { margin-bottom: 4px; display: block; }

.ifc-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #dfe6f2;
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 13px;
    color: #24324f;
    font-family: inherit;
    box-sizing: border-box;
}
.ifc-input:focus { outline: none; border-color: #4b7bec; background: #fff; }

/* 分段按钮 */
.ifc-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.ifc-seg.col3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ifc-seg.col4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ifc-seg-btn {
    border: 1px solid #e0e8f4;
    background: #fbfcfe;
    border-radius: 9px;
    padding: 8px 4px;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #3b4a66;
    transition: all .16s;
}
.ifc-seg-btn:hover { border-color: #9db8e8; background: #f4f8ff; }
.ifc-seg-btn.active {
    border-color: #4b7bec;
    background: #eef4ff;
    color: #2b62d9;
    box-shadow: inset 0 0 0 1px rgba(75, 123, 236, .35);
}

/* ---------- ④ 颜色 ---------- */
.ifc-hint {
    font-size: 11.5px;
    color: #6b7a96;
    line-height: 1.6;
}

.ifc-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ifc-color-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #dfe6f2;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ifc-color-btn:hover { transform: translateY(-1px); }
.ifc-color-btn.active { border-color: #4b7bec; box-shadow: 0 0 0 3px rgba(75, 123, 236, .18); }

.ifc-color-input {
    width: 38px;
    height: 30px;
    padding: 2px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

/* ---------- 复选 ---------- */
.ifc-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    font-size: 12.5px;
    color: #5b6a86;
    line-height: 1.6;
}
.ifc-check input { accent-color: #4b7bec; width: 14px; height: 14px; cursor: pointer; flex: none; margin-top: 3px; }
.ifc-check[data-disabled="1"] { opacity: .62; }

/* ---------- 进度 + 状态 ---------- */
.ifc-progress { }

.ifc-progress-track {
    height: 7px;
    border-radius: 999px;
    background: #eef2f9;
    overflow: hidden;
}
.ifc-progress-track i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #57c896, #2f9e6f);
    transition: width .2s;
}

.ifc-status {
    font-size: 12.5px;
    line-height: 1.7;
    color: #6b7a96;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f7f9fd;
    border: 1px dashed #e2eaf7;
    word-break: break-all;
}
.ifc-status.is-ok { color: #2f7d55; background: #eefaf3; border-color: #c8ead9; border-style: solid; }
.ifc-status.is-warn { color: #9a6212; background: #fff8ea; border-color: #f3dfb5; border-style: solid; }

/* ---------- 工具简介块 ---------- */
.ifc-info-block { margin-bottom: 26px; }

.ifc-info-block .detail-icon {
    --icon-bg: linear-gradient(135deg, #34d399, #0ea5e9);
    --icon-shadow: rgba(52, 211, 153, .32);
}

/* 免责说明 */
.ifc-disclaim {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff8ea;
    border: 1px solid #f3e2b8;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a6516;
}

/* ================================================================
   响应式：平板 → 单列
   ================================================================ */
@media (max-width: 960px) {
    .ifc-grid { grid-template-columns: minmax(0, 1fr); }
    .ifc-fmts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .ifc-hero { padding: 16px 14px; }
    .ifc-drop { padding: 28px 14px; }
    .ifc-compare { grid-template-columns: minmax(0, 1fr); }
    .ifc-cmp-box { min-height: 160px; }
    .ifc-cmp-box canvas, .ifc-cmp-box img { max-height: 240px; }
    .ifc-fmts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ifc-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb name actions"
            "thumb out actions";
        row-gap: 4px;
    }
    .ifc-row-thumb { grid-area: thumb; }
    .ifc-row-name { grid-area: name; }
    .ifc-row-arrow { display: none; }
    .ifc-row-out { grid-area: out; }
    .ifc-row-actions { grid-area: actions; }
    .ifc-row { grid-template-rows: auto auto; }
    .ifc-bar > span { width: 80px; }
    .ifc-actions { grid-template-columns: minmax(0, 1fr); }
    .ifc-privacy { white-space: normal; }
    .ifc-step-head b { font-size: 13px; }
}

/* ================================================================
   深色模式
   ================================================================ */
html[data-theme="dark"] .ifc-hero,
body.dark .ifc-hero { background: linear-gradient(135deg, #182036 0%, #151c2e 58%, #13212a 100%); border-color: #26314a; }

html[data-theme="dark"] .ifc-logo,
body.dark .ifc-logo { background: #1d263c; box-shadow: none; }
html[data-theme="dark"] .ifc-title,
body.dark .ifc-title { color: #e8eefc; }
html[data-theme="dark"] .ifc-tagline,
body.dark .ifc-tagline { color: #8f9dba; }
html[data-theme="dark"] .ifc-privacy,
body.dark .ifc-privacy { background: #143427; border-color: #2a5a44; color: #87d4ad; }

html[data-theme="dark"] .ifc-drop,
body.dark .ifc-drop { background: #161e30; border-color: #33405d; }
html[data-theme="dark"] .ifc-drop-title,
body.dark .ifc-drop-title { color: #dce5f7; }

html[data-theme="dark"] .ifc-card,
html[data-theme="dark"] .ifc-actions,
body.dark .ifc-card,
body.dark .ifc-actions { background: #171f31; border-color: #26314a; box-shadow: none; }

html[data-theme="dark"] .ifc-card-head b,
html[data-theme="dark"] .ifc-list-head,
html[data-theme="dark"] .ifc-step-head,
body.dark .ifc-card-head b,
body.dark .ifc-list-head,
body.dark .ifc-step-head { color: #dce5f7; }

html[data-theme="dark"] .ifc-card-info,
html[data-theme="dark"] .ifc-hint,
html[data-theme="dark"] .ifc-label,
body.dark .ifc-card-info,
body.dark .ifc-hint,
body.dark .ifc-label { color: #93a2bd; }

html[data-theme="dark"] .ifc-sum-stats,
html[data-theme="dark"] .ifc-fmt-prefix,
body.dark .ifc-sum-stats,
body.dark .ifc-fmt-prefix { color: #8f9dba; }

html[data-theme="dark"] .ifc-sum-stats b,
body.dark .ifc-sum-stats b { color: #e2e9f8; }
html[data-theme="dark"] .ifc-sum-ok b,
body.dark .ifc-sum-ok b { color: #6fd3a1; }
html[data-theme="dark"] .ifc-sum-cut b,
body.dark .ifc-sum-cut b { color: #8db4ff; }

html[data-theme="dark"] .ifc-fmt-btn,
html[data-theme="dark"] .ifc-preset,
html[data-theme="dark"] .ifc-seg-btn,
html[data-theme="dark"] .ifc-icon-btn,
html[data-theme="dark"] .ifc-mini-btn,
html[data-theme="dark"] .ifc-btn,
html[data-theme="dark"] .ifc-input,
html[data-theme="dark"] .ifc-color-input,
body.dark .ifc-fmt-btn,
body.dark .ifc-preset,
body.dark .ifc-seg-btn,
body.dark .ifc-icon-btn,
body.dark .ifc-mini-btn,
body.dark .ifc-btn,
body.dark .ifc-input,
body.dark .ifc-color-input { background: #1c2437; border-color: #2c3854; color: #c9d5ec; }

html[data-theme="dark"] .ifc-fmt-btn b,
body.dark .ifc-fmt-btn b { color: #dce5f7; }
html[data-theme="dark"] .ifc-fmt-btn i,
body.dark .ifc-fmt-btn i { color: #8b98b1; }

html[data-theme="dark"] .ifc-fmt-btn.active,
body.dark .ifc-fmt-btn.active { background: #1d2a49; border-color: #4b7bec; }
html[data-theme="dark"] .ifc-fmt-btn.active b,
body.dark .ifc-fmt-btn.active b { color: #8db4ff; }
html[data-theme="dark"] .ifc-fmt-btn.active i,
body.dark .ifc-fmt-btn.active i { color: #b6c5e0; }

html[data-theme="dark"] .ifc-preset.active,
html[data-theme="dark"] .ifc-seg-btn.active,
body.dark .ifc-preset.active,
body.dark .ifc-seg-btn.active { background: #1d2a49; border-color: #4b7bec; color: #8db4ff; }

html[data-theme="dark"] .ifc-row,
body.dark .ifc-row { background: #1a2233; border-color: #283349; }
html[data-theme="dark"] .ifc-row:hover,
body.dark .ifc-row:hover { background: #1d2742; }
html[data-theme="dark"] .ifc-row.active,
body.dark .ifc-row.active { background: #1d2a49; border-color: #4b7bec; }
html[data-theme="dark"] .ifc-row-name b,
body.dark .ifc-row-name b { color: #dce5f7; }

html[data-theme="dark"] .ifc-status,
body.dark .ifc-status { background: #161e30; border-color: #2a3550; color: #8f9dba; }

html[data-theme="dark"] .ifc-disclaim,
body.dark .ifc-disclaim { background: #2a2416; border-color: #4a3d1f; color: #d9bd80; }

html[data-theme="dark"] .ifc-cmp-box,
body.dark .ifc-cmp-box { background: repeating-conic-gradient(#1b2233 0% 25%, #151b29 0% 50%) 50% / 18px 18px; }

html[data-theme="dark"] .ifc-row-thumb,
body.dark .ifc-row-thumb { background: repeating-conic-gradient(#1b2233 0% 25%, #1a2130 0% 50%) 50% / 10px 10px; border-color: #2c3854; }

html[data-theme="dark"] .ifc-tag,
body.dark .ifc-tag { background: #232e46; color: #93a2bd; }

html[data-theme="dark"] .ifc-bar-track,
html[data-theme="dark"] .ifc-progress-track,
body.dark .ifc-bar-track,
body.dark .ifc-progress-track { background: #232e46; }

html[data-theme="dark"] .ifc-slider,
html[data-theme="dark"] .ifc-row input[type="range"],
body.dark .ifc-slider,
body.dark .ifc-row input[type="range"] { background: #2a3550; }

html[data-theme="dark"] .ifc-list-head,
body.dark .ifc-list-head { border-bottom-color: #26314a; }

html[data-theme="dark"] .ifc-fmt-note,
body.dark .ifc-fmt-note { background: #161e30; color: #93a2bd; border-left-color: #2c3854; }
html[data-theme="dark"] .ifc-fmt-note.is-warn,
body.dark .ifc-fmt-note.is-warn { background: #2a2416; color: #d9bd80; border-left-color: #6e5418; }