.ed-tool { width: 100%; }

.ed-actionbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
}
.ed-actionbar::-webkit-scrollbar { height: 6px; }
.ed-actionbar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.ed-actionbar-sep {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
    margin: 0 2px;
}
.ed-toolbar-btn {
    padding: 8px 14px;
    background: var(--light);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ed-toolbar-btn:hover { background: var(--border); border-color: var(--teal); }
.ed-clear-btn:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }

.ed-btn {
    padding: 9px 16px;
    background: var(--light);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ed-btn-primary {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.ed-btn-primary:hover { background: #00b090; }

.ed-textarea { font-size: 14px; font-family: 'Courier New', monospace; }

.ed-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ed-label-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ed-label-row .text-tool-copy-btn { margin-top: 0; }

.ed-viewfull-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.ed-viewfull-btn:hover { background: var(--light); border-color: var(--teal); color: var(--teal); }

.ed-output-group { margin-top: 16px; }

/* Full View Modal */
.ed-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.ed-modal-overlay.open { display: flex; }
.ed-modal-box {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.35);
}
.ed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
}
.ed-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ed-modal-copy-btn {
    padding: 6px 12px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main, inherit);
    transition: background 0.2s;
    white-space: nowrap;
}
.ed-modal-copy-btn:hover { background: #00b090; }
.ed-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
}
.ed-modal-close:hover { color: var(--navy); }
.ed-modal-body {
    padding: 18px;
    overflow-y: auto;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.ed-error-msg {
    margin-top: 8px;
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
}