.eta-wrap {
    --eta-navy: #0d213b;
    --eta-blue: #2563eb;
    --eta-blue-soft: #eef5ff;
    --eta-violet: #6d5dfc;
    --eta-border: #dfe6ef;
    --eta-text: #172033;
    --eta-muted: #5f6b7d;
    --eta-support-text: #435168;
    --eta-surface: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 48px;
    color: var(--eta-text);
    font-family: inherit;
    box-sizing: border-box;
}

.eta-wrap *,
.eta-wrap *::before,
.eta-wrap *::after {
    box-sizing: border-box;
}

.eta-hero {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}

.eta-hero h1 {
    margin: 0 0 12px;
    color: var(--eta-navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.35;
    font-weight: 800;
}

.eta-hero p {
    margin: 5px 0;
    color: var(--eta-support-text);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 600;
}

.eta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px auto 20px;
    flex-wrap: wrap;
}

.eta-action {
    min-width: 250px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 9px;
    border: 1px solid var(--eta-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.eta-action:hover,
.eta-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .14);
}

.eta-action-primary {
    background: var(--eta-blue);
    color: #fff;
}

.eta-action-secondary {
    background: #fff;
    color: var(--eta-blue);
}

.eta-action-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    overflow: visible;
}

.eta-action-control .eta-info {
    flex: 0 0 26px !important;
}

.eta-editor-panel {
    padding: 22px;
    margin: 0 0 30px;
    background: var(--eta-surface);
    border: 1px solid var(--eta-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 35, 60, .07);
}

.eta-editor-label {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--eta-navy);
}

.eta-editor {
    width: 100%;
    min-height: 260px;
    max-height: 620px;
    overflow: auto;
    padding: 18px;
    border: 1px solid #cfd9e7;
    border-radius: 9px;
    background: #fff;
    color: var(--eta-text);
    font-size: 16px;
    line-height: 2;
    text-align: start;
    unicode-bidi: isolate;
    outline: none;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.eta-editor[dir="rtl"] {
    text-align: right;
}

.eta-editor[dir="ltr"] {
    text-align: left;
}

.eta-editor > :first-child {
    margin-top: 0 !important;
}

.eta-editor > :last-child {
    margin-bottom: 0 !important;
}

.eta-editor:empty::before {
    content: attr(data-placeholder);
    color: #667085;
    pointer-events: none;
}

.eta-editor:focus {
    border-color: var(--eta-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.eta-editor h1,
.eta-editor h2,
.eta-editor h3 {
    color: inherit;
}

.eta-editor [dir="ltr"] {
    text-align: left !important;
}

.eta-editor [dir="rtl"] {
    text-align: right !important;
}

.eta-editor p,
.eta-editor div,
.eta-editor h1,
.eta-editor h2,
.eta-editor h3,
.eta-editor h4,
.eta-editor h5,
.eta-editor h6,
.eta-editor blockquote,
.eta-editor pre,
.eta-editor address,
.eta-editor li,
.eta-editor th,
.eta-editor td {
    unicode-bidi: isolate;
}

.eta-editor-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--eta-muted);
    font-size: 13px;
}

.eta-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--eta-border);
}

.eta-editor-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eta-tool-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: visible;
}

.eta-clear,
.eta-copy-button,
.eta-plain-button,
.eta-url-button {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.eta-clear {
    border: 1px solid #d9d0ff;
    background: #f6f3ff;
    color: #5d45de;
}

.eta-copy-button {
    border: 1px solid #c9ead8;
    background: #f1fbf6;
    color: #18794e;
}

.eta-plain-button {
    border: 1px solid #cfe0ff;
    background: #f3f7ff;
    color: #1f5dcc;
}

.eta-url-encode-button {
    border: 1px solid #f4d7a1;
    background: #fff9ed;
    color: #9a5b00;
}

.eta-url-decode-button {
    border: 1px solid #bfe7df;
    background: #f0fbf8;
    color: #0f766e;
}

.eta-url-button {
    direction: ltr;
    unicode-bidi: isolate;
}

.eta-url-button > span[dir="ltr"] {
    unicode-bidi: isolate;
}

.eta-clear:hover,
.eta-clear:focus-visible,
.eta-copy-button:hover,
.eta-copy-button:focus-visible,
.eta-plain-button:hover,
.eta-plain-button:focus-visible,
.eta-url-button:hover,
.eta-url-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .11);
}

