/**
 * 编辑器样式 v3
 * 增强的消息编辑、过滤和角色管理
 */

/* ========== 编辑器容器 ========== */
.editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-color);
    padding-bottom: 70px; /* 给浮动工具栏留空间 */
    padding-top: 0; /* 顶部工具栏会固定 */
}

/* ========== 固定顶部工具栏 ========== */
.editor-top-toolbar {
    position: sticky;
    top: 60px; /* 主导航栏高度 */
    z-index: 80;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-center {
    display: flex;
    align-items: center;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 搜索框（增强版） */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 3px 6px;
    gap: 2px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100px;
    padding: 4px 6px;
    font-size: 13px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: var(--text-secondary);
}

.search-box button:hover {
    opacity: 1;
    color: var(--text-primary);
}

.search-nav-btn {
    font-size: 10px !important;
    padding: 2px 4px !important;
}

.search-status {
    font-size: 11px;
    color: #4fc3f7;
    padding: 0 4px;
    min-width: 35px;
    text-align: center;
}

/* ========== 分页控件 ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.page-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0 8px;
}

.page-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 底部分页 */
.pagination-bottom {
    margin-bottom: 60px; /* 给浮动工具栏留空间 */
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}

/* 翻页提示Toast */
.page-change-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.page-change-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 浮动工具栏（可折叠） ========== */
.floating-toolbar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 90;
    transition: all 0.3s ease;
}

.floating-toolbar.collapsed {
    padding: 8px;
    gap: 0;
}

.floating-toolbar.collapsed .toolbar-actions {
    display: none;
}

.toolbar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.floating-toolbar.collapsed .toolbar-toggle {
    transform: rotate(45deg);
}

.toolbar-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.floating-toolbar .btn {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
}

.floating-toolbar .btn-beautify-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 导出下拉菜单 */
.export-dropdown {
    position: relative;
}

.export-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 4px;
    display: none;
    flex-direction: column;
    min-width: 150px;
    margin-bottom: 8px;
    z-index: 100;
}

.export-dropdown-menu.show {
    display: flex;
}

.export-option {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}

.export-option:hover {
    background: var(--bg-tertiary);
}

/* 编辑模式开关 */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-muted);
}

.toggle-switch input:checked ~ .toggle-label {
    color: var(--primary-color);
    font-weight: 500;
}

.message-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 消息列表 ========== */
.message-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    /* 性能优化 */
    contain: layout style;
    will-change: scroll-position;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.empty-state p {
    font-size: 16px;
}

/* 消息项 */
.message-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
    /* 性能优化 */
    contain: layout style paint;
}

.message-item:hover {
    background: var(--bg-tertiary);
}

.message-item.selected {
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--accent-color);
}

.message-item.search-highlight {
    background: rgba(234, 179, 8, 0.15);
    border-left-color: var(--warning-color);
}

.message-item.search-current {
    background: rgba(234, 179, 8, 0.3);
    border-left-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.message-item.editable {
    cursor: default;
}

/* 消息头部 */
.msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.msg-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.msg-name {
    font-weight: bold;
    font-size: 14px;
}

.msg-time {
    font-size: 12px;
    color: #888;
}

.msg-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.msg-delete-btn, .msg-insert-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s;
}

.msg-delete-btn:hover {
    opacity: 1;
    background: rgba(255, 0, 0, 0.2);
    color: #ff5252;
}

.msg-insert-btn:hover {
    opacity: 1;
    background: rgba(0, 255, 0, 0.2);
    color: #4caf50;
}

