.tools-main {
    --tools-ink: #101a30;
    --tools-muted: #52617a;
    --tools-line: #dbe3ef;
    --tools-blue: #2555d8;
    background: #f2f5fb;
    color: var(--tools-ink);
    font-family: Manrope, system-ui, sans-serif;
}

.tools-main .container {
    width: min(calc(100% - 48px), 1120px);
}

.tools-main [hidden] {
    display: none;
}

.tools-hero {
    padding: 146px 0 76px;
    color: #f8faff;
    background:
        radial-gradient(ellipse at 88% 0%, #253c79 0%, transparent 52%),
        linear-gradient(128deg, #0a1227 28%, #14234a 100%);
}

.tools-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 20px;
    color: #c0cbea;
    font-size: .86rem;
}

.tools-breadcrumb a:hover {
    color: #fff;
}

.tools-breadcrumb i {
    font-size: .54rem;
}

.tools-hero h1 {
    margin: 0;
    color: #fff;
    font-family: Rubik, Manrope, system-ui, sans-serif;
    font-size: clamp(2.75rem, 5.4vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.04;
}

.tools-hero p {
    margin: 12px 0;
    color: #dee7ff;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.55;
}

.tools-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0cbea;
    font-size: .86rem;
}

.tools-privacy i {
    color: #a8beff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tools-grid--categories {
    grid-auto-rows: 1fr;
}

.tools-grid > li {
    display: flex;
    min-width: 0;
    scroll-margin-top: 124px;
}

.tools-list-link {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 184px;
    flex-direction: column;
    gap: 12px;
    padding: clamp(13px, 2vw, 23px);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #fff;
    color: var(--tools-ink);
    box-shadow: 0 12px 28px #1d36670d;
    transition: border-color 160ms ease, background 160ms ease;
}

.tools-list-link:hover {
    border-color: #7c98dc;
    background: #fbfcff;
}

.tools-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tools-card-header > i {
    color: var(--tools-blue);
    font-size: .91rem;
}

.tools-grid--categories .tools-icon {
    width: 51px;
    height: 51px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.tools-card-copy {
    display: grid;
    gap: 5px;
    overflow-wrap: anywhere;
}

.tools-card-copy strong {
    font-size: clamp(.98rem, 1.7vw, 1.18rem);
    font-weight: 800;
    line-height: 1.3;
}

.tools-card-copy small {
    color: var(--tools-muted);
    font-size: .85rem;
    line-height: 1.45;
}

.tools-card-count {
    margin-top: auto;
    color: #244dbb;
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 850px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 460px) {
    .tools-grid--categories .tools-list-link {
        min-height: 165px;
        aspect-ratio: 1;
        gap: 8px;
    }

    .tools-grid--categories .tools-icon {
        width: 43px;
        height: 43px;
        font-size: 1.1rem;
    }

    .tools-card-count {
        line-height: 1.35;
    }
}

@media (max-width: 360px) {
    .tools-grid--categories .tools-list-link {
        min-height: 174px;
        aspect-ratio: auto;
    }

    .tools-grid:not(.tools-grid--categories) {
        grid-template-columns: minmax(0, 1fr);
    }

    .tools-list-link {
        min-height: 0;
    }
}

.tools-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.tools-icon--qr {
    background: #dbe5ff;
    color: #2b4fbc;
}

.tools-icon--pdf {
    background: #ffe0e7;
    color: #9d314d;
}

.tools-icon--parcel {
    background: #d2f3eb;
    color: #236f64;
}

.tools-qr-symbol {
    position: relative;
    display: block;
    width: 1.1em;
    height: 1.1em;
}

.tools-qr-symbol::before {
    position: absolute;
    top: 0;
    left: 0;
    width: .46em;
    height: .46em;
    box-sizing: border-box;
    border: .12em solid currentColor;
    border-radius: .08em;
    content: "";
}

.tools-qr-symbol::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(currentColor 0 0) right top / .46em .46em,
        linear-gradient(currentColor 0 0) left bottom / .46em .46em,
        linear-gradient(currentColor 0 0) right bottom / .18em .18em,
        linear-gradient(currentColor 0 0) right 0 bottom .28em / .18em .18em,
        linear-gradient(currentColor 0 0) right .28em bottom 0 / .18em .18em;
    background-repeat: no-repeat;
    content: "";
}

.tools-workspace {
    position: relative;
    display: grid;
    gap: 24px;
    margin-top: -42px;
    padding-bottom: 76px;
}

.tools-back {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: #244dbb;
    font-size: .9rem;
    font-weight: 800;
}

.tools-back:hover {
    text-decoration: underline;
}

.tools-back i {
    transform: rotate(180deg);
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    padding: clamp(22px, 4vw, 46px);
    border: 1px solid #e0e7f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 48px #1d366710;
}

.tool-form {
    display: grid;
    justify-items: start;
    gap: 16px;
}

.tool-field {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 6px;
}

.tool-field label {
    color: #212f4a;
    font-size: .88rem;
    font-weight: 800;
}

.tool-field :is(textarea, input, select) {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c8d5e7;
    border-radius: 9px;
    background: #fff;
    color: var(--tools-ink);
    font: inherit;
    font-size: .94rem;
}

.tool-field textarea {
    min-height: 108px;
    resize: vertical;
}

.tool-field :is(textarea, input)::placeholder {
    color: #63748f;
}

.tool-field input[type=file] {
    padding: 7px;
}

.tool-field input::file-selector-button {
    margin-right: 10px;
    padding: 6px 9px;
    border: 0;
    border-radius: 5px;
    background: #eaf0ff;
    color: #25469e;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.tool-field small,
.tool-formula {
    color: var(--tools-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.tool-dimensions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tool-divisor input {
    max-width: 130px;
}

.tool-button,
.tool-download {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--tools-blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.tool-button:hover {
    background: #1c43b2;
}

.tool-button:disabled {
    opacity: .65;
    cursor: wait;
}

.tools-main :is(a, button, input, textarea, select):focus-visible {
    outline: 2px solid #5e85fe;
    outline-offset: 3px;
}

.tool-result {
    display: flex;
    min-width: 0;
    min-height: 290px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 22px;
    border: 1px solid #dce5f8;
    border-radius: 16px;
    background: #f1f5ff;
}

.tool-result-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #354970;
    font-size: .9rem;
    font-weight: 800;
}

.tool-qr-templates {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tool-qr-templates legend {
    margin-bottom: 6px;
    padding: 0;
    color: #212f4a;
    font-size: .88rem;
    font-weight: 800;
}

.tool-qr-options {
    display: grid;
    max-width: 408px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tool-qr-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.tool-qr-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tool-qr-option-card {
    display: grid;
    min-height: 82px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 8px 4px;
    border: 1px solid #c8d5e7;
    border-radius: 9px;
    background: #fff;
    color: #354970;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.tool-qr-option:hover .tool-qr-option-card {
    border-color: #7891cd;
}

.tool-qr-option input:checked + .tool-qr-option-card {
    border-color: var(--tools-blue);
    background: #eff4ff;
    color: #244dbb;
    box-shadow: inset 0 0 0 1px var(--tools-blue);
}

.tool-qr-option input:focus-visible + .tool-qr-option-card {
    outline: 2px solid #5e85fe;
    outline-offset: 3px;
}

.tool-qr-option-swatch {
    display: grid;
    width: 30px;
    height: 34px;
    place-items: center;
    padding: 3px;
    border: 1px solid #dbe3ef;
    border-radius: 4px;
    background: #fff;
    color: #101a30;
    font-size: 1rem;
}

.tool-qr-option input[data-frame-color] + .tool-qr-option-card .tool-qr-option-swatch {
    border: 3px solid var(--qr-template-color);
    border-bottom-width: 7px;
}

.tool-qr-option input[value="scan-me"] + .tool-qr-option-card .tool-qr-option-swatch {
    border-top-width: 7px;
    border-bottom-width: 3px;
}

.tool-result--qr {
    align-items: center;
}

.tool-qr-preview {
    width: min(100%, 224px);
}

.tool-qr-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    border: 1px dashed #a6b6d8;
    border-radius: 12px;
    background: #fff;
    color: #8198ce;
    font-size: 2.5rem;
}

.tool-qr-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.tool-download {
    border-color: #b4c7f5;
    background: #fff;
    color: #244dbb;
}

.tool-download:hover {
    border-color: #5578d6;
    color: #163c9f;
}

.tool-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tools-icon--image {
    background: #e4e8ff;
    color: #5044aa;
}

.tools-image-symbol {
    width: 1.24em;
    height: .98em;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 3px;
    background:
        radial-gradient(circle, currentColor 45%, transparent 54%) 2px 2px / 5px 5px no-repeat,
        linear-gradient(139deg, transparent 49%, currentColor 51%) right bottom / 70% 62% no-repeat;
}

.tools-icon--merge {
    background: #e4ecff;
    color: #344fc4;
}

.tool-field-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.tool-field-heading output {
    color: var(--tools-blue);
    font-size: .9rem;
    font-weight: 800;
}

.tool-field input.tool-quality-range {
    min-height: 32px;
    padding: 0;
    border: 0;
    accent-color: var(--tools-blue);
}

.tool-image-preview {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 9px;
    object-fit: contain;
}

.tool-file-order {
    display: grid;
    width: 100%;
    gap: 6px;
    margin: 0;
    padding-left: 1.6rem;
}

.tool-file-order li {
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--tools-line);
    border-radius: 9px;
    background: #f7f9ff;
}

.tool-file-order li::marker {
    color: #425471;
    font-size: .85rem;
    font-weight: 800;
}

.tool-file-order-name {
    display: inline-block;
    max-width: 100%;
    margin: 4px 8px 4px 0;
    color: #212f4a;
    font-size: .87rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tool-file-order-actions {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}

.tool-file-order-actions button {
    width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #c8d5e7;
    border-radius: 7px;
    background: #fff;
    color: #244dbb;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.tool-file-order-actions button:not(:disabled):hover {
    border-color: #5578d6;
}

.tool-file-order-actions button:disabled {
    color: #63748f;
    opacity: .55;
    cursor: default;
}

.tool-file-sizes {
    display: grid;
    width: 100%;
    gap: 0;
    margin: 0;
}

.tool-file-sizes div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px 12px;
    padding: 11px 0;
    border-bottom: 1px solid #d8e2f4;
}

.tool-file-sizes dt {
    color: #425471;
    font-size: .85rem;
}

.tool-file-sizes dd {
    margin: 0;
    color: #1b325e;
    font-size: 1rem;
    font-weight: 800;
}

.tool-desi-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #2b4fbc;
}

.tool-desi-value output {
    font-size: clamp(2.3rem, 5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.tool-desi-value span {
    font-size: 1rem;
    font-weight: 800;
}

.tools-icon--profit {
    background: #fff0da;
    color: #855216;
}

.tools-icon--whatsapp {
    background: #d9f6e7;
    color: #147851;
}

.tool-paired-fields {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tool-download-actions--start {
    justify-content: flex-start;
}

.tool-download:disabled {
    opacity: .6;
    cursor: default;
}

.tool-desi-value output[data-loss] {
    color: #a5203d;
}

.tool-guide {
    max-width: 740px;
    padding: 4px 0 0;
    color: var(--tools-muted);
    font-size: .94rem;
    line-height: 1.65;
}

.tool-guide h2 {
    margin: 0 0 8px;
    color: var(--tools-ink);
    font-size: 1.16rem;
}

.tool-guide p {
    margin: 0;
}

.tool-guide ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.tool-guide a {
    color: #244dbb;
    font-weight: 800;
}

.tool-guide a:hover {
    text-decoration: underline;
}

.tools-icon--split {
    background: #f3e5ff;
    color: #6a3f9b;
}

.tools-icon--utm {
    background: #ddeeff;
    color: #1a568f;
}

.tools-utm-symbol {
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.tool-utm-options {
    width: 100%;
    color: #354970;
    font-size: .9rem;
}

.tool-utm-options summary {
    width: fit-content;
    cursor: pointer;
    font-weight: 800;
}

.tool-utm-options summary:focus-visible {
    outline: 2px solid #5e85fe;
    outline-offset: 3px;
}

.tool-utm-options .tool-paired-fields {
    margin-top: 10px;
}

.tool-usage-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--tools-line);
    border-radius: 12px;
    background: #f8faff;
    color: var(--tools-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.tool-usage-note i {
    margin-top: 3px;
    color: var(--tools-blue);
}

.tool-usage-note h2 {
    margin: 0 0 3px;
    color: var(--tools-ink);
    font-size: .92rem;
}

.tool-usage-note p {
    margin: 0 0 5px;
}

.tool-usage-note a {
    color: #244dbb;
    font-weight: 800;
    text-decoration: underline;
}

.tools-icon--resize {
    background: #ddf0fb;
    color: #185e83;
}

.tools-icon--image-pdf {
    background: #ffe9e1;
    color: #a34b2e;
}

.tools-icon--seo {
    background: #e8edff;
    color: #3e50a6;
}

.tool-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #212f4a;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
}

.tool-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--tools-blue);
}

.tool-search-preview {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--tools-line);
    border-radius: 9px;
    background: #fff;
    overflow-wrap: anywhere;
}

.tool-search-preview small {
    color: #52617a;
    font-size: .83rem;
}

.tool-search-preview strong {
    color: #244dbb;
    font-size: 1.05rem;
    line-height: 1.3;
}

.tool-search-preview p {
    margin: 0;
    color: #354970;
    font-size: .86rem;
    line-height: 1.5;
}

#seo-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: .83rem;
}

.tools-icon--palette {
    background: #e8e6ff;
    color: #5e3cab;
}

.tool-palette {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-palette li {
    display: grid;
    gap: 5px;
    padding: 5px;
    border: 1px solid #d8e3f3;
    border-radius: 9px;
    background: #fff;
    text-align: center;
}

.tool-palette-swatch {
    height: 34px;
    border: 1px solid #17264025;
    border-radius: 5px;
}

.tool-palette code {
    color: var(--tools-ink);
    font-size: .8rem;
    font-weight: 700;
}

.tool-field .tool-color-inputs {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
}

.tool-color-inputs input[type=color] {
    padding: 4px;
    cursor: pointer;
}

.tool-contrast-preview {
    width: 100%;
    padding: 14px;
    border: 1px solid #c8d5e7;
    border-radius: 10px;
}

.tool-contrast-preview strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1.25rem;
}

.tool-contrast-preview p {
    margin: 0;
}

.tool-file-sizes dd[data-contrast-result=pass] {
    color: #205d40;
}

.tool-file-sizes dd[data-contrast-result=fail] {
    color: #a5203d;
}

.tool-crop-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    background: #e8edf7;
    cursor: crosshair;
    touch-action: none;
}

.tool-image-transparency {
    background: repeating-conic-gradient(#e1e6ef 0% 25%, #fff 0% 50%) 50% / 16px 16px;
}

.tools-icon--text {
    background: #e1f1fe;
    color: #275e91;
}

.tools-text-symbol {
    font-size: .94em;
    font-weight: 800;
    letter-spacing: -.06em;
}

.tool-text-options {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.tool-text-options legend {
    margin-bottom: 8px;
    padding: 0;
    color: #212f4a;
    font-size: .88rem;
    font-weight: 800;
}

.tool-code-swatch {
    width: 100%;
    height: 72px;
    border: 1px solid #17264030;
    border-radius: 9px;
}

#color-code-output {
    font-family: ui-monospace, Consolas, monospace;
    font-size: .88rem;
}

.tool-formula,
.tool-status,
.tool-noscript {
    margin: 0;
    overflow-wrap: anywhere;
}

.tool-status,
.tool-noscript {
    color: #3b4e70;
    font-size: .87rem;
    font-weight: 700;
}

.tool-status[data-error] {
    color: #a5203d;
}

@media (max-width: 900px) {
    .tools-hero {
        padding-top: 118px;
    }
}

@media (max-width: 720px) {
    .tools-main .container {
        width: min(calc(100% - 32px), 1120px);
    }

    .tools-hero {
        padding: 104px 0 72px;
    }

    .tool-panel {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 17px;
    }

    .tools-hero h1 {
        font-size: clamp(2.15rem, 8vw, 3.6rem);
    }

    .tools-breadcrumb {
        margin-bottom: 18px;
    }

    .tools-workspace {
        margin-top: -34px;
        padding-bottom: 52px;
    }

    .tool-result {
        min-height: 0;
        padding: 16px;
    }

    .tool-field :is(input, textarea, select) {
        font-size: 1rem;
    }
}

@media (max-width: 370px) {
    .tool-paired-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .tool-dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.tool-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-qr-camera {
    width: 100%;
    max-height: 280px;
    border-radius: 12px;
    background: var(--tools-ink);
}

#social-fetch {
    width: 100%;
}

.tool-social-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dce5f8;
    border-radius: 12px;
    background: #fff;
    color: var(--tools-ink);
}

.tool-social-image {
    display: grid;
    aspect-ratio: 1.91;
    place-items: center;
    overflow: hidden;
    background: #e4ebfa;
    color: var(--tools-muted);
    font-size: .85rem;
}

.tool-social-image > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.tool-social-card-body {
    display: grid;
    gap: 4px;
    padding: 13px 16px 16px;
    overflow-wrap: anywhere;
}

.tool-social-card-body small,
.tool-social-card-body p,
.tool-result:has(.tool-social-card) > small {
    color: var(--tools-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.tool-social-card-body p {
    margin: 0;
}

.tool-field textarea.tool-redirect-output {
    font-family: ui-monospace, Consolas, monospace;
    font-size: .85rem;
}

.tool-rule-fields {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tool-redirect-steps {
    display: grid;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-redirect-steps li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid #dce5f8;
    border-radius: 8px;
    background: #fff;
    color: var(--tools-ink);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.tool-redirect-steps li strong {
    font-weight: 800;
}

.tool-redirect-steps [data-http-class] {
    color: var(--tools-blue);
    font-variant-numeric: tabular-nums;
}

.tool-redirect-steps [data-http-class="2"] {
    color: #0a714c;
}

.tool-redirect-steps :is([data-http-class="4"], [data-http-class="5"], [data-error]) {
    color: #9b243c;
}

.tool-local-image-preview {
    width: 100%;
    max-height: 270px;
    border: 1px solid #dce5f8;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

@media (max-width: 520px) {
    .tool-rule-fields {
        grid-template-columns: 1fr;
    }
}

.tool-wide-panel {
    grid-column: 1 / -1;
    min-width: 0;
}

.tool-sort-workspace,
.tool-compare-inputs,
.tool-compare-table {
    width: 100%;
    min-width: 0;
}

.tool-sort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 142px), 1fr));
    gap: 12px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.tool-sort-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dce5f8;
    border-radius: 12px;
    background: #f1f5ff;
    color: var(--tools-ink);
    font-size: .86rem;
}

.tool-sort-card[data-dragging] {
    opacity: .65;
}

.tool-sort-card[data-drop-target] {
    outline: 2px solid var(--tools-blue);
    outline-offset: 2px;
}

.tool-sort-thumbnail {
    display: grid;
    height: 132px;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #e3eaf8;
    text-align: center;
    color: var(--tools-muted);
}

.tool-sort-thumbnail img {
    width: 100%;
    height: 132px;
    object-fit: contain;
}

.tool-sort-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.tool-sort-controls button {
    min-height: 36px;
    padding: 0;
    border: 1px solid #c8d5e7;
    border-radius: 6px;
    background: #fff;
    color: var(--tools-blue);
    cursor: pointer;
}

.tool-sort-controls button[data-sort-action=drag] {
    cursor: grab;
    touch-action: none;
}

.tool-sort-controls button[data-sort-action=drag]:active {
    cursor: grabbing;
}

.tool-sort-controls button:disabled {
    opacity: .38;
    cursor: default;
}

.tool-compare-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tool-compare-result {
    margin-top: 24px;
}

.tool-compare-result h2 {
    margin: 0;
    color: var(--tools-ink);
    font-size: 1.05rem;
}

.tool-compare-table {
    margin: 12px 0 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--tools-ink);
    font-size: .87rem;
}

.tool-compare-table :is(th, td) {
    padding: 9px 12px;
    border: 1px solid #dce5f8;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.tool-compare-table th {
    background: #f1f5ff;
}

.tool-compare-table small {
    color: var(--tools-muted);
}

.tool-compare-line {
    white-space: pre-wrap;
}

.tool-compare-table [data-diff=changed] td {
    background: #fff3d8;
}

.tool-compare-table [data-diff=added] td:not([data-empty]) {
    background: #e5f8ed;
}

.tool-compare-table [data-diff=removed] td:not([data-empty]) {
    background: #fff0f1;
}

.tool-compare-table td[data-empty] {
    color: var(--tools-muted);
    background: #f7f9fd;
}

.tool-ean-preview {
    width: min(100%, 340px);
    height: auto;
    align-self: center;
    border: 1px solid #dce5f8;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 560px) {
    .tool-compare-inputs {
        grid-template-columns: 1fr;
    }

    .tool-compare-table :is(th, td) {
        padding: 7px;
    }
}
