.noesia-swa-image-tools {
    --image-tools-bg: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    --image-tools-surface: rgba(255, 255, 255, 0.96);
    --image-tools-border: rgba(15, 23, 42, 0.08);
    --image-tools-text: #0f172a;
    --image-tools-muted: #64748b;
    --image-tools-accent: #2563eb;
    --image-tools-accent-soft: rgba(37, 99, 235, 0.1);
    --image-tools-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    color: var(--image-tools-text);
    position: relative;
}

.wp-core-ui .noesia-swa-image-tools .button {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.noesia-swa-image-tools__hero-copy,
.noesia-swa-image-tools__dropzone-wrap,
.noesia-swa-image-tools__panel,
.noesia-swa-image-tools__queue-panel,
.noesia-swa-image-tools__card {
    background: var(--image-tools-surface);
    border: 1px solid var(--image-tools-border);
    border-radius: 28px;
    box-shadow: var(--image-tools-shadow);
    backdrop-filter: blur(12px);
}

.noesia-swa-image-tools__hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 18px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 38%), var(--image-tools-bg);
}

.noesia-swa-image-tools__hero-main {
    display: grid;
    gap: 10px;
}

.noesia-swa-image-tools__eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--image-tools-accent-soft);
    color: var(--image-tools-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.noesia-swa-image-tools__hero-copy h3 {
    margin: 12px 0 0;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--image-tools-text);
}

.noesia-swa-image-tools__hero-copy p,
.noesia-swa-image-tools__panel-head p,
.noesia-swa-image-tools__queue-head p,
.noesia-swa-image-tools__status {
    margin: 0;
    color: var(--image-tools-muted);
    font-size: 14px;
    line-height: 1.7;
}

.noesia-swa-image-tools__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.noesia-swa-image-tools__stats article {
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.noesia-swa-image-tools__stats strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 6px;
}

.noesia-swa-image-tools__stats span {
    display: block;
    font-size: 12px;
    color: var(--image-tools-muted);
    font-weight: 600;
}

.noesia-swa-image-tools__dropzone-wrap {
    padding: 20px;
    margin-bottom: 22px;
}

.noesia-swa-image-tools__dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 190px;
    border-radius: 24px;
    border: 2px dashed rgba(37, 99, 235, 0.22);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0.95));
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.noesia-swa-image-tools__dropzone.is-dragover {
    border-color: var(--image-tools-accent);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.13), rgba(255, 255, 255, 0.98));
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.noesia-swa-image-tools__drop-icon {
    font-size: 34px;
    width: 34px;
    height: 34px;
    color: var(--image-tools-accent);
}

.noesia-swa-image-tools__dropzone strong {
    font-size: 24px;
    line-height: 1.15;
}

.noesia-swa-image-tools__dropzone span,
.noesia-swa-image-tools__dropzone em {
    display: block;
    color: var(--image-tools-muted);
    font-style: normal;
    max-width: 420px;
}

.noesia-swa-image-tools__file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.noesia-swa-image-tools__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--image-tools-text) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.noesia-swa-image-tools__button:hover,
.noesia-swa-image-tools__button:focus {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.26) !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.noesia-swa-image-tools__button--primary {
    background: linear-gradient(180deg, #2f7cff, #2563eb) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.noesia-swa-image-tools__button--block {
    width: 100%;
    margin-top: 14px;
}

.noesia-swa-image-tools__button--soft {
    min-height: 42px;
    min-width: 0;
    padding: 10px 14px !important;
    background: rgba(248, 250, 252, 0.92) !important;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.noesia-swa-image-tools__presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
    align-items: stretch;
}

.noesia-swa-image-tools__presets .noesia-swa-image-tools__button {
    width: 100%;
}

.noesia-swa-image-tools__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.noesia-swa-image-tools__status {
    margin-top: 14px;
    min-height: 24px;
}

.noesia-swa-image-tools__layout {
    display: grid;
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.noesia-swa-image-tools__sidebar {
    display: grid;
    gap: 18px;
}

.noesia-swa-image-tools__panel,
.noesia-swa-image-tools__queue-panel {
    padding: 22px;
}

.noesia-swa-image-tools__panel-head h4,
.noesia-swa-image-tools__queue-head h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.noesia-swa-image-tools__field,
.noesia-swa-image-tools__field-grid {
    margin-top: 16px;
}

.noesia-swa-image-tools__field label,
.noesia-swa-image-tools__field-head label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--image-tools-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.noesia-swa-image-tools__field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.noesia-swa-image-tools__field-head span {
    font-size: 12px;
    color: var(--image-tools-accent);
    font-weight: 700;
}

.noesia-swa-image-tools__field input[type="number"],
.noesia-swa-image-tools__field select,
.noesia-swa-image-tools__field input[type="range"] {
    width: 100%;
    box-sizing: border-box;
}

.noesia-swa-image-tools__field input[type="number"],
.noesia-swa-image-tools__field select {
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 10px 14px;
    background: #ffffff;
}

.noesia-swa-image-tools__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.noesia-swa-image-tools__checklist {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.noesia-swa-image-tools__checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--image-tools-text);
}

.noesia-swa-image-tools__notes {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--image-tools-muted);
    line-height: 1.7;
}

