.ie-page { --ie-chk: #E2E8F0; --ie-chk-bg: #FFFFFF; }
html:not(.cf-light) .ie-page { --ie-chk: #1A2023; --ie-chk-bg: #111517; }

.ie-hero { padding-bottom: 24px; }
.ie-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ie-main { padding: 4px 0 24px; }
.ie-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ie-app { border: 1px solid var(--cc-line); border-radius: 24px; background: var(--cc-card); box-shadow: var(--cc-shadow); }

.ie-bar { position: sticky; top: var(--ie-sticky, 0px); z-index: 30; display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--cc-line); border-radius: 23px 23px 0 0; background: var(--cc-card); transition: border-radius .25s, box-shadow .25s, padding .25s; }
.ie-bar.is-stuck { padding: 8px 12px; border-radius: 0 0 16px 16px; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); }
.ie-url { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 50px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-soft); transition: height .25s, border-color .2s, box-shadow .2s; }
.ie-url:focus-within { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.ie-url > i { position: absolute; left: 17px; color: var(--cc-teal); font-size: 15px; pointer-events: none; }
html:not(.cf-light) .ie-url > i { color: var(--cc-bright); }
.ie-url input { flex: 1; min-width: 0; height: 100%; padding: 0 44px 0 46px; border: 0; outline: 0; background: transparent; color: var(--cc-ink); font: 500 .95rem 'Poppins', sans-serif; }
.ie-url input::placeholder { color: var(--cc-ink-3); font-weight: 400; }
.ie-clear { position: absolute; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--cc-ink-3); cursor: pointer; transition: background .2s, color .2s; }
.ie-clear:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.ie-bar.is-stuck .ie-url, .ie-bar.is-stuck .ie-btn-main { height: 40px; border-radius: 11px; }
.ie-bar.is-stuck .ie-url input { font-size: .88rem; }

.ie-progress { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; overflow: hidden; border-radius: 2px; opacity: 0; transition: opacity .3s; }
.ie-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cc-teal), var(--cc-bright)); transition: width .4s ease; }
.ie-progress.is-on { opacity: 1; }

.ie-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font: 600 .9rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; text-decoration: none; transition: height .25s, background .2s, border-color .2s, color .2s, opacity .2s; }
.ie-btn i { font-size: 13px; }
.ie-btn-main { background: var(--cc-teal); color: #fff; }
.ie-btn-main:hover { background: var(--cc-teal-h); }
.ie-btn-ghost { border-color: var(--cc-line); background: var(--cc-card); color: var(--cc-ink-2); }
.ie-btn-ghost:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
html:not(.cf-light) .ie-btn-ghost:hover { color: var(--cc-bright); }
.ie-btn:disabled { opacity: .5; cursor: not-allowed; }
.ie-btn .fa-spin { animation-duration: .8s; }
.ie-resbar .ie-btn { height: 40px; padding: 0 16px; border-radius: 11px; font-size: .84rem; }

.ie-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--cc-line); }
.ie-tools[hidden], .ie-resbar[hidden] { display: none; }
.ie-filters { display: inline-flex; gap: 3px; max-width: 100%; padding: 4px; overflow-x: auto; border: 1px solid var(--cc-line); border-radius: 12px; background: var(--cc-soft); scrollbar-width: none; }
.ie-filters::-webkit-scrollbar { display: none; }
.ie-filters button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--cc-ink-3); font: 600 .8rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ie-filters button i { font-size: 12px; }
.ie-filters button span { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--cc-card); color: var(--cc-ink-3); font-size: .68rem; text-align: center; }
.ie-filters button:hover { color: var(--cc-ink); }
.ie-filters button.is-active { background: var(--cc-card); color: var(--cc-teal); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px rgba(6, 147, 139, .25); }
.ie-filters button.is-active span { background: var(--cc-teal); color: #fff; }
html:not(.cf-light) .ie-filters button.is-active { background: var(--cc-teal-soft); color: var(--cc-bright); }

.ie-switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--cc-ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; user-select: none; }
.ie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ie-switch-ui { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--cc-teal-2); transition: background .2s; }
.ie-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .2s; }
.ie-switch input:checked + .ie-switch-ui { background: var(--cc-teal); }
.ie-switch input:checked + .ie-switch-ui::after { transform: translateX(16px); }
.ie-switch input:focus-visible + .ie-switch-ui { box-shadow: 0 0 0 3px rgba(6, 147, 139, .25); }

.ie-resbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--cc-line); }
.ie-res-info { display: flex; flex-direction: column; min-width: 0; }
.ie-res-info strong { font-size: .95rem; font-weight: 700; color: var(--cc-ink); }
.ie-res-info span { overflow: hidden; color: var(--cc-ink-3); font-size: .76rem; white-space: nowrap; text-overflow: ellipsis; }
.ie-res-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ie-res-acts [hidden] { display: none; }