/* 消息内容 */
.msg-content {
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

.msg-content.content-editable {
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    min-height: 40px;
    outline: none;
}

.msg-content.content-editable:focus {
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* 图片消息 */
.msg-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.msg-image:hover {
    transform: scale(1.02);
}

.image-placeholder, .emoji-placeholder {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 图片链接 */
.image-link {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white !important;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.image-link:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    transform: scale(1.02);
}

/* 回复消息占位符 */
.reply-placeholder {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-tertiary);
    border-left: 2px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 4px;
}

/* 回复指示器 */
.reply-indicator {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 4px;
}

/* QQ表情 */
.qq-emoji {
    font-size: 1.2em;
    vertical-align: middle;
}

/* @消息 */
.at-mention {
    font-weight: bold;
    padding: 0 2px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.message-character {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.message-qq {
    font-size: 12px;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 10px;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-word;
}

/* 编辑模式下的消息 */
.edit-mode .message-body {
    cursor: text;
}

.message-body[contenteditable="true"] {
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px;
    outline: none;
}

.message-body[contenteditable="true"]:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 消息操作按钮 */
.message-actions {
    display: none;
    flex-shrink: 0;
    gap: 4px;
}

.edit-mode .message-actions {
    display: flex;
}

.message-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.message-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.message-action-btn.btn-delete:hover {
    background: var(--danger-color);
}

/* ========== 底部工具栏 ========== */
.editor-bottom-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    gap: 10px;
    flex-shrink: 0;
}

.btn-tool {
    padding: 6px 10px;
    font-size: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-primary);
}

.btn-tool:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-beautify-small {
    padding: 6px 14px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.btn-beautify-small:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* ========== 过滤面板 ========== */
.filter-panel {
    position: fixed;
    right: -320px;
    top: 60px;
    width: 300px;
    height: calc(100vh - 60px);
    background: var(--card-bg);
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transition: right 0.3s;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.filter-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.panel-close {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.panel-close:hover {
    color: var(--text-primary);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 活跃过滤器 */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 13px;
}

.filter-tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    padding: 0;
    line-height: 1;
}

.filter-tag-remove:hover {
    color: var(--danger-color);
}

/* 内容过滤开关 */
.filter-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-toggle-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-toggle-item:hover {
    background: var(--hover-bg);
}

.filter-toggle-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-toggle-item span {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle-item span::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.filter-toggle-item input:checked + span::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-toggle-item small {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 26px;
}

/* 时间过滤 */
.time-filter-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.time-filter-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* QQ过滤列表 */
.qq-filter-list {
    max-height: 200px;
    overflow-y: auto;
}

.qq-filter-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.qq-filter-item:hover {
    background: #f5f5f5;
}

.qq-filter-item label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.qq-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.qq-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 角色管理面板 ========== */
.character-panel {
    position: fixed;
    right: -350px;
    top: 60px;
    width: 330px;
    height: calc(100vh - 60px);
    background: #1e1e2e; /* 不透明深色背景 */
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.character-panel.active {
    right: 0;
}

.character-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.character-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #252535;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.char-name-input {
    flex: 1;
    min-width: 100px;
    background: #1e1e2e;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 14px;
}

.char-colors {
    display: flex;
    gap: 8px;
}

.char-colors label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

.char-colors input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.char-msg-count {
    font-size: 12px;
    color: #888;
}

.character-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.character-info {
    flex: 1;
    min-width: 0;
}

.character-display-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.character-qq-info {
    font-size: 12px;
    color: var(--text-muted);
}

.character-msg-count {
    font-size: 12px;
    color: var(--text-muted);
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.character-actions {
    display: flex;
    gap: 4px;
}

.char-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.char-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 批量重命名选项 */
.rename-options {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
}

.rename-options h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.rename-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.rename-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ========== 添加消息模态框 ========== */
.add-message-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.position-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.position-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.position-option input {
    width: 18px;
    height: 18px;
}

/* ========== 移动端适配 ========== */
/* Loading Toast */
.loading-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    color: var(--text-primary);
    font-size: 14px;
}

.loading-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .editor-top-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .toggle-label {
        font-size: 13px;
    }
    
    .message-item {
        padding: 10px;
    }
    
    .message-drag-handle {
        display: none;
    }
    
    .filter-panel,
    .character-panel {
        width: 100%;
        right: -100%;
    }
    
    .filter-panel.active,
    .character-panel.active {
        right: 0;
    }
    
    .editor-bottom-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-tool {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-beautify-small {
        width: 100%;
        order: -1;
        padding: 12px;
    }
}