.eta-toast {
    color: #176b3a;
    font-size: 13px;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .2s ease, transform .2s ease;
}

.eta-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.eta-section {
    margin-top: 28px;
}

.eta-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--eta-navy);
    font-size: 21px;
    font-weight: 800;
}

.eta-section-title > span {
    color: var(--eta-violet);
}

.eta-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    direction: rtl;
}

.eta-stat-card {
    position: relative;
    min-height: 172px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--eta-border);
    border-radius: 11px;
    box-shadow: 0 7px 20px rgba(15, 35, 60, .05);
    text-align: center;
}

.eta-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
}

.eta-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    border-radius: 8px;
    background: var(--eta-blue-soft);
    color: var(--eta-blue);
    font-size: 17px;
    font-weight: 800;
}

.eta-stat-card:nth-child(1) .eta-stat-icon,
.eta-stat-card:nth-child(4) .eta-stat-icon {
    background: #f3ecff;
    color: #6547e9;
}

.eta-stat-card:nth-child(3) .eta-stat-icon {
    background: #eaf8ef;
    color: #15924c;
}

.eta-stat-card:nth-child(5) .eta-stat-icon {
    background: #fff0f6;
    color: #d63384;
}

.eta-stat-card h3 {
    margin: 8px 0 8px;
    color: var(--eta-navy);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 800;
}

.eta-stat-value {
    display: block;
    margin: 0 0 4px;
    color: var(--eta-navy);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
}

.eta-stat-unit {
    color: var(--eta-muted);
    font-size: 13px;
}

.eta-wrap button.eta-info {
    all: unset;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--eta-violet) !important;
    box-shadow: none !important;
    cursor: help !important;
    overflow: visible !important;
    z-index: 5;
}

.eta-info-svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    overflow: visible !important;
    fill: #fff;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.eta-info-svg .eta-info-dot {
    fill: currentColor;
    stroke: none;
}

.eta-info::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: min(280px, 75vw);
    padding: 9px 11px;
    border-radius: 7px;
    background: var(--eta-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    text-align: right;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(50%) translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.eta-info:hover::after,
.eta-info:focus-visible::after,
.eta-info[aria-expanded="true"]::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.eta-detail-list {
    overflow: visible;
    background: #fff;
    border: 1px solid var(--eta-border);
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(15, 35, 60, .04);
}

.eta-detail-item {
    border-bottom: 1px solid var(--eta-border);
}

.eta-detail-item:last-child {
    border-bottom: 0;
}

.eta-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 11px 16px;
}

.eta-detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--eta-navy);
    font-size: 14px;
    font-weight: 700;
}

.eta-detail-row > strong,
.eta-detail-value > strong {
    min-width: 64px;
    color: var(--eta-navy);
    font-size: 17px;
    text-align: left;
}

.eta-detail-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 96px;
}

.eta-heading-toggle {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--eta-blue);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.eta-heading-toggle:hover,
.eta-heading-toggle:focus-visible {
    background: #eef4ff;
}

.eta-heading-toggle[hidden],
.eta-heading-panel[hidden] {
    display: none !important;
}

.eta-heading-toggle > span {
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 7px solid currentColor;
    transition: transform .18s ease;
}

.eta-heading-toggle[aria-expanded="true"] > span {
    transform: rotate(180deg);
}

.eta-heading-panel {
    padding: 0 16px 14px;
}

.eta-heading-list {
    display: grid;
    gap: 7px;
    max-height: 280px;
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    border-top: 1px solid var(--eta-border);
    background: #fbfcff;
    list-style: none;
}

.eta-heading-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--eta-text);
    font-size: 13px;
    line-height: 1.8;
}

.eta-heading-level {
    flex: 0 0 auto;
    min-width: 31px;
    padding: 1px 6px;
    border-radius: 5px;
    background: #eef4ff;
    color: #245fc4;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    direction: ltr;
}

.eta-heading-text {
    min-width: 0;
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
    text-align: start;
}

.eta-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 18px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    background: #f7faff;
    color: var(--eta-support-text);
    text-align: center;
}

.eta-privacy-copy {
    display: grid;
    gap: 4px;
}

.eta-privacy-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 600;
}

.eta-goal-note {
    color: inherit;
    font-weight: inherit;
}

.eta-privacy-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--eta-blue);
    border-radius: 50%;
    color: var(--eta-blue);
    font-weight: 900;
}

