.egot, .egot-sidebar {
    --egot-ink: #14243a;
    --egot-muted: #425570;
    --egot-panel: #f0f6fc;
    --egot-bg: #fff;
    --egot-border: #b9cadd;
    --egot-link: #07569d;
    color: var(--egot-ink);
}
@media (prefers-color-scheme: dark) {
    .egot, .egot-sidebar {
        --egot-ink: #eef5ff;
        --egot-muted: #b7cbe5;
        --egot-panel: #182c44;
        --egot-bg: #101e30;
        --egot-border: #56708c;
        --egot-link: #9ed8ff;
    }
}
[data-theme="dark"] .egot, [data-theme="dark"] .egot-sidebar {
    --egot-ink: #eef5ff;
    --egot-muted: #b7cbe5;
    --egot-panel: #182c44;
    --egot-bg: #101e30;
    --egot-border: #56708c;
    --egot-link: #9ed8ff;
}
.egot { background: var(--egot-bg); padding: clamp(12px, 2vw, 28px); border-radius: 16px; }
.egot [hidden] { display: none !important; }
.egot :is(h2,h3), .egot-sidebar summary { color: var(--egot-ink); }
.egot p { color: var(--egot-muted); margin: 0 0 1em; }
.egot a, .egot-sidebar a { color: var(--egot-link); }
.egot :focus-visible, .egot-sidebar :focus-visible { outline: 3px solid #2180cd; outline-offset: 3px; }
.egot-hero {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 3vw, 36px);
    background: var(--egot-panel);
    border: 1px solid var(--egot-border);
    border-radius: 16px;
    padding: clamp(14px, 2.4vw, 34px);
    margin-block-end: 20px;
}
.egot-hero h2 { font-size: clamp(27px, 4vw, 47px); line-height: 1.08; margin: .25em 0; }
.egot-hero nav { font-size: .86em; }
.egot-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.egot .egot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; padding: 0; list-style: none; }
.egot .egot-grid li { margin: 0; }
.egot-grid a { display: block; height: 100%; padding: 15px; border: 1px solid var(--egot-border); border-radius: 10px; background: var(--egot-panel); }
.egot-grid span { display: block; color: var(--egot-muted); }
.egot-form { padding: clamp(12px, 2vw, 24px); margin: 0 0 24px; border: 1px solid var(--egot-border); border-radius: 12px; background: var(--egot-panel); }
.egot-file { display: block; padding: 14px; border: 1px dashed var(--egot-border); border-radius: 8px; background: var(--egot-bg); }
.egot-file input, .egot-file small { display: block; max-width: 100%; color: var(--egot-ink); }
.egot-form fieldset { border: 0; margin: 16px 0 0; padding: 0; min-inline-size: 0; }
.egot-form legend { margin-bottom: 10px; font-weight: 700; }
.egot-options { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 18px; margin: 14px 0; }
.egot-options input:not([type=checkbox]), .egot-options select { display: block; width: min(150px, 100%); min-height: 38px; }
.egot-options :is(input,select) { color: var(--egot-ink); background: var(--egot-bg); border-color: var(--egot-border); }
.egot .egot-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 8px 16px; border: 0; border-radius: 8px; background: #105b9e;
    color: white; font-weight: 700; text-decoration: none; cursor: pointer;
}
.egot .egot-button:hover { background: #08477e; color: white; }
.egot .egot-status:not(:empty) { margin-top: 14px; }
.egot-preview { position: relative; width: fit-content; max-width: 100%; overflow: hidden; }
.egot-preview img, .egot-result img { display: block; width: auto; height: auto; max-width: 100%; max-height: 290px; object-fit: contain; }
[data-eg-tool="image-cropper"] .egot-preview { touch-action: none; cursor: crosshair; user-select: none; }
.egot-preview img { pointer-events: none; }
.egot-selection { position: absolute; border: 2px solid white; box-shadow: 0 0 0 1px #123, 0 0 0 999px #020a15a6; pointer-events: none; }
.egot-result { margin-top: 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--egot-border); background: var(--egot-bg); }
.egot-result img { margin-bottom: 12px; }
.egot-links { padding-inline-start: 20px; }
.egot-sidebar { position: sticky; top: 92px; margin: 24px 0; padding: 14px; border: 1px solid var(--egot-border); border-radius: 10px; background: var(--egot-bg); }
.egot-sidebar summary { cursor: pointer; font-weight: 700; }
.egot-sidebar li a { display: inline-block; padding: 4px 0; }
@media (max-width: 1023px) { .egot-sidebar { position: static; } }
@media (max-width: 540px) { .egot-hero { grid-template-columns: 1fr; } }

.egot { --egot-accent: #1464ad; --egot-outline: #659bc6; }
.egot-hero { padding: clamp(16px, 3vw, 34px); }
.egot-utility .egot-hero { grid-template-columns: minmax(0, 1fr) minmax(135px, .57fr); }
.egot-utility .egot-hero img { max-height: 150px; }
.egot-hero nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.egot-hero p { margin-bottom: 0; }
.egot .egot-grid { gap: 14px; margin: 24px 0 0; }
.egot-grid a { text-decoration: none; padding: 19px; transition: border-color .16s; }
.egot-grid a:hover { border-color: var(--egot-link); }
.egot-grid strong { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.egot-grid strong span { color: var(--egot-link); }

.egot .egot-form { padding: clamp(9px, 2vw, 19px); background: var(--egot-bg); }
.egot-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: clamp(19px, 4vw, 39px) 12px; min-height: 205px; text-align: center;
    background: var(--egot-panel); border: 2px dashed var(--egot-outline); border-radius: 12px;
}
.egot-drop.is-dragging { outline: 3px solid var(--egot-link); outline-offset: -4px; }
.egot-upload-mark {
    display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 13px;
    border-radius: 10px; border: 1px solid var(--egot-border); background: var(--egot-bg);
    color: var(--egot-link); font-size: 22px; line-height: 1;
}
.egot-drop .egot-file { display: inline-flex; position: relative; padding: 0; border: 0; background: transparent; }
.egot-drop .egot-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.egot-drop .egot-file:focus-within { outline: 3px solid var(--egot-link); outline-offset: 3px; border-radius: 8px; }
.egot-drop .egot-file:hover .egot-button { background: #08477e; }
.egot .egot-drop p { margin: 8px 0 3px; }
.egot-drop small, .egot p.egot-privacy { color: var(--egot-muted); font-size: .85em; }
.egot p.egot-privacy { margin: 11px 0 0; text-align: center; }
.egot-help, .egot-related { padding: 17px 0; border-top: 1px solid var(--egot-border); }
.egot-ad { margin: 30px auto; min-height: 115px; text-align: center; }
.egot-ad > span { display: block; margin-bottom: 6px; color: var(--egot-muted); font-size: 11px; letter-spacing: .04em; }
.egot-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.egot .egot-related .egot-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.egot-related .egot-links li { margin: 0; }
.egot-related .egot-links a { display: block; padding: 7px 11px; border-radius: 7px; border: 1px solid var(--egot-border); text-decoration: none; }
@media (max-width: 540px) {
    .egot-utility .egot-hero { grid-template-columns: 1fr; }
    .egot-utility .egot-hero img { max-height: 105px; }
}

.egot .egot-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    padding: 0; margin: 16px 0 24px; list-style-position: inside;
}
.egot .egot-steps li {
    margin: 0; padding: 13px; background: var(--egot-panel);
    border: 1px solid var(--egot-border); border-radius: 9px;
}
.egot-steps li::marker { color: var(--egot-link); font-weight: 700; }
.egot-steps span { display: block; margin-top: 5px; color: var(--egot-muted); }
@media (max-width: 620px) { .egot .egot-steps { grid-template-columns: 1fr; } }

/* Keep the Foxiz desktop categories on one line while preserving its mobile menu. */
@media (min-width: 1024px) {
    .navbar-inner .navbar-left:has(ul.main-menu .eg-online-tools-menu) { min-width: 0; flex: 1 1 auto; }
    .navbar-inner .navbar-left .site-branding:has(+ nav ul.main-menu .eg-online-tools-menu) {
        flex: 0 1 clamp(125px, 14vw, 224px);
        min-width: 95px;
    }
    .navbar-inner .navbar-left .site-branding:has(+ nav ul.main-menu .eg-online-tools-menu) img {
        max-width: 100%; height: auto; object-fit: contain;
    }
    .navbar-inner nav.main-menu-wrap:has(ul.main-menu .eg-online-tools-menu) {
        min-width: 0; margin-inline-start: clamp(7px, 1vw, 16px);
    }
    .navbar-inner ul.main-menu:has(.eg-online-tools-menu) {
        display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
    }
    .navbar-inner ul.main-menu:has(.eg-online-tools-menu) > li { flex: 0 0 auto; margin-inline: 0; }
    .navbar-inner ul.main-menu:has(.eg-online-tools-menu) > li > a {
        white-space: nowrap; padding-inline: clamp(4px, .55vw, 12px);
        font-size: clamp(10px, 1vw, 14px);
    }
}
.egot-tool-page .single-page > .page-header { display: none; }
.egot-tool-page .single-page .entry-content { margin-top: 0; }

.egot.egot-utility {
    --egot-ink: #142c3f;
    --egot-muted: #42596a;
    --egot-panel: #f0f8f8;
    --egot-bg: #fff;
    --egot-border: #c7dadd;
    --egot-link: #006257;
    --egot-outline: #6a9c99;
    padding: clamp(9px, 2vw, 22px);
    color: var(--egot-ink);
    font-family: system-ui, sans-serif;
}
[data-theme="dark"] .egot.egot-utility {
    --egot-ink: #e7f5f5;
    --egot-muted: #bfd1d6;
    --egot-panel: #163335;
    --egot-bg: #112225;
    --egot-border: #536d70;
    --egot-link: #a2eddb;
    --egot-outline: #7aa6a3;
}
.egot-masthead { text-align: center; padding: 4px 8px 18px; }
.egot-masthead nav { display: flex; justify-content: center; gap: 9px; font-size: 13px; }
.egot .egot-masthead h1 {
    margin: 13px 0 8px; color: var(--egot-ink); font: 760 clamp(26px, 4vw, 47px)/1.12 system-ui, sans-serif;
    letter-spacing: -.035em;
}
.egot .egot-masthead p { max-width: 60ch; margin: auto; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.55; }
.egot-utility .egot-form { border: 0; padding: 0; margin-bottom: 32px; }
.egot-utility .egot-drop {
    min-height: 225px; background: var(--egot-panel);
    border: 2px dashed var(--egot-outline); border-radius: 16px;
}
.egot-utility .egot-button { background: #006257; border-radius: 8px; font: 690 16px/1.25 system-ui, sans-serif; min-height: 49px; padding-inline: 24px; }
.egot-utility .egot-button:hover, .egot-utility .egot-file:hover .egot-button { background: #00483f; }
.egot-utility .egot-help h3, .egot-utility .egot-related h3 { font-family: system-ui, sans-serif; }

@media (max-width: 1023px) {
    .egot-sidebar.egot-mobile-bar {
        position: relative;
        top: auto;
        z-index: 2;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: radial-gradient(ellipse at 100% 0%, #6a287d, transparent 65%),
            linear-gradient(115deg, #074768, #263478 75%);
        color: #fff;
    }
    .egot-mobile-bar summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        min-height: 44px;
        padding: 5px 12px;
        list-style: none;
        color: #fff;
        font: 700 15px/1.3 system-ui, sans-serif;
    }
    .egot-mobile-bar summary::-webkit-details-marker { display: none; }
    .egot-mobile-bar summary::after {
        content: '';
        width: 7px;
        height: 7px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: translateY(-2px) rotate(45deg);
    }
    .egot-mobile-bar details[open] summary::after { transform: translateY(2px) rotate(225deg); }
    .egot-mobile-bar summary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
    .egot-mobile-bar .egot-mobile-panel {
        position: absolute;
        inset: 100% 0 auto;
        max-height: min(55vh, 400px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 6px 16px 10px;
        background: var(--egot-bg);
        color: var(--egot-ink);
        border-bottom: 1px solid var(--egot-border);
        box-shadow: 0 8px 16px #08172e30;
    }
    .egot-mobile-bar .egot-links { margin: 0; padding: 0; list-style: none; }
    .egot-mobile-bar .egot-mobile-panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        font: 650 15px/1.3 system-ui, sans-serif;
    }
}

.egot.egot-hub, .egot.egot-utility {
    --egot-ink: #201644;
    --egot-muted: #443561;
    --egot-bg: #fff;
    --egot-panel: #f5f0ff;
    --egot-border: #d2baf7;
    --egot-outline: #8a42db;
    --egot-link: #5214a3;
    font-family: system-ui, sans-serif;
}
[data-theme="dark"] .egot.egot-hub, [data-theme="dark"] .egot.egot-utility {
    --egot-ink: #fcf5ff;
    --egot-muted: #ebd9fc;
    --egot-bg: #221539;
    --egot-panel: #311d51;
    --egot-border: #8865b3;
    --egot-outline: #d89aff;
    --egot-link: #f3caff;
}
.egot-hub .egot-hero {
    background: radial-gradient(ellipse at 85% 0%, #9322ad, transparent 58%),
        linear-gradient(120deg,#301399,#6516ad);
    border: 0;
    margin-bottom: 16px;
}
.egot-hub .egot-hero :is(h1,p,a) { color: #fff; }
.egot-hub .egot-hero h1 {
    font: 780 clamp(28px, 4vw, 52px)/1.12 system-ui, sans-serif;
    margin: 5px 0 9px;
}
.egot-hub .egot-grid { padding: 0 !important; }
.egot-hub .egot-grid li { list-style: none !important; }
.egot-hub .egot-grid li::marker { content: ''; }
.egot-hub .egot-grid li:nth-child(3n+2) a { border-top-color: #e64ca8; }
.egot-hub .egot-grid li:nth-child(3n+3) a { border-top-color: #f58221; }
.egot-hub .egot-grid a {
    border-top: 4px solid #8d38ea;
    text-decoration: none !important;
    box-shadow: none;
}
.egot-hub .egot-grid a > span { font-weight: 400; line-height: 1.5; }
.egot .egot-button, .egot .egot-button:hover, .egot-utility .egot-file:hover .egot-button {
    background: linear-gradient(115deg,#4314ac,#8b1796);
    color: #fff;
}
.egot-utility .egot-drop {
    background: radial-gradient(ellipse at 100% 0%, #da9bff42, transparent 65%),
        radial-gradient(ellipse at 0% 100%, #ffab7645, transparent 60%), var(--egot-panel);
}
@media (max-width: 1023px) {
    .egot-sidebar.egot-mobile-bar {
        background: radial-gradient(ellipse at 95% 0%,#a21a88,transparent 72%),
            linear-gradient(110deg,#37129b,#7013b4 60%,#85148a);
        box-shadow: inset 0 -3px #ff935b;
    }
}

.egot-tool-page .single-page .rb-small-container { width: 100%; max-width: 1240px; }
.egot-tool-page .single-page :is(.s-ct,.s-ct-inner,.e-ct-outer,.entry-content):has(.egot) { width: 100%; max-width: none; }
.egot-utility h2, .egot-faq h3 { font-family: system-ui, sans-serif; }
.egot #egot-file-picker { scroll-margin-top: 105px; }
.egot-guide-layout { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(14px, 3vw, 36px); }
.egot-guide-layout .egot-steps { display: grid; grid-template-columns: 1fr; margin: 0; }
.egot .egot-diagram { margin: 0; padding: clamp(12px, 2vw, 30px); border-radius: 18px; background: var(--egot-panel); }
.egot-compare { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 7px; align-items: center; text-align: center; }
.egot-compare > div { display: grid; min-height: 112px; align-content: center; gap: 3px; border-radius: 12px; padding: 6px; color: #2f134a; background: #e9d6ff; }
.egot-compare > .egot-after { color: #4b1930; background: #ffd6e3; }
.egot-compare strong { font-size: clamp(16px, 3vw, 28px); overflow-wrap: anywhere; }
.egot-compare div span, .egot-diagram figcaption { font-size: 14px; line-height: 1.4; }
.egot-diagram figcaption { margin-top: 12px; text-align: center; color: var(--egot-muted); }
.egot-repeat { display: flex; align-items: center; justify-content: space-between; gap: 15px 24px; flex-wrap: wrap; margin: 24px 0 36px; padding: clamp(14px, 3vw, 32px); border-radius: 16px; background: linear-gradient(110deg,#32128d,#791395); }
.egot-repeat :is(h2,p) { color: #fff; margin: 0; }
.egot .egot-repeat .egot-repeat-picker { color: #5214a3; background: #fff; }
.egot-faq .eg-numbered-faq > div { margin: 12px 0; padding: 14px 18px; border: 1px solid var(--egot-border); background: var(--egot-panel); border-radius: 12px; }
.egot-faq .eg-numbered-faq h3 { margin: 0 0 6px; font-size: clamp(16px, 2vw, 20px); }
.egot-faq .eg-numbered-faq p { margin: 0; }
@media (max-width: 680px) { .egot-guide-layout { grid-template-columns: 1fr; } }

.egot-category {
    margin: 0 0 18px;
    color: #291747;
    background: #f7f1ff;
    border: 1px solid #c9a4f8;
    border-radius: 10px;
    font: 14px/1.4 system-ui, sans-serif;
}
.egot-category summary {
    padding: 11px 10px;
    color: #fff;
    background: linear-gradient(110deg,#4217a7,#84168e);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}
.egot-category form { display: grid; gap: 7px; padding: 10px; }
.egot-category label { display: grid; gap: 2px; }
.egot-category :is(input,select) { width: 100%; min-width: 0; min-height: 36px; color: #291747; background: #fff; }
.egot-category button { background: #51149e; color: #fff; border: 0; padding: 8px; border-radius: 6px; min-height: 40px; }
.egot-category output { font-weight: 700; overflow-wrap: anywhere; }
.egot-category output:empty { display: none; }
.egot-category form p { margin: 0; color: #4c3b62; font-size: 12px; }
.egot-category :focus-visible { outline: 2px solid #c33fea; outline-offset: -2px; }

.egot-category { margin-top: 24px; }
.egot-category summary { font-size: 16px; }
.egot-category form { grid-template-columns: repeat(auto-fit,minmax(min(100%,155px),1fr)); gap: 12px; padding: 14px; }
.egot-category-actions, .egot-category-result, .egot-category form > p { grid-column: 1 / -1; }
.egot-category-actions { display: flex; gap: 8px; }
.egot-category-actions button { padding-inline: 14px; }
.egot-category-actions button[type="reset"] { color: #51149e; background: #fff; border: 1px solid #c9a4f8; }
.egot-category-result:has(output:not(:empty)) { padding: 12px; background: #fff; border: 1px solid #d8c0f3; border-radius: 8px; }
.egot-category-result output { font-size: 16px; }
.egot-category-result output:not(:empty) + p { margin-top: 5px; }
.egot-category-result:not(:has(output:not(:empty))) { display: none; }
@media (min-width: 1024px) {
    .egot-category.is-bottom-left {
        position: fixed;
        z-index: 20;
        box-sizing: border-box;
        left: 10px;
        bottom: max(12px, env(safe-area-inset-bottom));
        max-height: min(55vh, 460px);
        overflow: auto;
        overscroll-behavior: contain;
        margin: 0;
    }
    .egot-category.is-bottom-left summary { font-size: 14px; overflow-wrap: anywhere; }
    .egot-category.is-bottom-left form { padding: 8px; }
    .egot-category.is-bottom-left .egot-category-actions { flex-wrap: wrap; }
    .egot-category.is-bottom-left .egot-category-actions button { padding-inline: 7px; }
}
@media (max-width: 1023px) {
    .single-post h1 + .egot-category { margin: 12px 0 16px; text-align: start; }
}

.single-related .egot-related-converter {
    margin: 14px 0 0;
    padding: clamp(12px, 2vw, 20px);
    border: 1px solid var(--egot-border);
    border-radius: 14px;
    background: var(--egot-panel);
    font-family: system-ui, sans-serif;
}
body.egcx-experience .single-related .egbp-related-columns > .egot-related-converter { grid-column: 1 / -1 !important; }
@media (min-width: 1200px) {
    body.egcx-experience .single-related .egbp-related-columns > .egot-related-converter { grid-column: 2 / -1 !important; }
}
.egot-related-converter h2 { color: var(--egot-ink); font: 750 clamp(19px, 2vw, 26px)/1.2 system-ui, sans-serif; margin: 0 0 5px; }
.egot-related-converter > p { font-size: 14px; }
.egot-related-converter .egot-form { border: 0; padding: 0; margin: 0; background: transparent; }
.egot-related-converter .egot-drop { min-height: 0; padding: 14px; gap: 7px; background: var(--egot-bg); }
.egot-related-converter .egot-status:empty { display: none; }

@media (max-width: 1023px) {
    .egot-category-anchor { display: flow-root; }
    .egot-category-anchor > .egot-category { margin: 12px 0 16px; text-align: start; }
    .egot-category.is-header-docked { position: relative; margin: 0; border: 0; border-radius: 0; }
    .egot-category.is-header-docked summary { min-height: 44px; text-align: center; border-radius: 0; }
    .egot-category.is-header-docked form {
        position: absolute; inset: 100% 0 auto; z-index: 3; max-height: 50vh; overflow: auto;
        overscroll-behavior: contain; background: #f7f1ff; box-shadow: 0 8px 18px #24123b44;
    }
    .header-mobile-wrap:has(.egot-mobile-bar details[open]) .egot-category.is-header-docked { z-index: -1; }
}
