:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.theme-selector{display:flex;flex-direction:column;gap:var(--space-3);margin-bottom:var(--space-4)}.theme-selector-label{font-weight:600;color:var(--gray-700);font-size:var(--font-size-sm);letter-spacing:.025em;display:flex;align-items:center;gap:var(--space-2)}.theme-buttons{display:flex;gap:var(--space-3);flex-wrap:wrap;justify-content:center}.theme-btn{min-height:var(--touch-target);min-width:120px;padding:var(--space-3) var(--space-4);border:2px solid rgba(255,255,255,.3);border-radius:var(--radius-xl);font-size:var(--font-size-sm);font-weight:600;cursor:pointer;transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;gap:var(--space-2);position:relative;overflow:hidden;box-shadow:var(--shadow-md);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--gray-700)}.theme-btn:before{content:"";position:absolute;inset:0;background:#fff3;opacity:0;transition:opacity var(--transition-fast);z-index:0}.theme-btn:hover:before{opacity:1}.theme-btn:hover{transform:translateY(-2px) scale(1.02);box-shadow:var(--shadow-lg);border-color:#ffffff80}.theme-btn:active{transform:translateY(0) scale(.98);box-shadow:var(--shadow-sm)}.theme-btn-icon,.theme-btn-text{position:relative;z-index:1}.theme-btn-icon{font-size:var(--font-size-lg);display:flex;align-items:center;justify-content:center}.theme-btn-text{font-weight:600;letter-spacing:.025em}.theme-btn-active{border-color:#fffc;box-shadow:var(--shadow-xl);transform:scale(1.05);color:var(--gray-800)}.theme-btn-active:before{opacity:.3}.theme-btn-active:hover{transform:translateY(-2px) scale(1.07)}.theme-btn-toggle{position:relative;animation:pulse 2s infinite}.theme-btn-toggle:after{content:"";position:absolute;inset:-2px;background:linear-gradient(45deg,#667eea80,#764ba280,#667eea80);border-radius:var(--radius-xl);z-index:-1;opacity:0;transition:opacity var(--transition-normal)}.theme-btn-toggle:hover:after{opacity:1}@keyframes pulse{0%,to{box-shadow:var(--shadow-md)}50%{box-shadow:var(--shadow-lg),0 0 20px #667eea4d}}[data-theme=dark] .theme-btn{color:var(--gray-200);border-color:#fff3}[data-theme=dark] .theme-btn-active{color:var(--gray-100);border-color:#fff9}[data-theme=dark] .theme-selector-label{color:var(--gray-200)}@media (max-width: 768px){.theme-buttons{flex-direction:column;align-items:stretch}.theme-btn{min-width:auto;width:100%}}@media (min-width: 768px) and (max-width: 1024px){.theme-buttons{justify-content:flex-start}.theme-btn{min-width:140px}}@media (min-width: 1024px){.theme-selector{flex-direction:row;align-items:center;justify-content:space-between}.theme-buttons{flex:0 0 auto}.theme-btn{min-width:150px}}@media (prefers-reduced-motion: reduce){.theme-btn{transition:none}.theme-btn-toggle{animation:none}.theme-btn:hover,.theme-btn-active{transform:none}}@media (prefers-contrast: high){.theme-btn{border-width:3px;border-color:currentColor}.theme-btn-active{border-color:var(--accent-color)}}.input-with-overlay{position:relative}.input-with-overlay .source-textarea{padding-right:calc(var(--space-4) + 48px)}.gt-mic-btn{position:absolute;right:var(--space-3);bottom:var(--space-3);width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;background:var(--white);color:var(--gray-800);border:2px solid var(--gray-300);border-radius:50%;box-shadow:var(--shadow-sm);cursor:pointer;transition:all var(--transition-fast);z-index:200;padding:0;line-height:1;font-size:12px;font-weight:700;text-transform:none;letter-spacing:.02em}.gt-mic-btn:hover{color:var(--primary-color);border-color:var(--primary-color);box-shadow:var(--shadow-md)}.gt-mic-btn.recording{color:var(--error-color);border-color:var(--error-color);background:#ef44440f}.gt-mic-btn.recording:after{content:"";position:absolute;inset:-6px;border:2px solid var(--error-color);border-radius:50%;opacity:.6;animation:micPulse 1.2s ease-out infinite}.gt-mic-svg{display:block}@keyframes micPulse{0%{transform:scale(.9);opacity:.6}70%{transform:scale(1.1);opacity:.1}to{transform:scale(1.15);opacity:0}}:root{--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--primary-color: #667eea;--secondary-color: #764ba2;--accent-color: #4f46e5;--success-color: #10b981;--warning-color: #f59e0b;--error-color: #ef4444;--white: #ffffff;--gray-50: #f9fafb;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--font-size-4xl: 2.25rem;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-8: 2rem;--space-10: 2.5rem;--space-12: 3rem;--space-16: 4rem;--radius-sm: .375rem;--radius-md: .5rem;--radius-lg: .75rem;--radius-xl: 1rem;--radius-2xl: 1.5rem;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--touch-target: 44px;--transition-fast: .15s ease-in-out;--transition-normal: .25s ease-in-out;--transition-slow: .35s ease-in-out}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;scroll-behavior:smooth}body{font-family:var(--font-family);font-size:var(--font-size-base);line-height:1.6;color:var(--gray-900);background:var(--primary-gradient);min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*:focus{outline:2px solid var(--accent-color);outline-offset:2px}*:focus:not(:focus-visible){outline:none}.skip-link{position:absolute;top:-40px;left:6px;background:var(--accent-color);color:var(--white);padding:var(--space-2) var(--space-4);text-decoration:none;border-radius:var(--radius-md);z-index:1000;transition:top var(--transition-fast);font-weight:600}.skip-link:focus{top:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{min-height:100vh;display:flex;flex-direction:column;position:relative}.app-header{background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:var(--space-3);text-align:center;box-shadow:var(--shadow-lg);position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(255,255,255,.2)}.app-header.hidden-on-scroll{transform:translateY(-100%);transition:transform var(--transition-normal)}.app-header h1{font-size:var(--font-size-2xl);font-weight:800;margin-bottom:var(--space-2);background:var(--primary-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.025em;line-height:1.2}.app-header p{color:var(--gray-600);font-size:var(--font-size-sm);font-weight:500}.app-main{flex:1;display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4);max-width:100%;margin:0 auto;width:100%}.translation-container{background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:var(--radius-2xl);padding:var(--space-4);box-shadow:var(--shadow-xl);border:1px solid rgba(255,255,255,.2);transition:all var(--transition-normal)}.translation-config{margin-bottom:var(--space-6);padding-bottom:var(--space-4);border-bottom:1px solid var(--gray-200)}@media (max-width: 768px){.translation-config.sticky-controls{position:sticky;top:0;z-index:120;background:#fffffffa;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom-left-radius:var(--radius-2xl);border-bottom-right-radius:var(--radius-2xl);padding-top:var(--space-3);padding-bottom:var(--space-3);box-shadow:0 8px 16px #0000000f}}.language-controls{display:flex;flex-direction:row;align-items:flex-end;justify-content:center;gap:var(--space-4);margin-bottom:var(--space-6)}.language-row{display:flex;align-items:center;gap:var(--space-2);flex:0 0 auto}.language-selector{display:flex;flex-direction:column;gap:var(--space-2);align-items:center}.language-label{font-weight:600;color:var(--gray-700);font-size:var(--font-size-sm);letter-spacing:.025em}.language-select{width:100%;max-width:100px;min-height:var(--touch-target);padding:var(--space-3) var(--space-4);border:2px solid var(--gray-300);border-radius:var(--radius-lg);font-size:var(--font-size-sm);font-weight:500;background:var(--white);color:var(--gray-900);cursor:pointer;transition:all var(--transition-normal);appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right var(--space-2) center;background-repeat:no-repeat;background-size:1.2em 1.2em;padding-right:var(--space-8)}.language-select:hover{border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.language-select:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea33}.language-select:disabled{opacity:.6;cursor:not-allowed;background-color:var(--gray-100)}.swap-btn{min-height:var(--touch-target);min-width:var(--touch-target);width:var(--touch-target);height:var(--touch-target);background:transparent;color:var(--gray-800);border:none;border-radius:var(--radius-xl);font-size:var(--font-size-xl);font-weight:600;cursor:pointer;transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;flex-shrink:0;margin-top:var(--space-6);align-self:center}.swap-btn:hover:not(:disabled){color:var(--gray-900);transform:rotate(180deg)}.swap-btn:active:not(:disabled){color:var(--gray-600);transform:rotate(180deg) scale(.9)}.swap-btn.rotating{animation:swapRotate .6s ease-in-out}.swap-btn:disabled{opacity:.3;cursor:not-allowed;transform:none;color:var(--gray-400)}.swap-icon{display:inline-block;will-change:transform}.swap-icon.rotating{animation:swapRotateCounter .6s ease-in-out}@keyframes swapRotateCounter{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes swapRotate{0%{transform:rotate(0)}50%{transform:rotate(180deg) scale(1.1)}to{transform:rotate(360deg)}}.translation-mode-compact{display:flex;gap:var(--space-2);margin-top:var(--space-4);justify-content:center}.mode-icon-btn{min-height:28px;min-width:28px;width:28px;height:28px;background:transparent;border:none;border-radius:var(--radius-md);font-size:var(--font-size-base);cursor:pointer;transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;color:var(--gray-600)}.mode-icon-btn:before{content:"";position:absolute;inset:0;background:var(--primary-gradient);opacity:0;transition:opacity var(--transition-normal);z-index:0}.mode-icon-btn span,.mode-icon-btn{position:relative;z-index:1}.mode-icon-btn:hover:not(:disabled){color:var(--gray-800)}.mode-icon-btn:hover:not(:disabled):before{opacity:.1}.mode-icon-btn:active:not(:disabled){color:var(--gray-900)}.mode-icon-btn.active{background:#667eea1a;color:var(--primary-color);font-weight:700;border-radius:var(--radius-lg);box-shadow:0 0 0 2px #667eea33}.mode-icon-btn.active:before{opacity:0}.mode-icon-btn:disabled{opacity:.3;cursor:not-allowed;background:transparent}.translation-area{display:flex;flex-direction:column;gap:var(--space-6)}.input-section,.result-section{display:flex;flex-direction:column;gap:var(--space-3)}.result-textarea-container{position:relative;display:flex;flex-direction:column}.copy-btn-overlay{position:absolute;top:var(--space-2);right:var(--space-2);min-height:32px;min-width:48px;padding:0 var(--space-3);background:#ffffffe6;border:1px solid var(--gray-300);border-radius:var(--radius-md);font-size:var(--font-size-sm);cursor:pointer;transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;color:var(--gray-600);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:10}.copy-btn-overlay:hover{background:#fff;border-color:var(--primary-color);color:var(--primary-color);box-shadow:0 2px 8px #0000001a;transform:scale(1.05)}.copy-btn-overlay:active{transform:scale(.95)}.copy-btn-overlay.copied{background:#10b9811f;border-color:var(--success-color);color:var(--success-color)}.copy-icon{position:relative;width:14px;height:14px;display:inline-block}.copy-icon:before,.copy-icon:after{content:"";position:absolute;border:2px solid currentColor;border-radius:3px;box-sizing:border-box}.copy-icon:before{width:12px;height:12px;top:2px;left:2px;opacity:.7}.copy-icon:after{width:12px;height:12px;top:0;left:0;background:transparent}.copy-btn-overlay:hover .copy-icon{color:var(--primary-color)}.copy-btn-overlay:active .copy-icon{opacity:.8}.source-textarea,.result-textarea{width:100%;min-height:80px;padding:var(--space-4);border:2px solid var(--gray-300);border-radius:var(--radius-xl);font-size:var(--font-size-base);font-family:inherit;line-height:1.6;resize:vertical;transition:all var(--transition-normal);background:var(--white);color:var(--gray-900)}.source-textarea:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #667eea1a}.source-textarea::placeholder{color:var(--gray-400);font-style:italic}.result-textarea{background:var(--gray-50);color:var(--gray-700);cursor:default}.result-textarea:focus{border-color:var(--gray-400);box-shadow:0 0 0 3px #6b72801a}.translation-controls{display:flex;flex-direction:column;gap:var(--space-4);align-items:stretch;margin:var(--space-6) 0}.translate-btn,.history-btn{min-height:var(--touch-target);padding:var(--space-4) var(--space-6);border:none;border-radius:var(--radius-xl);font-size:var(--font-size-base);font-weight:600;cursor:pointer;transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center;gap:var(--space-2);position:relative;overflow:hidden}.translate-btn{background:var(--primary-gradient);color:var(--white);box-shadow:var(--shadow-lg)}.translate-btn:before{content:"";position:absolute;inset:0;background:#fff3;opacity:0;transition:opacity var(--transition-fast)}.translate-btn:hover:not(:disabled):before{opacity:1}.translate-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-xl)}.translate-btn:active:not(:disabled){transform:translateY(0)}.translate-btn:disabled{opacity:.7;cursor:not-allowed;transform:none}.history-btn{background:var(--white);color:var(--gray-700);border:2px solid var(--gray-300);box-shadow:var(--shadow-sm)}.history-btn:hover{background:var(--gray-50);border-color:var(--primary-color);color:var(--primary-color);box-shadow:var(--shadow-md)}.translate-btn.loading{background:var(--gray-400);cursor:not-allowed}.translate-btn.loading:after{content:"";width:16px;height:16px;border:2px solid transparent;border-top:2px solid var(--white);border-radius:50%;animation:spin 1s linear infinite;margin-left:var(--space-2)}@keyframes spin{to{transform:rotate(360deg)}}.error-message{background:#ef44441a;color:var(--error-color);padding:var(--space-4);border-radius:var(--radius-lg);border-left:4px solid var(--error-color);margin-top:var(--space-4);font-size:var(--font-size-sm);font-weight:500;display:flex;align-items:flex-start;gap:var(--space-2);animation:slideIn .3s ease-out}.error-message:before{content:"⚠️";flex-shrink:0}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.history-sidebar{background:#fffffff2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:var(--radius-2xl);padding:var(--space-4);box-shadow:var(--shadow-xl);border:1px solid rgba(255,255,255,.2);max-height:400px;overflow-y:auto;animation:slideIn .3s ease-out}.translation-history{height:100%;display:flex;flex-direction:column}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-4);padding-bottom:var(--space-3);border-bottom:1px solid var(--gray-200)}.history-header h3{color:var(--gray-700);font-size:var(--font-size-lg);font-weight:700}.clear-history-btn{min-height:var(--touch-target);min-width:var(--touch-target);background:none;border:none;font-size:var(--font-size-lg);cursor:pointer;padding:var(--space-2);border-radius:var(--radius-md);transition:all var(--transition-normal);display:flex;align-items:center;justify-content:center}.clear-history-btn:hover{background:#ef44441a;color:var(--error-color)}.history-empty{text-align:center;color:var(--gray-500);padding:var(--space-8) var(--space-4);font-style:italic;font-size:var(--font-size-sm)}.history-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:var(--space-3)}.history-item{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:var(--space-4);cursor:pointer;transition:all var(--transition-normal);min-height:var(--touch-target)}.history-item:hover{background:var(--gray-50);border-color:var(--primary-color);transform:translateY(-1px);box-shadow:var(--shadow-md)}.history-item:active{transform:translateY(0)}.history-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--space-2);font-size:var(--font-size-xs)}.history-languages{font-weight:600;color:var(--primary-color);background:#667eea1a;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm)}.history-time{color:var(--gray-500);font-weight:500}.history-text{display:flex;flex-direction:column;gap:var(--space-2)}.history-source,.history-result{font-size:var(--font-size-sm);line-height:1.4;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);max-height:60px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.history-source{background:var(--gray-50);color:var(--gray-700);border-left:3px solid var(--primary-color)}.history-result{background:#667eea0d;color:var(--gray-800);border-left:3px solid var(--secondary-color);font-weight:500}.toast{position:fixed;top:var(--space-4);right:var(--space-4);z-index:1000;min-width:300px;max-width:400px;border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);animation:toastSlideIn .3s ease-out;border:1px solid rgba(255,255,255,.2)}.toast-success{background:#10b981f2;color:var(--white)}.toast-error{background:#ef4444f2;color:var(--white)}.toast-info{background:#3b82f6f2;color:var(--white)}.toast-warning{background:#f59e0bf2;color:var(--white)}.toast-content{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4)}.toast-icon{font-size:var(--font-size-lg);flex-shrink:0}.toast-message{flex:1;font-weight:500;font-size:var(--font-size-sm)}.toast-close{background:none;border:none;color:inherit;font-size:var(--font-size-xl);cursor:pointer;padding:var(--space-1);border-radius:var(--radius-sm);transition:background-color var(--transition-fast);min-height:var(--touch-target);min-width:var(--touch-target);display:flex;align-items:center;justify-content:center}.toast-close:hover{background:#fff3}@keyframes toastSlideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@media (min-width: 768px){.app-header{padding:var(--space-6) var(--space-8)}.app-header h1{font-size:var(--font-size-3xl)}.app-header p{font-size:var(--font-size-base)}.app-main{padding:var(--space-6);gap:var(--space-6)}.translation-container{padding:var(--space-6)}.language-controls{gap:var(--space-6)}.language-row{flex-direction:column}.swap-btn{margin-top:var(--space-6)}.translation-mode-compact{gap:var(--space-3)}.translation-controls{flex-direction:row;justify-content:center}.translate-btn,.history-btn{flex:0 0 auto;min-width:160px}.source-textarea,.result-textarea{min-height:150px}.history-sidebar{max-height:500px}}@media (min-width: 1024px){.app-header h1{font-size:var(--font-size-4xl)}.app-main{flex-direction:column;max-width:1600px;padding:var(--space-10);gap:var(--space-10)}.translation-container{flex:1;padding:var(--space-10)}.history-sidebar{width:100%;max-height:600px;position:relative;top:0}.language-controls{gap:var(--space-8);margin-bottom:var(--space-8)}.language-selector{min-width:200px}.language-select{font-size:var(--font-size-lg);padding:var(--space-4) var(--space-5);min-height:56px}.swap-btn{margin-top:var(--space-8);margin-left:var(--space-6);margin-right:var(--space-6);min-height:56px;min-width:56px;font-size:var(--font-size-2xl)}.source-textarea,.result-textarea{min-height:250px;font-size:var(--font-size-lg);padding:var(--space-6)}.translation-controls{gap:var(--space-8);margin:var(--space-10) 0}.translate-btn{min-width:180px;min-height:var(--touch-target);font-size:var(--font-size-base);padding:var(--space-4) var(--space-6)}.history-btn{min-width:220px;min-height:56px;font-size:var(--font-size-lg);padding:var(--space-5) var(--space-8)}.translation-area{display:grid;grid-template-columns:1fr minmax(140px,auto) 1fr;grid-auto-rows:auto;gap:var(--space-8);align-items:start}.input-section{grid-column:1}.translation-controls{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);padding:0 var(--space-4)}.result-section{grid-column:3}.translate-btn,.history-btn{width:100%}}@media (min-width: 1440px){.app-main{max-width:1800px;padding:var(--space-12)}.translation-container{padding:var(--space-12)}.app-header h1{font-size:3rem}.app-header p{font-size:var(--font-size-lg)}.language-select{font-size:var(--font-size-xl);min-height:64px;padding:var(--space-5) var(--space-6)}.swap-btn{min-height:64px;min-width:64px;font-size:2rem}.source-textarea,.result-textarea{min-height:300px;font-size:var(--font-size-xl);padding:var(--space-8)}.translate-btn{min-width:300px;min-height:64px;font-size:var(--font-size-xl);padding:var(--space-6) var(--space-10)}.history-btn{min-width:280px;min-height:64px;font-size:var(--font-size-xl);padding:var(--space-6) var(--space-10)}.translation-controls{margin:var(--space-12) 0}}@media (max-width: 480px){.toast{top:var(--space-2);right:var(--space-2);left:var(--space-2);min-width:auto;max-width:none}.translation-area{gap:var(--space-3)}.source-textarea,.result-textarea{min-height:64px;padding:var(--space-3)}.translation-controls{margin:var(--space-3) 0;gap:var(--space-2)}.translate-btn,.history-btn{padding:var(--space-2) var(--space-3)}}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.app-header,.translation-container,.history-sidebar{backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.swap-btn:hover:not(:disabled){transform:scale(1.05)}.translate-btn:hover:not(:disabled){transform:none}}@media print{.app{background:#fff}.app-header,.translation-container{background:#fff;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.translation-controls,.history-sidebar,.toast{display:none}}