@media (max-width: 900px) {
    .eta-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .eta-wrap {
        padding: 24px 10px 36px;
    }

    .eta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .eta-action-control {
        width: 100%;
    }

    .eta-action {
        width: 100%;
        min-width: 0;
    }

    .eta-editor-panel {
        padding: 14px;
    }

    .eta-editor {
        min-height: 230px;
        padding: 14px;
        font-size: 15px;
    }

    .eta-editor-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .eta-editor-tools {
        width: 100%;
    }

    .eta-tool-control {
        flex: 1 1 100%;
        width: 100%;
    }

    .eta-clear,
    .eta-copy-button,
    .eta-plain-button,
    .eta-url-button {
        flex: 1 1 auto;
    }

    .eta-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .eta-stat-card {
        min-height: 155px;
        padding: 13px;
    }

    .eta-stat-card h3 {
        font-size: 13px;
    }

    .eta-stat-value {
        font-size: 28px;
    }

    .eta-detail-row {
        padding: 10px 12px;
    }

    .eta-detail-label {
        gap: 7px;
        font-size: 13px;
    }

    .eta-detail-row > strong,
    .eta-detail-value > strong {
        min-width: 44px;
    }

    .eta-detail-value {
        min-width: 75px;
    }

    .eta-heading-panel {
        padding: 0 12px 12px;
    }

    .eta-privacy-note {
        align-items: flex-start;
        text-align: right;
    }
}

@media (max-width: 390px) {
    .eta-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* جلوگیری از انتقال فاصله‌های نمایشی Word و استایل‌های قالب سایت به داخل ویرایشگر */
.eta-editor p,
.eta-editor div,
.eta-editor h1,
.eta-editor h2,
.eta-editor h3,
.eta-editor h4,
.eta-editor h5,
.eta-editor h6,
.eta-editor blockquote,
.eta-editor pre,
.eta-editor ul,
.eta-editor ol,
.eta-editor li,
.eta-editor table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.85 !important;
}

.eta-editor p,
.eta-editor div,
.eta-editor h1,
.eta-editor h2,
.eta-editor h3,
.eta-editor h4,
.eta-editor h5,
.eta-editor h6,
.eta-editor blockquote,
.eta-editor pre,
.eta-editor li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.eta-editor h1,
.eta-editor h2,
.eta-editor h3,
.eta-editor h4,
.eta-editor h5,
.eta-editor h6 {
    color: inherit !important;
}

.eta-editor h1 {
    font-size: 1.55em !important;
    font-weight: 800 !important;
}

.eta-editor h2 {
    font-size: 1.35em !important;
    font-weight: 800 !important;
}

.eta-editor h3 {
    font-size: 1.18em !important;
    font-weight: 800 !important;
}

.eta-editor ul,
.eta-editor ol {
    padding-inline-start: 1.6em !important;
    padding-inline-end: 0 !important;
}

.eta-editor table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.eta-editor th,
.eta-editor td {
    padding: 6px 8px !important;
    border: 1px solid #dfe6ef !important;
    text-align: start !important;
    vertical-align: top !important;
}

.eta-editor pre {
    white-space: pre-wrap !important;
    font-family: inherit !important;
}

/* نگه‌داشتن راهنمای دکمه‌های اطلاعات داخل عرض صفحه در موبایل */
@media (max-width: 620px) {
    .eta-action-control .eta-info::after,
    .eta-tool-control .eta-info::after,
    .eta-stat-card .eta-info::after {
        right: auto;
        left: 0;
        transform: translateY(4px);
    }

    .eta-action-control .eta-info:hover::after,
    .eta-action-control .eta-info:focus-visible::after,
    .eta-action-control .eta-info[aria-expanded="true"]::after,
    .eta-tool-control .eta-info:hover::after,
    .eta-tool-control .eta-info:focus-visible::after,
    .eta-tool-control .eta-info[aria-expanded="true"]::after,
    .eta-stat-card .eta-info:hover::after,
    .eta-stat-card .eta-info:focus-visible::after,
    .eta-stat-card .eta-info[aria-expanded="true"]::after {
        transform: translateY(0);
    }

    .eta-detail-label .eta-info::after {
        right: 0;
        left: auto;
        transform: translateY(4px);
    }

    .eta-detail-label .eta-info:hover::after,
    .eta-detail-label .eta-info:focus-visible::after,
    .eta-detail-label .eta-info[aria-expanded="true"]::after {
        transform: translateY(0);
    }
}


