.tr-wrap { width: 100%; padding: 0; }
.tr-lang-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.tr-lang-select { flex: 1; padding: 8px 12px; border: 1px solid var(--border, #e0e0e0); border-radius: 8px; background: var(--card-bg, #fff); color: var(--text-1, #333); font-size: 14px; outline: none; }
.tr-lang-select:focus { border-color: var(--primary, #4f6ef7); }
.tr-swap-btn { width: 40px; height: 40px; border: 1px solid var(--border, #e0e0e0); border-radius: 8px; background: var(--card-bg, #fff); cursor: pointer; font-size: 18px; color: var(--primary, #4f6ef7); transition: transform 0.2s; flex-shrink: 0; }
.tr-swap-btn:hover { transform: rotate(180deg); }
.tr-main { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) { .tr-main { grid-template-columns: 1fr; } }
.tr-panel { border: 1px solid var(--border, #e0e0e0); border-radius: 10px; overflow: hidden; background: var(--card-bg, #fff); }
.tr-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-light, #f0f0f0); }
.tr-lang-label { font-size: 13px; color: var(--text-3, #999); }
.tr-mini-btn { padding: 4px 10px; border: none; background: transparent; color: var(--primary, #4f6ef7); cursor: pointer; font-size: 12px; border-radius: 4px; }
.tr-mini-btn:hover { background: var(--primary-bg, #f0f3ff); }
.tr-textarea { width: 100%; padding: 12px; border: none; outline: none; resize: vertical; font-size: 15px; line-height: 1.6; background: transparent; color: var(--text-1, #333); box-sizing: border-box; min-height: 160px; }
.tr-result { background: var(--bg-subtle, #f8f9fa); color: var(--text-1, #333); }
.tr-panel-foot { padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light, #f0f0f0); }
.tr-char-count { font-size: 12px; color: var(--text-3, #999); }
.tr-translate-btn { padding: 8px 24px; border: none; border-radius: 6px; background: var(--primary, #4f6ef7); color: #fff; cursor: pointer; font-size: 14px; font-weight: 500; }
.tr-translate-btn:hover { opacity: 0.9; }
.tr-translate-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tr-kbd { font-size: 11px; opacity: 0.8; margin-left: 4px; }
.tr-history-wrap { margin-top: 20px; }
.tr-history-title { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; margin-bottom: 10px; color: var(--text-1, #333); }
.tr-history-list { display: flex; flex-direction: column; gap: 8px; }
.tr-history-item { padding: 10px 12px; border: 1px solid var(--border-light, #f0f0f0); border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.tr-history-item:hover { background: var(--bg-subtle, #f8f9fa); }
.tr-history-src { font-size: 13px; color: var(--text-1, #333); margin-bottom: 4px; }
.tr-history-dst { font-size: 13px; color: var(--primary, #4f6ef7); }
.tr-history-empty { text-align: center; color: var(--text-3, #999); font-size: 13px; padding: 20px; }
.tr-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--primary, #4f6ef7); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 9999; }
.tr-toast.show { opacity: 1; }
.tr-settings { margin-top: 16px; border: 1px solid var(--border-light, #f0f0f0); border-radius: 8px; overflow: hidden; }
.tr-settings-title { padding: 10px 14px; font-size: 13px; cursor: pointer; color: var(--text-2, #555); user-select: none; }
.tr-settings-title:hover { background: var(--bg-subtle, #f8f9fa); }
.tr-arrow { display: inline-block; transition: transform 0.2s; }
.tr-settings-body { padding: 14px; border-top: 1px solid var(--border-light, #f0f0f0); }
.tr-setting-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tr-setting-row label { font-size: 13px; color: var(--text-2, #555); width: 80px; flex-shrink: 0; }
