*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #1a73e8;--primary-hover: #1557b0;--bg: #ffffff;--bg-secondary: #f8f9fa;--border: #dadce0;--text: #202124;--text-secondary: #5f6368;--text-muted: #9aa0a6;--error: #d93025;--shadow: 0 1px 3px rgba(60, 64, 67, .15);--shadow-lg: 0 2px 8px rgba(60, 64, 67, .15);--radius: 8px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--text);background:var(--bg-secondary);min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{padding:12px 24px;border-bottom:1px solid var(--border);background:var(--bg)}.app-title{font-size:20px;font-weight:500;color:var(--text-secondary);display:flex;align-items:center;gap:10px}.app-main{flex:1;display:flex;padding:24px;max-width:1200px;width:100%;margin:0 auto}.translator-container{width:100%;display:flex;flex-direction:column;gap:16px}.translator-main{display:flex;gap:0;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-height:200px}.translation-panel{flex:1;display:flex;flex-direction:column;min-width:0}.translation-panel:first-child{border-right:1px solid var(--border)}.panel-header{padding:12px 16px;border-bottom:1px solid var(--border)}.language-selector{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:14px;color:var(--text);background:var(--bg);cursor:pointer;outline:none;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.language-selector:focus{border-color:var(--primary);box-shadow:0 0 0 2px #1a73e833}.translation-input,.translation-output{flex:1;min-height:160px;padding:16px;border:none;outline:none;font-size:16px;line-height:1.6;resize:none;font-family:inherit;background:transparent}.translation-input::placeholder{color:var(--text-muted)}.translation-output::placeholder{color:var(--text-muted)}.translation-output{cursor:default}.char-count{padding:4px 16px 12px;font-size:12px;color:var(--text-muted);text-align:right}.panel-footer{padding:4px 16px 12px;display:flex;justify-content:flex-end;gap:8px}.copy-btn{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text-secondary);font-size:13px;cursor:pointer;transition:all .15s}.copy-btn:hover:not(:disabled){background:var(--bg-secondary)}.copy-btn:disabled{opacity:.4;cursor:not-allowed}.swap-area{display:flex;align-items:center;justify-content:center;padding:0;position:relative}.swap-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:var(--bg);color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:1;position:absolute}.swap-btn:hover:not(:disabled){background:var(--bg-secondary);border-color:var(--primary);color:var(--primary)}.swap-btn:disabled{opacity:.3;cursor:not-allowed}.action-bar{display:flex;align-items:center;gap:12px}.translate-btn{padding:10px 28px;border:none;border-radius:6px;background:var(--primary);color:#fff;font-size:15px;font-weight:500;cursor:pointer;transition:background .15s}.translate-btn:hover:not(:disabled){background:var(--primary-hover)}.translate-btn:disabled{opacity:.5;cursor:not-allowed}.shortcut-hint{font-size:12px;color:var(--text-muted)}.error-msg{padding:12px 16px;background:#fce8e6;color:var(--error);border-radius:6px;font-size:14px;border:1px solid #f5c6c0}.history-panel{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-top:8px}.history-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.history-title{font-size:16px;font-weight:500;color:var(--text)}.history-empty{padding:32px 20px;text-align:center;color:var(--text-muted);font-size:14px}.clear-btn{padding:4px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text-secondary);font-size:13px;cursor:pointer;transition:all .15s}.clear-btn:hover{background:#fce8e6;border-color:var(--error);color:var(--error)}.history-list{max-height:360px;overflow-y:auto}.history-item{padding:12px 20px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s}.history-item:last-child{border-bottom:none}.history-item:hover{background:var(--bg-secondary)}.history-item-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.history-langs{font-size:12px;color:var(--primary);font-weight:500;background:#1a73e814;padding:2px 8px;border-radius:4px}.history-remove{width:24px;height:24px;border:none;border-radius:50%;background:transparent;color:var(--text-muted);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}.history-remove:hover{background:#fce8e6;color:var(--error)}.history-source{font-size:14px;color:var(--text);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-translated{font-size:14px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-time{font-size:11px;color:var(--text-muted);margin-top:4px}@media(max-width:768px){.app-main{padding:12px}.translator-main{flex-direction:column}.translation-panel:first-child{border-right:none;border-bottom:1px solid var(--border)}.swap-area{padding:0}.swap-btn{position:relative;margin:4px auto}}
