.trans-editor-section { max-width: 1200px; margin: 0 auto; padding: 0 clamp(0.25rem, 2vw, 1rem); }

.tools-section .section-title,
.tools-section .section-subtitle {
    padding-left: clamp(0.25rem, 2vw, 1rem);
}

.trans-header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 0.75rem; background: #f8fafc; border-radius: 12px; padding: clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trans-header-left { display: flex; align-items: center; gap: 0.75rem; }
.trans-icon { width: 32px; height: 32px; color: #2563eb; }
.trans-title { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0; }
.trans-version { font-size: 0.875rem; font-weight: 400; color: #64748b; }

.trans-autosave-badge {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem;
    background: #dcfce7; color: #166534; border-radius: 9999px; font-size: 0.875rem;
    white-space: nowrap; flex-shrink: 0;
}

.trans-pulse-dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.trans-header-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.trans-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
    border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}

.trans-btn-gray { background: #6b7280; color: white; }
.trans-btn-gray:hover { background: #4b5563; }
.trans-btn-dark { background: #4b5563; color: white; }
.trans-btn-dark:hover { background: #374151; }
.trans-btn-red { background: #dc2626; color: white; }
.trans-btn-red:hover { background: #b91c1c; }
.trans-btn-blue { background: #2563eb; color: white; }
.trans-btn-blue:hover { background: #1d4ed8; }
.trans-btn-green { background: #16a34a; color: white; }
.trans-btn-green:hover { background: #15803d; }
.trans-btn-purple { background: #9333ea; color: white; }
.trans-btn-purple:hover { background: #7e22ce; }

.trans-btn-icon {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem;
    background: transparent; border: none; border-radius: 6px; color: #9ca3af;
    cursor: pointer; transition: all 0.2s; font-size: 1.25rem;
}
.trans-btn-icon:hover { background: #f3f4f6; color: #6b7280; }

.trans-zoom-display {
    padding: 0.5rem 0.75rem; background: #f3f4f6; border-radius: 8px;
    font-size: 0.875rem; color: #374151; min-width: 50px; text-align: center;
}

.trans-bulk-input {
    background: #f8fafc; border-radius: 12px; padding: clamp(0.75rem, 3vw, 1.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trans-bulk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.trans-bulk-col { display: flex; flex-direction: column; }
.trans-label { font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.5rem; }

.trans-textarea {
    width: 100%; height: 128px; padding: 0.75rem; border: 2px solid #e2e8f0;
    border-radius: 8px; font-size: 1rem; font-family: inherit; resize: none;
    transition: all 0.2s; box-sizing: border-box;
}
.trans-textarea:focus { outline: none; }
.trans-textarea-original:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.trans-textarea-translated:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.1); }

.trans-char-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.trans-char-col { display: flex; flex-direction: column; }
.trans-label-small { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.25rem; }

.trans-input-number {
    width: 100%; padding: 0.375rem 0.75rem; border: 1px solid #e2e8f0;
    border-radius: 6px; font-size: 0.875rem; box-sizing: border-box;
}
.trans-input-number:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.1); }

.trans-worksheet {
    background: #f8fafc; border-radius: 12px; padding: clamp(0.75rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trans-worksheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.trans-worksheet-title { font-size: 1.125rem; font-weight: 600; color: #1e293b; margin: 0; }
.trans-lines-container { display: flex; flex-direction: column; gap: 0.75rem; }

.trans-line { display: flex; flex-direction: column; gap: 0.5rem; }

.trans-line-row {
    display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.trans-line-row.original { border-bottom-color: #e2e8f0; }
.trans-line-row.translated { border-bottom-color: #d1d5db; }

.trans-line-controls { display: flex; align-items: center; gap: 0.25rem; width: 96px; flex-shrink: 0; }

.trans-line-btn {
    padding: 0.25rem; background: transparent; border: none; border-radius: 4px;
    color: #9ca3af; cursor: pointer; transition: all 0.2s;
}
.trans-line-btn:hover { color: #2563eb; background: #dbeafe; }
.trans-line-btn.separate:hover { color: #16a34a; background: #dcfce7; }

.trans-line-number { font-size: 0.875rem; color: #9ca3af; width: 32px; text-align: center; }
.trans-line-icon { width: 20px; height: 20px; display: inline-block; }
.trans-line-icon.original { color: #3b82f6; }
.trans-line-icon.translated { color: #22c55e; }

.trans-line-input {
    flex: 1; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 1rem; font-family: inherit; resize: none; min-height: 44px;
    transition: all 0.2s; box-sizing: border-box;
}

.trans-line-input.original { background: #eff6ff; border-color: #bfdbfe; }
.trans-line-input.original:hover { border-color: #93c5fd; }
.trans-line-input.original:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }
.trans-line-input.original.selected { box-shadow: 0 0 0 2px rgba(147,197,253,0.5); border-color: #93c5fd; }
.trans-line-input.original.editing { background: #dbeafe; box-shadow: 0 0 0 2px rgba(59,130,246,0.3); border-color: #3b82f6; }

.trans-line-input.translated { background: #f0fdf4; border-color: #bbf7d0; }
.trans-line-input.translated:hover { border-color: #86efac; }
.trans-line-input.translated:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.trans-line-input.translated.selected { box-shadow: 0 0 0 2px rgba(134,239,172,0.5); border-color: #86efac; }
.trans-line-input.translated.editing { background: #dcfce7; box-shadow: 0 0 0 2px rgba(34,197,94,0.3); border-color: #22c55e; }

.trans-floating-buttons { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; gap: 0.75rem; z-index: 50; }

.trans-quote-panel { position: fixed; z-index: 100; top: 50%; right: 2rem; transform: translateY(-50%); }
.trans-quote-toggle {
    padding: 0.5rem 0.75rem; background: white; border: 1px solid #e2e8f0; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; transition: all 0.2s;
    color: #374151; font-size: 1.5rem;
}
.trans-quote-toggle:hover { background: #f9fafb; }
.trans-quote-content {
    position: absolute; top: 0; right: 100%; margin-right: 0.5rem; background: white; border: 1px solid #e2e8f0;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 0.75rem; width: 128px;
}
.trans-quote-title { font-size: 0.75rem; color: #6b7280; text-align: center; margin-bottom: 0.5rem; font-weight: 500; }
.trans-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.trans-quote-btn {
    padding: 0.25rem 0.5rem; font-size: 0.875rem; background: #f9fafb;
    border: 1px solid #e2e8f0; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.trans-quote-btn:hover { background: #f3f4f6; }

.trans-help { background: #eff6ff; border-radius: 12px; padding: clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem); margin-bottom: clamp(1rem, 3vw, 2rem); }
.trans-help-title { font-size: 1rem; font-weight: 600; color: #1e40af; margin: 0 0 0.75rem 0; }
.trans-help-list { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; color: #1e40af; line-height: 1.6; }
.trans-help-list li { margin-bottom: 0.25rem; }

@media (max-width: 1024px) {
    .trans-header { flex-direction: column; align-items: stretch; }
    .trans-header-right { justify-content: flex-end; }
}

@media (max-width: 768px) {
    .trans-bulk-grid { grid-template-columns: 1fr; }
    .trans-char-settings { grid-template-columns: 1fr; }
    .trans-line-controls { width: auto; }
    .trans-line-row { gap: 0.5rem; padding: 0.5rem 0; }
    .trans-floating-buttons { flex-wrap: wrap; justify-content: flex-end; bottom: 1rem; right: 0.5rem; left: 0.5rem; }
    .trans-quote-panel { right: 3rem; }
    .trans-header-right { flex-wrap: wrap; }
    .trans-autosave-badge .trans-autosave-time { display: none; }
}

@media (max-width: 480px) {
    .trans-btn { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
    .trans-floating-buttons { gap: 0.5rem; right: 0.25rem; left: 0.25rem; bottom: 0.75rem; }
    .trans-line-input { padding: 0.5rem; font-size: 0.95rem; }
    .trans-autosave-badge { display: none; }
}
