/* Text & Dev Tools module styles for Noesia Smart Waiter. */

section[data-noesia-swa-section-panel="text-dev-tools"] {
    --noesia-swa-tdt-primary: #5b7cff;
    --noesia-swa-tdt-primary-soft: rgba(91, 124, 255, 0.10);
    --noesia-swa-tdt-primary-border: rgba(91, 124, 255, 0.22);
    --noesia-swa-tdt-surface-soft: #f8faff;
    --noesia-swa-tdt-code-bg: #0f172a;
    --noesia-swa-tdt-code-fg: #e5eefc;
    --noesia-swa-tdt-success: #0f9f6e;
    --noesia-swa-tdt-error: #c73d3d;
    --noesia-swa-tdt-add-bg: rgba(22, 163, 74, 0.10);
    --noesia-swa-tdt-add-border: rgba(22, 163, 74, 0.22);
    --noesia-swa-tdt-remove-bg: rgba(220, 38, 38, 0.10);
    --noesia-swa-tdt-remove-border: rgba(220, 38, 38, 0.22);
}

.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"],
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"],
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] {
    --noesia-swa-tdt-surface-soft: rgba(148, 163, 184, 0.08);
    --noesia-swa-tdt-code-bg: #09101c;
    --noesia-swa-tdt-code-fg: #e8eef9;
    --noesia-swa-tdt-add-bg: rgba(34, 197, 94, 0.12);
    --noesia-swa-tdt-remove-bg: rgba(248, 113, 113, 0.12);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-section-head {
    margin: 12px 0 18px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-section-head h2 {
    margin: 0 0 10px;
    font-size: 28px !important;
    font-weight: 1000 !important;
    letter-spacing: -0.6px;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 12px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-section-head .dashicons {
    width: 26px;
    height: 26px;
    font-size: 26px;
    line-height: 26px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-section-head > .noesia-swa-muted {
    margin: 0;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.45;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-card {
    border-radius: 22px;
    overflow: hidden;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-card-header {
    margin: -18px -18px 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--noesia-swa-border);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-card-header h3 {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px !important;
    font-weight: 1000 !important;
    line-height: 1.2;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-card-header h3 .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__hero-grid,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-values,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(180deg, var(--noesia-swa-tdt-surface-soft) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.82) 100%);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.35;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-status-box span {
    display: block;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 14px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tab {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--noesia-swa-border);
    border-radius: 16px;
    background: var(--noesia-swa-surface);
    color: var(--noesia-swa-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 1000;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tab:hover,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tab:focus-visible {
    border-color: var(--noesia-swa-tdt-primary-border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tab.is-active {
    background: linear-gradient(180deg, rgba(91, 124, 255, 0.16) 0%, rgba(91, 124, 255, 0.08) 100%);
    border-color: var(--noesia-swa-tdt-primary-border);
    color: var(--noesia-swa-tdt-primary);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__status {
    min-height: 22px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--noesia-swa-text-muted);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__status.is-success {
    color: var(--noesia-swa-tdt-success);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__status.is-error {
    color: var(--noesia-swa-tdt-error);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__panel {
    display: none;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__panel.is-active {
    display: block;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__split,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-result,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__dual-headings,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--noesia-swa-text-muted);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row .regular-text {
    width: 100%;
    min-height: 180px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: #ffffff;
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row .regular-text {
    min-height: 46px;
}

.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea,
.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row .regular-text,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row .regular-text,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row .regular-text {
    background: rgba(15, 23, 42, 0.6);
    color: var(--noesia-swa-text);
    border-color: var(--noesia-swa-border);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea--code,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview code,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea--code {
    background: var(--noesia-swa-tdt-code-bg);
    color: var(--noesia-swa-tdt-code-fg);
    border-color: rgba(91, 124, 255, 0.18);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview {
    min-height: 180px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--noesia-swa-tdt-surface-soft) 0%, rgba(255, 255, 255, 0.86) 100%);
    box-sizing: border-box;
}

.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview,
.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene,
.noesia-swa-admin-wrap.noesia-swa-theme-dark section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene,
.noesia-swa-admin-wrap.noesia-swa-theme-black section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene,
.noesia-swa-admin-wrap.noesia-swa-theme-minimal section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(2, 6, 23, 0.76) 100%);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview h1,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview h2,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview h3 {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview p,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview ul,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview ol,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview blockquote {
    margin: 0 0 12px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview blockquote {
    padding-left: 14px;
    border-left: 3px solid var(--noesia-swa-tdt-primary);
    opacity: 0.9;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(91, 124, 255, 0.14);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid label {
    display: block;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(91, 124, 255, 0.04);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid label span {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid label strong {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 1000;
    color: var(--noesia-swa-tdt-primary);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid input[type="range"] {
    width: 100%;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(91, 124, 255, 0.28), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.24), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-card {
    width: min(100%, 320px);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-card span {
    font-size: 18px;
    font-weight: 1000;
    line-height: 1.2;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-card small {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    opacity: 0.92;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 1000;
    letter-spacing: -0.4px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch {
    min-height: 110px;
    padding: 12px;
    border: 0;
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    transition: transform .15s ease, box-shadow .15s ease;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch:hover,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch strong,
section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch span {
    display: block;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch strong {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 1000;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__swatch span {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--noesia-swa-text-muted);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane {
    overflow: auto;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line.is-add {
    background: var(--noesia-swa-tdt-add-bg);
    border-left: 3px solid var(--noesia-swa-tdt-add-border);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line.is-remove {
    background: var(--noesia-swa-tdt-remove-bg);
    border-left: 3px solid var(--noesia-swa-tdt-remove-border);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line.is-empty {
    opacity: 0.5;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-number {
    font-size: 12px;
    font-weight: 1000;
    color: var(--noesia-swa-text-muted);
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-line code {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.55;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-inline-actions .button {
    min-height: 42px;
    padding: 0 16px !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-inline-actions .button.button-primary {
    background: var(--noesia-swa-tdt-primary) !important;
    border-color: var(--noesia-swa-tdt-primary) !important;
    box-shadow: 0 14px 28px rgba(91, 124, 255, 0.22) !important;
}

section[data-noesia-swa-section-panel="text-dev-tools"] input[type="color"] {
    width: 54px;
    min-width: 54px;
    height: 46px;
    padding: 4px;
    border: 1px solid var(--noesia-swa-border);
    border-radius: 14px;
    background: var(--noesia-swa-surface);
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__hero-grid,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-values,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__contrast-grid,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__split,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-result,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__dual-headings,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__controls-grid,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__palette,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tabs {
        flex-direction: column;
    }

    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__tab {
        width: 100%;
        justify-content: center;
    }

    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__textarea,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__preview,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__diff-pane,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__glass-scene,
    section[data-noesia-swa-section-panel="text-dev-tools"] .noesia-swa-text-dev-tools__color-preview {
        min-height: 160px;
    }
}
