*{box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#0f172a}body{margin:0;padding:0;min-width:320px;min-height:100vh;background:#fafafa}@media (prefers-color-scheme: dark){:root{color:#e2e8f0}body{background:#0f172a}}#root{width:100%;height:100vh}.app-header{background:#fff;color:#0f172a;padding:1.25rem 1.5rem 1.25rem 2rem;border-bottom:1px solid #e2e8f0}@media (prefers-color-scheme: dark){.app-header{background:#1e293b;color:#e2e8f0;border-bottom:1px solid #334155}.app-title{color:#e2e8f0}.username{color:#3b82f6}.btn-login:hover,.btn-logout:hover{background:#2563eb;border-color:#2563eb}}.header-content{display:flex;justify-content:space-between;align-items:center;gap:2rem}.header-left{flex:1;display:flex;flex-direction:column;gap:.375rem}.app-logo{height:36px;width:auto;object-fit:contain;object-position:left}.app-title{margin:0;font-size:2rem;font-weight:700;letter-spacing:-.5px;color:#0f172a}.app-subtitle{margin:0;font-size:.8125rem;color:#64748b;font-weight:400}.header-right{display:flex;align-items:center;gap:1rem}.auth-loading{padding:.5rem 1rem;display:flex;align-items:center;justify-content:center}.spinner{width:20px;height:20px;border:2px solid #e2e8f0;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@media (prefers-color-scheme: dark){.spinner{border-color:#334155;border-top-color:#3b82f6}}.user-info{display:flex;align-items:center;gap:1rem}.user-details{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.username{font-weight:500;font-size:.9rem;color:#2563eb}.status-badge{display:inline-block;padding:.125rem .5rem;border-radius:12px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.status-badge.inactive{background:#ef4444;color:#fff}.btn-login,.btn-logout{padding:.625rem 1.25rem;border:1px solid #2563eb;border-radius:6px;background:#2563eb;color:#fff;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-login:hover{background:#1d4ed8;border-color:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px #2563eb40}.btn-logout:hover{background:#1d4ed8;border-color:#1d4ed8}@media (max-width: 768px){.app-header{padding:1rem}.header-content{flex-direction:column;align-items:flex-start;gap:1rem}.app-title{font-size:1.5rem}.app-subtitle{font-size:.75rem}.header-right{width:100%;justify-content:flex-end}.user-details{align-items:flex-start}}.source-panel{display:flex;flex-direction:column;flex:0 0 40%;min-width:0;min-height:0;background:#fff;border-radius:12px;box-shadow:0 4px 6px #00000012,0 1px 3px #0000000f;overflow-y:auto}.source-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.source-panel .panel-header h2{margin:0;font-size:1.125rem;font-weight:600;color:#1a202c}.domain-selector{display:flex;align-items:center;gap:.5rem}.domain-selector label{font-size:.875rem;font-weight:500;color:#4a5568}.domain-selector select{padding:.5rem .75rem;border:1px solid #cbd5e0;border-radius:6px;background:#fff;font-size:.875rem;color:#2d3748;cursor:pointer;transition:all .2s}.domain-selector select:hover:not(:disabled){border-color:#94a3b8}.domain-selector select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.domain-selector select:disabled{opacity:.5;cursor:not-allowed}.textarea-container{flex:1 1 auto;min-height:10rem;display:flex;padding:1.5rem;overflow:hidden}.source-textarea{flex:1;width:100%;padding:1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.9375rem;line-height:1.6;color:#2d3748;background:#fff;resize:none;font-family:Segoe UI,system-ui,-apple-system,sans-serif;transition:border-color .2s}.source-textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.source-textarea:disabled{opacity:.6;cursor:not-allowed;background:#f7fafc}.source-textarea::placeholder{color:#a0aec0}.user-prompt-container{flex:0 0 auto;padding:0 1.5rem 1.5rem}.user-prompt-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem}.user-prompt-header label{font-size:.875rem;font-weight:600;color:#2d3748}.prompt-counter{flex:0 0 auto;font-size:.8125rem;color:#718096;font-variant-numeric:tabular-nums}.prompt-counter .count{font-weight:600;color:#4a5568}.prompt-counter .separator{margin:0 .25rem;color:#cbd5e0}.prompt-counter.over-limit .count,.prompt-warning{color:#b91c1c}.user-prompt-textarea{width:100%;min-height:5.5rem;max-height:10rem;padding:.875rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.875rem;line-height:1.5;color:#2d3748;background:#fff;resize:vertical;font-family:Segoe UI,system-ui,-apple-system,sans-serif;transition:border-color .2s}.user-prompt-textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.user-prompt-textarea:disabled{opacity:.6;cursor:not-allowed;background:#f7fafc}.user-prompt-textarea::placeholder{color:#a0aec0}.prompt-warning{margin-top:.375rem;font-size:.8125rem;font-weight:500}.panel-footer{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-top:1px solid #e2e8f0;background:#f8fafc}.char-counter{font-size:.875rem;color:#4a5568;font-variant-numeric:tabular-nums}.char-counter .count{font-weight:600;color:#2d3748}.char-counter .separator{margin:0 .25rem;color:#cbd5e0}.char-counter .max{color:#718096}.char-counter.over-limit .count{color:#e53e3e}.char-counter .warning{color:#e53e3e;font-weight:500;margin-left:.5rem}.translate-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border:none;border-radius:8px;background:#2563eb;color:#fff;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #2563eb26}.translate-button:hover:not(:disabled){background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px #2563eb40}.translate-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 6px #2563eb26}.translate-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin .8s linear infinite}@media (max-width: 1024px){.source-panel{flex:none;min-height:70vh;overflow:visible}.textarea-container{flex:1 1 auto;min-height:14rem;overflow:visible}.source-textarea{min-height:14rem;resize:vertical}}@media (max-width: 640px){.source-panel .panel-header,.panel-footer,.user-prompt-header{align-items:stretch;flex-direction:column;gap:.75rem}.textarea-container,.user-prompt-container{padding:1rem}.translate-button{justify-content:center;width:100%}}@media (prefers-color-scheme: dark){.source-panel{background:#2d3748;box-shadow:0 4px 6px #0000004d}.source-panel .panel-header{background:#1a202c;border-bottom:1px solid #4a5568}.source-panel .panel-header h2{color:#f7fafc}.domain-selector label{color:#cbd5e0}.domain-selector select{background:#4a5568;border-color:#4a5568;color:#f7fafc}.domain-selector select:hover:not(:disabled){border-color:#667eea}.source-textarea{background:#1a202c;border-color:#4a5568;color:#f7fafc}.source-textarea:disabled{background:#2d3748}.source-textarea::placeholder{color:#718096}.user-prompt-header label{color:#f7fafc}.prompt-counter{color:#a0aec0}.prompt-counter .count{color:#cbd5e0}.prompt-counter .separator{color:#4a5568}.user-prompt-textarea{background:#1a202c;border-color:#4a5568;color:#f7fafc}.user-prompt-textarea:disabled{background:#2d3748}.user-prompt-textarea::placeholder{color:#718096}.prompt-counter.over-limit .count,.prompt-warning{color:#fca5a5}.panel-footer{background:#1a202c;border-top:1px solid #4a5568}.char-counter{color:#cbd5e0}.char-counter .count{color:#f7fafc}.char-counter .separator{color:#4a5568}.char-counter .max{color:#a0aec0}}.highlighted-text{line-height:1.6;word-wrap:break-word}.term-highlight{padding:2px 4px;border-radius:3px;font-weight:500;transition:all .2s ease;cursor:help}.term-highlight.priority-must{background-color:#f59e0b33;color:#92400e;border-bottom:2px solid rgba(245,158,11,.6)}.term-highlight.priority-must:hover{background-color:#f59e0b4d}.term-highlight.priority-preferred{background-color:#3b82f626;color:#1e40af;border-bottom:2px solid rgba(59,130,246,.5)}.term-highlight.priority-preferred:hover{background-color:#3b82f640}.term-highlight.priority-optional{background-color:#6b72801a;color:#374151;border-bottom:2px solid rgba(107,114,128,.4)}.term-highlight.priority-optional:hover{background-color:#6b728033}@media (prefers-color-scheme: dark){.term-highlight.priority-must{background-color:#f59e0b26;color:#fbbf24}.term-highlight.priority-preferred{background-color:#3b82f626;color:#60a5fa}.term-highlight.priority-optional{background-color:#9ca3af26;color:#d1d5db}}.segment-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:1rem;overflow:hidden;transition:all .2s}.segment-card:hover{box-shadow:0 2px 8px #00000014}.segment-card.status-success{border-left:3px solid #48bb78}.segment-card.status-error{border-left:3px solid #e53e3e}.segment-card.status-loading{border-left:3px solid #667eea}.segment-card.status-pending{border-left:3px solid #cbd5e0}.segment-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#f8fafc;border-bottom:1px solid #e2e8f0}.segment-index{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#4a5568}.split-indicator{font-size:.75rem;padding:.125rem .375rem;background:#fbbf24;color:#78350f;border-radius:3px;font-weight:500}.score-badge{display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border-radius:6px;font-size:.875rem;font-weight:600}.score-badge.excellent{background:#c6f6d5;color:#22543d}.score-badge.good{background:#bee3f8;color:#2c5282}.score-badge.fair{background:#fef3c7;color:#78350f}.score-badge.poor{background:#fed7d7;color:#742a2a}.score-value{font-size:1rem;font-variant-numeric:tabular-nums}.score-label{font-size:.8125rem}.status-indicator{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:500}.status-indicator.loading{color:#667eea}.status-indicator.pending{color:#a0aec0}.spinner-small{display:inline-block;width:12px;height:12px;border:2px solid rgba(102,126,234,.3);border-radius:50%;border-top-color:#667eea;animation:spin .8s linear infinite}.progress-stepper{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.progress-step{display:inline-flex;align-items:center;min-height:1.75rem;padding:.25rem .625rem;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#718096;font-size:.75rem;font-weight:600;white-space:nowrap}.progress-step.completed{border-color:#c6f6d5;background:#f0fff4;color:#2f855a}.progress-step.skipped{border-color:#e2e8f0;background:#f8fafc;color:#a0aec0;text-decoration:line-through}.progress-step.active{border-color:#667eea;background:#eef2ff;color:#4c51bf}.progress-update-note{margin:-.25rem 0 1rem;color:#718096;font-size:.8125rem;line-height:1.4}.segment-body{padding:1.25rem;min-height:4rem}.source-text-section{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.translation-text-section{margin-bottom:0}.section-label{font-size:.75rem;font-weight:600;color:#718096;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.source-text,.translation-text{font-size:.9375rem;line-height:1.7;color:#2d3748;white-space:pre-wrap;word-break:break-word}.loading-skeleton{display:flex;flex-direction:column;gap:.75rem}.skeleton-line{height:1rem;background:linear-gradient(90deg,#f7fafc 25%,#edf2f7,#f7fafc 75%);background-size:200% 100%;border-radius:4px;animation:shimmer 1.5s infinite}.skeleton-line.short{width:60%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.spinner-small,.skeleton-line{animation:none}.skeleton-line{background:#edf2f7}}.error-state{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem 0}.error-icon{font-size:2rem}.error-message{font-size:.875rem;color:#e53e3e;text-align:center}.retry-button{padding:.5rem 1rem;border:1px solid #e53e3e;border-radius:6px;background:#fff;color:#e53e3e;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.retry-button:hover{background:#e53e3e;color:#fff}.segment-footer{border-top:1px solid #e2e8f0;background:#f8fafc}.rationale-toggle{width:100%;padding:.75rem 1.25rem;border:none;background:transparent;text-align:left;font-size:.875rem;font-weight:500;color:#667eea;cursor:pointer;transition:all .2s}.rationale-toggle:hover{background:#edf2f7}.rationale-content{padding:1rem 1.25rem;border-top:1px solid #e2e8f0}.rationale-section{margin-bottom:1rem}.rationale-section:last-child{margin-bottom:0}.rationale-section strong{display:block;margin-bottom:.5rem;font-size:.8125rem;font-weight:600;color:#4a5568;text-transform:uppercase;letter-spacing:.05em}.rationale-section p{margin:0;font-size:.875rem;line-height:1.6;color:#2d3748}.terminology-metrics,.timing-metrics{display:flex;flex-wrap:wrap;gap:1rem;font-size:.8125rem}.metric{padding:.375rem .625rem;background:#fff;border:1px solid #e2e8f0;border-radius:4px;color:#4a5568;white-space:nowrap}.metric.total{font-weight:600;color:#2d3748;border-color:#cbd5e0}@media (prefers-color-scheme: dark){.segment-card{background:#1a202c;border-color:#4a5568}.segment-header{background:#2d3748;border-bottom:1px solid #4a5568}.segment-index{color:#cbd5e0}.split-indicator{background:#d69e2e;color:#fffbeb}.score-badge.excellent{background:#2f855a;color:#c6f6d5}.score-badge.good{background:#2c5282;color:#bee3f8}.score-badge.fair{background:#b7791f;color:#fef3c7}.score-badge.poor{background:#9b2c2c;color:#fed7d7}.section-label{color:#a0aec0}.source-text,.translation-text{color:#f7fafc}.source-text-section{border-bottom-color:#4a5568}.skeleton-line{background:linear-gradient(90deg,#2d3748 25%,#4a5568,#2d3748 75%);background-size:200% 100%}.progress-step{background:#1a202c;border-color:#4a5568;color:#a0aec0}.progress-step.completed{background:#1c4532;border-color:#2f855a;color:#c6f6d5}.progress-step.skipped{background:#1a202c;border-color:#4a5568;color:#718096}.progress-step.active{background:#2a4365;border-color:#667eea;color:#bee3f8}.progress-update-note{color:#a0aec0}.retry-button{background:#1a202c;border-color:#e53e3e;color:#fc8181}.retry-button:hover{background:#e53e3e;color:#fff}.segment-footer{background:#2d3748;border-top:1px solid #4a5568}.rationale-toggle{color:#90cdf4}.rationale-toggle:hover{background:#1a202c}.rationale-content{border-top:1px solid #4a5568}.rationale-section strong{color:#cbd5e0}.rationale-section p{color:#f7fafc}.metric{background:#1a202c;border-color:#4a5568;color:#cbd5e0}.metric.total{color:#f7fafc;border-color:#718096}}.results-panel{display:flex;flex-direction:column;flex:0 0 60%;min-width:0;background:#fff;border-radius:12px;box-shadow:0 4px 6px #00000012,0 1px 3px #0000000f;overflow:hidden}.results-panel .panel-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.results-panel .panel-header h2{margin:0;font-size:1.125rem;font-weight:600;color:#1a202c}.results-actions{display:flex;gap:.5rem}.results-actions button{padding:.5rem 1rem;border:1px solid #cbd5e0;border-radius:6px;background:#fff;font-size:.875rem;font-weight:500;color:#4a5568;cursor:pointer;transition:all .2s}.results-actions button:hover:not(:disabled){background:#f7fafc;border-color:#2563eb;color:#2563eb}.results-actions button:disabled{opacity:.5;cursor:not-allowed}.toggle-view-button{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}.toggle-view-button:hover:not(:disabled){background:#1d4ed8!important}.copy-button:hover:not(:disabled){border-color:#48bb78;color:#48bb78}.download-button:hover:not(:disabled){border-color:#4299e1;color:#4299e1}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;padding:3rem;text-align:center}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.empty-state h3{margin:0 0 .5rem;font-size:1.25rem;font-weight:600;color:#2d3748}.empty-state p{margin:0;font-size:.9375rem;color:#718096}.results-summary{display:flex;gap:1.5rem;padding:1rem 1.5rem;background:#f7fafc;border-bottom:1px solid #e2e8f0}.summary-stat{display:flex;align-items:center;gap:.5rem;font-size:.875rem}.stat-label{color:#718096;font-weight:500}.stat-value{font-weight:600;color:#2d3748;font-variant-numeric:tabular-nums}.stat-value.success{color:#48bb78}.stat-value.error{color:#e53e3e}.segments-container{flex:1;overflow-y:auto;padding:1rem}.segments-container::-webkit-scrollbar{width:8px}.segments-container::-webkit-scrollbar-track{background:#f7fafc}.segments-container::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:4px}.segments-container::-webkit-scrollbar-thumb:hover{background:#a0aec0}.final-output-container{flex:1;overflow-y:auto;padding:1.5rem}.final-output{padding:1.5rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:.9375rem;line-height:1.7;color:#2d3748;white-space:pre-wrap;font-family:Segoe UI,system-ui,-apple-system,sans-serif}@media (prefers-color-scheme: dark){.results-panel{background:#2d3748;box-shadow:0 4px 6px #0000004d}.results-panel .panel-header{background:#1a202c;border-bottom:1px solid #4a5568}.results-panel .panel-header h2{color:#f7fafc}.results-actions button{background:#4a5568;border-color:#4a5568;color:#cbd5e0}.results-actions button:hover:not(:disabled){background:#2d3748;border-color:#667eea;color:#667eea}.toggle-view-button{background:#667eea!important;border-color:#667eea!important;color:#fff!important}.empty-state h3{color:#f7fafc}.empty-state p{color:#a0aec0}.results-summary{background:#1a202c;border-bottom:1px solid #4a5568}.stat-label{color:#a0aec0}.stat-value{color:#f7fafc}.segments-container::-webkit-scrollbar-track{background:#1a202c}.segments-container::-webkit-scrollbar-thumb{background:#4a5568}.segments-container::-webkit-scrollbar-thumb:hover{background:#718096}.final-output{background:#1a202c;border-color:#4a5568;color:#f7fafc}}.glossary-manager{display:flex;flex-direction:column;gap:.75rem;padding:0 1.5rem 1rem;border-bottom:1px solid #e2e8f0;background:#fff}.glossary-header,.glossary-row,.preview-actions,.preview-pager{display:flex;align-items:center;gap:.75rem}.glossary-header{justify-content:space-between;flex-wrap:wrap}.glossary-header h3{margin:0;font-size:.9375rem;font-weight:600;color:#1a202c}.glossary-selection-summary,.glossary-empty{color:#64748b;font-size:.75rem}.glossary-header button,.glossary-row button,.preview-pager button,.preview-actions button,.preview-cell-actions button{border:1px solid #cbd5e0;background:#fff;color:#2d3748;border-radius:6px;padding:.4rem .65rem;font-size:.8125rem;font-weight:500;cursor:pointer}.glossary-row .glossary-delete-confirm{border-color:#dc2626;background:#dc2626;color:#fff}.glossary-row .glossary-delete-confirm:hover:not(:disabled):not([aria-disabled=true]){border-color:#b91c1c;background:#b91c1c}.glossary-header button:hover:not(:disabled),.glossary-row button:hover:not(:disabled):not([aria-disabled=true]),.preview-pager button:hover:not(:disabled),.preview-actions button:hover:not(:disabled),.preview-cell-actions button:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.glossary-header button:disabled,.glossary-row button:disabled,.glossary-row button[aria-disabled=true],.preview-pager button:disabled,.preview-actions button:disabled,.preview-cell-actions button:disabled{opacity:.5;cursor:not-allowed}.glossary-list{display:flex;flex-direction:column;gap:.4rem;max-height:12rem;overflow-y:auto;padding-right:.25rem}.glossary-row{min-height:2rem;font-size:.875rem;color:#2d3748}.glossary-row input[type=checkbox]{flex:0 0 auto;width:1rem;height:1rem}.glossary-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.glossary-count{color:#64748b;font-size:.75rem;white-space:nowrap}.glossary-preview{display:flex;flex-direction:column;gap:.6rem;border:1px solid #e2e8f0;border-radius:8px;padding:.75rem;background:#f8fafc}.glossary-preview input,.glossary-preview select{padding:.5rem .65rem;border:1px solid #cbd5e0;border-radius:6px;color:#2d3748;background:#fff}.glossary-name-label{color:#475569;font-size:.75rem;font-weight:600}.glossary-preview input:focus,.glossary-preview select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.glossary-preview input[aria-invalid=true]{border-color:#dc2626}.preview-summary,.glossary-status,.preview-warnings,.preview-cap-note{margin:0;font-size:.8125rem;color:#475569}.preview-cap-note{color:#64748b}.preview-pager{justify-content:flex-end;font-size:.8125rem;color:#475569}.glossary-status-error{color:#b91c1c;font-weight:600}.preview-warnings{max-height:8rem;overflow-y:auto}.preview-warnings ul{margin:.5rem 0 0;padding-left:1rem}.preview-table{display:grid;gap:.35rem}.preview-table-scroll{display:grid;gap:.35rem;max-height:16rem;overflow-y:auto;padding-right:.25rem}.preview-table-scroll:focus{outline:none;box-shadow:0 0 0 3px #2563eb1f}.preview-row{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(8rem,1.15fr) minmax(6.5rem,.6fr) minmax(7rem,1fr) minmax(7rem,1fr) minmax(7rem,1fr) minmax(6.75rem,.6fr);gap:.5rem;font-size:.8125rem;color:#334155}.preview-cell{min-width:0}.preview-cell input,.preview-cell select{width:100%;min-width:0;font-size:.8125rem}.preview-cell-actions button{width:100%;padding-inline:.45rem;white-space:normal}.preview-row-header{color:#64748b;font-size:.75rem;font-weight:600}@media (max-width: 900px){.glossary-manager{padding:0 1rem 1rem}.glossary-row{align-items:stretch;flex-wrap:wrap}.glossary-name{flex-basis:calc(100% - 1.75rem)}.preview-actions,.preview-pager{align-items:stretch;flex-direction:column}.preview-row{grid-template-columns:1fr;gap:.2rem;padding:.35rem 0;border-bottom:1px solid #e2e8f0}.preview-row:not(.preview-row-header) .preview-cell{display:grid;grid-template-columns:minmax(5.75rem,max-content) minmax(0,1fr);gap:.5rem;align-items:center}.preview-row:not(.preview-row-header) .preview-cell:before{content:attr(data-label);color:#64748b;font-size:.75rem;font-weight:600}.preview-row-header{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}@media (prefers-color-scheme: dark){.glossary-manager{background:#2d3748;border-bottom-color:#4a5568}.glossary-header h3,.glossary-row{color:#f7fafc}.glossary-header button,.glossary-row button,.preview-pager button,.preview-actions button,.preview-cell-actions button,.glossary-preview input,.glossary-preview select{background:#1a202c;border-color:#4a5568;color:#f7fafc}.glossary-header button:hover:not(:disabled),.glossary-row button:hover:not(:disabled):not([aria-disabled=true]),.preview-pager button:hover:not(:disabled),.preview-actions button:hover:not(:disabled),.preview-cell-actions button:hover:not(:disabled){background:#2d3748;border-color:#667eea}.glossary-preview{background:#1a202c;border-color:#4a5568}.preview-summary,.glossary-status,.glossary-count,.glossary-selection-summary,.glossary-empty,.glossary-name-label,.preview-warnings,.preview-cap-note,.preview-pager,.preview-row-header,.preview-row{color:#cbd5e0}.glossary-status-error{color:#fca5a5}@media (max-width: 640px){.preview-row{border-bottom-color:#4a5568}}}.translation-history-panel{display:flex;flex-direction:column;gap:.75rem;padding:1rem;overflow-y:auto}.history-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.history-header h3{margin:0;color:#1a202c;font-size:.9375rem;font-weight:600}.history-header span,.history-empty,.history-status{margin:0;color:#64748b;font-size:.8125rem}.history-status-error{color:#b91c1c;font-weight:600}.history-list{display:flex;flex-direction:column;gap:.75rem}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;padding:.875rem;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.history-item-main{min-width:0}.history-item h4,.history-item p{overflow:hidden;margin:0;text-overflow:ellipsis;white-space:nowrap}.history-item h4{color:#1a202c;font-size:.875rem;font-weight:600}.history-item p{margin-top:.25rem;color:#475569;font-size:.8125rem}.history-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem;color:#64748b;font-size:.75rem}.history-actions{display:flex;align-items:flex-start;gap:.5rem}.history-actions button{border:1px solid #cbd5e0;border-radius:6px;background:#fff;color:#2d3748;cursor:pointer;font-size:.8125rem;font-weight:500;padding:.4rem .65rem}.history-actions button:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}.history-actions .history-delete-confirm{border-color:#dc2626;background:#dc2626;color:#fff}.history-actions .history-delete-confirm:hover:not(:disabled):not([aria-disabled=true]){border-color:#b91c1c;background:#b91c1c}.history-actions button:disabled{cursor:not-allowed;opacity:.5}.history-actions button[aria-disabled=true]{cursor:not-allowed;opacity:.5}.history-delete-message{grid-column:1 / -1;margin:-.25rem 0 0;color:#991b1b;font-size:.8125rem;font-weight:600}@media (max-width: 640px){.history-item{grid-template-columns:1fr}.history-actions{align-items:stretch}}@media (prefers-color-scheme: dark){.history-header h3,.history-item h4{color:#f7fafc}.history-header span,.history-empty,.history-status,.history-item p,.history-meta{color:#cbd5e0}.history-status-error,.history-delete-message{color:#fca5a5}.history-item{border-color:#4a5568;background:#1a202c}.history-actions button{border-color:#4a5568;background:#1a202c;color:#f7fafc}.history-actions button:hover:not(:disabled){border-color:#667eea;background:#2d3748}}.translation-workspace{display:flex;flex-direction:column;flex:1;background:#e2e8f0;overflow:hidden}.workspace-content{display:flex;flex:1;gap:1rem;padding:1rem 2rem 1rem 1rem;overflow:hidden;width:100%}.workspace-right{display:flex;flex:0 0 60%;min-width:0;min-height:0;flex-direction:column}.workspace-tabs{display:flex;flex:0 0 auto;gap:.25rem;padding:0 0 .5rem}.workspace-tabs button{border:1px solid #cbd5e0;border-radius:6px;background:#fff;color:#475569;cursor:pointer;font-size:.875rem;font-weight:600;padding:.5rem .85rem}.workspace-tabs button:hover{border-color:#94a3b8;background:#f8fafc}.workspace-tabs button.active{border-color:#2563eb;background:#2563eb;color:#fff}.workspace-tab-panel{display:flex;flex:1;min-height:0;overflow:hidden}.workspace-panel-view{display:flex;flex:1;min-width:0;min-height:0}.workspace-panel-view[hidden]{display:none}.workspace-panel-view .results-panel{flex:1}.workspace-panel-view .glossary-manager,.workspace-panel-view .translation-history-panel{flex:1;min-width:0;border-radius:12px;background:#fff;box-shadow:0 4px 6px #00000012,0 1px 3px #0000000f}.workspace-panel-view .glossary-manager{padding-top:1rem;border-bottom:0;overflow-y:auto}@media (max-width: 1024px){.translation-workspace{overflow:auto}.workspace-content{flex-direction:column;overflow:visible;padding:1rem}.workspace-right{flex:none;min-height:70vh}.workspace-tab-panel{overflow:visible}}@media (prefers-color-scheme: dark){.translation-workspace{background:#0f172a}.workspace-tabs button{border-color:#4a5568;background:#1a202c;color:#cbd5e0}.workspace-tabs button:hover{border-color:#667eea;background:#2d3748}.workspace-tabs button.active{border-color:#667eea;background:#667eea;color:#fff}.workspace-panel-view .glossary-manager,.workspace-panel-view .translation-history-panel{background:#2d3748;box-shadow:0 4px 6px #0000004d}.workspace-header{background:#0f172afa;border-bottom:1px solid rgba(148,163,184,.1)}.workspace-header h1{color:#f1f5f9}.workspace-header .subtitle{color:#94a3b8}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fafafa;padding:1rem}.login-card{background:#fff;border-radius:12px;box-shadow:0 4px 24px #0f172a14;border:1px solid #e2e8f0;max-width:440px;width:100%;padding:3rem 2.5rem;animation:slideUp .4s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:2.5rem}.login-logo{height:56px;width:auto;display:block;margin:0 auto 2rem;object-fit:contain}.login-title{font-size:1.75rem;color:#0f172a;margin:0 0 .5rem;font-weight:600;letter-spacing:-.025em}.login-subtitle{font-size:.9375rem;color:#64748b;margin:0;line-height:1.5;font-weight:400}.login-providers{display:flex;flex-direction:column;gap:1rem}.btn-provider{display:flex;align-items:center;justify-content:center;gap:.75rem;width:100%;padding:.875rem 1.5rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.btn-provider:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0f172a1a}.btn-provider:active{transform:translateY(0);box-shadow:0 2px 6px #0f172a14}.provider-icon{width:20px;height:20px;flex-shrink:0}.btn-microsoft{background:#fff;color:#0f172a;border-color:#e2e8f0}.btn-microsoft:hover{background:#f8fafc;border-color:#cbd5e1}.btn-github{background:#2563eb;color:#fff;border-color:#2563eb}.btn-github:hover{background:#1d4ed8;border-color:#1d4ed8}.btn-google{background:#fff;color:#0f172a;border-color:#e2e8f0}.btn-google:hover{background:#f8fafc;border-color:#cbd5e1}.login-footer{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.login-footer-text{font-size:.8125rem;color:#94a3b8;text-align:center;margin:0;line-height:1.5}@media (max-width: 480px){.login-card{padding:2rem 1.5rem}.login-title{font-size:1.5rem}.login-subtitle{font-size:.875rem}.btn-provider{padding:.75rem 1rem;font-size:.95rem}.provider-icon{width:18px;height:18px}}#root{width:100%;height:100vh;display:flex;flex-direction:column}.app-container{width:100%;height:100%;display:flex;flex-direction:column;background:#fafafa}.welcome-message,.inactive-message{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;background:#fff}.welcome-logo{height:64px;width:auto;margin-bottom:2rem;object-fit:contain}.welcome-message h2,.inactive-message h2{font-size:2.25rem;font-weight:600;margin:0 0 .75rem;color:#0f172a;letter-spacing:-.025em}.welcome-message p,.inactive-message p{font-size:1rem;color:#64748b;max-width:480px;line-height:1.6;font-weight:400}.inactive-message{background:#fef8f8}.inactive-message h2{color:#dc2626}.btn-primary{margin-top:2rem;padding:14px 32px;font-size:.9375rem;font-weight:500;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease;letter-spacing:-.01em}.btn-primary:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px #2563eb33}.btn-primary:active{transform:translateY(0);box-shadow:0 2px 6px #2563eb26}.loading-spinner{width:48px;height:48px;border:4px solid #e2e8f0;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-color-scheme: dark){.app-container{background:#0f172a}.welcome-message,.inactive-message{background:#1e293b}.welcome-message h2,.inactive-message h2{color:#e2e8f0}.welcome-message p,.inactive-message p{color:#94a3b8}.inactive-message{background:#1e1b1b}.inactive-message h2{color:#ef4444}.loading-spinner{border-color:#334155;border-top-color:#3b82f6}}