.noesia-swa-image-tools__queue-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.noesia-swa-image-tools__view-switch {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.noesia-swa-image-tools__view-switch .is-active {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--image-tools-accent) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
}

.noesia-swa-image-tools__queue {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.noesia-swa-image-tools__card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.noesia-swa-image-tools__card-top,
.noesia-swa-image-tools__card-meta,
.noesia-swa-image-tools__card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.noesia-swa-image-tools__card-top {
    margin-bottom: 14px;
}

.noesia-swa-image-tools__filename {
    font-weight: 700;
    font-size: 14px;
    word-break: break-word;
}

.noesia-swa-image-tools__remove {
    border: 0;
    background: rgba(148, 163, 184, 0.14);
    color: var(--image-tools-text);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
}

.noesia-swa-image-tools__preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.noesia-swa-image-tools__preview {
    border: 1px solid var(--image-tools-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    padding: 12px;
}

.noesia-swa-image-tools__preview span,
.noesia-swa-image-tools__preview small {
    display: block;
}

.noesia-swa-image-tools__preview span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--image-tools-muted);
    font-weight: 700;
    margin-bottom: 10px;
}

.noesia-swa-image-tools__preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.noesia-swa-image-tools__preview small {
    margin-top: 10px;
    color: var(--image-tools-muted);
    line-height: 1.5;
    min-height: 40px;
}

.noesia-swa-image-tools__summary {
    display: none;
    gap: 8px;
    margin-top: 12px;
}

.noesia-swa-image-tools__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
}

