.codeformer-page { width: min(1040px, calc(100% - 32px)); max-width: none; margin-inline: auto; padding: 34px 0 48px; }
.codeformer-file-dragging body { outline: 3px dashed #2167c7; outline-offset: -10px; }
.codeformer-hero { text-align: center; padding: 34px 24px 30px; border-radius: 0 0 20px 20px; background: #2167c7; color: #fff; }
.codeformer-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.codeformer-hero h1 { margin: 12px 0 8px; font-size: 2.35rem; }
.codeformer-hero p { margin: 0; font-size: 1.1rem; opacity: .94; }
.codeformer-tool { margin-top: 28px; border: 1px solid #dce4f4; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(26,55,100,.09); padding: 26px; }
.codeformer-upload { min-height: 270px; border: 2px dashed #74a8ff; border-radius: 12px; background: #f7faff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; text-align: center; cursor: pointer; padding: 24px; transition: .2s; }
.codeformer-upload.dragging { border-color: #2167c7; background: #edf5ff; }
.codeformer-upload > i { font-size: 3rem; color: #2575fc; }
.codeformer-upload strong { font-size: 1.2rem; color: #17233b; }
.codeformer-upload span, .codeformer-upload small { color: #64748b; }
.codeformer-primary, .codeformer-secondary { font: inherit; font-weight: 700; border-radius: 8px; padding: 12px 18px; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.codeformer-primary { background: #2167c7; color: #fff; border: 0; }
.codeformer-primary:disabled { opacity: .58; cursor: wait; }
.codeformer-secondary { color: #1c3155; background: #fff; border: 1px solid #cdd9ee; }
.codeformer-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 22px; }
.codeformer-preview-card { border: 1px solid #dce4f4; border-radius: 10px; background: #f8fafc; padding: 12px; min-width: 0; }
.codeformer-preview-card span { display: block; font-weight: 700; color: #1e3458; margin: 0 0 10px; }
.codeformer-preview-card img { display: block; width: 100%; max-height: 440px; object-fit: contain; background: #e9eef7; border-radius: 7px; }
.codeformer-controls { display: flex; flex-direction: column; justify-content: center; }
.codeformer-controls fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.codeformer-level-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.codeformer-controls legend { font-weight: 800; color: #17233b; }
.codeformer-level-heading output { min-width: 46px; padding: 4px 8px; border-radius: 6px; background: #e8f1ff; color: #174f9f; font-weight: 800; text-align: center; }
.codeformer-range { width: 100%; accent-color: #2167c7; cursor: pointer; }
.codeformer-range-labels { display: flex; justify-content: space-between; color: #526683; font-size: .8rem; line-height: 1.05; margin-top: 5px; }
.codeformer-range-labels span:last-child { text-align: right; }
.codeformer-range-labels small { font-size: .72rem; }
.codeformer-controls p { font-size: .88rem; line-height: 1.5; color: #64748b; }
.codeformer-privacy { margin: 15px 0 0; }
.codeformer-status { margin-top: 20px; padding: 16px; border-radius: 10px; background: #eef5ff; color: #1e3d6d; display: flex; gap: 13px; align-items: center; }
.codeformer-status p { margin: 3px 0 0; color: #587096; }
.status-spinner { width: 24px; height: 24px; border: 3px solid #b6cbed; border-top-color: #2575fc; border-radius: 50%; animation: codeformer-spin .85s linear infinite; flex: 0 0 auto; }
@keyframes codeformer-spin { to { transform: rotate(360deg); } }
.codeformer-result { margin-top: 26px; }
.result-heading h2, .codeformer-copy h2 { margin: 0 0 8px; color: #17233b; font-size: 1.35rem; }
.result-heading p { color: #64748b; margin: 0 0 16px; }
.compare { --compare-position: 50%; position: relative; overflow: hidden; max-width: 900px; margin: auto; background: #e9eef7; border-radius: 10px; line-height: 0; user-select: none; }
.compare > img, .compare-before img { display: block; width: 100%; height: 100%; object-fit: fill; }
.compare > img { position: relative; }
.compare-before { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; clip-path: inset(0 calc(100% - var(--compare-position)) 0 0); }
.compare-before img { position: absolute; inset: 0; max-width: none; }
.compare-label { position: absolute; z-index: 2; top: 14px; padding: 6px 10px; border-radius: 5px; background: rgba(15,23,42,.82); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; pointer-events: none; }
.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.compare-handle:after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); line-height: 36px; text-align: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #2575fc; font-size: 19px; box-shadow: 0 2px 7px rgba(0,0,0,.2); }
#compareSlider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.codeformer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 18px; }
.codeformer-share-panel { max-width: 900px; margin: 18px auto 0; padding: 18px; border: 1px solid #cdd9ee; border-radius: 10px; background: #f7faff; color: #1c3155; }
.codeformer-share-panel p { margin: 6px 0 14px; }
.codeformer-share-link, .codeformer-share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.codeformer-share-link input { flex: 1 1 360px; min-width: 0; border: 1px solid #cdd9ee; border-radius: 8px; padding: 10px 12px; font: inherit; color: #253c61; background: #fff; }
.codeformer-share-actions { margin-top: 10px; }
.codeformer-copy { padding: 28px 5px 0; color: #53657d; }
.codeformer-copy p { line-height: 1.65; margin: 0; }
.codeformer-processing-modal { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(8, 19, 37, .64); backdrop-filter: blur(3px); }
.codeformer-processing-modal[hidden] { display: none; }
.codeformer-processing-card { width: min(960px, 100%); overflow: hidden; border: 1px solid #cbd9ed; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(4, 16, 34, .38); }
.codeformer-processing-copy { padding: 27px 30px 18px; text-align: center; }.codeformer-processing-kicker { color: #1b6fd4; font-size: .76rem; font-weight: 800; letter-spacing: .09em; }.codeformer-processing-copy h2 { min-height: 1.35em; margin: 8px 0 6px; color: #172746; font-size: clamp(1.35rem, 3vw, 2rem); }.codeformer-processing-copy p { margin: 0; color: #60728d; }
.codeformer-processing-letter { display: inline-block; opacity: 0; transform: translateX(18px); }.codeformer-processing-letter.space { width: .28em; }.codeformer-processing-entering .codeformer-processing-letter { animation: codeformer-title-in .32s cubic-bezier(.2, .78, .25, 1) forwards; animation-delay: var(--title-in-delay); }.codeformer-processing-pulse { animation: codeformer-title-pulse .68s ease-in-out; }.codeformer-processing-exiting .codeformer-processing-letter { animation: codeformer-title-out .28s ease-in forwards; animation-delay: var(--title-out-delay); }
@keyframes codeformer-title-in { to { opacity: 1; transform: translateX(0); } } @keyframes codeformer-title-pulse { 50% { transform: scale(1.075); color: #146fd7; } } @keyframes codeformer-title-out { to { opacity: 0; transform: translateX(-14px); } }
.codeformer-processing-ad { display: grid; place-items: center; min-height: 132px; margin: 0 30px 18px; border: 1px solid #d7e1ee; border-radius: 6px; background: #fafcff; color: #6c7d92; }.codeformer-processing-ad > span { align-self: start; padding-top: 9px; color: #7d8998; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }.codeformer-processing-ad-unit { width: 100%; min-height: 88px; margin-top: -13px; }
.codeformer-processing-carousel { display: block; width: min(760px, calc(100% - 30px)); aspect-ratio: 2056 / 765; margin: -8px auto 12px; overflow: hidden; border: 1px solid #d5e2f2; border-radius: 6px; background: #edf5ff; box-shadow: 0 2px 8px rgba(35, 99, 183, .08); }.codeformer-processing-ad-track { display: flex; width: 200%; height: 100%; transform: translateX(0); transition: transform .58s ease; }.codeformer-processing-ad-track img { display: block; width: 50%; height: 100%; object-fit: cover; flex: 0 0 50%; }
.codeformer-processing-console { margin: 0 30px 30px; text-align: left; }.codeformer-processing-console > p { margin: 0 0 8px; color: #20252c; font: .83rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }.codeformer-processing-console > div { min-height: 142px; max-height: 190px; overflow: auto; padding: 14px 15px; background: #050505; color: #f49b4c; font: .79rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; box-shadow: inset 0 0 22px rgba(245, 141, 54, .04); }.codeformer-processing-console > div p { margin: 0; }.codeformer-processing-console > div p.error { color: #ff7b6e; }.codeformer-processing-console > div p.success { color: #ffb65c; }
@media (max-width: 700px) { .codeformer-page { width: min(calc(100% - 20px), 1040px); padding-top: 12px; } .codeformer-hero { padding: 25px 18px; } .codeformer-hero h1 { font-size: 1.9rem; } .codeformer-tool { padding: 16px; } .codeformer-workspace { grid-template-columns: 1fr; } .codeformer-upload { min-height: 230px; } .codeformer-actions > * { width: 100%; } }
@media (max-width: 700px) { .codeformer-processing-modal { padding: 14px; }.codeformer-processing-copy { padding: 22px 18px 15px; }.codeformer-processing-ad, .codeformer-processing-console { margin-right: 18px; margin-left: 18px; }.codeformer-processing-ad { min-height: 105px; }.codeformer-processing-console { margin-bottom: 18px; }.codeformer-processing-console > div { min-height: 100px; font-size: .71rem; } }
@media (prefers-reduced-motion: reduce) { .codeformer-processing-letter { opacity: 1; transform: none; }.codeformer-processing-entering .codeformer-processing-letter, .codeformer-processing-pulse, .codeformer-processing-exiting .codeformer-processing-letter { animation: none; } }