/* فهرست‌هایی که نشانگر آن‌ها در متن ساده Word وجود دارد؛ از نشانگر دوم مرورگر جلوگیری می‌کند. */
.eta-editor .eta-inline-marker-list {
    list-style: none !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
}


/* جهت متن‌های ترکیبی فارسی/انگلیسی بر اساس dir محاسبه‌شده اعمال می‌شود. */
.eta-heading-text[dir="rtl"] {
    text-align: right;
}

.eta-heading-text[dir="ltr"] {
    text-align: left;
}

/* v1.0.31: stronger, consistent button-label contrast without changing behavior or layout. */
.eta-wrap .eta-clear,
.eta-wrap .eta-copy-button,
.eta-wrap .eta-plain-button,
.eta-wrap .eta-url-button {
    color: var(--eta-navy) !important;
    font-weight: 800 !important;
}

.eta-wrap .eta-action {
    font-weight: 800 !important;
}

.eta-wrap .eta-action-primary {
    color: var(--eta-navy) !important;
}

.eta-wrap .eta-action-secondary {
    color: var(--eta-navy) !important;
}


/* ==========================================================================
   Expronal UI refresh - 1.0.33
   Visual layer only. Analyzer calculations and existing JS behavior stay intact.
   ========================================================================== */
.eta-wrap {
    --eta-brand-blue: #1f67bd;
    --eta-brand-blue-dark: #0b4d99;
    --eta-brand-blue-bright: #2b73d2;
    --eta-brand-blue-soft: #eef6ff;
    --eta-navy: #0b2340;
    --eta-blue: var(--eta-brand-blue);
    --eta-blue-soft: var(--eta-brand-blue-soft);
    --eta-violet: #6558e8;
    --eta-border: #d8e4f2;
    --eta-text: #10233f;
    --eta-muted: #66758a;
    --eta-support-text: #42546d;
    --eta-surface: #ffffff;
    max-width: 1180px;
    padding-top: 30px;
}

.eta-hero {
    margin-bottom: 20px;
}

.eta-hero p {
    color: #2d4665;
    font-size: 15px;
    font-weight: 700;
}

/* Number conversion controls */
.eta-actions {
    gap: 20px;
    margin: 18px auto 24px;
}

.eta-action-control {
    gap: 9px;
}

.eta-wrap .eta-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 270px;
    min-height: 52px;
    padding: 9px 16px;
    border: 1px solid #c9dbf2;
    border-radius: 11px;
    background: #fff;
    color: #173b67 !important;
    box-shadow: 0 5px 16px rgba(13, 56, 104, .06);
}

.eta-wrap .eta-action-primary,
.eta-wrap .eta-action-secondary {
    background: #fff;
    color: #173b67 !important;
}

.eta-action:hover,
.eta-action:focus-visible {
    border-color: #91b8e8;
    background: #f8fbff;
    box-shadow: 0 9px 24px rgba(28, 98, 177, .12);
}

.eta-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 8px;
    border-radius: 9px;
    background: #edf5ff;
    color: var(--eta-brand-blue-bright);
    font-weight: 900;
    direction: ltr;
}

/* Editor workspace */
.eta-editor-panel {
    padding: 0;
    margin-bottom: 28px;
    overflow: visible;
    border: 1px solid #c9dcf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(8, 54, 106, .10);
}

.eta-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 10px 18px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(100deg, var(--eta-brand-blue), var(--eta-brand-blue-dark));
    color: #fff;
}

.eta-editor-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

.eta-editor-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-size: 19px;
    line-height: 1;
}

.eta-editor-body {
    padding: 14px 16px 16px;
}

.eta-editor {
    min-height: 320px;
    max-height: 680px;
    padding: 18px 20px;
    border: 1px solid #bcd4ef;
    border-radius: 11px;
    background: #fff;
    font-size: 16px;
    line-height: 2;
    box-shadow: inset 0 1px 2px rgba(5, 52, 99, .025);
}

.eta-editor:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}

.eta-editor:empty::before {
    color: #7b889a;
}

.eta-editor-meta {
    justify-content: flex-start;
    gap: 22px;
    min-height: 32px;
    margin-top: 0;
    padding: 8px 2px 0;
    color: #6b778a;
    font-size: 13px;
}