.noesia-swa-image-tools__summary-row span {
    font-size: 12px;
    font-weight: 700;
    color: var(--image-tools-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.noesia-swa-image-tools__summary-row strong {
    font-size: 12px;
    color: var(--image-tools-text);
    text-align: right;
}

.noesia-swa-image-tools__card-meta {
    margin-top: 14px;
}

.noesia-swa-image-tools__badge,
.noesia-swa-image-tools__saving {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
}

.noesia-swa-image-tools__badge {
    background: rgba(37, 99, 235, 0.09);
    color: var(--image-tools-accent);
}

.noesia-swa-image-tools__badge.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.noesia-swa-image-tools__badge.is-ready {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.noesia-swa-image-tools__saving {
    background: rgba(15, 23, 42, 0.06);
    color: var(--image-tools-text);
}

.noesia-swa-image-tools__card-actions {
    margin-top: 2px;
    gap: 10px;
}

.noesia-swa-image-tools__card-actions .noesia-swa-image-tools__button {
    flex: 1 1 auto;
}

.noesia-swa-image-tools__empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 22px;
    color: var(--image-tools-muted);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 1));
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__queue {
    grid-template-columns: 1fr;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card-main {
    min-width: 0;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__preview-grid {
    display: none;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__summary {
    display: grid;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card-actions {
    flex-direction: column;
    justify-content: center;
    min-width: 150px;
    margin-top: 0;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card-actions .noesia-swa-image-tools__button {
    width: 100%;
}

.noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card-meta {
    justify-content: flex-start;
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__hero-copy,
    .noesia-swa-image-tools__layout,
    .noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card {
        grid-template-columns: 1fr;
    }

    .noesia-swa-image-tools[data-image-tools-view="list"] .noesia-swa-image-tools__card-actions {
        min-width: 0;
        flex-direction: row;
    }
}

@media (max-width: 900px) {
    .noesia-swa-image-tools__queue,
    .noesia-swa-image-tools__preview-grid,
    .noesia-swa-image-tools__field-grid,
    .noesia-swa-image-tools__stats,
    .noesia-swa-image-tools__queue-head {
        grid-template-columns: 1fr;
    }

    .noesia-swa-image-tools__hero-copy h3 {
        font-size: 26px;
    }

    .noesia-swa-image-tools__queue-head {
        display: grid;
    }

    .noesia-swa-image-tools__toolbar,
    .noesia-swa-image-tools__card-actions {
        flex-direction: column;
    }

    .noesia-swa-image-tools__toolbar .noesia-swa-image-tools__button,
    .noesia-swa-image-tools__card-actions .noesia-swa-image-tools__button,
    .noesia-swa-image-tools__view-switch .noesia-swa-image-tools__button {
        width: 100%;
    }
}

.noesia-swa-image-tools__hint {
    margin: 12px 0 0;
    color: var(--image-tools-muted);
    font-size: 12px;
    line-height: 1.6;
}


.noesia-swa-image-tools__microcopy {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #5f6b7a;
}

@media (max-width: 1024px) {
    .noesia-swa-image-tools__presets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .noesia-swa-image-tools__presets {
        grid-template-columns: 1fr;
    }

    .noesia-swa-image-tools__button--soft {
        min-height: 40px;
        padding: 9px 12px !important;
    }
}

.noesia-swa-image-tools__mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.noesia-swa-image-tools__tab-panel[hidden] {
    display: none !important;
}

.noesia-swa-image-tools__design-shell {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    align-items: start;
}

.noesia-swa-image-tools__design-shell--stacked {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
}

.noesia-swa-image-tools__design-sidebar,
.noesia-swa-image-tools__design-main {
    display: grid;
    gap: 20px;
}

.noesia-swa-image-tools__design-sidebar.is-sticky {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-right: 6px;
}

.noesia-swa-image-tools__panel--compact {
    padding: 18px;
}

.noesia-swa-image-tools__design-main--stacked {
    display: grid;
    gap: 20px;
}

.noesia-swa-image-tools__design-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.noesia-swa-image-tools__design-toolbar--stacked {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.noesia-swa-image-tools__toolbar--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.noesia-swa-image-tools__mini-dropzone {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    cursor: pointer;
}

.noesia-swa-image-tools__mini-dropzone .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #8cb9ff;
}

.noesia-swa-image-tools__mini-dropzone strong {
    color: #999;
}

.noesia-swa-image-tools__mini-dropzone em {
    font-style: normal;
    color: #97a6b8;
}

.noesia-swa-image-tools__design-stage {
    position: relative;
    min-height: 560px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
        radial-gradient(circle at top right, rgba(76, 139, 245, 0.14), transparent 34%),
        linear-gradient(180deg, #0f1218, #0b0d11);
    overflow: hidden;
}

.noesia-swa-image-tools__design-stage--preview {
    min-height: 360px;
}

.noesia-swa-image-tools__design-stage canvas {
    display: block;
    width: 100%;
    height: 520px;
    border-radius: 18px;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    touch-action: none;
}

.noesia-swa-image-tools__design-stage--preview canvas {
    height: 320px;
}

.noesia-swa-image-tools__design-empty {
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
    padding: 30px;
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.14);
    background: rgba(8, 10, 14, 0.55);
    color: #c9d3df;
    z-index: 2;
}

.noesia-swa-image-tools__design-empty .dashicons {
    font-size: 38px;
    width: 38px;
    height: 38px;
    color: #8cb9ff;
}

.noesia-swa-image-tools__filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.noesia-swa-image-tools__layer-list {
    display: grid;
    gap: 10px;
}

.noesia-swa-image-tools__layer-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.noesia-swa-image-tools__layer-row.is-selected {
    border-color: rgba(76, 139, 245, 0.62);
    box-shadow: 0 0 0 1px rgba(76, 139, 245, 0.32) inset;
}

.noesia-swa-image-tools__layer-title {
    min-width: 0;
}

.noesia-swa-image-tools__layer-title strong,
.noesia-swa-image-tools__layer-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.noesia-swa-image-tools__layer-title span {
    color: #95a5bb;
    font-size: 12px;
}

.noesia-swa-image-tools__layer-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #e8effb;
    font-size: 12px;
    font-weight: 700;
}

.noesia-swa-image-tools__layer-toggle {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #d7dfeb;
    cursor: pointer;
}

.noesia-swa-image-tools__field textarea {
    min-height: 90px;
    resize: vertical;
}

.noesia-swa-image-tools__thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.noesia-swa-image-tools__thumb {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: #f4f7fb;
    text-align: left;
    cursor: pointer;
}

.noesia-swa-image-tools__thumb.is-active {
    border-color: rgba(76, 139, 245, 0.62);
    box-shadow: 0 0 0 1px rgba(76, 139, 245, 0.24) inset;
}

.noesia-swa-image-tools__thumb-image-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(10, 13, 18, 0.75);
}

.noesia-swa-image-tools__thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noesia-swa-image-tools__thumb-meta strong,
.noesia-swa-image-tools__thumb-meta small {
    display: block;
}

.noesia-swa-image-tools__thumb-meta small {
    color: #95a5bb;
}

.noesia-swa-image-tools__thumb-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 14, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 18px;
}

.noesia-swa-image-tools__thumb-empty {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.12);
    color: #9fb0c4;
}

.noesia-swa-image-tools__design-notes-wrap {
    margin-top: 14px;
}

.noesia-swa-image-tools__info-box {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #d9e2ee;
}

.noesia-swa-image-tools__info-box--accent {
    border-color: rgba(87, 174, 255, 0.24);
    background: linear-gradient(180deg, rgba(39, 96, 171, 0.16), rgba(255,255,255,0.03));
}

.noesia-swa-image-tools__info-box--subtle {
    opacity: 0.88;
    background: rgba(255,255,255,0.02);
}

.noesia-swa-image-tools__callout-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 18px;
}

.noesia-swa-image-tools__callout-grid article {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.noesia-swa-image-tools__callout-grid article strong {
    display: block;
    margin-bottom: 6px;
    color: #f4f7fb;
}

.noesia-swa-image-tools__callout-grid article p {
    margin: 0;
    color: #aab8c9;
}

.noesia-swa-image-tools__button--danger {
    border-color: rgba(255, 95, 95, 0.3) !important;
    color: #ff8c8c !important;
}

.noesia-swa-image-tools__button.is-disabled,
.noesia-swa-image-tools__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.noesia-swa-image-tools__bg-layout {

    display: grid;
    gap: 20px;
}

.noesia-swa-image-tools__panel--hero {
    padding: 22px;
}

@media (max-width: 1600px) {
    .noesia-swa-image-tools__design-shell,
    .noesia-swa-image-tools__design-shell--stacked {
        grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    }
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__design-shell,
    .noesia-swa-image-tools__design-shell--stacked {
        grid-template-columns: 1fr;
    }

    .noesia-swa-image-tools__design-sidebar.is-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .noesia-swa-image-tools__design-stage {
        min-height: 520px;
    }

    .noesia-swa-image-tools__design-stage canvas {
        height: 480px;
    }

    .noesia-swa-image-tools__design-stage--preview {
        min-height: 300px;
    }

    .noesia-swa-image-tools__design-stage--preview canvas {
        height: 260px;
    }

    .noesia-swa-image-tools__design-toolbar--stacked {
        grid-template-columns: 1fr;
    }
}


.noesia-swa-image-tools__hero-copy--compact {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__hero-main {
    gap: 6px;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__eyebrow {
    padding: 5px 10px;
    font-size: 11px;
}

.noesia-swa-image-tools__hero-copy--compact h3 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.08;
}

.noesia-swa-image-tools__hero-copy--compact p {
    font-size: 13px;
    line-height: 1.45;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__stats article {
    padding: 10px 12px;
    border-radius: 16px;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__stats strong {
    font-size: 22px;
    margin-bottom: 4px;
}

.noesia-swa-image-tools__mode-tabs {
    gap: 8px;
    margin-bottom: 14px;
}

.noesia-swa-image-tools__mode-tabs .noesia-swa-image-tools__button {
    min-height: 38px;
}

.noesia-swa-image-tools__design-sidebar.is-sticky {
    top: 12px;
    max-height: calc(100vh - 88px);
}

.noesia-swa-image-tools__panel--compact,
.noesia-swa-image-tools__panel,
.noesia-swa-image-tools__queue-panel {
    padding: 16px;
}

.noesia-swa-image-tools__panel-head h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.noesia-swa-image-tools__panel-head p,
.noesia-swa-image-tools__queue-head p,
.noesia-swa-image-tools__status,
.noesia-swa-image-tools__microcopy {
    font-size: 13px;
    line-height: 1.45;
}

.noesia-swa-image-tools__field,
.noesia-swa-image-tools__field-grid {
    margin-top: 12px;
}

.noesia-swa-image-tools__mini-dropzone {
    padding: 14px;
    gap: 6px;
}

.noesia-swa-image-tools__mini-dropzone--bg {
    background: rgba(15, 21, 30, 0.7);
    border-color: rgba(140, 185, 255, 0.28);
}

.noesia-swa-image-tools__stage-quickbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #fff;
}

.noesia-swa-image-tools__stage-quickbar .noesia-swa-image-tools__button {
    min-height: 34px;
    padding: 0 12px !important;
    font-size: 12px;
}

.noesia-swa-image-tools__quick-select,
.noesia-swa-image-tools__quick-number,
.noesia-swa-image-tools__quick-color {
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #edf3fb;
}

.noesia-swa-image-tools__quick-select {
    min-width: 130px;
    padding: 0 10px;
}

.noesia-swa-image-tools__quick-number {
    width: 72px;
    padding: 0 8px;
}

.noesia-swa-image-tools__quick-color {
    width: 42px;
    padding: 0;
}

.noesia-swa-image-tools__quick-range {
    width: 112px;
    height: 34px;
    accent-color: #2563eb;
}

.noesia-swa-image-tools__quick-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.noesia-swa-image-tools__stage-quickbar .noesia-swa-image-tools__button.is-active {
    background: linear-gradient(180deg, #2f7cff, #2563eb) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.noesia-swa-image-tools__design-stage {
    min-height: 700px;
}

.noesia-swa-image-tools__design-stage canvas {
    height: 660px;
}

.noesia-swa-image-tools__design-stage--preview {
    min-height: 380px;
}

.noesia-swa-image-tools__design-stage--preview canvas {
    height: 340px;
}

.noesia-swa-image-tools__stage-drop-hint {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(8, 10, 14, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cdd8e7;
    font-size: 12px;
    line-height: 1.35;
    max-width: 260px;
}

.noesia-swa-image-tools__design-stage.is-dragover {
    border-color: rgba(140, 185, 255, 0.58);
    box-shadow: 0 0 0 1px rgba(140,185,255,0.25) inset, 0 18px 36px rgba(12,18,28,0.24);
}

.noesia-swa-image-tools__design-notes-wrap {
    margin-top: 10px;
}

.noesia-swa-image-tools__info-box--subtle {
    padding: 10px 12px;
    gap: 4px;
    opacity: 0.78;
}

.noesia-swa-image-tools__info-box--subtle strong {
    font-size: 12px;
}

.noesia-swa-image-tools__info-box--subtle p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.noesia-swa-image-tools__bg-layout {
    display: grid;
    gap: 16px;
}

.noesia-swa-image-tools__bg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
}

.noesia-swa-image-tools__bg-progress {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 12px;
}

.noesia-swa-image-tools__bg-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #63a3ff, #8fd3ff);
}

.noesia-swa-image-tools__bg-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.noesia-swa-image-tools__bg-preview {
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)), #0b0d11;
    overflow: hidden;
}

.noesia-swa-image-tools__bg-preview img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__hero-copy--compact {
        grid-template-columns: 1fr;
    }
    .noesia-swa-image-tools__design-stage {
        min-height: 560px;
    }
    .noesia-swa-image-tools__design-stage canvas {
        height: 520px;
    }
    .noesia-swa-image-tools__bg-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Focused repair pass: compact workspace, sticky rail, larger preview, minimal notes, better BG remove contrast. */
.noesia-swa-image-tools__hero-copy--compact {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 320px);
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__hero-main {
    gap: 4px;
}

.noesia-swa-image-tools__hero-copy--compact h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.noesia-swa-image-tools__hero-copy--compact p {
    font-size: 12px;
    line-height: 1.3;
}

.noesia-swa-image-tools__hero-copy--compact .noesia-swa-image-tools__stats article {
    padding: 8px 10px;
}

.noesia-swa-image-tools__mode-tabs {
    margin-bottom: 10px;
}

.noesia-swa-image-tools__design-shell--stacked {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 14px;
}

.noesia-swa-image-tools__design-sidebar.is-sticky {
    top: 10px;
    max-height: calc(100vh - 72px);
    overflow: auto;
    padding-right: 4px;
}

.noesia-swa-image-tools__design-sidebar,
.noesia-swa-image-tools__design-main--stacked {
    gap: 14px;
}

.noesia-swa-image-tools__panel,
.noesia-swa-image-tools__panel--compact,
.noesia-swa-image-tools__queue-panel,
.noesia-swa-image-tools__dropzone-wrap {
    padding: 14px;
}

.noesia-swa-image-tools__panel-head p,
.noesia-swa-image-tools__queue-head p,
.noesia-swa-image-tools__status,
.noesia-swa-image-tools__microcopy,
.noesia-swa-image-tools__notes li,
.noesia-swa-image-tools__stage-drop-hint {
    font-size: 12px;
    line-height: 1.35;
}

.noesia-swa-image-tools__field,
.noesia-swa-image-tools__field-grid {
    margin-top: 10px;
}

.noesia-swa-image-tools__field--end {
    display: flex;
    align-items: flex-end;
}

.noesia-swa-image-tools__mini-dropzone--design {
    margin-top: 12px;
    background: rgba(7, 12, 20, 0.82);
    border-color: rgba(140, 185, 255, 0.2);
}

.noesia-swa-image-tools__stage-quickbar {
    position: sticky;
    top: 0;
    z-index: 5;
    margin-bottom: 8px;
    padding: 8px 10px;
    gap: 6px;
}

.noesia-swa-image-tools__stage-quickbar .noesia-swa-image-tools__button {
    min-height: 32px;
    padding: 0 10px !important;
}

.noesia-swa-image-tools__design-stage {
    min-height: 820px;
}

.noesia-swa-image-tools__design-stage canvas {
    height: 780px;
}

.noesia-swa-image-tools__design-empty {
    gap: 8px;
    padding: 20px;
}

.noesia-swa-image-tools__design-empty p,
.noesia-swa-image-tools__design-notes-wrap,
.noesia-swa-image-tools__panel--preview-secondary {
    display: none !important;
}

.noesia-swa-image-tools__stage-drop-hint {
    max-width: 220px;
    padding: 6px 8px;
}

.noesia-swa-image-tools__thumb-strip {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.noesia-swa-image-tools__bg-layout {
    gap: 14px;
}

.noesia-swa-image-tools__panel--hero {
    padding: 14px;
}

.noesia-swa-image-tools__info-box--compact {
    padding: 10px 12px;
    gap: 4px;
}

.noesia-swa-image-tools__info-box--compact strong,
.noesia-swa-image-tools__panel--hero .noesia-swa-image-tools__panel-head h4,
.noesia-swa-image-tools__bg-preview-grid .noesia-swa-image-tools__panel-head h4 {
    color: #f4f7fb;
}

.noesia-swa-image-tools__panel--hero .noesia-swa-image-tools__panel-head p,
.noesia-swa-image-tools__info-box--compact p,
.noesia-swa-image-tools__bg-badges,
.noesia-swa-image-tools__status,
.noesia-swa-image-tools__mini-dropzone--bg em {
    color: #d4dceb;
}

.noesia-swa-image-tools__bg-preview {
    min-height: 420px;
}

.noesia-swa-image-tools__bg-preview img {
    max-height: 420px;
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__design-shell--stacked {
        grid-template-columns: 1fr;
    }

    .noesia-swa-image-tools__design-stage {
        min-height: 620px;
    }

    .noesia-swa-image-tools__design-stage canvas {
        height: 580px;
    }
}


.noesia-swa-image-tools__panel-head--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.noesia-swa-image-tools__thumb-add {
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px !important;
    font-size: 20px;
    line-height: 1;
}

.noesia-swa-image-tools__layer-toggle--danger {
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.22) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

.noesia-swa-image-tools__button-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;}


/* Design editor enhancements */
.noesia-swa-image-tools__design-stage {
    --design-stage-bg: #0f172a;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.04) 75%, transparent 75%, transparent),
        var(--design-stage-bg) !important;
    background-size: auto, 18px 18px, auto !important;
}
.noesia-swa-image-tools__quick-swatches {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.noesia-swa-image-tools__swatch {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 12px rgba(15,23,42,0.18);
    background: var(--swatch, #0f172a);
    padding: 0;
    cursor: pointer;
}
.noesia-swa-image-tools__swatch.is-active {
    outline: 2px solid rgba(37,99,235,0.65);
    outline-offset: 2px;
}
.noesia-swa-image-tools__sidebar > .noesia-swa-image-tools__panel .noesia-swa-image-tools__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.noesia-swa-image-tools__panel-toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.22);
    background: rgba(255,255,255,0.92);
    color: var(--image-tools-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}
.noesia-swa-image-tools__panel-toggle span {
    display: inline-block;
    transition: transform 0.18s ease;
}
.noesia-swa-image-tools__panel.is-collapsed > :not(.noesia-swa-image-tools__panel-head) {
    display: none !important;
}
.noesia-swa-image-tools__panel.is-collapsed .noesia-swa-image-tools__panel-toggle span {
    transform: rotate(-90deg);
}
.noesia-swa-image-tools__panel.is-collapsed {
    padding-bottom: 16px !important;
}


/* Visual cleanup: solid workspace surface without internal grid lines */
.noesia-swa-image-tools__design-stage {
    background: var(--design-stage-bg, #0f172a) !important;
    background-image: none !important;
}
.noesia-swa-image-tools__design-stage canvas {
    background: var(--design-stage-bg, #0f172a) !important;
    background-image: none !important;
}


.noesia-swa-image-tools__design-grid-overlay {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    border-radius: 18px;
    background-image:
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
    background-size: 24px 24px, 24px 24px, 18px 18px;
    background-position: 0 0, 0 0, 0 0;
    z-index: 8;
}
.noesia-swa-image-tools__design-stage.is-grid-visible .noesia-swa-image-tools__design-grid-overlay {
    opacity: 1;
}
.noesia-swa-image-tools__design-stage canvas,
.noesia-swa-image-tools__design-stage .noesia-swa-image-tools__design-empty,
.noesia-swa-image-tools__design-stage .noesia-swa-image-tools__stage-drop-hint {
    position: relative;
    z-index: 3;
}

.noesia-swa-image-tools__converter-shell {
    display: grid;
    gap: 18px;
}

.noesia-swa-image-tools__converter-hero,
.noesia-swa-image-tools__converter-panel,
.noesia-swa-image-tools__converter-dropzone {
    background: var(--image-tools-surface);
    border: 1px solid var(--image-tools-border);
    border-radius: 28px;
    box-shadow: var(--image-tools-shadow);
    backdrop-filter: blur(12px);
}

.noesia-swa-image-tools__converter-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: start;
    padding: 20px 24px;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.98));
    color: #f8fafc;
}

.noesia-swa-image-tools__converter-hero h4 {
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.noesia-swa-image-tools__converter-hero p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
}

.noesia-swa-image-tools__converter-badges {
    display: grid;
    gap: 10px;
}

.noesia-swa-image-tools__converter-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 250, 252, 0.94);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.noesia-swa-image-tools__converter-grid {
    display: grid;
    grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.noesia-swa-image-tools__converter-column {
    display: grid;
    gap: 18px;
}

.noesia-swa-image-tools__converter-dropzone {
    position: relative;
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 210px;
    padding: 26px 24px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed rgba(37, 99, 235, 0.2);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.96));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.noesia-swa-image-tools__converter-dropzone.is-dragover,
.noesia-swa-image-tools__converter-dropzone:hover {
    transform: translateY(-2px);
    border-color: var(--image-tools-accent);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.noesia-swa-image-tools__converter-dropzone .dashicons {
    font-size: 34px;
    width: 34px;
    height: 34px;
    color: var(--image-tools-accent);
}

.noesia-swa-image-tools__converter-dropzone strong {
    font-size: 24px;
    line-height: 1.15;
}

.noesia-swa-image-tools__converter-dropzone em {
    color: var(--image-tools-muted);
    font-style: normal;
    max-width: 560px;
}

.noesia-swa-image-tools__converter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.noesia-swa-image-tools__converter-actions--stacked {
    margin-top: 12px;
}

.noesia-swa-image-tools__converter-summary,
.noesia-swa-image-tools__converter-output-summary {
    margin: 0;
    color: var(--image-tools-muted);
    font-size: 13px;
    line-height: 1.65;
}

.noesia-swa-image-tools__status.is-error {
    color: #b91c1c;
}

.noesia-swa-image-tools__converter-preview {
    min-height: 320px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
    padding: 16px;
    overflow: auto;
}

.noesia-swa-image-tools__converter-empty {
    margin: 0;
    color: var(--image-tools-muted);
    font-size: 14px;
}

.noesia-swa-image-tools__converter-code {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.65;
    color: var(--image-tools-text);
}

.noesia-swa-image-tools__converter-html {
    color: var(--image-tools-text);
}

.noesia-swa-image-tools__converter-html table {
    width: 100%;
    border-collapse: collapse;
}

.noesia-swa-image-tools__converter-html td,
.noesia-swa-image-tools__converter-html th {
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 8px 10px;
    vertical-align: top;
}

.noesia-swa-image-tools__converter-preview-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.noesia-swa-image-tools__converter-result-note {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.noesia-swa-image-tools__converter-result-note strong {
    font-size: 15px;
}

.noesia-swa-image-tools__converter-order-list {
    display: grid;
    gap: 10px;
}

.noesia-swa-image-tools__converter-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.92);
}

.noesia-swa-image-tools__converter-order-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.noesia-swa-image-tools__converter-order-actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__converter-hero,
    .noesia-swa-image-tools__converter-grid {
        grid-template-columns: 1fr;
    }
}