.ie-results { position: relative; min-height: 420px; padding: 16px; border-radius: 0 0 23px 23px; background-color: var(--cc-bg); background-image: radial-gradient(circle, var(--cc-line) 1px, transparent 1.2px); background-size: 22px 22px; }
.ie-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 388px; padding: 24px; text-align: center; }
.ie-empty[hidden], .ie-grid[hidden], .ie-none[hidden] { display: none; }
.ie-empty-ico { width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cc-line); border-radius: 22px; background: var(--cc-card); color: var(--cc-teal); font-size: 28px; box-shadow: var(--cc-shadow); }
html:not(.cf-light) .ie-empty-ico { color: var(--cc-bright); }
.ie-empty h2 { margin: 6px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; line-height: 1.3; color: var(--cc-ink); }
.ie-empty p { max-width: 420px; margin: 0; font-size: .9rem; line-height: 1.7; color: var(--cc-ink-3); }
.ie-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; }
.ie-try span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-ink-3); }
.ie-try button { height: 32px; padding: 0 13px; border: 1px solid var(--cc-line); border-radius: 99px; background: var(--cc-card); color: var(--cc-ink-2); font: 500 .8rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s; }
.ie-try button:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.ie-empty.is-loading .ie-empty-ico i { animation: iePulse 1.2s infinite; }
@keyframes iePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.ie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.ie-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-card); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ie-card:hover { border-color: rgba(6, 147, 139, .4); transform: translateY(-2px); }
.ie-card:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(6, 147, 139, .3); }
.ie-card.is-sel { border-color: var(--cc-teal); box-shadow: 0 0 0 2px var(--cc-teal); }
.ie-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin: 6px 6px 0; overflow: hidden; border-radius: 11px; background-color: var(--ie-chk-bg); background-image: linear-gradient(45deg, var(--ie-chk) 25%, transparent 25%), linear-gradient(-45deg, var(--ie-chk) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--ie-chk) 75%), linear-gradient(-45deg, transparent 75%, var(--ie-chk) 75%); background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.ie-thumb img { display: block; max-width: 86%; max-height: 86%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.ie-thumb img.is-ok { opacity: 1; }
.ie-thumb .ie-broken { color: var(--cc-ink-3); font-size: 22px; }
.ie-pdf { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #DC2626; }
.ie-pdf i { font-size: 38px; }
.ie-pdf span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: var(--cc-ink-3); }
.ie-check { position: absolute; top: 12px; left: 12px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .95); border-radius: 8px; background: rgba(15, 23, 42, .28); color: transparent; font-size: 11px; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); opacity: 0; transition: opacity .2s, background .2s; }
.ie-card:hover .ie-check, .ie-card.is-sel .ie-check, .ie-grid.has-sel .ie-check { opacity: 1; }
.ie-card.is-sel .ie-check { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.ie-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 4px; min-width: 0; }
.ie-name { overflow: hidden; color: var(--cc-ink); font-size: .78rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ie-sub { display: flex; align-items: center; gap: 6px; color: var(--cc-ink-3); font-size: .7rem; }
.ie-badge { padding: 2px 7px; border-radius: 99px; background: var(--cc-teal-soft); color: var(--cc-teal); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ie-badge.t-svg { background: rgba(59, 130, 246, .12); color: #2563EB; }
.ie-badge.t-pdf { background: rgba(220, 38, 38, .1); color: #DC2626; }
.ie-badge.t-gif { background: rgba(234, 179, 8, .14); color: #A16207; }
.ie-badge.t-webp, .ie-badge.t-avif { background: rgba(147, 51, 234, .1); color: #9333EA; }
.ie-acts { display: flex; gap: 6px; padding: 6px 12px 12px; }
.ie-act { flex: 1; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cc-line); border-radius: 9px; background: var(--cc-card); color: var(--cc-ink-3); font-size: 12px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ie-act:hover { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.ie-act.is-done { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }

.ie-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 300px; color: var(--cc-ink-3); font-size: .9rem; }
.ie-none i { font-size: 26px; }

.ie-toast { position: fixed; left: 50%; bottom: 28px; z-index: 9999; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 11px 18px; border: 1px solid rgba(6, 147, 139, .3); border-radius: 99px; background: var(--cc-card); color: var(--cc-ink); font-size: .84rem; font-weight: 600; box-shadow: 0 14px 34px -12px rgba(15, 23, 42, .35); opacity: 0; transform: translate(-50%, 20px); transition: opacity .25s, transform .3s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.ie-toast i { color: var(--cc-teal); }
.ie-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ie-toast.is-error { border-color: rgba(220, 38, 38, .35); }
.ie-toast.is-error i { color: #DC2626; }

@media (max-width: 640px) {
    .ie-wrap { padding: 0 14px; }
    .ie-app { border-radius: 20px; }
    .ie-bar { padding: 12px; gap: 8px; border-radius: 19px 19px 0 0; }
    .ie-bar.is-stuck { padding: 6px 8px; border-radius: 0 0 14px 14px; }
    .ie-url { height: 46px; border-radius: 12px; }
    .ie-url input { padding-left: 42px; font-size: .9rem; }
    .ie-url > i { left: 15px; }
    .ie-bar .ie-btn-main { height: 46px; padding: 0 16px; border-radius: 12px; }
    .ie-bar .ie-btn-main span { display: none; }
    .ie-bar.is-stuck .ie-url, .ie-bar.is-stuck .ie-btn-main { height: 36px; border-radius: 10px; }
    .ie-bar.is-stuck .ie-url input { font-size: .84rem; }
    .ie-tools { padding: 12px; }
    .ie-filters { width: 100%; }
    .ie-filters button { padding: 0 10px; }
    .ie-filters button i { display: none; }
    .ie-resbar { padding: 12px; }
    .ie-res-acts { width: 100%; }
    .ie-res-acts .ie-btn { flex: 1 1 auto; padding: 0 12px; }
    .ie-res-acts .ie-btn-main { flex-basis: 100%; }
    .ie-results { padding: 12px; border-radius: 0 0 19px 19px; }
    .ie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ie-meta { padding: 8px 10px 2px; }
    .ie-acts { padding: 6px 10px 10px; gap: 5px; }
    .ie-check { opacity: 1; }
}