.eta-editor-meta strong {
    color: #173a66;
    font-weight: 900;
}

.eta-editor-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e9f4;
}

.eta-editor-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
}

.eta-tool-control {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 7px;
}

.eta-wrap .eta-clear,
.eta-wrap .eta-copy-button,
.eta-wrap .eta-plain-button,
.eta-wrap .eta-url-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 51, 89, .025);
    font-weight: 800 !important;
}

.eta-wrap .eta-clear {
    border-color: #f4c3c6;
    background: #fffafa;
    color: #d93b44 !important;
}

.eta-wrap .eta-copy-button {
    border-color: #bfe3ce;
    background: #fbfffc;
    color: #138b48 !important;
}

.eta-wrap .eta-plain-button {
    border-color: #d9ccfb;
    background: #fcfaff;
    color: #6f52d3 !important;
}

.eta-wrap .eta-url-encode-button {
    border-color: #f0d19b;
    background: #fffbf3;
    color: #a2670b !important;
}

.eta-wrap .eta-url-decode-button {
    border-color: #b8d8f5;
    background: #f7fbff;
    color: #216ab2 !important;
}

.eta-clear:hover,
.eta-clear:focus-visible {
    border-color: #ee8f95;
    background: #fff5f5;
    box-shadow: 0 7px 18px rgba(227, 66, 73, .10);
}

.eta-copy-button:hover,
.eta-copy-button:focus-visible {
    border-color: #78c59a;
    background: #f4fcf7;
    box-shadow: 0 7px 18px rgba(21, 146, 76, .10);
}

.eta-plain-button:hover,
.eta-plain-button:focus-visible {
    border-color: #bba7f3;
    background: #f8f5ff;
    box-shadow: 0 7px 18px rgba(115, 85, 217, .10);
}

.eta-url-encode-button:hover,
.eta-url-encode-button:focus-visible {
    border-color: #dfb761;
    background: #fff8e9;
    box-shadow: 0 7px 18px rgba(162, 103, 11, .10);
}

.eta-url-decode-button:hover,
.eta-url-decode-button:focus-visible {
    border-color: #78b3e7;
    background: #f0f8ff;
    box-shadow: 0 7px 18px rgba(33, 106, 178, .10);
}

/* Status messages: hidden completely when idle; when needed they appear only
   on the LEFT side of the blue header. Existing JS removes them after 2.4s. */
.eta-toast {
    max-width: 52%;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    text-align: left;
    direction: rtl;
    unicode-bidi: plaintext;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}

.eta-toast[hidden] {
    display: none !important;
}

.eta-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Help / tooltip controls */
.eta-wrap button.eta-info {
    color: #4f5dff !important;
}

.eta-wrap button.eta-info:hover,
.eta-wrap button.eta-info:focus-visible,
.eta-wrap button.eta-info[aria-expanded="true"] {
    background: #eef2ff !important;
}

.eta-info::after {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;
    background: #122a47;
    box-shadow: 0 12px 28px rgba(5, 24, 45, .22);
}

/* Summary cards */
.eta-section {
    margin-top: 24px;
}

.eta-section-title {
    gap: 9px;
    margin-bottom: 14px;
    color: #0c2d53;
    font-size: 22px;
}

.eta-section-title > span {
    color: #316dff;
    font-size: 24px;
}

.eta-stat-grid {
    gap: 14px;
}

.eta-stat-card {
    min-height: 164px;
    padding: 17px 18px 16px;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 60, 105, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.eta-stat-card:hover {
    transform: translateY(-2px);
    border-color: #c3d7ee;
    box-shadow: 0 12px 26px rgba(15, 60, 105, .09);
}

.eta-stat-top {
    min-height: 46px;
}

.eta-stat-icon {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
}

.eta-stat-card:nth-child(1) .eta-stat-icon {
    background: #eaf2ff;
    color: #2f67d8;
}

.eta-stat-card:nth-child(2) .eta-stat-icon {
    background: #e7f5f7;
    color: #1b8d94;
}

.eta-stat-card:nth-child(3) .eta-stat-icon {
    background: #e7f7ed;
    color: #16a05b;
}

.eta-stat-card:nth-child(4) .eta-stat-icon {
    background: #fff1e4;
    color: #f08a24;
}

.eta-stat-card:nth-child(5) .eta-stat-icon {
    background: #ffeaf3;
    color: #d72d76;
}

.eta-stat-card:nth-child(6) .eta-stat-icon {
    background: #e8f2ff;
    color: #2e71d2;
}

.eta-stat-card h3 {
    margin: 6px 0;
    font-size: 15px;
}

.eta-stat-value {
    font-size: 31px;
}

/* Details / heading disclosure */
.eta-details {
    margin-top: 22px;
}

.eta-detail-list {
    border: 1px solid #d1e0f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 60, 105, .05);
}

.eta-detail-row {
    min-height: 66px;
    padding: 13px 18px;
    direction: rtl;
}

.eta-detail-label {
    gap: 10px;
    color: #132f52;
    font-size: 15px;
    font-weight: 800;
}

.eta-detail-row > strong,
.eta-detail-value > strong {
    min-width: 72px;
    color: #0b2b50;
    font-size: 18px;
    font-weight: 900;
    text-align: left;
}

/* The heading count and disclosure arrow stay on the LEFT side of each row.
   Source order is count then arrow; RTL flex places count right of the arrow. */
.eta-detail-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 112px;
    direction: rtl;
}