/* Step 13 UX hardening: larger stage, calmer thumbs, cleaner design stage. */
.noesia-swa-image-tools__design-shell--stacked {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.noesia-swa-image-tools__design-stage {
    min-height: clamp(720px, 84vh, 1080px);
}

.noesia-swa-image-tools__design-stage canvas {
    height: clamp(680px, 80vh, 1020px);
}

.noesia-swa-image-tools__thumb {
    min-width: 0;
    overflow: hidden;
    align-content: start;
}

.noesia-swa-image-tools__thumb-image-wrap {
    inline-size: 100%;
    block-size: auto;
    max-inline-size: 100%;
}

.noesia-swa-image-tools__thumb-image {
    inline-size: 100%;
    block-size: 100%;
    max-inline-size: 100%;
    max-block-size: 100%;
}

.noesia-swa-image-tools__thumb-meta {
    min-width: 0;
}

.noesia-swa-image-tools__thumb-meta strong,
.noesia-swa-image-tools__thumb-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .noesia-swa-image-tools__design-stage {
        min-height: 640px;
    }

    .noesia-swa-image-tools__design-stage canvas {
        height: 600px;
    }
}


.noesia-swa-image-tools__hero-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.94);
    color: var(--image-tools-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.noesia-swa-image-tools__hero-toggle span {
    display: inline-block;
    transition: transform 0.18s ease;
}
.noesia-swa-image-tools.is-shell-collapsed .noesia-swa-image-tools__hero-toggle {
    top: 6px;
    right: 6px;
}
.noesia-swa-image-tools.is-shell-collapsed .noesia-swa-image-tools__hero-toggle span {
    transform: rotate(-180deg);
}
.noesia-swa-image-tools__shell-body {
    display: grid;
    gap: 16px;
}
.noesia-swa-image-tools.is-shell-collapsed {
    min-height: 0;
}
.noesia-swa-image-tools.is-shell-collapsed .noesia-swa-image-tools__hero-copy {
    display: none !important;
}
.noesia-swa-image-tools.is-shell-collapsed .noesia-swa-image-tools__shell-body {
    margin-top: 0;
}
.noesia-swa-image-tools__design-sidebar--left > .noesia-swa-image-tools__panel .noesia-swa-image-tools__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