.eta-heading-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #f3f5f8;
    color: #34475f;
}

.eta-heading-toggle:hover,
.eta-heading-toggle:focus-visible {
    background: #e8f0fa;
    color: #1c62b1;
}

.eta-heading-panel {
    padding: 0;
    border-top: 1px solid #e1e9f2;
}

.eta-heading-list {
    gap: 8px;
    max-height: 320px;
    padding: 13px 18px 15px;
    border-top: 0;
    background: #f8fbff;
}

.eta-heading-list li {
    gap: 10px;
    font-size: 14px;
    line-height: 1.9;
}

.eta-heading-level {
    min-width: 35px;
    padding: 2px 7px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #2b65d3;
    font-size: 12px;
}

.eta-heading-text {
    color: #233a57;
}

/* Trust note */
.eta-privacy-note {
    gap: 14px;
    margin-top: 16px;
    padding: 16px 20px;
    border-color: #c9dcf4;
    border-radius: 13px;
    background: linear-gradient(90deg, #f7fbff, #edf5ff);
    box-shadow: 0 5px 16px rgba(15, 60, 105, .035);
}

.eta-privacy-icon {
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--eta-brand-blue);
    color: #fff;
    box-shadow: 0 5px 14px rgba(28, 98, 177, .20);
}

/* Responsive refinements */
@media (max-width: 1040px) {
    .eta-editor-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .eta-editor {
        min-height: 300px;
    }

    .eta-editor-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .eta-wrap {
        padding-top: 22px;
    }

    .eta-actions {
        gap: 10px;
    }

    .eta-action-control {
        display: flex;
    }

    .eta-editor-panel {
        padding: 0;
    }

    .eta-editor-head {
        align-items: flex-start;
        min-height: 54px;
        padding: 10px 12px;
    }

    .eta-editor-label {
        font-size: 15px;
    }

    .eta-editor-label-icon {
        width: 29px;
        height: 29px;
        font-size: 17px;
    }

    .eta-toast {
        max-width: 46%;
        font-size: 11.5px;
        line-height: 1.6;
    }

    .eta-editor-body {
        padding: 11px;
    }

    .eta-editor {
        min-height: 270px;
        padding: 14px;
    }

    .eta-editor-footer {
        flex-direction: row;
    }

    .eta-editor-tools {
        grid-template-columns: 1fr;
    }

    .eta-tool-control {
        width: 100%;
    }

    .eta-stat-card {
        min-height: 158px;
    }

    .eta-detail-row {
        min-height: 60px;
        padding: 11px 12px;
    }

    .eta-detail-label {
        font-size: 13px;
    }

    .eta-detail-row > strong,
    .eta-detail-value > strong {
        min-width: 44px;
        font-size: 16px;
    }

    .eta-detail-value {
        min-width: 82px;
    }

    .eta-heading-toggle {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
    }
}

/* v1.0.35: paste-format preservation and character-without-space metric; existing approved UI retained. */


/* v1.0.36: Persian ordered-list markers without altering OL/LI structure. */
@counter-style eta-persian-decimal {
    system: numeric;
    symbols: '۰' '۱' '۲' '۳' '۴' '۵' '۶' '۷' '۸' '۹';
    suffix: '. ';
}

.eta-editor ol.eta-persian-digit-list {
    list-style-type: eta-persian-decimal !important;
}
